Lines Matching refs:period

214 			ps->phase, ps->phase_uf, ps->period,  in bandwidth_dbg()
386 unsigned period = ps->bw_period; in tt_available() local
389 if ((period == 0) || (uframe >= 7)) /* error */ in tt_available()
392 for (frame &= period - 1; frame < EHCI_BANDWIDTH_FRAMES; in tt_available()
393 frame += period) { in tt_available()
440 unsigned period, in tt_no_collision() argument
446 if (period == 0) /* error */ in tt_no_collision()
453 for (; frame < ehci->periodic_size; frame += period) { in tt_no_collision()
548 unsigned period = qh->ps.period; in qh_link_periodic() local
552 period, hc32_to_cpup(ehci, &qh->hw->hw_info2) in qh_link_periodic()
557 if (period == 0) in qh_link_periodic()
558 period = 1; in qh_link_periodic()
560 for (i = qh->ps.phase; i < ehci->periodic_size; i += period) { in qh_link_periodic()
580 if (qh->ps.period > here.qh->ps.period) in qh_link_periodic()
615 unsigned period; in qh_unlink_periodic() local
633 period = qh->ps.period ? : 1; in qh_unlink_periodic()
635 for (i = qh->ps.phase; i < ehci->periodic_size; i += period) in qh_unlink_periodic()
645 qh->ps.period, in qh_unlink_periodic()
911 qh->ps.phase = (qh->ps.period ? ehci->random_frame & in qh_schedule()
912 (qh->ps.period - 1) : 0); in qh_schedule()
915 qh->ps.cs_mask = qh->ps.period ? in qh_schedule()
1094 stream->ps.period = urb->interval >> 3; in iso_stream_init()
1137 stream->ps.period = urb->interval; in iso_stream_init()
1501 u32 now, base, next, start, period, span, now2; in iso_stream_schedule() local
1509 period = stream->uperiod; in iso_stream_schedule()
1529 start = ((-(++ehci->random_frame)) << 3) & (period - 1); in iso_stream_schedule()
1537 start += period; in iso_stream_schedule()
1560 (stream->ps.period - 1); in iso_stream_schedule()
1608 if (unlikely(!empty && start < period)) { in iso_stream_schedule()
1610 urb, stream->next_uframe, base, period, mod); in iso_stream_schedule()
1616 if (likely(!empty || start <= now2 + period)) { in iso_stream_schedule()
1636 skip = (now2 - start + period - 1) & -period; in iso_stream_schedule()
1639 urb, start + base, span - period, now2 + base, in iso_stream_schedule()
1643 skip = span - period; in iso_stream_schedule()
1653 urb->error_count = skip / period; in iso_stream_schedule()
1660 start = next + ((start - next) & (period - 1)); in iso_stream_schedule()
1664 if (unlikely(start + span - period >= mod + wrap)) { in iso_stream_schedule()
1666 urb, start, span - period, mod + wrap); in iso_stream_schedule()
2019 iso_sched->span = urb->number_of_packets * stream->ps.period; in sitd_sched_init()
2332 if (urb->interval != stream->ps.period) { in sitd_submit()
2334 stream->ps.period, urb->interval); in sitd_submit()