Lines Matching refs:pQh1

196 	struct ehci_qh  *pQh1  in ms_intr_deschedule()  argument
199 U32 u32Frame = pQh1->u16Start; in ms_intr_deschedule()
207 if ((period = pQh1->u16Period) == 0) in ms_intr_deschedule()
213 ms_periodic_unlink (pEhci, u32Frame, pQh1); in ms_intr_deschedule()
219 pQh1->qh_status = QH_STS_UNLINK; in ms_intr_deschedule()
220 pQh1->qh_next.ptr = 0; in ms_intr_deschedule()
221 ms_qh_put (pEhci, pQh1); // patch from Linux here in ms_intr_deschedule()
238 if (list_empty (&pQh1->qtd_list) || (QH_CMASK & pQh1->hw_ep_state2) != 0) in ms_intr_deschedule()
245 if (((ms_ehci_get_frame_idx (&pEhci->hcd) - u32Frame) % pQh1->u16Period) == 0) in ms_intr_deschedule()
250 pQh1->hw_next_qh = EHCI_LIST_END; in ms_intr_deschedule()
258 pQh1->hw_next_qh = EHCI_LIST_END; in ms_intr_deschedule()
261 pQh1->qh_status = QH_STS_IDLE; in ms_intr_deschedule()
264 pQh1, pQh1->u16Period, (int)u32Frame, in ms_intr_deschedule()
265 osapi_atomic_read(&pQh1->tRefCnt), (int)pEhci->u32PeriodicSched); in ms_intr_deschedule()
268 pQh1->hw_next_qh = EHCI_LIST_END; in ms_intr_deschedule()
273 ms_qh_completions(pEhci, pQh1, NULL); in ms_intr_deschedule()
275 if (!list_empty(&pQh1->qtd_list) && HCD_IS_RUNNING(pEhci->hcd.state)) in ms_intr_deschedule()
277 rc = ms_qh_schedule(pEhci, pQh1); // reschedule in ms_intr_deschedule()
280 ms_debug_err("can't reschedule qh %p, err %d\n", pQh1, rc); in ms_intr_deschedule()
612 struct ehci_qh *pQh1; in ms_intr_submit() local
629 pQh1 = ms_qh_append_tds (pEhci, pUrb, &stEmpty, epnum1, &dev->ep [epnum1]); in ms_intr_submit()
630 if (pQh1 == 0) in ms_intr_submit()
635 if (pQh1->qh_status == QH_STS_IDLE) in ms_intr_submit()
637 if ((status = ms_qh_schedule (pEhci, pQh1)) != 0) in ms_intr_submit()
641 pQh1 = ms_qh_append_tds (pEhci, pUrb, qtd_list, epnum1, &dev->ep [epnum1]); in ms_intr_submit()
642 USB_ASSERT(pQh1!=0, "BUG_ON()!!!! pQh1==NULL\n"); in ms_intr_submit()
647 if (pQh1->qh_status == QH_STS_IDLE) { in ms_intr_submit()
648 ms_qh_refresh(pEhci, pQh1); in ms_intr_submit()
649 ms_qh_link_periodic(pEhci, pQh1); in ms_intr_submit()