Lines Matching refs:field
28 #define part_stat_get_cpu(part, field, cpu) \ argument
29 (per_cpu_ptr((part)->bd_stats, (cpu))->field)
31 #define part_stat_get(part, field) \ argument
32 part_stat_get_cpu(part, field, smp_processor_id())
34 #define part_stat_read(part, field) \ argument
36 typeof((part)->bd_stats->field) res = 0; \
39 res += per_cpu_ptr((part)->bd_stats, _cpu)->field; \
52 #define part_stat_read_accum(part, field) \ argument
53 (part_stat_read(part, field[STAT_READ]) + \
54 part_stat_read(part, field[STAT_WRITE]) + \
55 part_stat_read(part, field[STAT_DISCARD]))
57 #define __part_stat_add(part, field, addnd) \ argument
58 __this_cpu_add((part)->bd_stats->field, addnd)
60 #define part_stat_add(part, field, addnd) do { \ argument
61 __part_stat_add((part), field, addnd); \
63 __part_stat_add(bdev_whole(part), field, addnd); \
66 #define part_stat_dec(part, field) \ argument
67 part_stat_add(part, field, -1)
68 #define part_stat_inc(part, field) \ argument
69 part_stat_add(part, field, 1)
70 #define part_stat_sub(part, field, subnd) \ argument
71 part_stat_add(part, field, -subnd)
73 #define part_stat_local_dec(part, field) \ argument
74 local_dec(&(part_stat_get(part, field)))
75 #define part_stat_local_inc(part, field) \ argument
76 local_inc(&(part_stat_get(part, field)))
77 #define part_stat_local_read(part, field) \ argument
78 local_read(&(part_stat_get(part, field)))
79 #define part_stat_local_read_cpu(part, field, cpu) \ argument
80 local_read(&(part_stat_get_cpu(part, field, cpu)))