Lines Matching refs:counter
24 c = v->counter; \
25 while ((old = arch_cmpxchg(&v->counter, c, c c_op i)) != c) \
34 c = v->counter; \
35 while ((old = arch_cmpxchg(&v->counter, c, c c_op i)) != c) \
46 c = v->counter; \
47 while ((old = arch_cmpxchg(&v->counter, c, c c_op i)) != c) \
63 v->counter = v->counter c_op i; \
74 ret = (v->counter = v->counter c_op i); \
87 ret = v->counter; \
88 v->counter = v->counter c_op i; \
130 #define arch_atomic_read(v) READ_ONCE((v)->counter)
131 #define arch_atomic_set(v, i) WRITE_ONCE(((v)->counter), (i))
133 #define arch_atomic_xchg(ptr, v) (arch_xchg(&(ptr)->counter, (v)))
134 #define arch_atomic_cmpxchg(v, old, new) (arch_cmpxchg(&((v)->counter), (old), (new)))