Lines Matching refs:cnt
32 u64 cnt[BLKG_RWSTAT_NR]; member
64 struct percpu_counter *cnt; in blkg_rwstat_add() local
67 cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_DISCARD]; in blkg_rwstat_add()
69 cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_WRITE]; in blkg_rwstat_add()
71 cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_READ]; in blkg_rwstat_add()
73 percpu_counter_add_batch(cnt, val, BLKG_STAT_CPU_BATCH); in blkg_rwstat_add()
76 cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_SYNC]; in blkg_rwstat_add()
78 cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_ASYNC]; in blkg_rwstat_add()
80 percpu_counter_add_batch(cnt, val, BLKG_STAT_CPU_BATCH); in blkg_rwstat_add()
95 result->cnt[i] = in blkg_rwstat_read()
112 return tmp.cnt[BLKG_RWSTAT_READ] + tmp.cnt[BLKG_RWSTAT_WRITE]; in blkg_rwstat_total()