Searched refs:lock_ref (Results 1 – 2 of 2) sorted by relevance
40 void lockref_inc(struct lockref *lock_ref) in lockref_inc() argument43 CMPXCHG_LOOP(lock_ref, ++new.count;, return;); in lockref_inc()46 spin_lock(&lock_ref->lock); in lockref_inc()47 ++lock_ref->count; in lockref_inc()48 spin_unlock(&lock_ref->lock); in lockref_inc()58 bool lockref_inc_not_zero(struct lockref *lock_ref) in lockref_inc_not_zero() argument60 CMPXCHG_LOOP(lock_ref, in lockref_inc_not_zero()66 spin_lock(&lock_ref->lock); in lockref_inc_not_zero()68 if (lock_ref->count > 0) in lockref_inc_not_zero()70 ++lock_ref->count; in lockref_inc_not_zero()[all …]
30 void lockref_inc(struct lockref *lock_ref);39 bool lockref_inc_not_zero(struct lockref *lock_ref);51 int lockref_dec(struct lockref *lock_ref);63 int lockref_dec_return(struct lockref *lock_ref);76 bool lockref_dec_not_zero(struct lockref *lock_ref);88 bool lockref_dec_or_lock_not_zero(struct lockref *lock_ref);95 void lockref_mark_dead(struct lockref * lock_ref);104 bool lockref_inc_not_dead(struct lockref *lock_ref);