Lines Matching refs:frame

125 static int periodic_unlink (struct ehci_hcd *ehci, U32 frame, void *ptr)  in periodic_unlink()  argument
127 union ehci_shadow *prev_p = &ehci->pshadow [frame]; in periodic_unlink()
128 U32 *hw_p = &ehci->periodic [frame]; in periodic_unlink()
143 dbg ("[periodic_unlink] entry %p no longer on frame [%d]", ptr, frame); in periodic_unlink()
172 periodic_usecs (struct ehci_hcd *ehci, U32 frame, U32 uframe) in periodic_usecs() argument
174 U32 *hw_p = &ehci->periodic [frame]; in periodic_usecs()
175 union ehci_shadow *q = &ehci->pshadow [frame]; in periodic_usecs()
242 frame * 8 + uframe, usecs); in periodic_usecs()
324 U32 frame = qh1->start; in intr_deschedule() local
327 periodic_unlink (ehci, frame, qh1); in intr_deschedule()
329 frame += qh1->period; in intr_deschedule()
330 } while (frame < ehci->periodic_size); in intr_deschedule()
345 if (((ehci_get_frame (&ehci->hcd) - frame) % qh1->period) == 0) { in intr_deschedule()
364 qh1, qh1->period, frame, in intr_deschedule()
370 U32 frame, in check_period() argument
393 if (ehci->pshadow [frame].ptr) in check_period()
396 claimed = periodic_usecs (ehci, frame, uframe); in check_period()
401 } while ((frame += period) < ehci->periodic_size); in check_period()
409 U32 frame, in check_intr_schedule() argument
417 if (!check_period (ehci, frame, uframe, qh->period, qh->usecs)) in check_intr_schedule()
429 if (!check_period (ehci, frame, uframe + qh->gap_uf + 1, in check_intr_schedule()
432 if (!check_period (ehci, frame, uframe + qh->gap_uf, in check_intr_schedule()
601 U32 frame, in intr_complete() argument
837 itd_link (struct ehci_hcd *ehci, U32 frame, struct ehci_itd *itd) in itd_link() argument
840 itd->itd_next = ehci->pshadow [frame]; in itd_link()
841 itd->hw_next = ehci->periodic [frame]; in itd_link()
842 ehci->pshadow [frame].itd = itd; in itd_link()
843 ehci->periodic [frame] = CPUToLE32 (itd->itd_dma) | Q_TYPE_ITD; in itd_link()
1117 U32 frame, clock, now_uframe, mod; in scan_periodic() local
1123 frame = ehci->next_uframe >> 3; in scan_periodic()
1127 now_uframe = (frame << 3) - 1; in scan_periodic()
1138 if (frame == clock) in scan_periodic()
1144 q_p = &ehci->pshadow [frame]; in scan_periodic()
1145 hw_p = &ehci->periodic [frame]; in scan_periodic()
1165 count += intr_complete (ehci, frame, in scan_periodic()
1233 type, frame, q.ptr); in scan_periodic()
1245 if (frame == clock) { in scan_periodic()
1261 frame = (frame + 1) % ehci->periodic_size; in scan_periodic()