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.
111 unsigned int intervals[INTERVALS]; member
160 * intervals, and checking if the standard deviation of that set
174 /* First calculate the average of past intervals */ in get_typical_interval()
179 for (i = 0; i < INTERVALS; i++) { in get_typical_interval()
180 unsigned int value = data->intervals[i]; in get_typical_interval()
195 if (divisor == INTERVALS) in get_typical_interval()
202 for (i = 0; i < INTERVALS; i++) { in get_typical_interval()
203 unsigned int value = data->intervals[i]; in get_typical_interval()
209 if (divisor == INTERVALS) in get_typical_interval()
227 if ((((u64)avg*avg > variance*36) && (divisor * 4 >= INTERVALS * 3)) in get_typical_interval()
242 if ((divisor * 4) <= INTERVALS * 3) in get_typical_interval()
539 data->intervals[data->interval_ptr++] = ktime_to_us(measured_ns); in menu_update()
540 if (data->interval_ptr >= INTERVALS) in menu_update()