Lines Matching refs:i

263   uint32_t i;  in USB_DevInit()  local
265 for (i = 0U; i < 15U; i++) in USB_DevInit()
267 USBx->DIEPTXF[i] = 0U; in USB_DevInit()
295 for (i = 0U; i < cfg.dev_endpoints; i++) in USB_DevInit()
297 if ((USBx_INEP(i)->DIEPCTL & USB_OTG_DIEPCTL_EPENA) == USB_OTG_DIEPCTL_EPENA) in USB_DevInit()
299 if (i == 0U) in USB_DevInit()
301 USBx_INEP(i)->DIEPCTL = USB_OTG_DIEPCTL_SNAK; in USB_DevInit()
305 USBx_INEP(i)->DIEPCTL = USB_OTG_DIEPCTL_EPDIS | USB_OTG_DIEPCTL_SNAK; in USB_DevInit()
310 USBx_INEP(i)->DIEPCTL = 0U; in USB_DevInit()
313 USBx_INEP(i)->DIEPTSIZ = 0U; in USB_DevInit()
314 USBx_INEP(i)->DIEPINT = 0xFB7FU; in USB_DevInit()
317 for (i = 0U; i < cfg.dev_endpoints; i++) in USB_DevInit()
319 if ((USBx_OUTEP(i)->DOEPCTL & USB_OTG_DOEPCTL_EPENA) == USB_OTG_DOEPCTL_EPENA) in USB_DevInit()
321 if (i == 0U) in USB_DevInit()
323 USBx_OUTEP(i)->DOEPCTL = USB_OTG_DOEPCTL_SNAK; in USB_DevInit()
327 USBx_OUTEP(i)->DOEPCTL = USB_OTG_DOEPCTL_EPDIS | USB_OTG_DOEPCTL_SNAK; in USB_DevInit()
332 USBx_OUTEP(i)->DOEPCTL = 0U; in USB_DevInit()
335 USBx_OUTEP(i)->DOEPTSIZ = 0U; in USB_DevInit()
336 USBx_OUTEP(i)->DOEPINT = 0xFB7FU; in USB_DevInit()
861 uint32_t i; in USB_WritePacket() local
864 for (i = 0U; i < count32b; i++) in USB_WritePacket()
888 uint32_t i; in USB_ReadPacket() local
892 for (i = 0U; i < count32b; i++) in USB_ReadPacket()
904 i = 0U; in USB_ReadPacket()
909 *(uint8_t *)pDest = (uint8_t)(pData >> (8U * (uint8_t)(i))); in USB_ReadPacket()
910 i++; in USB_ReadPacket()
989 uint32_t i; in USB_StopDevice() local
992 for (i = 0U; i < 15U; i++) in USB_StopDevice()
994 USBx_INEP(i)->DIEPINT = 0xFB7FU; in USB_StopDevice()
995 USBx_OUTEP(i)->DOEPINT = 0xFB7FU; in USB_StopDevice()
1292 uint32_t i; in USB_HostInit() local
1315 for (i = 0U; i < cfg.Host_channels; i++) in USB_HostInit()
1317 USBx_HC(i)->HCINT = CLEAR_INTERRUPT_MASK; in USB_HostInit()
1318 USBx_HC(i)->HCINTMSK = 0U; in USB_HostInit()
1835 uint32_t i; in USB_StopHost() local
1851 for (i = 0U; i <= 15U; i++) in USB_StopHost()
1853 value = USBx_HC(i)->HCCHAR; in USB_StopHost()
1857 USBx_HC(i)->HCCHAR = value; in USB_StopHost()
1861 for (i = 0U; i <= 15U; i++) in USB_StopHost()
1863 value = USBx_HC(i)->HCCHAR; in USB_StopHost()
1867 USBx_HC(i)->HCCHAR = value; in USB_StopHost()
1877 } while ((USBx_HC(i)->HCCHAR & USB_OTG_HCCHAR_CHENA) == USB_OTG_HCCHAR_CHENA); in USB_StopHost()