Lines Matching refs:packey
305 MUSBPacket packey[2]; member
371 usb_packet_init(&s->ep[i].packey[0].p); in musb_reset()
372 usb_packet_init(&s->ep[i].packey[1].p); in musb_reset()
535 ep->delayed_cb[0](&ep->packey[0].p, opaque); in musb_cb_tick0()
542 ep->delayed_cb[1](&ep->packey[1].p, opaque); in musb_cb_tick1()
547 static void musb_schedule_cb(USBPort *port, USBPacket *packey) in musb_schedule_cb() argument
549 MUSBPacket *p = container_of(packey, MUSBPacket, p); in musb_schedule_cb()
636 usb_packet_setup(&ep->packey[dir].p, pid, uep, 0, id, false, true); in musb_packet()
637 usb_packet_addbuf(&ep->packey[dir].p, ep->buf[idx], len); in musb_packet()
638 ep->packey[dir].ep = ep; in musb_packet()
639 ep->packey[dir].dir = dir; in musb_packet()
641 usb_handle_packet(dev, &ep->packey[dir].p); in musb_packet()
643 if (ep->packey[dir].p.status == USB_RET_ASYNC) { in musb_packet()
649 if (ep->packey[dir].p.status == USB_RET_SUCCESS) { in musb_packet()
650 ep->status[dir] = ep->packey[dir].p.actual_length; in musb_packet()
652 ep->status[dir] = ep->packey[dir].p.status; in musb_packet()
654 musb_schedule_cb(&s->port, &ep->packey[dir].p); in musb_packet()
657 static void musb_tx_packet_complete(USBPacket *packey, void *opaque) in musb_tx_packet_complete() argument
728 if (!epnum && ep->packey[0].pid == USB_TOKEN_SETUP) in musb_tx_packet_complete()
729 s->setup_len = ep->packey[0].data[6]; in musb_tx_packet_complete()
737 static void musb_rx_packet_complete(USBPacket *packey, void *opaque) in musb_rx_packet_complete() argument
780 packey->iov.size, musb_rx_packet_complete, 1); in musb_rx_packet_complete()
826 if (!usb_packet_is_inflight(&s->ep[ep].packey[dir].p) || in musb_async_cancel_device()
827 s->ep[ep].packey[dir].p.ep->dev != dev) { in musb_async_cancel_device()
830 usb_cancel_packet(&s->ep[ep].packey[dir].p); in musb_async_cancel_device()
882 if (ep->packey[1].p.pid == USB_TOKEN_IN && ep->status[1] >= 0 && in musb_rx_req()
884 ep->packey[1].p.iov.size) { in musb_rx_req()
889 ep->rxcount = MIN(ep->packey[0].p.iov.size - (ep->fifostart[1]), in musb_rx_req()
927 if (ep->packey[0].p.devaddr == 2) { in musb_rx_req()