Lines Matching refs:count
43 CMPXCHG_LOOP(lock_ref, ++new.count;, return;); in lockref_inc()
47 ++lock_ref->count; in lockref_inc()
63 if (old.count <= 0) in lockref_inc_not_zero()
65 ++new.count; in lockref_inc_not_zero()
72 if (lock_ref->count > 0) in lockref_inc_not_zero()
74 ++lock_ref->count; in lockref_inc_not_zero()
96 if (old.count <= 0) in lockref_dec()
98 --new.count; in lockref_dec()
100 { return new.count; }) in lockref_dec()
105 if (lock_ref->count > 0) in lockref_dec()
107 --lock_ref->count; in lockref_dec()
108 retval = lock_ref->count; in lockref_dec()
130 if (old.count <= 0) in lockref_dec_return()
132 --new.count; in lockref_dec_return()
134 { return new.count; }) in lockref_dec_return()
154 if (old.count <= 1) in lockref_dec_not_zero()
156 --new.count; in lockref_dec_not_zero()
162 if (lock_ref->count > 1) in lockref_dec_not_zero()
164 --lock_ref->count; in lockref_dec_not_zero()
186 if (old.count <= 1) in lockref_dec_or_lock_not_zero()
188 --new.count; in lockref_dec_or_lock_not_zero()
194 if (lock_ref->count > 1) in lockref_dec_or_lock_not_zero()
196 --lock_ref->count; in lockref_dec_or_lock_not_zero()
212 lock_ref->count = -128; in lockref_mark_dead()
227 if (old.count < 0) in lockref_inc_not_dead()
229 ++new.count; in lockref_inc_not_dead()
236 if (lock_ref->count >= 0) in lockref_inc_not_dead()
238 ++lock_ref->count; in lockref_inc_not_dead()