void usb_packet_setup(USBPacket *p, int pid, USBEndpoint *ep, uint64_t id,

                      bool short_not_ok, bool int_req)

{

    assert(!usb_packet_is_inflight(p));

    assert(p->iov.iov != NULL);

    p->id = id;

    p->pid = pid;

    p->ep = ep;

    p->result = 0;

    p->parameter = 0;

    p->short_not_ok = short_not_ok;

    p->int_req = int_req;


    qemu_iovec_reset(&p->iov);

    usb_packet_set_state(p, USB_PACKET_SETUP);

}
void usb_packet_setup(USBPacket *p, int pid, USBEndpoint *ep, uint64_t id,

                      bool short_not_ok, bool int_req)

{

    assert(!usb_packet_is_inflight(p));

    assert(p->iov.iov != NULL);

    p->id = id;

    p->pid = pid;

    p->ep = ep;

    p->result = 0;

    p->parameter = 0;

    p->short_not_ok = short_not_ok;

    p->int_req = int_req;


    qemu_iovec_reset(&p->iov);

    usb_packet_set_state(p, USB_PACKET_SETUP);

}
void FUNC_0(USBPacket *VAR_0, int VAR_1, USBEndpoint *VAR_2, uint64_t VAR_3,

                      bool VAR_4, bool VAR_5)

{

    assert(!usb_packet_is_inflight(VAR_0));

    assert(VAR_0->iov.iov != NULL);

    VAR_0->VAR_3 = VAR_3;

    VAR_0->VAR_1 = VAR_1;

    VAR_0->VAR_2 = VAR_2;

    VAR_0->result = 0;

    VAR_0->parameter = 0;

    VAR_0->VAR_4 = VAR_4;

    VAR_0->VAR_5 = VAR_5;


    qemu_iovec_reset(&VAR_0->iov);

    usb_packet_set_state(VAR_0, USB_PACKET_SETUP);

}
void FUNC_0(USBPacket *VAR_0, int VAR_1, USBEndpoint *VAR_2, uint64_t VAR_3,
bool VAR_4, bool VAR_5)
{ assert(!usb_packet_is_inflight(VAR_0)); assert(VAR_0->iov.iov != NULL); VAR_0->VAR_3 = VAR_3; VAR_0->VAR_1 = VAR_1; VAR_0->VAR_2 = VAR_2; VAR_0->result = 0; VAR_0->parameter = 0; VAR_0->VAR_4 = VAR_4; VAR_0->VAR_5 = VAR_5; qemu_iovec_reset(&VAR_0->iov); usb_packet_set_state(VAR_0, USB_PACKET_SETUP); }