Lines Matching refs:uframe

265 	unsigned		uframe, uf, x;
274 for (uframe = ps->bw_phase << 3; uframe < EHCI_BANDWIDTH_SIZE;
275 uframe += ps->bw_uperiod) {
276 budget_line = &budget_table[uframe];
313 /* carryover low/fullspeed bandwidth that crosses uframe boundries */
329 * specified frame/uframe. Note that (as summarized in section 11.19
331 * uframe.
333 * The uframe parameter is when the fullspeed/lowspeed transfer
335 * highspeed ssplit's uframe (which is in "H-frame" terms). For example
339 * This checks if the full/lowspeed bus, at the specified starting uframe,
345 * since proper scheduling limits ssplits to less than 16 per uframe.
352 unsigned uframe
358 if ((period == 0) || (uframe >= 7)) /* error */
373 if (max_tt_usecs[uframe] <= tt_usecs[uframe])
377 * the first and each subsequent fully used uframe
384 for (i = uframe; i < (uframe + ufs) && i < 8; i++)
389 tt_usecs[uframe] += usecs;
393 /* fail if the carryover pushed bw past the last uframe's limit */
419 * (different dev or endpoint) until the next uframe.
511 * this just links in a qh; caller guarantees uframe masks are set right.
738 unsigned uframe,
745 if (uframe >= 8)
751 for (uframe += frame << 3; uframe < EHCI_BANDWIDTH_SIZE;
752 uframe += uperiod) {
753 if (ehci->bandwidth[uframe] > usecs)
764 unsigned uframe,
773 if (qh->ps.c_usecs && uframe >= 6) /* FSTN territory? */
776 if (!check_period(ehci, frame, uframe, qh->ps.bw_uperiod, qh->ps.usecs))
785 if (tt_available(ehci, &qh->ps, tt, frame, uframe)) {
788 /* TODO : this may need FSTN for SSPLIT in uframe 5. */
789 for (i = uframe+2; i < 8 && i <= uframe+4; i++)
808 mask = 0x03 << (uframe + qh->gap_uf);
811 mask |= 1 << uframe;
813 if (!check_period(ehci, frame, uframe + qh->gap_uf + 1,
816 if (!check_period(ehci, frame, uframe + qh->gap_uf,
832 unsigned uframe;
845 uframe = 0;
864 for (uframe = 0; uframe < 8; uframe++) {
866 frame, uframe, qh, &c_mask, tt);
872 /* qh->ps.bw_period == 0 means every uframe */
883 qh->ps.phase_uf = uframe;
885 (c_mask << 8) | (1 << uframe) :
1186 /* figure out per-uframe itd fields that we'll need later
1190 struct ehci_iso_packet *uframe = &iso_sched->packet[i];
1204 uframe->transaction = cpu_to_hc32(ehci, trans);
1206 /* might need to cross a buffer page within a uframe */
1207 uframe->bufp = (buf & ~(u64)0x0fff);
1209 if (unlikely((uframe->bufp != (buf & ~(u64)0x0fff))))
1210 uframe->cross = 1;
1299 unsigned uframe;
1309 uframe = stream->ps.bw_phase << 3;
1320 for (i = uframe + stream->ps.phase_uf; i < EHCI_BANDWIDTH_SIZE;
1329 for (i = uframe; i < EHCI_BANDWIDTH_SIZE;
1346 for (i = uframe >> 3; i < EHCI_BANDWIDTH_FRAMES;
1356 unsigned uframe
1364 for (uframe &= stream->ps.bw_uperiod - 1; uframe < EHCI_BANDWIDTH_SIZE;
1365 uframe += stream->ps.bw_uperiod) {
1366 if (ehci->bandwidth[uframe] > usecs)
1376 unsigned uframe,
1384 mask = stream->ps.cs_mask << (uframe & 7);
1387 if (((stream->ps.cs_mask & 0xff) << (uframe & 7)) >= (1 << 7))
1395 uframe &= stream->ps.bw_uperiod - 1;
1396 frame = uframe >> 3;
1402 uf = uframe & 7;
1419 uf = uframe;
1430 uf = uframe & ~7;
1432 for (i = (uframe & 7) + 2; i < 8; (++i, tmp <<= 1)) {
1440 uframe += stream->ps.bw_uperiod;
1441 } while (uframe < EHCI_BANDWIDTH_SIZE);
1443 stream->ps.cs_mask <<= uframe & 7;
1496 /* find a uframe slot with enough bandwidth.
1545 next = now + ehci->i_thresh; /* uframe cache */
1677 u16 uframe
1685 uframe &= 0x07;
1686 itd->index[uframe] = index;
1688 itd->hw_transaction[uframe] = uf->transaction;
1689 itd->hw_transaction[uframe] |= cpu_to_hc32(ehci, pg << 12);
1738 unsigned next_uframe, uframe, frame;
1755 /* fill iTDs uframe by uframe */
1762 /* ASSERT: no itds for this endpoint in this uframe */
1772 uframe = next_uframe & 0x07;
1775 itd_patch(ehci, itd, iso_sched, packet, uframe);
1815 unsigned uframe;
1820 /* for each uframe with a packet */
1821 for (uframe = 0; uframe < 8; uframe++) {
1822 if (likely(itd->index[uframe] == -1))
1824 urb_index = itd->index[uframe];
1827 t = hc32_to_cpup(ehci, &itd->hw_transaction[uframe]);
1828 itd->hw_transaction[uframe] = 0;