Lines Matching full:intervals
24 #define INTERVALS (1UL << INTERVAL_SHIFT) macro
75 * intervals and if the stand deviation of these 8 intervals is below a
76 * threshold value, we use the average of these intervals as prediction.
116 unsigned int intervals[INTERVALS]; member
165 * intervals, and checking if the standard deviation of that set
180 /* First calculate the average of past intervals */ in get_typical_interval()
185 for (i = 0; i < INTERVALS; i++) { in get_typical_interval()
186 unsigned int value = data->intervals[i]; in get_typical_interval()
205 if (divisor == INTERVALS) in get_typical_interval()
212 for (i = 0; i < INTERVALS; i++) { in get_typical_interval()
213 unsigned int value = data->intervals[i]; in get_typical_interval()
219 if (divisor == INTERVALS) in get_typical_interval()
237 if ((((u64)avg*avg > variance*36) && (divisor * 4 >= INTERVALS * 3)) in get_typical_interval()
252 if ((divisor * 4) <= INTERVALS * 3) in get_typical_interval()
535 data->intervals[data->interval_ptr++] = ktime_to_us(measured_ns); in menu_update()
536 if (data->interval_ptr >= INTERVALS) in menu_update()