Lines Matching full:intervals
26 #define INTERVALS (1UL << INTERVAL_SHIFT) macro
77 * intervals and if the stand deviation of these 8 intervals is below a
78 * threshold value, we use the average of these intervals as prediction.
118 unsigned int intervals[INTERVALS]; member
167 * intervals, and checking if the standard deviation of that set
181 /* First calculate the average of past intervals */ in get_typical_interval()
186 for (i = 0; i < INTERVALS; i++) { in get_typical_interval()
187 unsigned int value = data->intervals[i]; in get_typical_interval()
202 if (divisor == INTERVALS) in get_typical_interval()
209 for (i = 0; i < INTERVALS; i++) { in get_typical_interval()
210 unsigned int value = data->intervals[i]; in get_typical_interval()
216 if (divisor == INTERVALS) in get_typical_interval()
234 if ((((u64)avg*avg > variance*36) && (divisor * 4 >= INTERVALS * 3)) in get_typical_interval()
249 if ((divisor * 4) <= INTERVALS * 3) in get_typical_interval()
546 data->intervals[data->interval_ptr++] = ktime_to_us(measured_ns); in menu_update()
547 if (data->interval_ptr >= INTERVALS) in menu_update()