Lines Matching refs:old
13 struct lockref old; \
14 BUILD_BUG_ON(sizeof(old) != 8); \
15 old.lock_count = READ_ONCE(lockref->lock_count); \
16 while (likely(arch_spin_value_unlocked(old.lock.rlock.raw_lock))) { \
17 struct lockref new = old, prev = old; \
19 old.lock_count = cmpxchg64_relaxed(&lockref->lock_count, \
20 old.lock_count, \
22 if (likely(old.lock_count == prev.lock_count)) { \
69 if (old.count <= 0) in lockref_get_not_zero()
97 if (old.count <= 1) in lockref_put_not_zero()
124 if (old.count <= 0) in lockref_get_or_lock()
150 if (old.count <= 0) in lockref_put_return()
168 if (old.count <= 1) in lockref_put_or_lock()
205 if (old.count < 0) in lockref_get_not_dead()