Lines Matching refs:frame
99 static void periodic_unlink (struct ehci_hcd *ehci, unsigned frame, void *ptr) in periodic_unlink() argument
101 union ehci_shadow *prev_p = &ehci->pshadow[frame]; in periodic_unlink()
102 __hc32 *hw_p = &ehci->periodic[frame]; in periodic_unlink()
134 periodic_usecs (struct ehci_hcd *ehci, unsigned frame, unsigned uframe) in periodic_usecs() argument
136 __hc32 *hw_p = &ehci->periodic [frame]; in periodic_usecs()
137 union ehci_shadow *q = &ehci->pshadow [frame]; in periodic_usecs()
198 frame * 8 + uframe, usecs); in periodic_usecs()
267 unsigned frame, in periodic_tt_usecs() argument
271 __hc32 *hw_p = &ehci->periodic [frame]; in periodic_tt_usecs()
272 union ehci_shadow *q = &ehci->pshadow [frame]; in periodic_tt_usecs()
302 frame); in periodic_tt_usecs()
312 frame, tt_usecs[7] - max_tt_usecs[7]); in periodic_tt_usecs()
340 unsigned frame, in tt_available() argument
348 for (; frame < ehci->periodic_size; frame += period) { in tt_available()
351 periodic_tt_usecs (ehci, dev, frame, tt_usecs); in tt_available()
355 frame, usecs, uframe, in tt_available()
361 frame, uframe); in tt_available()
378 frame, i); in tt_available()
391 usecs, frame, uframe); in tt_available()
409 unsigned frame, in tt_no_collision() argument
420 for (; frame < ehci->periodic_size; frame += period) { in tt_no_collision()
425 here = ehci->pshadow [frame]; in tt_no_collision()
426 type = Q_NEXT_TYPE(ehci, ehci->periodic [frame]); in tt_no_collision()
466 frame, type); in tt_no_collision()
719 unsigned frame, in check_period() argument
741 claimed = periodic_usecs (ehci, frame, uframe); in check_period()
745 } while ((frame += 1) < ehci->periodic_size); in check_period()
750 claimed = periodic_usecs (ehci, frame, uframe); in check_period()
753 } while ((frame += period) < ehci->periodic_size); in check_period()
762 unsigned frame, in check_intr_schedule() argument
774 if (!check_period (ehci, frame, uframe, qh->period, qh->usecs)) in check_intr_schedule()
783 if (tt_available (ehci, qh->period, qh->dev, frame, uframe, in check_intr_schedule()
789 if (!check_period (ehci, frame, i, in check_intr_schedule()
811 if (tt_no_collision (ehci, qh->period, qh->dev, frame, mask)) { in check_intr_schedule()
812 if (!check_period (ehci, frame, uframe + qh->gap_uf + 1, in check_intr_schedule()
815 if (!check_period (ehci, frame, uframe + qh->gap_uf, in check_intr_schedule()
833 unsigned frame; /* 0..(qh->period - 1), or NO_FRAME */ in qh_schedule() local
838 frame = qh->start; in qh_schedule()
841 if (frame < qh->period) { in qh_schedule()
843 status = check_intr_schedule (ehci, frame, --uframe, in qh_schedule()
860 frame = ++ehci->random_frame % qh->period; in qh_schedule()
863 frame, uframe, qh, in qh_schedule()
872 frame = 0; in qh_schedule()
877 qh->start = frame; in qh_schedule()
1328 u32 frame, uf; in sitd_slot_ok() local
1345 frame = uframe >> 3; in sitd_slot_ok()
1353 stream->udev, frame, uf, stream->tt_usecs)) in sitd_slot_ok()
1360 stream->udev, frame, mask)) in sitd_slot_ok()
1367 if (periodic_usecs (ehci, frame, uf) > max_used) in sitd_slot_ok()
1380 if (periodic_usecs (ehci, frame, uf) in sitd_slot_ok()
1592 itd_link (struct ehci_hcd *ehci, unsigned frame, struct ehci_itd *itd) in itd_link() argument
1594 union ehci_shadow *prev = &ehci->pshadow[frame]; in itd_link()
1595 __hc32 *hw_p = &ehci->periodic[frame]; in itd_link()
1612 itd->frame = frame; in itd_link()
1627 unsigned next_uframe, uframe, frame; in itd_link_urb() local
1668 frame = next_uframe >> 3; in itd_link_urb()
1677 if (((next_uframe >> 3) != frame) in itd_link_urb()
1679 itd_link(ehci, frame & (ehci->periodic_size - 1), itd); in itd_link_urb()
1790 if (ehci->clock_frame != itd->frame || itd->index[7] != -1) { in itd_complete()
2025 sitd_link (struct ehci_hcd *ehci, unsigned frame, struct ehci_sitd *sitd) in sitd_link() argument
2028 sitd->sitd_next = ehci->pshadow [frame]; in sitd_link()
2029 sitd->hw_next = ehci->periodic [frame]; in sitd_link()
2030 ehci->pshadow [frame].sitd = sitd; in sitd_link()
2031 sitd->frame = frame; in sitd_link()
2033 ehci->periodic[frame] = cpu_to_hc32(ehci, sitd->sitd_dma | Q_TYPE_SITD); in sitd_link()
2186 if (ehci->clock_frame != sitd->frame) { in sitd_complete()
2293 unsigned now_uframe, frame, clock, clock_frame, mod; in scan_periodic() local
2324 frame = now_uframe >> 3; in scan_periodic()
2328 q_p = &ehci->pshadow [frame]; in scan_periodic()
2329 hw_p = &ehci->periodic [frame]; in scan_periodic()
2372 if (frame == clock_frame && live) { in scan_periodic()
2412 if (((frame == clock_frame) || in scan_periodic()
2413 (((frame + 1) & (ehci->periodic_size - 1)) in scan_periodic()
2445 type, frame, q.ptr); in scan_periodic()