Home | History | Annotate | Download | only in DwUsb3Dxe

Lines Matching defs:ep0

56 // Maxpacket size for EP0, defined by USB3 spec
426 /* issue DEPCFG command to EP0 OUT */
434 /* issue DEPSTRMCFG command to EP0 OUT */
436 /* issue DEPCFG command to EP0 IN */
439 EPCFG0_EPTYPE (EPTYPE_CONTROL) | EPCFG0_MPS (512) | EPCFG0_TXFNUM (pcd->ep0.tx_fifo_num),
443 /* issue DEPSTRMCFG command to EP0 IN */
445 pcd->ep0.active = 1;
465 /* Issue DEPCFG command to physical EP1 (logical EP0 IN) first.
525 pcd->ep0.maxpacket,
532 /* issue DEPSTRTXFER command to EP0 OUT */
533 pcd->ep0.tri_out = DwUsb3DepStartXfer (EP_OUT_IDX (0), (UINT64)desc, 0);
614 /* activate EP0 */
616 /* start EP0 to receive SETUP packets */
619 /* enable EP0 OUT/IN in DALEPENA */
639 // init EP0
640 ep = &pcd->ep0;
691 pcd->ep0.maxpacket = USB3_MAX_EP0_SIZE;
692 pcd->ep0.type = EPTYPE_CONTROL;
795 // set the MPS of EP0 based on the connection speed
798 pcd->ep0.maxpacket = 512;
803 pcd->ep0.maxpacket = 64;
808 pcd->ep0.maxpacket = 64;
824 usb3_pcd_ep_t *ep0 = &pcd->ep0;
828 ep0->stopped = 0;
833 // set the MPS of EP0 based on the connection speed
857 DiepCfg0 |= EPCFG0_TXFNUM (ep0->tx_fifo_num);
858 // issue DEPCFG command to EP0 OUT
860 // issue DEPCFG command to EP0 IN
893 return &pcd->ep0;
906 return &pcd->ep0;
917 usb3_pcd_ep_t *ep0 = &pcd->ep0;
919 // stall EP0 IN & OUT simultanelusly
920 ep0->is_in = 1;
922 ep0->is_in = 0;
925 ep0->stopped = 1;
937 usb3_pcd_ep_t *ep0 = &pcd->ep0;
943 if (ep0->is_in) {
957 ep0->tri_in = tri;
969 usb3_pcd_ep_t *ep = &pcd->ep0;
979 pcd->ep0.is_in = 0;
983 pcd->ep0.is_in = 1;
997 // If EP0, fill request with EP0 IN/OUT data TRB
998 if (ep == &pcd->ep0) {
1007 // fill request with TRB from the non-EP0 allocation
1020 usb3_pcd_ep_t *ep0 = &pcd->ep0;
1026 DwUsb3OsGetTrb (pcd, ep0, req);
1030 if (ep0->is_in) {
1031 // start DMA on EP0 IN
1035 if (ep0->three_stage) {
1052 // issue DEPSTRTXFER command to EP0 IN
1053 ep0->tri_in = DwUsb3DepStartXfer (EP_IN_IDX (0), desc_dma, 0);
1055 // start DMA on EP0 OUT
1057 len = ALIGN (req->length, ep0->maxpacket);
1059 if (ep0->three_stage) {
1076 // issue DEPSTRTXFER command to EP0 OUT
1077 ep0->tri_out = DwUsb3DepStartXfer (EP_OUT_IDX (0), desc_dma, 0);
1180 usb3_pcd_ep_t *ep0 = &pcd->ep0;
1185 ep0->is_in = 1;
1200 usb3_pcd_ep_t *ep0 = &pcd->ep0;
1205 ep0->is_in = 0;
1221 usb3_pcd_ep_t *ep0 = &pcd->ep0;
1245 // IN CONTINUE, stall EP0
1247 } else if (ep0->send_zlp) {
1250 ep0->send_zlp = 0;
1270 len = (req->length + ep0->maxpacket - 1) & ~(ep0->maxpacket - 1);
1276 // IN CONTINUE, stall EP0
1278 } else if (ep0->send_zlp) {
1281 ep0->send_zlp = 0;
1290 if (ep0->is_in) {
1298 if (ep0->is_in) {
1307 ep0->stopped = 1;
1308 ep0->is_in = 0; // OUT for next SETUP
1314 if (ep0->is_in) {
1321 ep0->is_in) {
1328 if (ep0->is_in) {
1335 ep0->stopped = 1;
1336 ep0->is_in = 0; // OUT for next SETUP
1341 if (!ep0->is_in) {
1348 ep0->stopped = 1;
1349 ep0->is_in = 0; // OUT for next SETUP
1377 return &pcd->ep0;
1533 pcd->ep0.is_in = 1;
1609 pcd->ep0.is_in = 1;
1623 pcd->ep0.is_in = 1;
1686 pcd->ep0.is_in = 1;
1776 pcd->ep0.is_in = 1;
1976 usb3_pcd_ep_t *ep0 = &pcd->ep0;
1980 ep0->stopped = 0;
1981 ep0->three_stage = 1;
1983 ep0->is_in = 1;
1986 ep0->is_in = 0;
1991 ep0->is_in = 1;
1993 ep0->three_stage = 0;
2031 ep0->send_zlp = 0;
2063 if (ep != &pcd->ep0) {