Lines Matching refs:uframe
3334 unsigned frame, unsigned uframe) in periodic_usecs() argument
3346 if (hw->hw_info2 & cpu_to_hc32(fotg210, 1 << uframe)) in periodic_usecs()
3350 1 << (8 + uframe))) in periodic_usecs()
3367 if (q->itd->hw_transaction[uframe]) in periodic_usecs()
3376 frame * 8 + uframe, usecs); in periodic_usecs()
3670 unsigned uframe, unsigned period, unsigned usecs) in check_period() argument
3677 if (uframe >= 8) in check_period()
3688 for (uframe = 0; uframe < 7; uframe++) { in check_period()
3690 uframe); in check_period()
3699 claimed = periodic_usecs(fotg210, frame, uframe); in check_period()
3710 unsigned uframe, const struct fotg210_qh *qh, __hc32 *c_maskp) in check_intr_schedule() argument
3715 if (qh->c_usecs && uframe >= 6) /* FSTN territory? */ in check_intr_schedule()
3718 if (!check_period(fotg210, frame, uframe, qh->period, qh->usecs)) in check_intr_schedule()
3733 mask = 0x03 << (uframe + qh->gap_uf); in check_intr_schedule()
3736 mask |= 1 << uframe; in check_intr_schedule()
3738 if (!check_period(fotg210, frame, uframe + qh->gap_uf + 1, in check_intr_schedule()
3741 if (!check_period(fotg210, frame, uframe + qh->gap_uf, in check_intr_schedule()
3756 unsigned uframe; in qh_schedule() local
3767 uframe = ffs(hc32_to_cpup(fotg210, &hw->hw_info2) & QH_SMASK); in qh_schedule()
3768 status = check_intr_schedule(fotg210, frame, --uframe, in qh_schedule()
3771 uframe = 0; in qh_schedule()
3786 for (uframe = 0; uframe < 8; uframe++) { in qh_schedule()
3788 frame, uframe, qh, in qh_schedule()
3808 ? cpu_to_hc32(fotg210, 1 << uframe) in qh_schedule()
4039 struct fotg210_iso_packet *uframe = &iso_sched->packet[i]; in itd_sched_init() local
4053 uframe->transaction = cpu_to_hc32(fotg210, trans); in itd_sched_init()
4056 uframe->bufp = (buf & ~(u64)0x0fff); in itd_sched_init()
4058 if (unlikely((uframe->bufp != (buf & ~(u64)0x0fff)))) in itd_sched_init()
4059 uframe->cross = 1; in itd_sched_init()
4133 static inline int itd_slot_ok(struct fotg210_hcd *fotg210, u32 mod, u32 uframe, in itd_slot_ok() argument
4136 uframe %= period; in itd_slot_ok()
4139 if (periodic_usecs(fotg210, uframe >> 3, uframe & 0x7) in itd_slot_ok()
4144 uframe += period; in itd_slot_ok()
4145 } while (uframe < mod); in itd_slot_ok()
4301 unsigned index, u16 uframe) in itd_patch() argument
4306 uframe &= 0x07; in itd_patch()
4307 itd->index[uframe] = index; in itd_patch()
4309 itd->hw_transaction[uframe] = uf->transaction; in itd_patch()
4310 itd->hw_transaction[uframe] |= cpu_to_hc32(fotg210, pg << 12); in itd_patch()
4355 unsigned next_uframe, uframe, frame; in itd_link_urb() local
4387 uframe = next_uframe & 0x07; in itd_link_urb()
4390 itd_patch(fotg210, itd, iso_sched, packet, uframe); in itd_link_urb()
4432 unsigned uframe; in itd_complete() local
4439 for (uframe = 0; uframe < 8; uframe++) { in itd_complete()
4440 if (likely(itd->index[uframe] == -1)) in itd_complete()
4442 urb_index = itd->index[uframe]; in itd_complete()
4445 t = hc32_to_cpup(fotg210, &itd->hw_transaction[uframe]); in itd_complete()
4446 itd->hw_transaction[uframe] = 0; in itd_complete()
4702 unsigned frame, uframe; in uframe_periodic_max_store() local
4734 for (uframe = 0; uframe < 7; ++uframe) in uframe_periodic_max_store()
4737 uframe)); in uframe_periodic_max_store()