Lines Matching defs:interval
122 * @interval: How often we need to be scheduled for the reservation this
126 * the interval or we return failure right away.
128 * first interval, since we can still make all repetition
135 * and the events want to repeat every "interval" periods. The schedule
145 * - If interval is 1, we need to take up space in each of the 8
147 * - If interval is 2, we need to take up space in half of the
149 * - If interval is 3, we actually need to fall back to interval 1.
157 * - If interval is 4, easy.
158 * - If interval is 5, we again need interval 1. The schedule will be
160 * - If interval is 6, we need interval 2. 0, 6, 4, 2.
161 * - If interval is 7, we need interval 1.
162 * - If interval is 8, we need interval 8.
164 * If you do the math, you'll see that we need to pretend that interval is
165 * equal to the greatest_common_divisor(interval, periods_in_map).
204 int interval, int start, bool only_one_period)
214 /* Adjust interval as per description */
215 interval = gcd(interval, periods_in_map);
217 interval_bits = bits_per_period * interval;
218 to_reserve = periods_in_map / interval;
220 /* If start has gotten us past interval then we can't schedule */
228 /* Can fit anywhere in the first interval */
250 * interval, so continue on (start already updated).
307 * @interval: The interval that was passed to schedule.
312 int interval, int start)
318 /* Adjust interval as per description in pmap_schedule() */
319 interval = gcd(interval, periods_in_map);
321 interval_bits = bits_per_period * interval;
322 to_release = periods_in_map / interval;
567 * we want the low speed interval and the only way we'd be in this
687 * The interval (how often to repeat) in the actual host schedule.
1062 u16 interval;
1101 /* Adjust interval as per high speed schedule */
1102 interval = gcd(qh->host_interval, DWC2_HS_SCHEDULE_UFRAMES);
1114 interval = gcd(qh->host_interval, DWC2_LS_SCHEDULE_FRAMES);
1117 /* Scheduler messed up if frame is past interval */
1118 WARN_ON(relative_frame >= interval);
1121 * We know interval must divide (HFNUM_MAX_FRNUM + 1) now that we've
1123 * interval like this.
1128 next_active_frame = (next_active_frame / interval) * interval;
1150 interval);
1531 qh->device_interval = urb->interval;
1532 qh->host_interval = urb->interval * (do_split ? 8 : 1);
1597 dwc2_sch_dbg(hsotg, "QH=%p ...interval: host=%d, device=%d\n",
1844 * transfer this is normally pretty easy: we just add our interval to
1860 u16 interval = qh->host_interval;
1864 interval);
1874 if (interval >= 0x1000)
1909 * Adjust interval as per gcd with map size.
1916 interval = gcd(interval, periods_in_map);
1920 qh->start_active_frame, interval);