Lines Matching refs:old
10 … struct lockref old; \
11 … BUILD_BUG_ON(sizeof(old) != sizeof(uint64_t)); \
12 … old.lock_count = READ_ONCE(__lock_ref->lock_count); \
13 … while (likely(!spin_is_locked(&old.lock))) \
15 … struct lockref new = old; \
17 … if (likely(arch_try_cmpxchg(&__lock_ref->lock_count, &old.lock_count, new.lock_count))) \
63 if (old.count <= 0) in lockref_inc_not_zero()
96 if (old.count <= 0) in lockref_dec()
130 if (old.count <= 0) in lockref_dec_return()
154 if (old.count <= 1) in lockref_dec_not_zero()
186 if (old.count <= 1) in lockref_dec_or_lock_not_zero()
227 if (old.count < 0) in lockref_inc_not_dead()