• Home
  • Raw
  • Download

Lines Matching refs:period

315 	unsigned		period,  in tt_available()  argument
322 if ((period == 0) || (uframe >= 7)) /* error */ in tt_available()
325 for (; frame < ehci->periodic_size; frame += period) { in tt_available()
384 unsigned period, in tt_no_collision() argument
390 if (period == 0) /* error */ in tt_no_collision()
397 for (; frame < ehci->periodic_size; frame += period) { in tt_no_collision()
492 unsigned period = qh->period; in qh_link_periodic() local
496 period, hc32_to_cpup(ehci, &qh->hw->hw_info2) in qh_link_periodic()
501 if (period == 0) in qh_link_periodic()
502 period = 1; in qh_link_periodic()
504 for (i = qh->start; i < ehci->periodic_size; i += period) { in qh_link_periodic()
524 if (qh->period > here.qh->period) in qh_link_periodic()
545 ehci_to_hcd(ehci)->self.bandwidth_allocated += qh->period in qh_link_periodic()
546 ? ((qh->usecs + qh->c_usecs) / qh->period) in qh_link_periodic()
559 unsigned period; in qh_unlink_periodic() local
577 if ((period = qh->period) == 0) in qh_unlink_periodic()
578 period = 1; in qh_unlink_periodic()
580 for (i = qh->start; i < ehci->periodic_size; i += period) in qh_unlink_periodic()
584 ehci_to_hcd(ehci)->self.bandwidth_allocated -= qh->period in qh_unlink_periodic()
585 ? ((qh->usecs + qh->c_usecs) / qh->period) in qh_unlink_periodic()
590 qh->period, in qh_unlink_periodic()
677 unsigned period, in check_period() argument
694 if (unlikely (period == 0)) { in check_period()
709 } while ((frame += period) < ehci->periodic_size); in check_period()
730 if (!check_period (ehci, frame, uframe, qh->period, qh->usecs)) in check_intr_schedule()
739 if (tt_available (ehci, qh->period, qh->dev, frame, uframe, in check_intr_schedule()
746 qh->period, qh->c_usecs)) in check_intr_schedule()
767 if (tt_no_collision (ehci, qh->period, qh->dev, frame, mask)) { in check_intr_schedule()
769 qh->period, qh->c_usecs)) in check_intr_schedule()
772 qh->period, qh->c_usecs)) in check_intr_schedule()
796 if (frame < qh->period) { in qh_schedule()
811 if (qh->period) { in qh_schedule()
814 for (i = qh->period; status && i > 0; --i) { in qh_schedule()
815 frame = ++ehci->random_frame % qh->period; in qh_schedule()
836 hw->hw_info2 |= qh->period in qh_schedule()
1233 u32 period in itd_slot_ok() argument
1236 uframe %= period; in itd_slot_ok()
1244 uframe += period; in itd_slot_ok()
1348 u32 now, base, next, start, period, span; in iso_stream_schedule() local
1353 period = urb->interval; in iso_stream_schedule()
1356 period <<= 3; in iso_stream_schedule()
1384 if (unlikely(start < period)) { in iso_stream_schedule()
1387 period, mod); in iso_stream_schedule()
1397 start += (next - start + period - 1) & -period; in iso_stream_schedule()
1403 else if (start + span - period < next) { in iso_stream_schedule()
1406 span - period, next + base); in iso_stream_schedule()
1433 start += period; in iso_stream_schedule()
1439 stream->usecs, period)) in iso_stream_schedule()
1445 start, sched, period)) in iso_stream_schedule()
1459 if (unlikely(start - base + span - period >= mod)) { in iso_stream_schedule()
1461 urb, start - base, span - period, mod); in iso_stream_schedule()