Lines Matching defs:ref
37 refcount_set(refcount_t *ref, unsigned int i)
39 atomic_set(ref, i);
43 refcount_inc(refcount_t *ref)
45 atomic_inc(ref);
49 refcount_inc_not_zero(refcount_t *ref)
51 return (atomic_inc_not_zero(ref));
55 refcount_dec(refcount_t *ref)
57 atomic_dec(ref);
61 refcount_read(refcount_t *ref)
63 return atomic_read(ref);
67 refcount_dec_and_lock_irqsave(refcount_t *ref, spinlock_t *lock,
70 if (atomic_dec_and_test(ref) == true) {