Lines Matching defs:GCPhysTD

316         uint32_t    GCPhysTD;
333 uint32_t GCPhysTD;
809 static int ohci_in_flight_find(POHCI pThis, uint32_t GCPhysTD);
811 static int ohci_in_done_queue_find(POHCI pThis, uint32_t GCPhysTD);
1563 if (pThis->aInFlight[i].GCPhysTD == 0)
1570 if (pThis->aInFlight[i].GCPhysTD == 0)
1581 * @param GCPhysTD Physical address of the TD.
1584 static void ohci_in_flight_add(POHCI pThis, uint32_t GCPhysTD, PVUSBURB pUrb)
1586 int i = ohci_in_flight_find_free(pThis, (GCPhysTD >> 4) % RT_ELEMENTS(pThis->aInFlight));
1592 pThis->aInFlight[i].GCPhysTD = GCPhysTD;
1620 * @param GCPhysTD Physical address of the TD.
1623 static int ohci_in_flight_find(POHCI pThis, uint32_t GCPhysTD)
1626 unsigned i = (GCPhysTD >> 4) % RT_ELEMENTS(pThis->aInFlight);
1630 if (pThis->aInFlight[i].GCPhysTD == GCPhysTD)
1632 if (pThis->aInFlight[i].GCPhysTD)
1640 if (pThis->aInFlight[i].GCPhysTD == GCPhysTD)
1642 if (pThis->aInFlight[i].GCPhysTD)
1655 * @param GCPhysTD Physical address of the TD.
1657 static bool ohciIsTdInFlight(POHCI pThis, uint32_t GCPhysTD)
1659 return ohci_in_flight_find(pThis, GCPhysTD) >= 0;
1668 * @param GCPhysTD Physical address of the TD.
1670 static PVUSBURB ohciTdInFlightUrb(POHCI pThis, uint32_t GCPhysTD)
1674 i = ohci_in_flight_find(pThis, GCPhysTD);
1686 * @param GCPhysTD Physical address of the TD.
1688 static int ohci_in_flight_remove(POHCI pThis, uint32_t GCPhysTD)
1690 int i = ohci_in_flight_find(pThis, GCPhysTD);
1699 GCPhysTD, cFramesInFlight, pThis->aInFlight[i].pUrb->Hci.u32FrameNo, pThis->HcFmNumber));
1700 pThis->aInFlight[i].GCPhysTD = 0;
1705 AssertMsgFailed(("TD %#010x is not in flight\n", GCPhysTD));
1747 * @param GCPhysTD Physical address of the TD.
1749 static int ohci_in_done_queue_find(POHCI pThis, uint32_t GCPhysTD)
1753 if (pThis->aInDoneQueue[i].GCPhysTD == GCPhysTD)
1761 * @param GCPhysTD Physical address of the TD.
1763 static bool ohci_in_done_queue_check(POHCI pThis, uint32_t GCPhysTD)
1765 int i = ohci_in_done_queue_find(pThis, GCPhysTD);
1777 AssertMsg(i < 0, ("TD %#010x (i=%d)\n", GCPhysTD, i));
1787 * @param GCPhysTD Physical address of the TD.
1789 static void ohci_in_done_queue_add(POHCI pThis, uint32_t GCPhysTD)
1792 if (ohci_in_done_queue_check(pThis, GCPhysTD))
1793 pThis->aInDoneQueue[pThis->cInDoneQueue++].GCPhysTD = GCPhysTD;