Lines Matching refs:uframe
271 unsigned uframe, uf, x; in compute_tt_budget() local
280 for (uframe = ps->bw_phase << 3; uframe < EHCI_BANDWIDTH_SIZE; in compute_tt_budget()
281 uframe += ps->bw_uperiod) { in compute_tt_budget()
282 budget_line = &budget_table[uframe]; in compute_tt_budget()
358 unsigned uframe in tt_available() argument
364 if ((period == 0) || (uframe >= 7)) /* error */ in tt_available()
379 if (max_tt_usecs[uframe] <= tt_usecs[uframe]) in tt_available()
390 for (i = uframe; i < (uframe + ufs) && i < 8; i++) in tt_available()
395 tt_usecs[uframe] += usecs; in tt_available()
745 unsigned uframe, in check_period() argument
752 if (uframe >= 8) in check_period()
758 for (uframe += frame << 3; uframe < EHCI_BANDWIDTH_SIZE; in check_period()
759 uframe += uperiod) { in check_period()
760 if (ehci->bandwidth[uframe] > usecs) in check_period()
771 unsigned uframe, in check_intr_schedule() argument
780 if (qh->ps.c_usecs && uframe >= 6) /* FSTN territory? */ in check_intr_schedule()
783 if (!check_period(ehci, frame, uframe, qh->ps.bw_uperiod, qh->ps.usecs)) in check_intr_schedule()
792 if (tt_available(ehci, &qh->ps, tt, frame, uframe)) { in check_intr_schedule()
796 for (i = uframe+2; i < 8 && i <= uframe+4; i++) in check_intr_schedule()
815 mask = 0x03 << (uframe + qh->gap_uf); in check_intr_schedule()
818 mask |= 1 << uframe; in check_intr_schedule()
820 if (!check_period(ehci, frame, uframe + qh->gap_uf + 1, in check_intr_schedule()
823 if (!check_period(ehci, frame, uframe + qh->gap_uf, in check_intr_schedule()
839 unsigned uframe; in qh_schedule() local
852 uframe = 0; in qh_schedule()
871 for (uframe = 0; uframe < 8; uframe++) { in qh_schedule()
873 frame, uframe, qh, &c_mask, tt); in qh_schedule()
890 qh->ps.phase_uf = uframe; in qh_schedule()
892 (c_mask << 8) | (1 << uframe) : in qh_schedule()
1195 struct ehci_iso_packet *uframe = &iso_sched->packet[i]; in itd_sched_init() local
1209 uframe->transaction = cpu_to_hc32(ehci, trans); in itd_sched_init()
1212 uframe->bufp = (buf & ~(u64)0x0fff); in itd_sched_init()
1214 if (unlikely((uframe->bufp != (buf & ~(u64)0x0fff)))) in itd_sched_init()
1215 uframe->cross = 1; in itd_sched_init()
1304 unsigned uframe; in reserve_release_iso_bandwidth() local
1314 uframe = stream->ps.bw_phase << 3; in reserve_release_iso_bandwidth()
1325 for (i = uframe + stream->ps.phase_uf; i < EHCI_BANDWIDTH_SIZE; in reserve_release_iso_bandwidth()
1334 for (i = uframe; i < EHCI_BANDWIDTH_SIZE; in reserve_release_iso_bandwidth()
1357 for (i = uframe >> 3; i < EHCI_BANDWIDTH_FRAMES; in reserve_release_iso_bandwidth()
1367 unsigned uframe in itd_slot_ok() argument
1375 for (uframe &= stream->ps.bw_uperiod - 1; uframe < EHCI_BANDWIDTH_SIZE; in itd_slot_ok()
1376 uframe += stream->ps.bw_uperiod) { in itd_slot_ok()
1377 if (ehci->bandwidth[uframe] > usecs) in itd_slot_ok()
1387 unsigned uframe, in sitd_slot_ok() argument
1395 mask = stream->ps.cs_mask << (uframe & 7); in sitd_slot_ok()
1398 if (((stream->ps.cs_mask & 0xff) << (uframe & 7)) >= (1 << 7)) in sitd_slot_ok()
1406 uframe &= stream->ps.bw_uperiod - 1; in sitd_slot_ok()
1407 frame = uframe >> 3; in sitd_slot_ok()
1413 uf = uframe & 7; in sitd_slot_ok()
1430 uf = uframe; in sitd_slot_ok()
1441 uf = uframe & ~7; in sitd_slot_ok()
1443 for (i = (uframe & 7) + 2; i < 8; (++i, tmp <<= 1)) { in sitd_slot_ok()
1451 uframe += stream->ps.bw_uperiod; in sitd_slot_ok()
1452 } while (uframe < EHCI_BANDWIDTH_SIZE); in sitd_slot_ok()
1454 stream->ps.cs_mask <<= uframe & 7; in sitd_slot_ok()
1688 u16 uframe in itd_patch() argument
1696 uframe &= 0x07; in itd_patch()
1697 itd->index[uframe] = index; in itd_patch()
1699 itd->hw_transaction[uframe] = uf->transaction; in itd_patch()
1700 itd->hw_transaction[uframe] |= cpu_to_hc32(ehci, pg << 12); in itd_patch()
1749 unsigned next_uframe, uframe, frame; in itd_link_urb() local
1783 uframe = next_uframe & 0x07; in itd_link_urb()
1786 itd_patch(ehci, itd, iso_sched, packet, uframe); in itd_link_urb()
1826 unsigned uframe; in itd_complete() local
1832 for (uframe = 0; uframe < 8; uframe++) { in itd_complete()
1833 if (likely(itd->index[uframe] == -1)) in itd_complete()
1835 urb_index = itd->index[uframe]; in itd_complete()
1838 t = hc32_to_cpup(ehci, &itd->hw_transaction[uframe]); in itd_complete()
1839 itd->hw_transaction[uframe] = 0; in itd_complete()