Lines Matching refs:ref
42 refcount_set(refcount_t *ref, unsigned int i) in refcount_set() argument
44 atomic_set(&ref->value, i); in refcount_set()
48 refcount_inc(refcount_t *ref) in refcount_inc() argument
50 atomic_inc(&ref->value); in refcount_inc()
54 refcount_inc_not_zero(refcount_t *ref) in refcount_inc_not_zero() argument
56 return (atomic_inc_not_zero(&ref->value)); in refcount_inc_not_zero()
60 refcount_dec(refcount_t *ref) in refcount_dec() argument
62 atomic_dec(&ref->value); in refcount_dec()
66 refcount_read(refcount_t *ref) in refcount_read() argument
68 return atomic_read(&ref->value); in refcount_read()
72 refcount_dec_and_lock_irqsave(refcount_t *ref, spinlock_t *lock, in refcount_dec_and_lock_irqsave() argument
75 if (atomic_dec_and_test(&ref->value) == true) { in refcount_dec_and_lock_irqsave()