Lines Matching refs:period
558 p.qh->period, in fill_periodic_buffer()
2887 qh->period = urb->interval >> 3; in qh_make()
2888 if (qh->period == 0 && urb->interval != 1) { in qh_make()
2894 } else if (qh->period > fotg210->periodic_size) { in qh_make()
2895 qh->period = fotg210->periodic_size; in qh_make()
2896 urb->interval = qh->period << 3; in qh_make()
2918 qh->period = urb->interval; in qh_make()
2919 if (qh->period > fotg210->periodic_size) { in qh_make()
2920 qh->period = fotg210->periodic_size; in qh_make()
2921 urb->interval = qh->period; in qh_make()
3553 unsigned period, in tt_no_collision() argument
3559 if (period == 0) /* error */ in tt_no_collision()
3566 for (; frame < fotg210->periodic_size; frame += period) { in tt_no_collision()
3646 unsigned period = qh->period; in qh_link_periodic() local
3650 period, hc32_to_cpup(fotg210, &qh->hw->hw_info2) in qh_link_periodic()
3655 if (period == 0) in qh_link_periodic()
3656 period = 1; in qh_link_periodic()
3658 for (i = qh->start; i < fotg210->periodic_size; i += period) { in qh_link_periodic()
3678 if (qh->period > here.qh->period) in qh_link_periodic()
3698 fotg210_to_hcd(fotg210)->self.bandwidth_allocated += qh->period in qh_link_periodic()
3699 ? ((qh->usecs + qh->c_usecs) / qh->period) in qh_link_periodic()
3713 unsigned period; in qh_unlink_periodic() local
3731 period = qh->period; in qh_unlink_periodic()
3732 if (!period) in qh_unlink_periodic()
3733 period = 1; in qh_unlink_periodic()
3735 for (i = qh->start; i < fotg210->periodic_size; i += period) in qh_unlink_periodic()
3739 fotg210_to_hcd(fotg210)->self.bandwidth_allocated -= qh->period in qh_unlink_periodic()
3740 ? ((qh->usecs + qh->c_usecs) / qh->period) in qh_unlink_periodic()
3745 qh->period, in qh_unlink_periodic()
3839 unsigned period, in check_period() argument
3856 if (unlikely(period == 0)) { in check_period()
3872 } while ((frame += period) < fotg210->periodic_size); in check_period()
3893 if (!check_period(fotg210, frame, uframe, qh->period, qh->usecs)) in check_intr_schedule()
3912 if (tt_no_collision(fotg210, qh->period, qh->dev, frame, mask)) { in check_intr_schedule()
3914 qh->period, qh->c_usecs)) in check_intr_schedule()
3917 qh->period, qh->c_usecs)) in check_intr_schedule()
3941 if (frame < qh->period) { in qh_schedule()
3956 if (qh->period) { in qh_schedule()
3959 for (i = qh->period; status && i > 0; --i) { in qh_schedule()
3960 frame = ++fotg210->random_frame % qh->period; in qh_schedule()
3982 hw->hw_info2 |= qh->period in qh_schedule()
4341 u32 period in itd_slot_ok() argument
4344 uframe %= period; in itd_slot_ok()
4352 uframe += period; in itd_slot_ok()
4377 u32 now, next, start, period, span; in iso_stream_schedule() local
4382 period = urb->interval; in iso_stream_schedule()
4415 excess = (stream->next_uframe - period - next) & (mod - 1); in iso_stream_schedule()
4417 start = next + excess - mod + period * in iso_stream_schedule()
4418 DIV_ROUND_UP(mod - excess, period); in iso_stream_schedule()
4420 start = next + excess + period; in iso_stream_schedule()
4423 urb, start - now - period, period, in iso_stream_schedule()
4448 start += period; in iso_stream_schedule()
4453 stream->usecs, period)) in iso_stream_schedule()
4467 if (unlikely(start - now + span - period in iso_stream_schedule()
4470 urb, start - now, span - period, in iso_stream_schedule()