Lines Matching refs:count
45 new.count++; in lockref_get()
51 lockref->count++; in lockref_get()
66 new.count++; in lockref_get_not_zero()
67 if (old.count <= 0) in lockref_get_not_zero()
75 if (lockref->count > 0) { in lockref_get_not_zero()
76 lockref->count++; in lockref_get_not_zero()
94 new.count--; in lockref_put_not_zero()
95 if (old.count <= 1) in lockref_put_not_zero()
103 if (lockref->count > 1) { in lockref_put_not_zero()
104 lockref->count--; in lockref_put_not_zero()
122 new.count--; in lockref_put_return()
123 if (old.count <= 0) in lockref_put_return()
126 return new.count; in lockref_put_return()
140 new.count--; in lockref_put_or_lock()
141 if (old.count <= 1) in lockref_put_or_lock()
148 if (lockref->count <= 1) in lockref_put_or_lock()
150 lockref->count--; in lockref_put_or_lock()
163 lockref->count = -128; in lockref_mark_dead()
177 new.count++; in lockref_get_not_dead()
178 if (old.count < 0) in lockref_get_not_dead()
186 if (lockref->count >= 0) { in lockref_get_not_dead()
187 lockref->count++; in lockref_get_not_dead()