Lines Matching refs:period
536 p.qh->period, in fill_periodic_buffer()
2834 qh->period = urb->interval >> 3; in qh_make()
2835 if (qh->period == 0 && urb->interval != 1) { in qh_make()
2841 } else if (qh->period > fusbh200->periodic_size) { in qh_make()
2842 qh->period = fusbh200->periodic_size; in qh_make()
2843 urb->interval = qh->period << 3; in qh_make()
2865 qh->period = urb->interval; in qh_make()
2866 if (qh->period > fusbh200->periodic_size) { in qh_make()
2867 qh->period = fusbh200->periodic_size; in qh_make()
2868 urb->interval = qh->period; in qh_make()
3495 unsigned period, in tt_no_collision() argument
3501 if (period == 0) /* error */ in tt_no_collision()
3508 for (; frame < fusbh200->periodic_size; frame += period) { in tt_no_collision()
3587 unsigned period = qh->period; in qh_link_periodic() local
3591 period, hc32_to_cpup(fusbh200, &qh->hw->hw_info2) in qh_link_periodic()
3596 if (period == 0) in qh_link_periodic()
3597 period = 1; in qh_link_periodic()
3599 for (i = qh->start; i < fusbh200->periodic_size; i += period) { in qh_link_periodic()
3619 if (qh->period > here.qh->period) in qh_link_periodic()
3639 fusbh200_to_hcd(fusbh200)->self.bandwidth_allocated += qh->period in qh_link_periodic()
3640 ? ((qh->usecs + qh->c_usecs) / qh->period) in qh_link_periodic()
3653 unsigned period; in qh_unlink_periodic() local
3671 if ((period = qh->period) == 0) in qh_unlink_periodic()
3672 period = 1; in qh_unlink_periodic()
3674 for (i = qh->start; i < fusbh200->periodic_size; i += period) in qh_unlink_periodic()
3678 fusbh200_to_hcd(fusbh200)->self.bandwidth_allocated -= qh->period in qh_unlink_periodic()
3679 ? ((qh->usecs + qh->c_usecs) / qh->period) in qh_unlink_periodic()
3684 qh->period, in qh_unlink_periodic()
3775 unsigned period, in check_period() argument
3792 if (unlikely (period == 0)) { in check_period()
3807 } while ((frame += period) < fusbh200->periodic_size); in check_period()
3828 if (!check_period (fusbh200, frame, uframe, qh->period, qh->usecs)) in check_intr_schedule()
3847 if (tt_no_collision (fusbh200, qh->period, qh->dev, frame, mask)) { in check_intr_schedule()
3849 qh->period, qh->c_usecs)) in check_intr_schedule()
3852 qh->period, qh->c_usecs)) in check_intr_schedule()
3876 if (frame < qh->period) { in qh_schedule()
3891 if (qh->period) { in qh_schedule()
3894 for (i = qh->period; status && i > 0; --i) { in qh_schedule()
3895 frame = ++fusbh200->random_frame % qh->period; in qh_schedule()
3916 hw->hw_info2 |= qh->period in qh_schedule()
4275 u32 period in itd_slot_ok() argument
4278 uframe %= period; in itd_slot_ok()
4286 uframe += period; in itd_slot_ok()
4311 u32 now, next, start, period, span; in iso_stream_schedule() local
4316 period = urb->interval; in iso_stream_schedule()
4349 excess = (stream->next_uframe - period - next) & (mod - 1); in iso_stream_schedule()
4351 start = next + excess - mod + period * in iso_stream_schedule()
4352 DIV_ROUND_UP(mod - excess, period); in iso_stream_schedule()
4354 start = next + excess + period; in iso_stream_schedule()
4357 urb, start - now - period, period, in iso_stream_schedule()
4382 start += period; in iso_stream_schedule()
4387 stream->usecs, period)) in iso_stream_schedule()
4401 if (unlikely(start - now + span - period in iso_stream_schedule()
4404 urb, start - now, span - period, in iso_stream_schedule()