Lines Matching refs:uframe
3366 unsigned frame, unsigned uframe) in periodic_usecs() argument
3378 if (hw->hw_info2 & cpu_to_hc32(fotg210, 1 << uframe)) in periodic_usecs()
3382 1 << (8 + uframe))) in periodic_usecs()
3399 if (q->itd->hw_transaction[uframe]) in periodic_usecs()
3408 frame * 8 + uframe, usecs); in periodic_usecs()
3702 unsigned uframe, unsigned period, unsigned usecs) in check_period() argument
3709 if (uframe >= 8) in check_period()
3720 for (uframe = 0; uframe < 7; uframe++) { in check_period()
3722 uframe); in check_period()
3731 claimed = periodic_usecs(fotg210, frame, uframe); in check_period()
3742 unsigned uframe, const struct fotg210_qh *qh, __hc32 *c_maskp) in check_intr_schedule() argument
3747 if (qh->c_usecs && uframe >= 6) /* FSTN territory? */ in check_intr_schedule()
3750 if (!check_period(fotg210, frame, uframe, qh->period, qh->usecs)) in check_intr_schedule()
3765 mask = 0x03 << (uframe + qh->gap_uf); in check_intr_schedule()
3768 mask |= 1 << uframe; in check_intr_schedule()
3770 if (!check_period(fotg210, frame, uframe + qh->gap_uf + 1, in check_intr_schedule()
3773 if (!check_period(fotg210, frame, uframe + qh->gap_uf, in check_intr_schedule()
3788 unsigned uframe; in qh_schedule() local
3799 uframe = ffs(hc32_to_cpup(fotg210, &hw->hw_info2) & QH_SMASK); in qh_schedule()
3800 status = check_intr_schedule(fotg210, frame, --uframe, in qh_schedule()
3803 uframe = 0; in qh_schedule()
3818 for (uframe = 0; uframe < 8; uframe++) { in qh_schedule()
3820 frame, uframe, qh, in qh_schedule()
3840 ? cpu_to_hc32(fotg210, 1 << uframe) in qh_schedule()
4070 struct fotg210_iso_packet *uframe = &iso_sched->packet[i]; in itd_sched_init() local
4084 uframe->transaction = cpu_to_hc32(fotg210, trans); in itd_sched_init()
4087 uframe->bufp = (buf & ~(u64)0x0fff); in itd_sched_init()
4089 if (unlikely((uframe->bufp != (buf & ~(u64)0x0fff)))) in itd_sched_init()
4090 uframe->cross = 1; in itd_sched_init()
4165 static inline int itd_slot_ok(struct fotg210_hcd *fotg210, u32 mod, u32 uframe, in itd_slot_ok() argument
4168 uframe %= period; in itd_slot_ok()
4171 if (periodic_usecs(fotg210, uframe >> 3, uframe & 0x7) in itd_slot_ok()
4176 uframe += period; in itd_slot_ok()
4177 } while (uframe < mod); in itd_slot_ok()
4333 unsigned index, u16 uframe) in itd_patch() argument
4338 uframe &= 0x07; in itd_patch()
4339 itd->index[uframe] = index; in itd_patch()
4341 itd->hw_transaction[uframe] = uf->transaction; in itd_patch()
4342 itd->hw_transaction[uframe] |= cpu_to_hc32(fotg210, pg << 12); in itd_patch()
4387 unsigned next_uframe, uframe, frame; in itd_link_urb() local
4419 uframe = next_uframe & 0x07; in itd_link_urb()
4422 itd_patch(fotg210, itd, iso_sched, packet, uframe); in itd_link_urb()
4464 unsigned uframe; in itd_complete() local
4471 for (uframe = 0; uframe < 8; uframe++) { in itd_complete()
4472 if (likely(itd->index[uframe] == -1)) in itd_complete()
4474 urb_index = itd->index[uframe]; in itd_complete()
4477 t = hc32_to_cpup(fotg210, &itd->hw_transaction[uframe]); in itd_complete()
4478 itd->hw_transaction[uframe] = 0; in itd_complete()
4735 unsigned frame, uframe; in store_uframe_periodic_max() local
4767 for (uframe = 0; uframe < 7; ++uframe) in store_uframe_periodic_max()
4770 uframe)); in store_uframe_periodic_max()