Lines Matching refs:c
46 int val, c = hint; in atomic_inc_not_zero_hint() local
53 val = atomic_cmpxchg(v, c, c + 1); in atomic_inc_not_zero_hint()
54 if (val == c) in atomic_inc_not_zero_hint()
56 c = val; in atomic_inc_not_zero_hint()
57 } while (c); in atomic_inc_not_zero_hint()
99 int c, old, dec; in atomic_dec_if_positive() local
100 c = atomic_read(v); in atomic_dec_if_positive()
102 dec = c - 1; in atomic_dec_if_positive()
105 old = atomic_cmpxchg((v), c, dec); in atomic_dec_if_positive()
106 if (likely(old == c)) in atomic_dec_if_positive()
108 c = old; in atomic_dec_if_positive()