Lines Matching +full:3 +full:v

29 #define arch_atomic_read(v)	READ_ONCE((v)->counter)  argument
30 #define arch_atomic64_read(v) READ_ONCE((v)->counter) argument
32 #define arch_atomic_set(v,i) WRITE_ONCE((v)->counter, (i)) argument
33 #define arch_atomic64_set(v,i) WRITE_ONCE((v)->counter, (i)) argument
42 static __inline__ void arch_atomic_##op(int i, atomic_t * v) \
53 :"=&r" (temp), "=m" (v->counter) \
54 :"Ir" (i), "m" (v->counter)); \
58 static inline int arch_atomic_##op##_return_relaxed(int i, atomic_t *v) \
63 " " #asm_op " %0,%3,%2\n" \
64 " " #asm_op " %0,%3,%0\n" \
70 :"=&r" (temp), "=m" (v->counter), "=&r" (result) \
71 :"Ir" (i), "m" (v->counter) : "memory"); \
77 static inline int arch_atomic_fetch_##op##_relaxed(int i, atomic_t *v) \
82 " " #asm_op " %2,%3,%0\n" \
88 :"=&r" (temp), "=m" (v->counter), "=&r" (result) \
89 :"Ir" (i), "m" (v->counter) : "memory"); \
95 static __inline__ void arch_atomic64_##op(s64 i, atomic64_t * v) \
106 :"=&r" (temp), "=m" (v->counter) \
107 :"Ir" (i), "m" (v->counter)); \
112 arch_atomic64_##op##_return_relaxed(s64 i, atomic64_t * v) \
117 " " #asm_op " %0,%3,%2\n" \
118 " " #asm_op " %0,%3,%0\n" \
124 :"=&r" (temp), "=m" (v->counter), "=&r" (result) \
125 :"Ir" (i), "m" (v->counter) : "memory"); \
132 arch_atomic64_fetch_##op##_relaxed(s64 i, atomic64_t * v) \
137 " " #asm_op " %2,%3,%0\n" \
143 :"=&r" (temp), "=m" (v->counter), "=&r" (result) \
144 :"Ir" (i), "m" (v->counter) : "memory"); \
203 static __inline__ int arch_atomic_fetch_add_unless(atomic_t *v, int a, int u) in ATOMIC_OPS()
213 " beq %[new],3f\n" in ATOMIC_OPS()
216 "3: br 1b\n" in ATOMIC_OPS()
219 : [mem] "m"(*v), [a] "rI"(a), [u] "rI"((long)u) in ATOMIC_OPS()
226 static __inline__ s64 arch_atomic64_fetch_add_unless(atomic64_t *v, s64 a, s64 u) in arch_atomic64_fetch_add_unless() argument
236 " beq %[new],3f\n" in arch_atomic64_fetch_add_unless()
239 "3: br 1b\n" in arch_atomic64_fetch_add_unless()
242 : [mem] "m"(*v), [a] "rI"(a), [u] "rI"(u) in arch_atomic64_fetch_add_unless()
249 static inline s64 arch_atomic64_dec_if_positive(atomic64_t *v) in arch_atomic64_dec_if_positive() argument
258 " beq %[tmp],3f\n" in arch_atomic64_dec_if_positive()
261 "3: br 1b\n" in arch_atomic64_dec_if_positive()
264 : [mem] "m"(*v) in arch_atomic64_dec_if_positive()