Lines Matching refs:gtd
41 usb_host_ohci_general_transfer_descritpor_struct_t *gtd);
45 usb_host_ohci_general_transfer_descritpor_struct_t *gtd,
346 usb_host_ohci_general_transfer_descritpor_struct_t **gtd, in USB_HostOhciGetGtd() argument
362 *gtd = NULL; in USB_HostOhciGetGtd()
365 if (NULL == (*gtd)) in USB_HostOhciGetGtd()
367 *gtd = usbHostState->gtdList; in USB_HostOhciGetGtd()
397 usb_host_ohci_general_transfer_descritpor_struct_t *gtd) in USB_HostOhciFreeGtd() argument
402 if (NULL == gtd) in USB_HostOhciFreeGtd()
413 if (p == gtd) in USB_HostOhciFreeGtd()
420 gtd->nextGtd = usbHostState->gtdList; in USB_HostOhciFreeGtd()
421 usbHostState->gtdList = gtd; in USB_HostOhciFreeGtd()
809 usb_host_ohci_general_transfer_descritpor_struct_t *gtd; in USB_HostOhciOpenControlBulkPipe() local
812 error = USB_HostOhciGetGtd(usbHostState, >d, 1); in USB_HostOhciOpenControlBulkPipe()
818 gtd->stateUnion.stateBitField.CC = USB_HOST_OHCI_CC_NOT_ACCESSED; in USB_HostOhciOpenControlBulkPipe()
819 gtd->stateUnion.stateBitField.R = 1U; in USB_HostOhciOpenControlBulkPipe()
821 pipe->ed->TailP = (uint32_t)gtd; in USB_HostOhciOpenControlBulkPipe()
822 pipe->ed->HeadP = (uint32_t)gtd; in USB_HostOhciOpenControlBulkPipe()
892 usb_host_ohci_general_transfer_descritpor_struct_t *gtd; in USB_HostOhciOpenInterruptPipe() local
909 error = USB_HostOhciGetGtd(usbHostState, >d, 1); in USB_HostOhciOpenInterruptPipe()
915 gtd->stateUnion.stateBitField.CC = USB_HOST_OHCI_CC_NOT_ACCESSED; in USB_HostOhciOpenInterruptPipe()
916 gtd->stateUnion.stateBitField.R = 1U; in USB_HostOhciOpenInterruptPipe()
918 pipe->ed->TailP = (uint32_t)gtd; in USB_HostOhciOpenInterruptPipe()
919 pipe->ed->HeadP = (uint32_t)gtd; in USB_HostOhciOpenInterruptPipe()
932 usb_host_ohci_general_transfer_descritpor_struct_t *gtd, in USB_HostOhciTdDoneHandle() argument
966 gtd->stateUnion.state = 0U; in USB_HostOhciTdDoneHandle()
967 gtd->stateUnion.stateBitField.CC = USB_HOST_OHCI_CC_NOT_ACCESSED; in USB_HostOhciTdDoneHandle()
968 gtd->stateUnion.stateBitField.R = 1U; in USB_HostOhciTdDoneHandle()
969 gtd->CBP = 0U; in USB_HostOhciTdDoneHandle()
970 gtd->NextTD = 0U; in USB_HostOhciTdDoneHandle()
971 gtd->BE = 0U; in USB_HostOhciTdDoneHandle()
976 if (USB_HOST_OHCI_CC_NO_ERROR != gtd->stateUnion.stateBitField.CC) in USB_HostOhciTdDoneHandle()
986 if ((gtd->stateUnion.stateBitField.CC == USB_HOST_OHCI_CC_DEVICE_NOT_RESPONDING) && in USB_HostOhciTdDoneHandle()
1014 if (USB_HOST_OHCI_CC_STALL == gtd->stateUnion.stateBitField.CC) in USB_HostOhciTdDoneHandle()
1084 if (gtd == gtdP) in USB_HostOhciTdDoneHandle()
1110 … if ((0U != gtd->CBP) && (USB_HOST_OHCI_GTD_DP_SETUP != gtd->stateUnion.stateBitField.DP)) in USB_HostOhciTdDoneHandle()
1112 …currentTr->transferLength -= ((0U != (((gtd->BE) ^ (gtd->CBP)) & 0xFFFFF000U)) ? 0x00001000U : 0U)… in USB_HostOhciTdDoneHandle()
1113 … ((gtd->BE) & 0x00000FFFU) - ((gtd->CBP) & 0x00000FFFU) + 1U; in USB_HostOhciTdDoneHandle()
1117 (void)USB_HostOhciFreeGtd(usbHostState, gtd); in USB_HostOhciTdDoneHandle()
1303 usb_host_ohci_general_transfer_descritpor_struct_t *gtd; in USB_HostOhciCancelPipe() local
1329 …gtd = (usb_host_ohci_general_transfer_descritpor_struct_t *)((uint32_t)usbHostState->tdDoneList… in USB_HostOhciCancelPipe()
1331 while (NULL != gtd) in USB_HostOhciCancelPipe()
1333 if (((uint32_t)gtd) < ((uint32_t)&s_UsbHostOhciTd[usbHostState->controllerId].gtd[0])) in USB_HostOhciCancelPipe()
1335 temp = (void *)gtd; in USB_HostOhciCancelPipe()
1343 trCurrent = gtd->tr; in USB_HostOhciCancelPipe()
1344 currentPipe = gtd->pipe; in USB_HostOhciCancelPipe()
1350 gtdPos = (usb_host_ohci_general_transfer_descritpor_struct_t *)gtd->NextTD; in USB_HostOhciCancelPipe()
1351 USB_HostOhciTdDoneHandle(usbHostState, pipe, trCurrent, gtd, itd); in USB_HostOhciCancelPipe()
1360 gtd = gtdPos; in USB_HostOhciCancelPipe()
1364 gtdPre = gtd; in USB_HostOhciCancelPipe()
1365 gtd = (usb_host_ohci_general_transfer_descritpor_struct_t *)gtd->NextTD; in USB_HostOhciCancelPipe()
1378 … gtd = (usb_host_ohci_general_transfer_descritpor_struct_t *)trCurrent->union1.unitHead; in USB_HostOhciCancelPipe()
1379 while (NULL != gtd) in USB_HostOhciCancelPipe()
1383 temp = (void *)gtd; in USB_HostOhciCancelPipe()
1391 gtdPos = (usb_host_ohci_general_transfer_descritpor_struct_t *)gtd->nextGtd; in USB_HostOhciCancelPipe()
1393 USB_HostOhciTdDoneHandle(usbHostState, pipe, trCurrent, gtd, itd); in USB_HostOhciCancelPipe()
1394 gtd = gtdPos; in USB_HostOhciCancelPipe()
1538 usb_host_ohci_general_transfer_descritpor_struct_t *gtd, in USB_HostOhciFillGtd() argument
1545 gtd->CBP = (uint32_t)buffer; in USB_HostOhciFillGtd()
1546 gtd->BE = (0U != length) ? (gtd->CBP + length - 1U) : 0U; in USB_HostOhciFillGtd()
1547 gtd->pipe = pipe; in USB_HostOhciFillGtd()
1548 gtd->tr = tr; in USB_HostOhciFillGtd()
1549 gtd->stateUnion.stateBitField.R = 1U; in USB_HostOhciFillGtd()
1550 gtd->stateUnion.stateBitField.DP = dirPid; in USB_HostOhciFillGtd()
1551 gtd->stateUnion.stateBitField.DI = (0U != ioc) ? 0U : USB_HOST_OHCI_GTD_DI_NO_INTERRUPT; in USB_HostOhciFillGtd()
1552 gtd->stateUnion.stateBitField.T = dataToggle; in USB_HostOhciFillGtd()
1553 gtd->stateUnion.stateBitField.CC = USB_HOST_OHCI_CC_NOT_ACCESSED; in USB_HostOhciFillGtd()
1554 gtd->length = length; in USB_HostOhciFillGtd()
1913 usb_host_ohci_general_transfer_descritpor_struct_t *gtd; in USB_HostOhciTokenDone() local
1924 …gtd = (usb_host_ohci_general_transfer_descritpor_struct_t *)((uint32_t)usbHostState->tdDoneListHea… in USB_HostOhciTokenDone()
1925 while (NULL != gtd) in USB_HostOhciTokenDone()
1927 if (((uint32_t)gtd) < ((uint32_t)&s_UsbHostOhciTd[usbHostState->controllerId].gtd[0])) in USB_HostOhciTokenDone()
1929 temp = (void *)gtd; in USB_HostOhciTokenDone()
1937 trCurrent = gtd->tr; in USB_HostOhciTokenDone()
1938 pipe = gtd->pipe; in USB_HostOhciTokenDone()
1941 gtdPos = (usb_host_ohci_general_transfer_descritpor_struct_t *)gtd->NextTD; in USB_HostOhciTokenDone()
1942 USB_HostOhciTdDoneHandle(usbHostState, pipe, trCurrent, gtd, itd); in USB_HostOhciTokenDone()
1943 if (usbHostState->tdDoneListTail == gtd) in USB_HostOhciTokenDone()
1947 gtd = gtdPos; in USB_HostOhciTokenDone()
1962 usb_host_ohci_general_transfer_descritpor_struct_t *gtd; in USB_HostOhciSof() local
2014 … gtd = (usb_host_ohci_general_transfer_descritpor_struct_t *)pipe->ed->trListHead->union1.unitHead; in USB_HostOhciSof()
2015 while (NULL != gtd) in USB_HostOhciSof()
2017 gtdP = (usb_host_ohci_general_transfer_descritpor_struct_t *)gtd->nextGtd; in USB_HostOhciSof()
2020 temp = (void *)gtd; in USB_HostOhciSof()
2028 … USB_HostOhciTdDoneHandle(usbHostState, pipe, pipe->ed->trListHead, gtd, itd); in USB_HostOhciSof()
2029 gtd = gtdP; in USB_HostOhciSof()
2069 usb_host_ohci_general_transfer_descritpor_struct_t *gtd; in UBS_HostOhciControllerInit() local
2108 usbHostState->gtdList = &s_UsbHostOhciTd[usbHostState->controllerId].gtd[0]; in UBS_HostOhciControllerInit()
2109 gtd = usbHostState->gtdList; in UBS_HostOhciControllerInit()
2112 gtd->nextGtd = &s_UsbHostOhciTd[usbHostState->controllerId].gtd[i]; in UBS_HostOhciControllerInit()
2113 gtd = gtd->nextGtd; in UBS_HostOhciControllerInit()
2115 gtd->nextGtd = NULL; in UBS_HostOhciControllerInit()