Lines Matching refs:old
133 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() argument
137 : "+d" (old), "+Q" (v->counter) in atomic_cmpxchg()
140 return old; in atomic_cmpxchg()
145 int c, old; in __atomic_add_unless() local
150 old = atomic_cmpxchg(v, c, c + a); in __atomic_add_unless()
151 if (likely(old == c)) in __atomic_add_unless()
153 c = old; in __atomic_add_unless()
263 long long old, long long new) in atomic64_cmpxchg() argument
267 : "+d" (old), "+Q" (v->counter) in atomic64_cmpxchg()
270 return old; in atomic64_cmpxchg()
277 long long c, old; in atomic64_add_unless() local
283 old = atomic64_cmpxchg(v, c, c + i); in atomic64_add_unless()
284 if (likely(old == c)) in atomic64_add_unless()
286 c = old; in atomic64_add_unless()
293 long long c, old, dec; in atomic64_dec_if_positive() local
300 old = atomic64_cmpxchg((v), c, dec); in atomic64_dec_if_positive()
301 if (likely(old == c)) in atomic64_dec_if_positive()
303 c = old; in atomic64_dec_if_positive()