Lines Matching refs:old
8 * Note that the "cmpxchg()" reloads the "old" value for the
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)) { \
68 if (old.count <= 0)
96 if (old.count <= 1)
123 if (old.count <= 0)
149 if (old.count <= 0)
167 if (old.count <= 1)
204 if (old.count < 0)