Lines Matching refs:usbRegBase
77 tempFrameCount = usbHostPointer->usbRegBase->FRMNUMH; in _USB_HostKhciGetFrameCount()
79 return ((tempFrameCount << 8U) | (usbHostPointer->usbRegBase->FRMNUML)); in _USB_HostKhciGetFrameCount()
148 status = (uint8_t)((usbHostPointer->usbRegBase->ISTAT)); in USB_HostKhciIsrFunction()
149 status &= (uint8_t)(usbHostPointer->usbRegBase->INTEN); in USB_HostKhciIsrFunction()
156 usbHostPointer->usbRegBase->ISTAT = status; in USB_HostKhciIsrFunction()
165 usbHostPointer->usbRegBase->INTEN &= (uint8_t)(~USB_INTEN_ATTACHEN_MASK); in USB_HostKhciIsrFunction()
178 usbHostPointer->usbRegBase->USBTRC0 &= (uint8_t)(~USB_USBTRC0_USBRESMEN_MASK); in USB_HostKhciIsrFunction()
187 usbHostPointer->usbRegBase->INTEN &= (uint8_t)(~USB_INTEN_RESUMEEN_MASK); in USB_HostKhciIsrFunction()
188 usbHostPointer->usbRegBase->USBTRC0 &= (uint8_t)(~USB_USBTRC0_USBRESMEN_MASK); in USB_HostKhciIsrFunction()
201 usbHostPointer->usbRegBase->CTL |= USB_CTL_RESUME_MASK; in USB_HostKhciIsrFunction()
228 usbHostPointer->usbRegBase->CTL |= USB_CTL_ODDRST_MASK; in _USB_HostKhciAttach()
229 usbHostPointer->usbRegBase->CTL = USB_CTL_HOSTMODEEN_MASK; in _USB_HostKhciAttach()
230 …usbHostPointer->usbRegBase->ADDR = (uint8_t)(((usbHostPointer->usbRegBase->ADDR & (~USB_ADDR_ADDR_… in _USB_HostKhciAttach()
232 usbHostPointer->usbRegBase->ADDR &= (uint8_t)(~USB_ADDR_LSEN_MASK); in _USB_HostKhciAttach()
242 temp = (0U != ((usbHostPointer->usbRegBase->CTL) & USB_CTL_JSTATE_MASK)) ? 0U : 1U; in _USB_HostKhciAttach()
247 speed = (0U != ((usbHostPointer->usbRegBase->CTL) & USB_CTL_JSTATE_MASK)) ? 0U : 1U; in _USB_HostKhciAttach()
256 usbHostPointer->usbRegBase->INTEN |= USB_INTEN_ATTACHEN_MASK; in _USB_HostKhciAttach()
259 if (((usbHostPointer->usbRegBase->CTL) & USB_CTL_SE0_MASK) == USB_CTL_SE0_MASK) in _USB_HostKhciAttach()
261 usbHostPointer->usbRegBase->INTEN |= USB_INTEN_ATTACHEN_MASK; in _USB_HostKhciAttach()
267 usbHostPointer->usbRegBase->ADDR &= (uint8_t)(~USB_ADDR_LSEN_MASK); in _USB_HostKhciAttach()
271 usbHostPointer->usbRegBase->ENDPOINT[0U].ENDPT = USB_ENDPT_HOSTWOHUB_MASK; in _USB_HostKhciAttach()
272 usbHostPointer->usbRegBase->ADDR |= USB_ADDR_LSEN_MASK; in _USB_HostKhciAttach()
279 usbHostPointer->usbRegBase->ISTAT = 0xffU; in _USB_HostKhciAttach()
280 …usbHostPointer->usbRegBase->INTEN &= (uint8_t)(~(USB_INTEN_TOKDNEEN_MASK | USB_INTEN_USBRSTEN_MASK… in _USB_HostKhciAttach()
283 usbHostPointer->usbRegBase->CTL |= USB_CTL_RESET_MASK; in _USB_HostKhciAttach()
289 usbHostPointer->usbRegBase->CTL &= (uint8_t)(~USB_CTL_RESET_MASK); in _USB_HostKhciAttach()
291 usbHostPointer->usbRegBase->CTL |= USB_CTL_USBENSOFEN_MASK; in _USB_HostKhciAttach()
297 usbHostPointer->usbRegBase->CONTROL &= (uint8_t)(~USB_CONTROL_DPPULLUPNONOTG_MASK); in _USB_HostKhciAttach()
298 usbHostPointer->usbRegBase->INTEN |= (USB_INTEN_TOKDNEEN_MASK | USB_INTEN_USBRSTEN_MASK); in _USB_HostKhciAttach()
323 usbHostPointer->usbRegBase->INTEN &= (uint8_t)(~USB_INTEN_RESUMEEN_MASK); in _USB_HostKhciReset()
324 usbHostPointer->usbRegBase->USBTRC0 &= (uint8_t)(~USB_USBTRC0_USBRESMEN_MASK); in _USB_HostKhciReset()
325 usbHostPointer->usbRegBase->CTL |= USB_CTL_USBENSOFEN_MASK; in _USB_HostKhciReset()
335 usbHostPointer->usbRegBase->ISTAT = USB_ISTAT_ATTACH_MASK; in _USB_HostKhciReset()
342 if (0U != ((usbHostPointer->usbRegBase->ISTAT) & USB_ISTAT_ATTACH_MASK)) in _USB_HostKhciReset()
345 usbHostPointer->usbRegBase->INTEN |= USB_ISTAT_USBRST_MASK; in _USB_HostKhciReset()
346 …usbHostPointer->usbRegBase->ADDR = (uint8_t)((usbHostPointer->usbRegBase->ADDR & (~USB_ADDR_ADDR_M… in _USB_HostKhciReset()
348 usbHostPointer->usbRegBase->ENDPOINT[0U].ENDPT |= USB_ENDPT_HOSTWOHUB_MASK; in _USB_HostKhciReset()
375 usbHostPointer->usbRegBase->USBCTRL |= USB_USBCTRL_PDE_MASK; in _USB_HostKhciDetach()
377 usbHostPointer->usbRegBase->USBCTRL &= (uint8_t)(~USB_USBCTRL_SUSP_MASK); in _USB_HostKhciDetach()
379 usbHostPointer->usbRegBase->CTL |= USB_CTL_ODDRST_MASK; in _USB_HostKhciDetach()
381 usbHostPointer->usbRegBase->CTL = USB_CTL_HOSTMODEEN_MASK; in _USB_HostKhciDetach()
383 usbHostPointer->usbRegBase->CTL &= (uint8_t)(~USB_CTL_USBENSOFEN_MASK); in _USB_HostKhciDetach()
388 usbHostPointer->usbRegBase->ISTAT = 0xffU; in _USB_HostKhciDetach()
808 err = usbHostPointer->usbRegBase->ERRSTAT; in _USB_HostKhciTransactionDone()
918 usbHostPointer->usbRegBase->ADDR |= USB_ADDR_LSEN_MASK; in _USB_HostKhciAtomNonblockingTransaction()
922 usbHostPointer->usbRegBase->ADDR &= (uint8_t)(~USB_ADDR_LSEN_MASK); in _USB_HostKhciAtomNonblockingTransaction()
924 …usbHostPointer->usbRegBase->ADDR = (uint8_t)((usbHostPointer->usbRegBase->ADDR & ((uint8_t)(~USB_A… in _USB_HostKhciAtomNonblockingTransaction()
935 usbHostPointer->usbRegBase->ENDPOINT[0U].ENDPT = epCtlVal; in _USB_HostKhciAtomNonblockingTransaction()
940 while (0U != ((usbHostPointer->usbRegBase->CTL) & USB_CTL_TXSUSPENDTOKENBUSY_MASK)) in _USB_HostKhciAtomNonblockingTransaction()
966 … usbHostPointer->usbRegBase->SOFTHLD = (uint8_t)((len * 12U * 7U / 6U + KHCICFG_THSLD_DELAY) / 8U); in _USB_HostKhciAtomNonblockingTransaction()
970 … usbHostPointer->usbRegBase->SOFTHLD = (uint8_t)((len * 7U / 6U + KHCICFG_THSLD_DELAY) / 8U); in _USB_HostKhciAtomNonblockingTransaction()
973 usbHostPointer->usbRegBase->ERRSTAT = 0xffU; in _USB_HostKhciAtomNonblockingTransaction()
1000 usbHostPointer->usbRegBase->TOKEN = in _USB_HostKhciAtomNonblockingTransaction()
1010 usbHostPointer->usbRegBase->TOKEN = in _USB_HostKhciAtomNonblockingTransaction()
1020 usbHostPointer->usbRegBase->TOKEN = in _USB_HostKhciAtomNonblockingTransaction()
1269 usbHostPointer->usbRegBase->CTL &= (uint8_t)(~USB_CTL_RESUME_MASK); in _USB_HostKhciResume()
1270 usbHostPointer->usbRegBase->CTL |= USB_CTL_USBENSOFEN_MASK; in _USB_HostKhciResume()
1278 usbHostPointer->usbRegBase->CTL &= (uint8_t)(~USB_CTL_RESUME_MASK); in _USB_HostKhciResume()
1279 usbHostPointer->usbRegBase->ISTAT = USB_ISTAT_RESUME_MASK; in _USB_HostKhciResume()
1280 usbHostPointer->usbRegBase->CTL |= USB_CTL_USBENSOFEN_MASK; in _USB_HostKhciResume()
1323 usbHostPointer->usbRegBase->CTL &= (uint8_t)(~USB_CTL_USBENSOFEN_MASK); in _USB_HostKhciTransferStateMachine()
1330 usbHostPointer->usbRegBase->ISTAT |= USB_INTEN_RESUMEEN_MASK; in _USB_HostKhciTransferStateMachine()
1331 usbHostPointer->usbRegBase->INTEN |= (USB_INTEN_RESUMEEN_MASK); in _USB_HostKhciTransferStateMachine()
1332 usbHostPointer->usbRegBase->USBTRC0 |= USB_USBTRC0_USBRESMEN_MASK; in _USB_HostKhciTransferStateMachine()
1568 …usbHostPointer->usbRegBase = (USB_Type *)usb_base_addrs[controllerId - (uint8_t)kUSB_ControllerKhc… in USB_HostKhciCreate()
1613 usbHostPointer->usbRegBase->CTL = USB_CTL_SE0_MASK; in USB_HostKhciCreate()
1616 usbHostPointer->usbRegBase->CTL = 0U; in USB_HostKhciCreate()
1617 usbHostPointer->usbRegBase->ISTAT = 0xffU; in USB_HostKhciCreate()
1619 usbHostPointer->usbRegBase->USBCTRL |= USB_USBCTRL_PDE_MASK; in USB_HostKhciCreate()
1621 usbHostPointer->usbRegBase->USBCTRL &= (uint8_t)(~USB_USBCTRL_SUSP_MASK); in USB_HostKhciCreate()
1622 usbHostPointer->usbRegBase->CTL |= USB_CTL_ODDRST_MASK; in USB_HostKhciCreate()
1624 usbHostPointer->usbRegBase->BDTPAGE1 = (uint8_t)((uint32_t)USB_KHCI_BDT_BASE >> 8U); in USB_HostKhciCreate()
1625 usbHostPointer->usbRegBase->BDTPAGE2 = (uint8_t)((uint32_t)USB_KHCI_BDT_BASE >> 16); in USB_HostKhciCreate()
1626 usbHostPointer->usbRegBase->BDTPAGE3 = (uint8_t)((uint32_t)USB_KHCI_BDT_BASE >> 24); in USB_HostKhciCreate()
1628 usbHostPointer->usbRegBase->SOFTHLD = 255; in USB_HostKhciCreate()
1629 usbHostPointer->usbRegBase->ERREN = 0x00U; in USB_HostKhciCreate()
1630 usbHostPointer->usbRegBase->CTL = USB_CTL_HOSTMODEEN_MASK; in USB_HostKhciCreate()
1632 usbHostPointer->usbRegBase->INTEN |= (USB_INTEN_ATTACHEN_MASK | USB_INTEN_SOFTOKEN_MASK); in USB_HostKhciCreate()
1635 usbHostPointer->usbRegBase->MISCCTRL |= USB_MISCCTRL_SOFDYNTHLD_MASK; in USB_HostKhciCreate()
1656 usbHostPointer->usbRegBase->ISTAT = 0xFFU; in USB_HostKhciDestory()
1657 usbHostPointer->usbRegBase->INTEN = 0U; in USB_HostKhciDestory()
1659 …usbHostPointer->usbRegBase->ADDR = ((usbHostPointer->usbRegBase->ADDR & ((uint8_t)(~USB_ADDR_ADDR_… in USB_HostKhciDestory()
1661 usbHostPointer->usbRegBase->CTL = 0U; in USB_HostKhciDestory()
1663 usbHostPointer->usbRegBase->USBCTRL |= USB_USBCTRL_PDE_MASK; in USB_HostKhciDestory()
1664 usbHostPointer->usbRegBase->USBCTRL |= USB_USBCTRL_SUSP_MASK; in USB_HostKhciDestory()
1665 usbHostPointer->usbRegBase->ADDR &= (uint8_t)(~USB_ADDR_LSEN_MASK); in USB_HostKhciDestory()
2007 while (0U != ((usbHostPointer->usbRegBase->CTL) & USB_CTL_TXSUSPENDTOKENBUSY_MASK)) in _USB_HostKhciBusControl()
2010 usbHostPointer->usbRegBase->CTL |= USB_CTL_RESET_MASK; in _USB_HostKhciBusControl()
2013 usbHostPointer->usbRegBase->CTL &= (uint8_t)(~USB_CTL_RESET_MASK); in _USB_HostKhciBusControl()
2014 usbHostPointer->usbRegBase->CTL |= USB_CTL_ODDRST_MASK; in _USB_HostKhciBusControl()
2015 usbHostPointer->usbRegBase->CTL = USB_CTL_HOSTMODEEN_MASK; in _USB_HostKhciBusControl()
2024 usbHostPointer->usbRegBase->CTL = USB_CTL_HOSTMODEEN_MASK; in _USB_HostKhciBusControl()
2025 usbHostPointer->usbRegBase->ISTAT = 0xffU; in _USB_HostKhciBusControl()
2027 usbHostPointer->usbRegBase->INTEN |= USB_INTEN_ATTACHEN_MASK; in _USB_HostKhciBusControl()
2033 usbHostPointer->usbRegBase->INTEN |= USB_INTEN_ATTACHEN_MASK; in _USB_HostKhciBusControl()
2038 usbHostPointer->usbRegBase->INTEN &= (uint8_t)(~USB_INTEN_ATTACHEN_MASK); in _USB_HostKhciBusControl()
2057 usbHostPointer->usbRegBase->INTEN &= (uint8_t)(~USB_INTEN_RESUMEEN_MASK); in _USB_HostKhciBusControl()
2058 usbHostPointer->usbRegBase->USBTRC0 &= (uint8_t)(~USB_USBTRC0_USBRESMEN_MASK); in _USB_HostKhciBusControl()
2062 usbHostPointer->usbRegBase->CTL |= USB_CTL_RESUME_MASK; in _USB_HostKhciBusControl()