Lines Matching refs:ed
753 …uint32_t dummy = (uint32_t)&s_UsbHostOhciTd[usbHostState->controllerId].ed[USB_HOST_OHCI_PERIODIC_… in USB_HostOhciAddToPeriodicList()
754 usb_host_ohci_endpoint_descritpor_struct_t *ed; in USB_HostOhciAddToPeriodicList() local
759 … ed = (usb_host_ohci_endpoint_descritpor_struct_t *)s_UsbHostOhciHcca[usbHostState->controllerId] in USB_HostOhciAddToPeriodicList()
761 pre = ed; in USB_HostOhciAddToPeriodicList()
765 if (pre == pipe->ed) in USB_HostOhciAddToPeriodicList()
778 while (dummy != (uint32_t)ed) in USB_HostOhciAddToPeriodicList()
780 if (ed->pipe->pipeCommon.interval <= pipe->pipeCommon.interval) in USB_HostOhciAddToPeriodicList()
782 … if ((USB_ENDPOINT_ISOCHRONOUS == pipe->pipeCommon.pipeType) && (dummy != (uint32_t)ed)) in USB_HostOhciAddToPeriodicList()
790 pre = ed; in USB_HostOhciAddToPeriodicList()
791 ed = (usb_host_ohci_endpoint_descritpor_struct_t *)ed->NextED; in USB_HostOhciAddToPeriodicList()
793 pipe->ed->NextED = (uint32_t)ed; in USB_HostOhciAddToPeriodicList()
796 pre->NextED = (uint32_t)pipe->ed; in USB_HostOhciAddToPeriodicList()
800 … s_UsbHostOhciHcca[usbHostState->controllerId].HccaInterrruptTable[i] = (uint32_t)pipe->ed; in USB_HostOhciAddToPeriodicList()
821 pipe->ed->TailP = (uint32_t)gtd; in USB_HostOhciOpenControlBulkPipe()
822 pipe->ed->HeadP = (uint32_t)gtd; in USB_HostOhciOpenControlBulkPipe()
825 …pipe->ed->NextED = s_UsbHostOhciTd[usbHostState->controllerId].ed[USB_HOST_OHCI_CONTROL_ED_DUMMY].… in USB_HostOhciOpenControlBulkPipe()
826 …s_UsbHostOhciTd[usbHostState->controllerId].ed[USB_HOST_OHCI_CONTROL_ED_DUMMY].NextED = (uint32_t)… in USB_HostOhciOpenControlBulkPipe()
831 …pipe->ed->NextED = s_UsbHostOhciTd[usbHostState->controllerId].ed[USB_HOST_OHCI_BULK_ED_DUMMY].Nex… in USB_HostOhciOpenControlBulkPipe()
832 …s_UsbHostOhciTd[usbHostState->controllerId].ed[USB_HOST_OHCI_BULK_ED_DUMMY].NextED = (uint32_t)pip… in USB_HostOhciOpenControlBulkPipe()
871 pipe->ed->TailP = (uint32_t)itd; in USB_HostOhciOpenIsoPipe()
872 pipe->ed->HeadP = (uint32_t)itd; in USB_HostOhciOpenIsoPipe()
874 pipe->ed->TailP = (uint32_t)0; in USB_HostOhciOpenIsoPipe()
875 pipe->ed->HeadP = (uint32_t)0; in USB_HostOhciOpenIsoPipe()
918 pipe->ed->TailP = (uint32_t)gtd; in USB_HostOhciOpenInterruptPipe()
919 pipe->ed->HeadP = (uint32_t)gtd; in USB_HostOhciOpenInterruptPipe()
1018 pipe->ed->HeadP &= ~USB_HOST_OHCI_ED_HEADP_HALT_MASK; in USB_HostOhciTdDoneHandle()
1092 uint32_t tail = pipe->ed->TailP & USB_HOST_OHCI_ED_TAILP_MASK; in USB_HostOhciTdDoneHandle()
1093 uint32_t head = pipe->ed->HeadP & USB_HOST_OHCI_ED_HEADP_MASK; in USB_HostOhciTdDoneHandle()
1097 pipe->ed->HeadP &= ~USB_HOST_OHCI_ED_HEADP_MASK; in USB_HostOhciTdDoneHandle()
1098 pipe->ed->HeadP |= (uint32_t)gtdP->NextTD; in USB_HostOhciTdDoneHandle()
1127 if (NULL != pipe->ed->trListHead) in USB_HostOhciTdDoneHandle()
1129 … if (kStatus_USB_Success == USB_HostOhciLinkGtdControlTr(usbHostState, pipe, pipe->ed->trListHead)) in USB_HostOhciTdDoneHandle()
1146 trPos = pipe->ed->trListHead; in USB_HostOhciTdDoneHandle()
1154 pipe->ed->trListHead = trPos->next; in USB_HostOhciTdDoneHandle()
1166 if (NULL == pipe->ed->trListHead) in USB_HostOhciTdDoneHandle()
1168 pipe->ed->trListTail = NULL; in USB_HostOhciTdDoneHandle()
1200 p->ed->stateUnion.stateBitField.K = 1U; in USB_HostOhciTdDoneHandle()
1209 p->ed->HeadP &= ~USB_HOST_OHCI_ED_HEADP_CARRY_MASK; in USB_HostOhciTdDoneHandle()
1211 p->ed->stateUnion.stateBitField.K = 0U; in USB_HostOhciTdDoneHandle()
1248 if (NULL != p->ed->trListHead) in USB_HostOhciTdDoneHandle()
1251 … if (kStatus_USB_Success == USB_HostOhciLinkGtdControlTr(usbHostState, p, p->ed->trListHead)) in USB_HostOhciTdDoneHandle()
1267 if (NULL != pipe->ed->trListHead) in USB_HostOhciTdDoneHandle()
1276 … if (kStatus_USB_Success != USB_HostOhciLinkGtdTr(usbHostState, pipe, pipe->ed->trListHead)) in USB_HostOhciTdDoneHandle()
1314 pipe->ed->stateUnion.stateBitField.K = 1U; in USB_HostOhciCancelPipe()
1326 pipe->ed->HeadP &= ~USB_HOST_OHCI_ED_HEADP_MASK; in USB_HostOhciCancelPipe()
1327 pipe->ed->HeadP |= pipe->ed->TailP; in USB_HostOhciCancelPipe()
1369 trCurrent = pipe->ed->trListHead; in USB_HostOhciCancelPipe()
1412 pipe->ed->trListHead = trPos; in USB_HostOhciCancelPipe()
1426 if (NULL == pipe->ed->trListHead) in USB_HostOhciCancelPipe()
1428 pipe->ed->trListTail = NULL; in USB_HostOhciCancelPipe()
1433 pipe->ed->stateUnion.stateBitField.K = 0U; in USB_HostOhciCancelPipe()
1442 usb_host_ohci_endpoint_descritpor_struct_t *ed; in USB_HostOhciRemoveFromPeriodicList() local
1448 … ed = (usb_host_ohci_endpoint_descritpor_struct_t *)s_UsbHostOhciHcca[usbHostState->controllerId] in USB_HostOhciRemoveFromPeriodicList()
1451 while (NULL != ed) in USB_HostOhciRemoveFromPeriodicList()
1453 if (ed == pipe->ed) in USB_HostOhciRemoveFromPeriodicList()
1457 … s_UsbHostOhciHcca[usbHostState->controllerId].HccaInterrruptTable[i] = ed->NextED; in USB_HostOhciRemoveFromPeriodicList()
1461 pre->NextED = ed->NextED; in USB_HostOhciRemoveFromPeriodicList()
1465 pre = ed; in USB_HostOhciRemoveFromPeriodicList()
1466 ed = (usb_host_ohci_endpoint_descritpor_struct_t *)ed->NextED; in USB_HostOhciRemoveFromPeriodicList()
1480 pipe->ed->stateUnion.stateBitField.K = 1U; in USB_HostOhciCloseControlBulkPipe()
1484 edHead = &s_UsbHostOhciTd[usbHostState->controllerId].ed[USB_HOST_OHCI_CONTROL_ED_DUMMY]; in USB_HostOhciCloseControlBulkPipe()
1488 edHead = &s_UsbHostOhciTd[usbHostState->controllerId].ed[USB_HOST_OHCI_BULK_ED_DUMMY]; in USB_HostOhciCloseControlBulkPipe()
1493 …(usb_host_ohci_general_transfer_descritpor_struct_t *)(pipe->ed->TailP & USB_HOST_OHCI_ED_HEADP_MA… in USB_HostOhciCloseControlBulkPipe()
1496 while ((NULL != edHead) && (edHead != pipe->ed)) in USB_HostOhciCloseControlBulkPipe()
1515 pipe->ed->stateUnion.stateBitField.K = 1U; in USB_HostOhciCloseIsoInterruptPipe()
1521 …(usb_host_ohci_isochronous_transfer_descritpor_struct_t *)(pipe->ed->TailP & USB_HOST_OHCI_ED_HEAD… in USB_HostOhciCloseIsoInterruptPipe()
1528 …(usb_host_ohci_general_transfer_descritpor_struct_t *)(pipe->ed->TailP & USB_HOST_OHCI_ED_HEADP_MA… in USB_HostOhciCloseIsoInterruptPipe()
1592 … head = (usb_host_ohci_general_transfer_descritpor_struct_t *)pipe->ed->TailP; in USB_HostOhciLinkGtdControlTr()
1617 … head = (usb_host_ohci_general_transfer_descritpor_struct_t *)pipe->ed->TailP; in USB_HostOhciLinkGtdControlTr()
1635 … head = (usb_host_ohci_general_transfer_descritpor_struct_t *)pipe->ed->TailP; in USB_HostOhciLinkGtdControlTr()
1679 pipe->ed->TailP = (uint32_t)p; in USB_HostOhciLinkGtdControlTr()
1742 head = (usb_host_ohci_general_transfer_descritpor_struct_t *)pipe->ed->TailP; in USB_HostOhciLinkGtdTr()
1788 pipe->ed->TailP = (uint32_t)p; in USB_HostOhciLinkGtdTr()
1868 head = (usb_host_ohci_isochronous_transfer_descritpor_struct_t *)pipe->ed->TailP; in USB_HostOhciLinkItdTr()
1902 pipe->ed->HeadP &= ~USB_HOST_OHCI_ED_HEADP_MASK; in USB_HostOhciLinkItdTr()
1903 pipe->ed->HeadP |= (uint32_t)head; in USB_HostOhciLinkItdTr()
1904 pipe->ed->TailP = (uint32_t)p; in USB_HostOhciLinkItdTr()
1977 if (NULL != pipe->ed->trListHead) in USB_HostOhciSof()
1982 (void)USB_HostOhciCancelPipe(usbHostState, pipe, pipe->ed->trListHead); in USB_HostOhciSof()
2005 tail = pipe->ed->TailP & USB_HOST_OHCI_ED_TAILP_MASK; in USB_HostOhciSof()
2006 head = pipe->ed->HeadP & USB_HOST_OHCI_ED_HEADP_MASK; in USB_HostOhciSof()
2009 if ((0U != pipe->isDone) && (pipe->currentTr == pipe->ed->trListHead)) in USB_HostOhciSof()
2014 … gtd = (usb_host_ohci_general_transfer_descritpor_struct_t *)pipe->ed->trListHead->union1.unitHead; in USB_HostOhciSof()
2028 … USB_HostOhciTdDoneHandle(usbHostState, pipe, pipe->ed->trListHead, gtd, itd); in USB_HostOhciSof()
2036 pipe->currentTr = pipe->ed->trListHead; in USB_HostOhciSof()
2081 for (i = 0; i < (sizeof(s_UsbHostOhciTd[usbHostState->controllerId].ed) / in UBS_HostOhciControllerInit()
2085 s_UsbHostOhciTd[usbHostState->controllerId].ed[i].stateUnion.stateBitField.K = 1U; in UBS_HostOhciControllerInit()
2096 pipe->ed = &s_UsbHostOhciTd[usbHostState->controllerId].ed[3]; in UBS_HostOhciControllerInit()
2103 pipe->ed = &s_UsbHostOhciTd[usbHostState->controllerId].ed[3U + i]; in UBS_HostOhciControllerInit()
2145 s_UsbHostOhciTd[usbHostState->controllerId].ed[USB_HOST_OHCI_CONTROL_ED_DUMMY].NextED = 0U; in UBS_HostOhciControllerInit()
2147 (uint32_t)&s_UsbHostOhciTd[usbHostState->controllerId].ed[USB_HOST_OHCI_CONTROL_ED_DUMMY]; in UBS_HostOhciControllerInit()
2148 s_UsbHostOhciTd[usbHostState->controllerId].ed[USB_HOST_OHCI_BULK_ED_DUMMY].NextED = 0U; in UBS_HostOhciControllerInit()
2150 (uint32_t)&s_UsbHostOhciTd[usbHostState->controllerId].ed[USB_HOST_OHCI_BULK_ED_DUMMY]; in UBS_HostOhciControllerInit()
2151 s_UsbHostOhciTd[usbHostState->controllerId].ed[USB_HOST_OHCI_PERIODIC_ED_DUMMY].NextED = 0U; in UBS_HostOhciControllerInit()
2155 … (uint32_t)&s_UsbHostOhciTd[usbHostState->controllerId].ed[USB_HOST_OHCI_PERIODIC_ED_DUMMY]; in UBS_HostOhciControllerInit()
2351 pipe->ed->stateUnion.stateBitField.EN = pipeInit->endpointAddress; in USB_HostOhciOpenPipe()
2352 pipe->ed->stateUnion.stateBitField.D = (USB_OUT == pipeInit->direction) ? 1U : 2U; in USB_HostOhciOpenPipe()
2353 …pipe->ed->stateUnion.stateBitField.FA = ((usb_host_device_instance_t *)pipeInit->devInstance)->set… in USB_HostOhciOpenPipe()
2354 pipe->ed->stateUnion.stateBitField.S = in USB_HostOhciOpenPipe()
2356 pipe->ed->stateUnion.stateBitField.F = 0U; in USB_HostOhciOpenPipe()
2357 pipe->ed->stateUnion.stateBitField.MPS = pipeInit->maxPacketSize; in USB_HostOhciOpenPipe()
2358 pipe->ed->stateUnion.stateBitField.K = 0U; in USB_HostOhciOpenPipe()
2359 pipe->ed->TailP = 0U; in USB_HostOhciOpenPipe()
2360 pipe->ed->HeadP = 0U; in USB_HostOhciOpenPipe()
2361 pipe->ed->pipe = pipe; in USB_HostOhciOpenPipe()
2362 pipe->ed->NextED = 0U; in USB_HostOhciOpenPipe()
2363 pipe->ed->trListHead = NULL; in USB_HostOhciOpenPipe()
2364 pipe->ed->trListTail = NULL; in USB_HostOhciOpenPipe()
2365 pipe->ed->dealTr = NULL; in USB_HostOhciOpenPipe()
2375 pipe->ed->stateUnion.stateBitField.F = 1U; in USB_HostOhciOpenPipe()
2416 pipe->ed->stateUnion.stateBitField.D = 0; in USB_HostOhciOpenPipe()
2439 pipe->ed->stateUnion.stateBitField.K = 1U; in USB_HostOhciOpenPipe()
2494 if (NULL != pipe->ed->trListHead) in USB_HostOhciWritePipe()
2496 pipe->ed->trListTail->next = transfer; in USB_HostOhciWritePipe()
2500 pipe->ed->trListHead = transfer; in USB_HostOhciWritePipe()
2502 pipe->ed->trListTail = transfer; in USB_HostOhciWritePipe()
2536 if (NULL == pipe->ed->dealTr) in USB_HostOhciWritePipe()
2538 if (NULL != pipe->ed->trListHead) in USB_HostOhciWritePipe()
2540 pipe->ed->dealTr = pipe->ed->trListHead; in USB_HostOhciWritePipe()
2544 pipe->ed->dealTr = transfer; in USB_HostOhciWritePipe()
2562 usb_host_transfer_t *trP = pipe->ed->trListHead; in USB_HostOhciWritePipe()
2572 pipe->ed->trListHead = trP->next; in USB_HostOhciWritePipe()
2578 if (pipe->ed->trListTail == transfer) in USB_HostOhciWritePipe()
2580 pipe->ed->trListTail = trQ; in USB_HostOhciWritePipe()
2633 pipe->ed->stateUnion.stateBitField.K = 1U; in USB_HostOhciIoctl()
2637 pipe->ed->stateUnion.stateBitField.FA = deviceAddress; in USB_HostOhciIoctl()
2638 pipe->ed->stateUnion.stateBitField.K = 0U; in USB_HostOhciIoctl()
2644 pipe->ed->stateUnion.stateBitField.K = 1U; in USB_HostOhciIoctl()
2645 pipe->ed->stateUnion.stateBitField.MPS = pipe->pipeCommon.maxPacketSize; in USB_HostOhciIoctl()
2646 pipe->ed->stateUnion.stateBitField.K = 0U; in USB_HostOhciIoctl()
2750 … if ((USB_ENDPOINT_ISOCHRONOUS == pipe->pipeCommon.pipeType) && (NULL != pipe->ed->trListHead)) in USB_HostOhciIsrFunction()
2752 if ((NULL != pipe->ed->dealTr)) in USB_HostOhciIsrFunction()
2754 uint32_t tail = pipe->ed->TailP & USB_HOST_OHCI_ED_TAILP_MASK; in USB_HostOhciIsrFunction()
2755 uint32_t head = pipe->ed->HeadP & USB_HOST_OHCI_ED_HEADP_MASK; in USB_HostOhciIsrFunction()
2758 … if (kStatus_USB_Success == USB_HostOhciLinkItdTr(usbHostState, pipe, pipe->ed->dealTr)) in USB_HostOhciIsrFunction()
2760 pipe->ed->dealTr = pipe->ed->dealTr->next; in USB_HostOhciIsrFunction()