Lines Matching refs:cpu_stat
73 stat = &per_cpu_ptr(cb->cpu_stat, cpu)[bucket]; in blk_stat_add()
90 struct blk_rq_stat *cpu_stat; in blk_stat_timer_fn() local
92 cpu_stat = per_cpu_ptr(cb->cpu_stat, cpu); in blk_stat_timer_fn()
94 blk_rq_stat_sum(&cb->stat[bucket], &cpu_stat[bucket]); in blk_stat_timer_fn()
95 blk_rq_stat_init(&cpu_stat[bucket]); in blk_stat_timer_fn()
119 cb->cpu_stat = __alloc_percpu(buckets * sizeof(struct blk_rq_stat), in blk_stat_alloc_callback()
121 if (!cb->cpu_stat) { in blk_stat_alloc_callback()
144 struct blk_rq_stat *cpu_stat; in blk_stat_add_callback() local
146 cpu_stat = per_cpu_ptr(cb->cpu_stat, cpu); in blk_stat_add_callback()
148 blk_rq_stat_init(&cpu_stat[bucket]); in blk_stat_add_callback()
176 free_percpu(cb->cpu_stat); in blk_stat_free_callback_rcu()