Lines Matching defs:bucket
216 unsigned int bucket;
218 for (bucket = 0; bucket < KYBER_LATENCY_BUCKETS; bucket++)
219 buckets[bucket] += atomic_xchg(&cpu_buckets[bucket], 0);
223 * Calculate the histogram bucket with the given percentile rank, or -1 if there
231 unsigned int bucket, samples = 0, percentile_samples;
233 for (bucket = 0; bucket < KYBER_LATENCY_BUCKETS; bucket++)
234 samples += buckets[bucket];
252 for (bucket = 0; bucket < KYBER_LATENCY_BUCKETS - 1; bucket++) {
253 if (buckets[bucket] >= percentile_samples)
255 percentile_samples -= buckets[bucket];
261 bucket + 1, 1 << KYBER_LATENCY_SHIFT, samples);
263 return bucket;
625 unsigned int bucket;
630 bucket = min_t(unsigned int, div64_u64(latency - 1, divisor),
633 bucket = 0;
636 atomic_inc(&cpu_latency->buckets[sched_domain][type][bucket]);