Lines Matching refs:period

573 						p.qh->period,  in fill_periodic_buffer()
2791 qh->period = urb->interval >> 3; in qh_make()
2792 if (qh->period == 0 && urb->interval != 1) { in qh_make()
2798 } else if (qh->period > fotg210->periodic_size) { in qh_make()
2799 qh->period = fotg210->periodic_size; in qh_make()
2800 urb->interval = qh->period << 3; in qh_make()
2822 qh->period = urb->interval; in qh_make()
2823 if (qh->period > fotg210->periodic_size) { in qh_make()
2824 qh->period = fotg210->periodic_size; in qh_make()
2825 urb->interval = qh->period; in qh_make()
3428 static int tt_no_collision(struct fotg210_hcd *fotg210, unsigned period, in tt_no_collision() argument
3431 if (period == 0) /* error */ in tt_no_collision()
3438 for (; frame < fotg210->periodic_size; frame += period) { in tt_no_collision()
3514 unsigned period = qh->period; in qh_link_periodic() local
3517 "link qh%d-%04x/%p start %d [%d/%d us]\n", period, in qh_link_periodic()
3523 if (period == 0) in qh_link_periodic()
3524 period = 1; in qh_link_periodic()
3526 for (i = qh->start; i < fotg210->periodic_size; i += period) { in qh_link_periodic()
3546 if (qh->period > here.qh->period) in qh_link_periodic()
3566 fotg210_to_hcd(fotg210)->self.bandwidth_allocated += qh->period in qh_link_periodic()
3567 ? ((qh->usecs + qh->c_usecs) / qh->period) in qh_link_periodic()
3581 unsigned period; in qh_unlink_periodic() local
3599 period = qh->period; in qh_unlink_periodic()
3600 if (!period) in qh_unlink_periodic()
3601 period = 1; in qh_unlink_periodic()
3603 for (i = qh->start; i < fotg210->periodic_size; i += period) in qh_unlink_periodic()
3607 fotg210_to_hcd(fotg210)->self.bandwidth_allocated -= qh->period in qh_unlink_periodic()
3608 ? ((qh->usecs + qh->c_usecs) / qh->period) in qh_unlink_periodic()
3613 qh->period, hc32_to_cpup(fotg210, &qh->hw->hw_info2) & in qh_unlink_periodic()
3702 unsigned uframe, unsigned period, unsigned usecs) in check_period() argument
3718 if (unlikely(period == 0)) { in check_period()
3734 } while ((frame += period) < fotg210->periodic_size); in check_period()
3750 if (!check_period(fotg210, frame, uframe, qh->period, qh->usecs)) in check_intr_schedule()
3769 if (tt_no_collision(fotg210, qh->period, qh->dev, frame, mask)) { in check_intr_schedule()
3771 qh->period, qh->c_usecs)) in check_intr_schedule()
3774 qh->period, qh->c_usecs)) in check_intr_schedule()
3798 if (frame < qh->period) { in qh_schedule()
3813 if (qh->period) { in qh_schedule()
3816 for (i = qh->period; status && i > 0; --i) { in qh_schedule()
3817 frame = ++fotg210->random_frame % qh->period; in qh_schedule()
3839 hw->hw_info2 |= qh->period in qh_schedule()
4166 u8 usecs, u32 period) in itd_slot_ok() argument
4168 uframe %= period; in itd_slot_ok()
4176 uframe += period; in itd_slot_ok()
4196 u32 now, next, start, period, span; in iso_stream_schedule() local
4201 period = urb->interval; in iso_stream_schedule()
4234 excess = (stream->next_uframe - period - next) & (mod - 1); in iso_stream_schedule()
4236 start = next + excess - mod + period * in iso_stream_schedule()
4237 DIV_ROUND_UP(mod - excess, period); in iso_stream_schedule()
4239 start = next + excess + period; in iso_stream_schedule()
4242 urb, start - now - period, period, in iso_stream_schedule()
4268 start += period; in iso_stream_schedule()
4273 stream->usecs, period)) in iso_stream_schedule()
4287 if (unlikely(start - now + span - period >= in iso_stream_schedule()
4290 urb, start - now, span - period, in iso_stream_schedule()