Lines Matching refs:lock
13 … while (likely(!spin_is_locked(&old.lock))) \
46 spin_lock(&lock_ref->lock); in lockref_inc()
48 spin_unlock(&lock_ref->lock); in lockref_inc()
66 spin_lock(&lock_ref->lock); in lockref_inc_not_zero()
73 spin_unlock(&lock_ref->lock); in lockref_inc_not_zero()
97 spin_lock(&lock_ref->lock); in lockref_dec()
103 spin_unlock(&lock_ref->lock); in lockref_dec()
148 spin_lock(&lock_ref->lock); in lockref_dec_not_zero()
154 spin_unlock(&lock_ref->lock); in lockref_dec_not_zero()
177 spin_lock(&lock_ref->lock); in lockref_dec_or_lock_not_zero()
183 spin_unlock(&lock_ref->lock); in lockref_dec_or_lock_not_zero()
195 assert_spin_locked(&lock_ref->lock); in lockref_mark_dead()
216 spin_lock(&lock_ref->lock); in lockref_inc_not_dead()
222 spin_unlock(&lock_ref->lock); in lockref_inc_not_dead()