Lines Matching refs:counter
30 __asm__ __volatile__("lwz%U1%X1 %0,%1" : "=r"(t) : "m<>"(v->counter)); in arch_atomic_read()
37 __asm__ __volatile__("stw%U0%X0 %1,%0" : "=m<>"(v->counter) : "r"(i)); in arch_atomic_set()
50 : "=&r" (t), "+m" (v->counter) \
51 : "r" (a), "r" (&v->counter) \
65 : "=&r" (t), "+m" (v->counter) \
66 : "r" (a), "r" (&v->counter) \
82 : "=&r" (res), "=&r" (t), "+m" (v->counter) \
83 : "r" (a), "r" (&v->counter) \
130 : "=&r" (t), "+m" (v->counter) in ATOMIC_OPS()
131 : "r" (&v->counter) in ATOMIC_OPS()
145 : "=&r" (t), "+m" (v->counter) in arch_atomic_inc_return_relaxed()
146 : "r" (&v->counter) in arch_atomic_inc_return_relaxed()
161 : "=&r" (t), "+m" (v->counter) in arch_atomic_dec()
162 : "r" (&v->counter) in arch_atomic_dec()
176 : "=&r" (t), "+m" (v->counter) in arch_atomic_dec_return_relaxed()
177 : "r" (&v->counter) in arch_atomic_dec_return_relaxed()
187 (arch_cmpxchg(&((v)->counter), (o), (n)))
189 arch_cmpxchg_relaxed(&((v)->counter), (o), (n))
191 arch_cmpxchg_acquire(&((v)->counter), (o), (n))
194 (arch_xchg(&((v)->counter), new))
196 arch_xchg_relaxed(&((v)->counter), (new))
217 : "=&r" (r), "+m" (v->counter) in arch_atomic_try_cmpxchg_lock()
218 : "r" (&v->counter), "r" (o), "r" (new), "i" (IS_ENABLED(CONFIG_PPC64) ? 1 : 0) in arch_atomic_try_cmpxchg_lock()
251 : "r" (&v->counter), "r" (a), "r" (u) in arch_atomic_fetch_add_unless()
281 : "r" (&v->counter) in arch_atomic_inc_not_zero()
308 : "r" (&v->counter) in arch_atomic_dec_if_positive()
323 __asm__ __volatile__("ld%U1%X1 %0,%1" : "=r"(t) : "m<>"(v->counter)); in arch_atomic64_read()
330 __asm__ __volatile__("std%U0%X0 %1,%0" : "=m<>"(v->counter) : "r"(i)); in arch_atomic64_set()
343 : "=&r" (t), "+m" (v->counter) \
344 : "r" (a), "r" (&v->counter) \
359 : "=&r" (t), "+m" (v->counter) \
360 : "r" (a), "r" (&v->counter) \
377 : "=&r" (res), "=&r" (t), "+m" (v->counter) \
378 : "r" (a), "r" (&v->counter) \
425 : "=&r" (t), "+m" (v->counter) in ATOMIC64_OPS()
426 : "r" (&v->counter) in ATOMIC64_OPS()
440 : "=&r" (t), "+m" (v->counter) in arch_atomic64_inc_return_relaxed()
441 : "r" (&v->counter) in arch_atomic64_inc_return_relaxed()
456 : "=&r" (t), "+m" (v->counter) in arch_atomic64_dec()
457 : "r" (&v->counter) in arch_atomic64_dec()
471 : "=&r" (t), "+m" (v->counter) in arch_atomic64_dec_return_relaxed()
472 : "r" (&v->counter) in arch_atomic64_dec_return_relaxed()
499 : "r" (&v->counter) in arch_atomic64_dec_if_positive()
507 (arch_cmpxchg(&((v)->counter), (o), (n)))
509 arch_cmpxchg_relaxed(&((v)->counter), (o), (n))
511 arch_cmpxchg_acquire(&((v)->counter), (o), (n))
514 (arch_xchg(&((v)->counter), new))
516 arch_xchg_relaxed(&((v)->counter), (new))
543 : "r" (&v->counter), "r" (a), "r" (u) in arch_atomic64_fetch_add_unless()
573 : "r" (&v->counter) in arch_atomic64_inc_not_zero()