Lines Matching refs:field
27 #define part_stat_get_cpu(part, field, cpu) \ argument
28 (per_cpu_ptr((part)->dkstats, (cpu))->field)
30 #define part_stat_get(part, field) \ argument
31 part_stat_get_cpu(part, field, smp_processor_id())
33 #define part_stat_read(part, field) \ argument
35 typeof((part)->dkstats->field) res = 0; \
38 res += per_cpu_ptr((part)->dkstats, _cpu)->field; \
51 #define part_stat_read_accum(part, field) \ argument
52 (part_stat_read(part, field[STAT_READ]) + \
53 part_stat_read(part, field[STAT_WRITE]) + \
54 part_stat_read(part, field[STAT_DISCARD]))
56 #define __part_stat_add(part, field, addnd) \ argument
57 __this_cpu_add((part)->dkstats->field, addnd)
59 #define part_stat_add(part, field, addnd) do { \ argument
60 __part_stat_add((part), field, addnd); \
63 field, addnd); \
66 #define part_stat_dec(gendiskp, field) \ argument
67 part_stat_add(gendiskp, field, -1)
68 #define part_stat_inc(gendiskp, field) \ argument
69 part_stat_add(gendiskp, field, 1)
70 #define part_stat_sub(gendiskp, field, subnd) \ argument
71 part_stat_add(gendiskp, field, -subnd)
73 #define part_stat_local_dec(gendiskp, field) \ argument
74 local_dec(&(part_stat_get(gendiskp, field)))
75 #define part_stat_local_inc(gendiskp, field) \ argument
76 local_inc(&(part_stat_get(gendiskp, field)))
77 #define part_stat_local_read(gendiskp, field) \ argument
78 local_read(&(part_stat_get(gendiskp, field)))
79 #define part_stat_local_read_cpu(gendiskp, field, cpu) \ argument
80 local_read(&(part_stat_get_cpu(gendiskp, field, cpu)))