Lines Matching refs:i
92 int i; in blkg_rwstat_read() local
94 for (i = 0; i < BLKG_RWSTAT_NR; i++) in blkg_rwstat_read()
95 result->cnt[i] = in blkg_rwstat_read()
96 percpu_counter_sum_positive(&rwstat->cpu_cnt[i]); in blkg_rwstat_read()
121 int i; in blkg_rwstat_reset() local
123 for (i = 0; i < BLKG_RWSTAT_NR; i++) { in blkg_rwstat_reset()
124 percpu_counter_set(&rwstat->cpu_cnt[i], 0); in blkg_rwstat_reset()
125 atomic64_set(&rwstat->aux_cnt[i], 0); in blkg_rwstat_reset()
140 int i; in blkg_rwstat_add_aux() local
142 for (i = 0; i < BLKG_RWSTAT_NR; i++) in blkg_rwstat_add_aux()
143 sum[i] = percpu_counter_sum_positive(&from->cpu_cnt[i]); in blkg_rwstat_add_aux()
145 for (i = 0; i < BLKG_RWSTAT_NR; i++) in blkg_rwstat_add_aux()
146 atomic64_add(sum[i] + atomic64_read(&from->aux_cnt[i]), in blkg_rwstat_add_aux()
147 &to->aux_cnt[i]); in blkg_rwstat_add_aux()