Lines Matching refs:counter
29 return __READ_ONCE((v)->counter); in arch_atomic_read()
41 __WRITE_ONCE(v->counter, i); in arch_atomic_set()
54 : "+m" (v->counter) in arch_atomic_add()
68 : "+m" (v->counter) in arch_atomic_sub()
83 return GEN_BINARY_RMWcc(LOCK_PREFIX "subl", v->counter, e, "er", i); in arch_atomic_sub_and_test()
96 : "+m" (v->counter) :: "memory"); in arch_atomic_inc()
109 : "+m" (v->counter) :: "memory"); in arch_atomic_dec()
123 return GEN_UNARY_RMWcc(LOCK_PREFIX "decl", v->counter, e); in arch_atomic_dec_and_test()
137 return GEN_UNARY_RMWcc(LOCK_PREFIX "incl", v->counter, e); in arch_atomic_inc_and_test()
152 return GEN_BINARY_RMWcc(LOCK_PREFIX "addl", v->counter, s, "er", i); in arch_atomic_add_negative()
165 return i + xadd(&v->counter, i); in arch_atomic_add_return()
184 return xadd(&v->counter, i); in arch_atomic_fetch_add()
190 return xadd(&v->counter, -i); in arch_atomic_fetch_sub()
196 return arch_cmpxchg(&v->counter, old, new); in arch_atomic_cmpxchg()
202 return try_cmpxchg(&v->counter, old, new); in arch_atomic_try_cmpxchg()
208 return arch_xchg(&v->counter, new); in arch_atomic_xchg()
215 : "+m" (v->counter) in arch_atomic_and()
233 : "+m" (v->counter) in arch_atomic_or()
251 : "+m" (v->counter) in arch_atomic_xor()