Lines Matching refs:i
188 unsigned int i; in udc_reinit() local
198 for (i = 0; i < DWC2_MAX_ENDPOINTS; i++) { in udc_reinit()
199 struct dwc2_ep *ep = &dev->ep[i]; in udc_reinit()
201 if (i != 0) in udc_reinit()
388 int i, len = req->req.length; in done() local
393 for (i = 0; i < len; i++) { in done()
394 printf("%02x", ((u8 *)req->req.buf)[i]); in done()
395 if ((i & 7) == 7) in done()
429 int i; in stop_activity() local
437 for (i = 0; i < DWC2_MAX_ENDPOINTS; i++) { in stop_activity()
438 struct dwc2_ep *ep = &dev->ep[i]; in stop_activity()
457 int i; in reconfig_usbd() local
515 for (i = 1; i < DWC2_MAX_ENDPOINTS; i++) { in reconfig_usbd()
516 writel(DEPCTL_EPDIS|DEPCTL_SNAK, ®->out_endp[i].doepctl); in reconfig_usbd()
517 writel(DEPCTL_EPDIS|DEPCTL_SNAK, ®->in_endp[i].diepctl); in reconfig_usbd()
558 for (i = 0; i < max_hw_ep; i++) { in reconfig_usbd()
560 tx_fifo_sz = dev->pdata->tx_fifo_sz_array[i]; in reconfig_usbd()
562 writel((rx_fifo_sz + np_tx_fifo_sz + (tx_fifo_sz * i)) | in reconfig_usbd()
563 tx_fifo_sz << 16, ®->dieptxf[i]); in reconfig_usbd()
589 int i; in set_max_pktsize() local
604 for (i = 1; i < DWC2_MAX_ENDPOINTS; i++) in set_max_pktsize()
605 dev->ep[i].ep.maxpacket = ep_fifo_size; in set_max_pktsize()
960 int i, ret, count; in dwc2_phy_setup() local
976 for (i = 0; i < count; i++) { in dwc2_phy_setup()
977 ret = generic_phy_get_by_index(dev, i, &usb_phys[i]); in dwc2_phy_setup()
980 i, dev->name); in dwc2_phy_setup()
985 for (i = 0; i < count; i++) { in dwc2_phy_setup()
986 ret = generic_phy_init(&usb_phys[i]); in dwc2_phy_setup()
989 i, dev->name); in dwc2_phy_setup()
994 for (i = 0; i < count; i++) { in dwc2_phy_setup()
995 ret = generic_phy_power_on(&usb_phys[i]); in dwc2_phy_setup()
998 i, dev->name); in dwc2_phy_setup()
1009 for (i = count - 1; i >= 0; i--) in dwc2_phy_setup()
1010 generic_phy_power_off(&usb_phys[i]); in dwc2_phy_setup()
1012 for (i = 0; i < count; i++) in dwc2_phy_setup()
1013 generic_phy_exit(&usb_phys[i]); in dwc2_phy_setup()
1018 for (; i >= 0; i--) in dwc2_phy_setup()
1019 generic_phy_exit(&usb_phys[i]); in dwc2_phy_setup()
1026 int i, ret; in dwc2_phy_shutdown() local
1028 for (i = 0; i < num_phys; i++) { in dwc2_phy_shutdown()
1029 if (!generic_phy_valid(&usb_phys[i])) in dwc2_phy_shutdown()
1032 ret = generic_phy_power_off(&usb_phys[i]); in dwc2_phy_shutdown()
1033 ret |= generic_phy_exit(&usb_phys[i]); in dwc2_phy_shutdown()
1036 i, dev->name); in dwc2_phy_shutdown()