Lines Matching refs:counter
22 return __READ_ONCE((v)->counter); in arch_atomic64_read()
34 __WRITE_ONCE(v->counter, i); in arch_atomic64_set()
47 : "=m" (v->counter) in arch_atomic64_add()
48 : "er" (i), "m" (v->counter) : "memory"); in arch_atomic64_add()
61 : "=m" (v->counter) in arch_atomic64_sub()
62 : "er" (i), "m" (v->counter) : "memory"); in arch_atomic64_sub()
76 return GEN_BINARY_RMWcc(LOCK_PREFIX "subq", v->counter, e, "er", i); in arch_atomic64_sub_and_test()
89 : "=m" (v->counter) in arch_atomic64_inc()
90 : "m" (v->counter) : "memory"); in arch_atomic64_inc()
103 : "=m" (v->counter) in arch_atomic64_dec()
104 : "m" (v->counter) : "memory"); in arch_atomic64_dec()
118 return GEN_UNARY_RMWcc(LOCK_PREFIX "decq", v->counter, e); in arch_atomic64_dec_and_test()
132 return GEN_UNARY_RMWcc(LOCK_PREFIX "incq", v->counter, e); in arch_atomic64_inc_and_test()
147 return GEN_BINARY_RMWcc(LOCK_PREFIX "addq", v->counter, s, "er", i); in arch_atomic64_add_negative()
160 return i + xadd(&v->counter, i); in arch_atomic64_add_return()
172 return xadd(&v->counter, i); in arch_atomic64_fetch_add()
178 return xadd(&v->counter, -i); in arch_atomic64_fetch_sub()
184 return arch_cmpxchg(&v->counter, old, new); in arch_atomic64_cmpxchg()
190 return arch_try_cmpxchg(&v->counter, old, new); in arch_atomic64_try_cmpxchg()
196 return arch_xchg(&v->counter, new); in arch_atomic64_xchg()
203 : "+m" (v->counter) in arch_atomic64_and()
221 : "+m" (v->counter) in arch_atomic64_or()
239 : "+m" (v->counter) in arch_atomic64_xor()