Home
last modified time | relevance | path

Searched refs:buckets (Results 1 – 3 of 3) sorted by relevance

/block/
Dblk-stat.c85 for (bucket = 0; bucket < cb->buckets; bucket++) in blk_stat_timer_fn()
92 for (bucket = 0; bucket < cb->buckets; bucket++) { in blk_stat_timer_fn()
104 unsigned int buckets, void *data) in blk_stat_alloc_callback() argument
112 cb->stat = kmalloc_array(buckets, sizeof(struct blk_rq_stat), in blk_stat_alloc_callback()
118 cb->cpu_stat = __alloc_percpu(buckets * sizeof(struct blk_rq_stat), in blk_stat_alloc_callback()
129 cb->buckets = buckets; in blk_stat_alloc_callback()
145 for (bucket = 0; bucket < cb->buckets; bucket++) in blk_stat_add_callback()
Dblk-stat.h45 unsigned int buckets; member
87 unsigned int buckets, void *data);
Dkyber-iosched.c134 atomic_t buckets[KYBER_OTHER][2][KYBER_LATENCY_BUCKETS]; member
213 unsigned int *buckets = kqd->latency_buckets[sched_domain][type]; in flush_latency_buckets() local
214 atomic_t *cpu_buckets = cpu_latency->buckets[sched_domain][type]; in flush_latency_buckets()
218 buckets[bucket] += atomic_xchg(&cpu_buckets[bucket], 0); in flush_latency_buckets()
229 unsigned int *buckets = kqd->latency_buckets[sched_domain][type]; in calculate_percentile() local
233 samples += buckets[bucket]; in calculate_percentile()
252 if (buckets[bucket] >= percentile_samples) in calculate_percentile()
254 percentile_samples -= buckets[bucket]; in calculate_percentile()
256 memset(buckets, 0, sizeof(kqd->latency_buckets[sched_domain][type])); in calculate_percentile()
632 atomic_inc(&cpu_latency->buckets[sched_domain][type][bucket]); in add_latency_sample()