Lines Matching refs:uframe

271 	unsigned		uframe, uf, x;
280 for (uframe = ps->bw_phase << 3; uframe < EHCI_BANDWIDTH_SIZE;
281 uframe += ps->bw_uperiod) {
282 budget_line = &budget_table[uframe];
319 /* carryover low/fullspeed bandwidth that crosses uframe boundries */
335 * specified frame/uframe. Note that (as summarized in section 11.19
337 * uframe.
339 * The uframe parameter is when the fullspeed/lowspeed transfer
341 * highspeed ssplit's uframe (which is in "H-frame" terms). For example
345 * This checks if the full/lowspeed bus, at the specified starting uframe,
351 * since proper scheduling limits ssplits to less than 16 per uframe.
358 unsigned uframe
364 if ((period == 0) || (uframe >= 7)) /* error */
379 if (max_tt_usecs[uframe] <= tt_usecs[uframe])
383 * the first and each subsequent fully used uframe
390 for (i = uframe; i < (uframe + ufs) && i < 8; i++)
395 tt_usecs[uframe] += usecs;
399 /* fail if the carryover pushed bw past the last uframe's limit */
425 * (different dev or endpoint) until the next uframe.
518 * this just links in a qh; caller guarantees uframe masks are set right.
745 unsigned uframe,
752 if (uframe >= 8)
758 for (uframe += frame << 3; uframe < EHCI_BANDWIDTH_SIZE;
759 uframe += uperiod) {
760 if (ehci->bandwidth[uframe] > usecs)
771 unsigned uframe,
780 if (qh->ps.c_usecs && uframe >= 6) /* FSTN territory? */
783 if (!check_period(ehci, frame, uframe, qh->ps.bw_uperiod, qh->ps.usecs))
792 if (tt_available(ehci, &qh->ps, tt, frame, uframe)) {
795 /* TODO : this may need FSTN for SSPLIT in uframe 5. */
796 for (i = uframe+2; i < 8 && i <= uframe+4; i++)
815 mask = 0x03 << (uframe + qh->gap_uf);
818 mask |= 1 << uframe;
820 if (!check_period(ehci, frame, uframe + qh->gap_uf + 1,
823 if (!check_period(ehci, frame, uframe + qh->gap_uf,
839 unsigned uframe;
852 uframe = 0;
871 for (uframe = 0; uframe < 8; uframe++) {
873 frame, uframe, qh, &c_mask, tt);
879 /* qh->ps.bw_period == 0 means every uframe */
890 qh->ps.phase_uf = uframe;
892 (c_mask << 8) | (1 << uframe) :
1191 /* figure out per-uframe itd fields that we'll need later
1195 struct ehci_iso_packet *uframe = &iso_sched->packet[i];
1209 uframe->transaction = cpu_to_hc32(ehci, trans);
1211 /* might need to cross a buffer page within a uframe */
1212 uframe->bufp = (buf & ~(u64)0x0fff);
1214 if (unlikely((uframe->bufp != (buf & ~(u64)0x0fff))))
1215 uframe->cross = 1;
1304 unsigned uframe;
1314 uframe = stream->ps.bw_phase << 3;
1325 for (i = uframe + stream->ps.phase_uf; i < EHCI_BANDWIDTH_SIZE;
1334 for (i = uframe; i < EHCI_BANDWIDTH_SIZE;
1357 for (i = uframe >> 3; i < EHCI_BANDWIDTH_FRAMES;
1367 unsigned uframe
1375 for (uframe &= stream->ps.bw_uperiod - 1; uframe < EHCI_BANDWIDTH_SIZE;
1376 uframe += stream->ps.bw_uperiod) {
1377 if (ehci->bandwidth[uframe] > usecs)
1387 unsigned uframe,
1395 mask = stream->ps.cs_mask << (uframe & 7);
1398 if (((stream->ps.cs_mask & 0xff) << (uframe & 7)) >= (1 << 7))
1406 uframe &= stream->ps.bw_uperiod - 1;
1407 frame = uframe >> 3;
1413 uf = uframe & 7;
1430 uf = uframe;
1441 uf = uframe & ~7;
1443 for (i = (uframe & 7) + 2; i < 8; (++i, tmp <<= 1)) {
1451 uframe += stream->ps.bw_uperiod;
1452 } while (uframe < EHCI_BANDWIDTH_SIZE);
1454 stream->ps.cs_mask <<= uframe & 7;
1507 /* find a uframe slot with enough bandwidth.
1556 next = now + ehci->i_thresh; /* uframe cache */
1688 u16 uframe
1696 uframe &= 0x07;
1697 itd->index[uframe] = index;
1699 itd->hw_transaction[uframe] = uf->transaction;
1700 itd->hw_transaction[uframe] |= cpu_to_hc32(ehci, pg << 12);
1749 unsigned next_uframe, uframe, frame;
1766 /* fill iTDs uframe by uframe */
1773 /* ASSERT: no itds for this endpoint in this uframe */
1783 uframe = next_uframe & 0x07;
1786 itd_patch(ehci, itd, iso_sched, packet, uframe);
1826 unsigned uframe;
1831 /* for each uframe with a packet */
1832 for (uframe = 0; uframe < 8; uframe++) {
1833 if (likely(itd->index[uframe] == -1))
1835 urb_index = itd->index[uframe];
1838 t = hc32_to_cpup(ehci, &itd->hw_transaction[uframe]);
1839 itd->hw_transaction[uframe] = 0;