Lines Matching refs:itd
35 … usb_host_ohci_isochronous_transfer_descritpor_struct_t *itd);
46 usb_host_ohci_isochronous_transfer_descritpor_struct_t *itd);
430 usb_host_ohci_isochronous_transfer_descritpor_struct_t **itd, in USB_HostOhciGetItd() argument
446 *itd = NULL; in USB_HostOhciGetItd()
449 if (NULL == (*itd)) in USB_HostOhciGetItd()
451 *itd = usbHostState->itdList; in USB_HostOhciGetItd()
481 usb_host_ohci_isochronous_transfer_descritpor_struct_t *itd) in USB_HostOhciFreeItd() argument
487 if (NULL == itd) in USB_HostOhciFreeItd()
498 if (p == itd) in USB_HostOhciFreeItd()
508 usbHostState->itdList = itd; in USB_HostOhciFreeItd()
512 pre->NextTD = (uint32_t)itd; in USB_HostOhciFreeItd()
514 itd->NextTD = 0U; in USB_HostOhciFreeItd()
844 usb_host_ohci_isochronous_transfer_descritpor_struct_t *itd; in USB_HostOhciOpenIsoPipe() local
863 error = USB_HostOhciGetItd(usbHostState, &itd, 1); in USB_HostOhciOpenIsoPipe()
869 itd->stateUnion.stateBitField.CC = USB_HOST_OHCI_CC_NOT_ACCESSED; in USB_HostOhciOpenIsoPipe()
871 pipe->ed->TailP = (uint32_t)itd; in USB_HostOhciOpenIsoPipe()
872 pipe->ed->HeadP = (uint32_t)itd; in USB_HostOhciOpenIsoPipe()
933 usb_host_ohci_isochronous_transfer_descritpor_struct_t *itd) in USB_HostOhciTdDoneHandle() argument
954 if (NULL != itd) in USB_HostOhciTdDoneHandle()
956 itd->stateUnion.state = 0U; in USB_HostOhciTdDoneHandle()
957 itd->stateUnion.stateBitField.CC = USB_HOST_OHCI_CC_NOT_ACCESSED; in USB_HostOhciTdDoneHandle()
958 itd->NextTD = 0U; in USB_HostOhciTdDoneHandle()
959 itd->BE = 0U; in USB_HostOhciTdDoneHandle()
960 itd->BP0 = 0U; in USB_HostOhciTdDoneHandle()
961 (void)USB_HostOhciFreeItd(usbHostState, itd); in USB_HostOhciTdDoneHandle()
1022 if (NULL != itd) in USB_HostOhciTdDoneHandle()
1030 if (itd == itdP) in USB_HostOhciTdDoneHandle()
1046 for (uint32_t i = 0; i <= itd->stateUnion.stateBitField.FC; i++) in USB_HostOhciTdDoneHandle()
1048 …currentTr->transferSofar += ((uint32_t)itd->OffsetPSW[i] & (USB_HOST_OHCI_ITD_TRANSFER_SIZE_MASK)); in USB_HostOhciTdDoneHandle()
1049 … conditionCode = (((uint32_t)itd->OffsetPSW[i] & (USB_HOST_OHCI_ITD_CONDITION_CODE_MASK)) >> in USB_HostOhciTdDoneHandle()
1073 (void)USB_HostOhciFreeItd(usbHostState, itd); in USB_HostOhciTdDoneHandle()
1306 usb_host_ohci_isochronous_transfer_descritpor_struct_t *itd; in USB_HostOhciCancelPipe() local
1336 itd = (usb_host_ohci_isochronous_transfer_descritpor_struct_t *)temp; in USB_HostOhciCancelPipe()
1337 trCurrent = itd->tr; in USB_HostOhciCancelPipe()
1338 currentPipe = itd->pipe; in USB_HostOhciCancelPipe()
1342 itd = NULL; in USB_HostOhciCancelPipe()
1351 USB_HostOhciTdDoneHandle(usbHostState, pipe, trCurrent, gtd, itd); in USB_HostOhciCancelPipe()
1384 itd = (usb_host_ohci_isochronous_transfer_descritpor_struct_t *)temp; in USB_HostOhciCancelPipe()
1385 temp = (void *)itd->nextItd; in USB_HostOhciCancelPipe()
1390 itd = NULL; in USB_HostOhciCancelPipe()
1393 USB_HostOhciTdDoneHandle(usbHostState, pipe, trCurrent, gtd, itd); in USB_HostOhciCancelPipe()
1803 usb_host_ohci_isochronous_transfer_descritpor_struct_t *itd, in USB_HostOhciFillItd() argument
1808 itd->BP0 = ((uint32_t)buffer) & USB_HOST_OHCI_ITD_BP0_MASK; in USB_HostOhciFillItd()
1809 itd->BE = (0U != length) ? (((uint32_t)buffer) + length - 1U) : 0U; in USB_HostOhciFillItd()
1810 itd->stateUnion.stateBitField.SF = startFrame & USB_HOST_OHCI_FMNUMBER_FN_MASK; in USB_HostOhciFillItd()
1811 itd->stateUnion.stateBitField.DI = 0U; in USB_HostOhciFillItd()
1812 itd->stateUnion.stateBitField.FC = (length - 1U) / pipe->pipeCommon.maxPacketSize; in USB_HostOhciFillItd()
1813 itd->stateUnion.stateBitField.CC = USB_HOST_OHCI_CC_NOT_ACCESSED; in USB_HostOhciFillItd()
1814 itd->pipe = pipe; in USB_HostOhciFillItd()
1815 itd->tr = tr; in USB_HostOhciFillItd()
1818 …itd->OffsetPSW[i] = (uint16_t)((((uint32_t)buffer + (i * pipe->pipeCommon.maxPacketSize)) & 0xFFFU… in USB_HostOhciFillItd()
1820 …(uint32_t)buffer + (i * pipe->pipeCommon.maxPacketSize)) & USB_HOST_OHCI_ITD_BP0_MASK) != itd->BP0) in USB_HostOhciFillItd()
1822 itd->OffsetPSW[i] |= (uint16_t)1UL << 11U; in USB_HostOhciFillItd()
1825 itd->length = length; in USB_HostOhciFillItd()
1915 usb_host_ohci_isochronous_transfer_descritpor_struct_t *itd; in USB_HostOhciTokenDone() local
1930 itd = (usb_host_ohci_isochronous_transfer_descritpor_struct_t *)temp; in USB_HostOhciTokenDone()
1931 trCurrent = itd->tr; in USB_HostOhciTokenDone()
1932 pipe = itd->pipe; in USB_HostOhciTokenDone()
1936 itd = NULL; in USB_HostOhciTokenDone()
1942 USB_HostOhciTdDoneHandle(usbHostState, pipe, trCurrent, gtd, itd); in USB_HostOhciTokenDone()
1964 usb_host_ohci_isochronous_transfer_descritpor_struct_t *itd; in USB_HostOhciSof() local
2021 itd = (usb_host_ohci_isochronous_transfer_descritpor_struct_t *)temp; in USB_HostOhciSof()
2025 itd = NULL; in USB_HostOhciSof()
2028 … USB_HostOhciTdDoneHandle(usbHostState, pipe, pipe->ed->trListHead, gtd, itd); in USB_HostOhciSof()
2072 usb_host_ohci_isochronous_transfer_descritpor_struct_t *itd; in UBS_HostOhciControllerInit() local
2120 usbHostState->itdList = &s_UsbHostOhciTd[usbHostState->controllerId].itd[0]; in UBS_HostOhciControllerInit()
2121 itd = usbHostState->itdList; in UBS_HostOhciControllerInit()
2124 itd->NextTD = (uint32_t)&s_UsbHostOhciTd[usbHostState->controllerId].itd[i]; in UBS_HostOhciControllerInit()
2125 itd = (usb_host_ohci_isochronous_transfer_descritpor_struct_t *)itd->NextTD; in UBS_HostOhciControllerInit()
2127 itd->NextTD = 0U; in UBS_HostOhciControllerInit()