Lines Matching refs:usecs
203 ps->usecs, ps->c_usecs, ps->cs_mask); in bandwidth_dbg()
211 int usecs = qh->ps.usecs; in reserve_release_intr_bandwidth() local
223 usecs = -usecs; in reserve_release_intr_bandwidth()
231 ehci->bandwidth[i] += usecs; in reserve_release_intr_bandwidth()
356 unsigned usecs = ps->tt_usecs; in tt_available() local
366 if (tt->bandwidth[frame] + usecs > 900) in tt_available()
381 if (usecs > 125) { in tt_available()
382 int ufs = (usecs / 125); in tt_available()
389 tt_usecs[uframe] += usecs; in tt_available()
523 qh, qh->ps.phase, qh->ps.usecs, qh->ps.c_usecs); in qh_link_periodic()
571 ? ((qh->ps.usecs + qh->ps.c_usecs) / qh->ps.bw_period) in qh_link_periodic()
572 : (qh->ps.usecs * 8); in qh_link_periodic()
609 ? ((qh->ps.usecs + qh->ps.c_usecs) / qh->ps.bw_period) in qh_unlink_periodic()
610 : (qh->ps.usecs * 8); in qh_unlink_periodic()
616 qh, qh->ps.phase, qh->ps.usecs, qh->ps.c_usecs); in qh_unlink_periodic()
740 unsigned usecs in check_period() argument
749 usecs = ehci->uframe_periodic_max - usecs; in check_period()
753 if (ehci->bandwidth[uframe] > usecs) in check_period()
776 if (!check_period(ehci, frame, uframe, qh->ps.bw_uperiod, qh->ps.usecs)) in check_intr_schedule()
1049 stream->ps.usecs = HS_USECS_ISO(maxp); in iso_stream_init()
1060 stream->bandwidth = stream->ps.usecs * 8 / in iso_stream_init()
1075 stream->ps.usecs = HS_USECS_ISO(maxp); in iso_stream_init()
1084 stream->ps.c_usecs = stream->ps.usecs; in iso_stream_init()
1085 stream->ps.usecs = HS_USECS_ISO(1); in iso_stream_init()
1104 stream->bandwidth = (stream->ps.usecs + stream->ps.c_usecs) / in iso_stream_init()
1302 int usecs = stream->ps.usecs; in reserve_release_iso_bandwidth() local
1314 usecs = -usecs; in reserve_release_iso_bandwidth()
1322 ehci->bandwidth[i] += usecs; in reserve_release_iso_bandwidth()
1334 ehci->bandwidth[i+j] += usecs; in reserve_release_iso_bandwidth()
1359 unsigned usecs; in itd_slot_ok() local
1362 usecs = ehci->uframe_periodic_max - stream->ps.usecs; in itd_slot_ok()
1366 if (ehci->bandwidth[uframe] > usecs) in itd_slot_ok()
1420 max_used = ehci->uframe_periodic_max - stream->ps.usecs; in sitd_slot_ok()