Searched refs:lockref (Results 1 – 2 of 2) sorted by relevance
11 struct lockref old; \13 old.lock_count = READ_ONCE(lockref->lock_count); \15 struct lockref new = old, prev = old; \17 old.lock_count = cmpxchg64_relaxed(&lockref->lock_count, \40 void lockref_get(struct lockref *lockref) in lockref_get() argument48 spin_lock(&lockref->lock); in lockref_get()49 lockref->count++; in lockref_get()50 spin_unlock(&lockref->lock); in lockref_get()59 int lockref_get_not_zero(struct lockref *lockref) in lockref_get_not_zero() argument71 spin_lock(&lockref->lock); in lockref_get_not_zero()[all …]
35 obj-y += lockref.o