Lines Matching refs:frame
64 static void periodic_unlink (struct ehci_hcd *ehci, unsigned frame, void *ptr) in periodic_unlink() argument
66 union ehci_shadow *prev_p = &ehci->pshadow[frame]; in periodic_unlink()
67 __hc32 *hw_p = &ehci->periodic[frame]; in periodic_unlink()
91 periodic_usecs (struct ehci_hcd *ehci, unsigned frame, unsigned uframe) in periodic_usecs() argument
93 __hc32 *hw_p = &ehci->periodic [frame]; in periodic_usecs()
94 union ehci_shadow *q = &ehci->pshadow [frame]; in periodic_usecs()
153 frame * 8 + uframe, usecs); in periodic_usecs()
222 unsigned frame, in periodic_tt_usecs() argument
226 __hc32 *hw_p = &ehci->periodic [frame]; in periodic_tt_usecs()
227 union ehci_shadow *q = &ehci->pshadow [frame]; in periodic_tt_usecs()
257 frame); in periodic_tt_usecs()
267 frame, tt_usecs[7] - max_tt_usecs[7]); in periodic_tt_usecs()
295 unsigned frame, in tt_available() argument
303 for (; frame < ehci->periodic_size; frame += period) { in tt_available()
306 periodic_tt_usecs (ehci, dev, frame, tt_usecs); in tt_available()
310 frame, usecs, uframe, in tt_available()
316 frame, uframe); in tt_available()
333 frame, i); in tt_available()
346 usecs, frame, uframe); in tt_available()
364 unsigned frame, in tt_no_collision() argument
375 for (; frame < ehci->periodic_size; frame += period) { in tt_no_collision()
379 here = ehci->pshadow [frame]; in tt_no_collision()
380 type = Q_NEXT_TYPE(ehci, ehci->periodic [frame]); in tt_no_collision()
419 frame, type); in tt_no_collision()
623 unsigned frame, in check_period() argument
648 claimed = periodic_usecs (ehci, frame, uframe); in check_period()
652 } while ((frame += 1) < ehci->periodic_size); in check_period()
657 claimed = periodic_usecs (ehci, frame, uframe); in check_period()
660 } while ((frame += period) < ehci->periodic_size); in check_period()
669 unsigned frame, in check_intr_schedule() argument
681 if (!check_period (ehci, frame, uframe, qh->period, qh->usecs)) in check_intr_schedule()
690 if (tt_available (ehci, qh->period, qh->dev, frame, uframe, in check_intr_schedule()
696 if (!check_period (ehci, frame, i, in check_intr_schedule()
718 if (tt_no_collision (ehci, qh->period, qh->dev, frame, mask)) { in check_intr_schedule()
719 if (!check_period (ehci, frame, uframe + qh->gap_uf + 1, in check_intr_schedule()
722 if (!check_period (ehci, frame, uframe + qh->gap_uf, in check_intr_schedule()
740 unsigned frame; /* 0..(qh->period - 1), or NO_FRAME */ in qh_schedule() local
744 frame = qh->start; in qh_schedule()
747 if (frame < qh->period) { in qh_schedule()
749 status = check_intr_schedule (ehci, frame, --uframe, in qh_schedule()
763 frame = qh->period - 1; in qh_schedule()
767 frame, uframe, qh, in qh_schedule()
772 } while (status && frame--); in qh_schedule()
776 frame = 0; in qh_schedule()
781 qh->start = frame; in qh_schedule()
1245 u32 frame, uf; in sitd_slot_ok() local
1262 frame = uframe >> 3; in sitd_slot_ok()
1270 stream->udev, frame, uf, stream->tt_usecs)) in sitd_slot_ok()
1277 stream->udev, frame, mask)) in sitd_slot_ok()
1284 if (periodic_usecs (ehci, frame, uf) > max_used) in sitd_slot_ok()
1297 if (periodic_usecs (ehci, frame, uf) in sitd_slot_ok()
1487 itd_link (struct ehci_hcd *ehci, unsigned frame, struct ehci_itd *itd) in itd_link() argument
1490 itd->itd_next = ehci->pshadow [frame]; in itd_link()
1491 itd->hw_next = ehci->periodic [frame]; in itd_link()
1492 ehci->pshadow [frame].itd = itd; in itd_link()
1493 itd->frame = frame; in itd_link()
1495 ehci->periodic[frame] = cpu_to_hc32(ehci, itd->itd_dma | Q_TYPE_ITD); in itd_link()
1508 unsigned next_uframe, uframe, frame; in itd_link_urb() local
1544 frame = next_uframe >> 3; in itd_link_urb()
1554 if (((next_uframe >> 3) != frame) in itd_link_urb()
1556 itd_link (ehci, frame % ehci->periodic_size, itd); in itd_link_urb()
1660 if (ehci->clock_frame != itd->frame || itd->index[7] != -1) { in itd_complete()
1896 sitd_link (struct ehci_hcd *ehci, unsigned frame, struct ehci_sitd *sitd) in sitd_link() argument
1899 sitd->sitd_next = ehci->pshadow [frame]; in sitd_link()
1900 sitd->hw_next = ehci->periodic [frame]; in sitd_link()
1901 ehci->pshadow [frame].sitd = sitd; in sitd_link()
1902 sitd->frame = frame; in sitd_link()
1904 ehci->periodic[frame] = cpu_to_hc32(ehci, sitd->sitd_dma | Q_TYPE_SITD); in sitd_link()
2134 unsigned now_uframe, frame, clock, clock_frame, mod; in scan_periodic() local
2164 frame = now_uframe >> 3; in scan_periodic()
2168 q_p = &ehci->pshadow [frame]; in scan_periodic()
2169 hw_p = &ehci->periodic [frame]; in scan_periodic()
2207 if (frame == clock_frame && live) { in scan_periodic()
2243 if (frame == clock_frame && live && in scan_periodic()
2268 type, frame, q.ptr); in scan_periodic()