Lines Matching defs:ref
211 vn_refcount_load_relaxed(const struct vn_refcount *ref)
213 return atomic_load_explicit(&ref->count, memory_order_relaxed);
217 vn_refcount_fetch_add_relaxed(struct vn_refcount *ref, int val)
219 return atomic_fetch_add_explicit(&ref->count, val, memory_order_relaxed);
223 vn_refcount_fetch_sub_release(struct vn_refcount *ref, int val)
225 return atomic_fetch_sub_explicit(&ref->count, val, memory_order_release);
229 vn_refcount_is_valid(const struct vn_refcount *ref)
231 return vn_refcount_load_relaxed(ref) > 0;
235 vn_refcount_inc(struct vn_refcount *ref)
238 ASSERTED const int old = vn_refcount_fetch_add_relaxed(ref, 1);
243 vn_refcount_dec(struct vn_refcount *ref)
246 const int old = vn_refcount_fetch_sub_release(ref, 1);