Lines Matching refs:c
76 int c; in atomic_read() local
80 : "=d" (c) : "Q" (v->counter)); in atomic_read()
81 return c; in atomic_read()
148 int c, old; in __atomic_add_unless() local
149 c = atomic_read(v); in __atomic_add_unless()
151 if (unlikely(c == u)) in __atomic_add_unless()
153 old = atomic_cmpxchg(v, c, c + a); in __atomic_add_unless()
154 if (likely(old == c)) in __atomic_add_unless()
156 c = old; in __atomic_add_unless()
158 return c; in __atomic_add_unless()
219 long long c; in atomic64_read() local
223 : "=d" (c) : "Q" (v->counter)); in atomic64_read()
224 return c; in atomic64_read()
282 long long c, old; in ATOMIC64_OP() local
284 c = atomic64_read(v); in ATOMIC64_OP()
286 if (unlikely(c == u)) in ATOMIC64_OP()
288 old = atomic64_cmpxchg(v, c, c + i); in ATOMIC64_OP()
289 if (likely(old == c)) in ATOMIC64_OP()
291 c = old; in ATOMIC64_OP()
293 return c != u; in ATOMIC64_OP()
298 long long c, old, dec; in atomic64_dec_if_positive() local
300 c = atomic64_read(v); in atomic64_dec_if_positive()
302 dec = c - 1; in atomic64_dec_if_positive()
305 old = atomic64_cmpxchg((v), c, dec); in atomic64_dec_if_positive()
306 if (likely(old == c)) in atomic64_dec_if_positive()
308 c = old; in atomic64_dec_if_positive()