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()
70 spin_lock(&lock_ref->lock); in lockref_inc_not_zero()
77 spin_unlock(&lock_ref->lock); in lockref_inc_not_zero()
104 spin_lock(&lock_ref->lock); in lockref_dec()
110 spin_unlock(&lock_ref->lock); in lockref_dec()
161 spin_lock(&lock_ref->lock); in lockref_dec_not_zero()
167 spin_unlock(&lock_ref->lock); in lockref_dec_not_zero()
193 spin_lock(&lock_ref->lock); in lockref_dec_or_lock_not_zero()
199 spin_unlock(&lock_ref->lock); in lockref_dec_or_lock_not_zero()
211 assert_spin_locked(&lock_ref->lock); in lockref_mark_dead()
235 spin_lock(&lock_ref->lock); in lockref_inc_not_dead()
241 spin_unlock(&lock_ref->lock); in lockref_inc_not_dead()