Lines Matching refs:usecs
215 ps->usecs, ps->c_usecs, ps->cs_mask); in bandwidth_dbg()
223 int usecs = qh->ps.usecs; in reserve_release_intr_bandwidth() local
235 usecs = -usecs; in reserve_release_intr_bandwidth()
243 ehci->bandwidth[i] += usecs; in reserve_release_intr_bandwidth()
387 unsigned usecs = ps->tt_usecs; in tt_available() local
397 if (tt->bandwidth[frame] + usecs > 900) in tt_available()
412 if (125 < usecs) { in tt_available()
413 int ufs = (usecs / 125); in tt_available()
420 tt_usecs[uframe] += usecs; in tt_available()
554 qh, qh->ps.phase, qh->ps.usecs, qh->ps.c_usecs); in qh_link_periodic()
602 ? ((qh->ps.usecs + qh->ps.c_usecs) / qh->ps.bw_period) in qh_link_periodic()
603 : (qh->ps.usecs * 8); in qh_link_periodic()
640 ? ((qh->ps.usecs + qh->ps.c_usecs) / qh->ps.bw_period) in qh_unlink_periodic()
641 : (qh->ps.usecs * 8); in qh_unlink_periodic()
647 qh, qh->ps.phase, qh->ps.usecs, qh->ps.c_usecs); in qh_unlink_periodic()
771 unsigned usecs in check_period() argument
780 usecs = ehci->uframe_periodic_max - usecs; in check_period()
784 if (ehci->bandwidth[uframe] > usecs) in check_period()
807 if (!check_period(ehci, frame, uframe, qh->ps.bw_uperiod, qh->ps.usecs)) in check_intr_schedule()
1084 stream->ps.usecs = HS_USECS_ISO(maxp); in iso_stream_init()
1095 stream->bandwidth = stream->ps.usecs * 8 / in iso_stream_init()
1110 stream->ps.usecs = HS_USECS_ISO(maxp); in iso_stream_init()
1119 stream->ps.c_usecs = stream->ps.usecs; in iso_stream_init()
1120 stream->ps.usecs = HS_USECS_ISO(1); in iso_stream_init()
1139 stream->bandwidth = (stream->ps.usecs + stream->ps.c_usecs) / in iso_stream_init()
1337 int usecs = stream->ps.usecs; in reserve_release_iso_bandwidth() local
1349 usecs = -usecs; in reserve_release_iso_bandwidth()
1357 ehci->bandwidth[i] += usecs; in reserve_release_iso_bandwidth()
1369 ehci->bandwidth[i+j] += usecs; in reserve_release_iso_bandwidth()
1394 unsigned usecs; in itd_slot_ok() local
1397 usecs = ehci->uframe_periodic_max - stream->ps.usecs; in itd_slot_ok()
1401 if (ehci->bandwidth[uframe] > usecs) in itd_slot_ok()
1455 max_used = ehci->uframe_periodic_max - stream->ps.usecs; in sitd_slot_ok()