Lines Matching refs:qh

91 			? (union ehci_qh_shadow *)(&prev_p->qh->qh_next)  in ms_periodic_unlink()
104 ? (union ehci_qh_shadow *)(&here.qh->qh_next) in ms_periodic_unlink()
122 if (pQh->qh->hw_ep_state2 & (1 << u32uFrame)) in ms_periodic_usecs()
123 u32uSecs += pQh->qh->u8Usecs; in ms_periodic_usecs()
124 if (pQh->qh->hw_ep_state2 & (1 << (8 + u32uFrame))) in ms_periodic_usecs()
125 u32uSecs += pQh->qh->c_usecs; in ms_periodic_usecs()
126 phw_p = &pQh->qh->hw_next_qh; // patch from Linux, move hardware pointer too in ms_periodic_usecs()
127 pQh = &pQh->qh->qh_next; in ms_periodic_usecs()
367 if (ms_same_tt (dev, here.qh->dev)) { in ms_tt_no_collision()
370 mask = here.qh->hw_ep_state2; in ms_tt_no_collision()
376 type = Q_NEXT_TYPE(here.qh->hw_next_qh); in ms_tt_no_collision()
377 here = here.qh->qh_next; in ms_tt_no_collision()
448 static int ms_qh_link_periodic (struct ehci_hcd *ehci, struct ehci_qh *qh) in ms_qh_link_periodic() argument
451 unsigned period = qh->u16Period; in ms_qh_link_periodic()
454 period, qh->hw_ep_state2 & (QH_CMASK | QH_SMASK), in ms_qh_link_periodic()
455 qh, qh->u16Start, qh->u8Usecs, qh->c_usecs); in ms_qh_link_periodic()
461 for (i = qh->u16Start; i < ehci->u32PeriodicSize; i += period) { in ms_qh_link_periodic()
482 while (here.ptr && qh != here.qh) { in ms_qh_link_periodic()
483 if (qh->u16Period > here.qh->u16Period) in ms_qh_link_periodic()
485 prev = &here.qh->qh_next; in ms_qh_link_periodic()
486 hw_p = &here.qh->hw_next_qh; in ms_qh_link_periodic()
490 if (qh != here.qh) { in ms_qh_link_periodic()
491 qh->qh_next = here; in ms_qh_link_periodic()
492 if (here.qh) in ms_qh_link_periodic()
493 qh->hw_next_qh = *hw_p; in ms_qh_link_periodic()
495 prev->qh = qh; in ms_qh_link_periodic()
496 *hw_p = QH_NEXT (qh->qh_dma_addr); in ms_qh_link_periodic()
499 qh->qh_status = QH_STS_LINKED; in ms_qh_link_periodic()
500 qh->xacterrs = 0; in ms_qh_link_periodic()
501 ms_qh_get (qh); in ms_qh_link_periodic()
590 pEhci->pshadow [u32Frame1].qh = ms_qh_get (pQh); in ms_qh_schedule()
720 last = (q.qh->hw_next_qh == EHCI_LIST_END); in ms_scan_periodic()
721 temp = q.qh->qh_next; in ms_scan_periodic()
722 u32Type = Q_NEXT_TYPE (q.qh->hw_next_qh); in ms_scan_periodic()
723 u32Count = ms_intr_complete (pEhci, ms_qh_get (q.qh), pRegs); in ms_scan_periodic()
724 ms_qh_put (pEhci, q.qh); in ms_scan_periodic()