Lines Matching refs:i

271   uint32_t i;  in USB_DevInit()  local
273 for (i = 0U; i < 15U; i++) in USB_DevInit()
275 USBx->DIEPTXF[i] = 0U; in USB_DevInit()
318 for (i = 0U; i < cfg.dev_endpoints; i++) in USB_DevInit()
320 if ((USBx_INEP(i)->DIEPCTL & USB_OTG_DIEPCTL_EPENA) == USB_OTG_DIEPCTL_EPENA) in USB_DevInit()
322 if (i == 0U) in USB_DevInit()
324 USBx_INEP(i)->DIEPCTL = USB_OTG_DIEPCTL_SNAK; in USB_DevInit()
328 USBx_INEP(i)->DIEPCTL = USB_OTG_DIEPCTL_EPDIS | USB_OTG_DIEPCTL_SNAK; in USB_DevInit()
333 USBx_INEP(i)->DIEPCTL = 0U; in USB_DevInit()
336 USBx_INEP(i)->DIEPTSIZ = 0U; in USB_DevInit()
337 USBx_INEP(i)->DIEPINT = 0xFB7FU; in USB_DevInit()
340 for (i = 0U; i < cfg.dev_endpoints; i++) in USB_DevInit()
342 if ((USBx_OUTEP(i)->DOEPCTL & USB_OTG_DOEPCTL_EPENA) == USB_OTG_DOEPCTL_EPENA) in USB_DevInit()
344 if (i == 0U) in USB_DevInit()
346 USBx_OUTEP(i)->DOEPCTL = USB_OTG_DOEPCTL_SNAK; in USB_DevInit()
350 USBx_OUTEP(i)->DOEPCTL = USB_OTG_DOEPCTL_EPDIS | USB_OTG_DOEPCTL_SNAK; in USB_DevInit()
355 USBx_OUTEP(i)->DOEPCTL = 0U; in USB_DevInit()
358 USBx_OUTEP(i)->DOEPTSIZ = 0U; in USB_DevInit()
359 USBx_OUTEP(i)->DOEPINT = 0xFB7FU; in USB_DevInit()
884 uint32_t i; in USB_WritePacket() local
887 for (i = 0U; i < count32b; i++) in USB_WritePacket()
911 uint32_t i; in USB_ReadPacket() local
915 for (i = 0U; i < count32b; i++) in USB_ReadPacket()
927 i = 0U; in USB_ReadPacket()
932 *(uint8_t *)pDest = (uint8_t)(pData >> (8U * (uint8_t)(i))); in USB_ReadPacket()
933 i++; in USB_ReadPacket()
1012 uint32_t i; in USB_StopDevice() local
1015 for (i = 0U; i < 15U; i++) in USB_StopDevice()
1017 USBx_INEP(i)->DIEPINT = 0xFB7FU; in USB_StopDevice()
1018 USBx_OUTEP(i)->DOEPINT = 0xFB7FU; in USB_StopDevice()
1315 uint32_t i; in USB_HostInit() local
1341 for (i = 0U; i < cfg.Host_channels; i++) in USB_HostInit()
1343 USBx_HC(i)->HCINT = CLEAR_INTERRUPT_MASK; in USB_HostInit()
1344 USBx_HC(i)->HCINTMSK = 0U; in USB_HostInit()
1861 uint32_t i; in USB_StopHost() local
1877 for (i = 0U; i <= 15U; i++) in USB_StopHost()
1879 value = USBx_HC(i)->HCCHAR; in USB_StopHost()
1883 USBx_HC(i)->HCCHAR = value; in USB_StopHost()
1887 for (i = 0U; i <= 15U; i++) in USB_StopHost()
1889 value = USBx_HC(i)->HCCHAR; in USB_StopHost()
1893 USBx_HC(i)->HCCHAR = value; in USB_StopHost()
1903 } while ((USBx_HC(i)->HCCHAR & USB_OTG_HCCHAR_CHENA) == USB_OTG_HCCHAR_CHENA); in USB_StopHost()