Lines Matching refs:frame

76 static void periodic_unlink (struct ehci_hcd *ehci, unsigned frame, void *ptr)  in periodic_unlink()  argument
78 union ehci_shadow *prev_p = &ehci->pshadow[frame]; in periodic_unlink()
79 __hc32 *hw_p = &ehci->periodic[frame]; in periodic_unlink()
382 unsigned frame, in tt_available() argument
392 for (frame &= period - 1; frame < EHCI_BANDWIDTH_FRAMES; in tt_available()
393 frame += period) { in tt_available()
397 if (tt->bandwidth[frame] + usecs > 900) in tt_available()
400 uf = frame << 3; in tt_available()
442 unsigned frame, in tt_no_collision() argument
453 for (; frame < ehci->periodic_size; frame += period) { in tt_no_collision()
458 here = ehci->pshadow [frame]; in tt_no_collision()
459 type = Q_NEXT_TYPE(ehci, ehci->periodic [frame]); in tt_no_collision()
499 frame, type); in tt_no_collision()
768 unsigned frame, in check_period() argument
782 for (uframe += frame << 3; uframe < EHCI_BANDWIDTH_SIZE; in check_period()
794 unsigned frame, in check_intr_schedule() argument
807 if (!check_period(ehci, frame, uframe, qh->ps.bw_uperiod, qh->ps.usecs)) in check_intr_schedule()
816 if (tt_available(ehci, &qh->ps, tt, frame, uframe)) { in check_intr_schedule()
821 if (!check_period(ehci, frame, i, in check_intr_schedule()
843 if (tt_no_collision(ehci, qh->ps.bw_period, qh->ps.udev, frame, mask)) { in check_intr_schedule()
844 if (!check_period(ehci, frame, uframe + qh->gap_uf + 1, in check_intr_schedule()
847 if (!check_period(ehci, frame, uframe + qh->gap_uf, in check_intr_schedule()
891 unsigned frame; in qh_schedule() local
894 frame = ++ehci->random_frame & (qh->ps.bw_period - 1); in qh_schedule()
897 frame, uframe, qh, &c_mask, tt); in qh_schedule()
1299 if (itd->frame == ehci->now_frame) in itd_urb_transaction()
1318 itd->frame = NO_FRAME; in itd_urb_transaction()
1417 unsigned frame, uf; in sitd_slot_ok() local
1431 frame = uframe >> 3; in sitd_slot_ok()
1438 if (!tt_available(ehci, &stream->ps, tt, frame, uf)) in sitd_slot_ok()
1445 stream->ps.udev, frame, mask)) in sitd_slot_ok()
1739 itd_link (struct ehci_hcd *ehci, unsigned frame, struct ehci_itd *itd) in itd_link() argument
1741 union ehci_shadow *prev = &ehci->pshadow[frame]; in itd_link()
1742 __hc32 *hw_p = &ehci->periodic[frame]; in itd_link()
1759 itd->frame = frame; in itd_link()
1773 unsigned next_uframe, uframe, frame; in itd_link_urb() local
1808 frame = next_uframe >> 3; in itd_link_urb()
1817 if (((next_uframe >> 3) != frame) in itd_link_urb()
1819 itd_link(ehci, frame & (ehci->periodic_size - 1), itd); in itd_link_urb()
2092 if (sitd->frame == ehci->now_frame) in sitd_urb_transaction()
2111 sitd->frame = NO_FRAME; in sitd_urb_transaction()
2155 sitd_link (struct ehci_hcd *ehci, unsigned frame, struct ehci_sitd *sitd) in sitd_link() argument
2158 sitd->sitd_next = ehci->pshadow [frame]; in sitd_link()
2159 sitd->hw_next = ehci->periodic [frame]; in sitd_link()
2160 ehci->pshadow [frame].sitd = sitd; in sitd_link()
2161 sitd->frame = frame; in sitd_link()
2163 ehci->periodic[frame] = cpu_to_hc32(ehci, sitd->sitd_dma | Q_TYPE_SITD); in sitd_link()
2382 unsigned uf, now_frame, frame; in scan_isoc() local
2401 frame = ehci->last_iso_frame; in scan_isoc()
2408 q_p = &ehci->pshadow [frame]; in scan_isoc()
2409 hw_p = &ehci->periodic [frame]; in scan_isoc()
2422 if (frame == now_frame && live) { in scan_isoc()
2462 if (((frame == now_frame) || in scan_isoc()
2463 (((frame + 1) & fmask) == now_frame)) in scan_isoc()
2494 type, frame, q.ptr); in scan_isoc()
2510 if (frame == now_frame) in scan_isoc()
2514 ehci->last_iso_frame = frame; in scan_isoc()
2515 frame = (frame + 1) & fmask; in scan_isoc()