Lines Matching defs:kr_count
45 unsigned int kr_count;
51 atomic_store_relaxed(&kref->kr_count, 1);
58 atomic_inc_uint_nv(&kref->kr_count);
69 count = atomic_load_relaxed(&kref->kr_count);
72 } while (atomic_cas_uint(&kref->kr_count, count, (count + 1)) !=
86 old = atomic_load_relaxed(&kref->kr_count);
90 } while (atomic_cas_uint(&kref->kr_count, old, new) != old);
110 old = atomic_load_relaxed(&kref->kr_count);
114 if (atomic_add_int_nv(&kref->kr_count, -1) == 0) {
123 } while (atomic_cas_uint(&kref->kr_count, old, new) != old);
144 old = atomic_load_relaxed(&kref->kr_count);
148 if (atomic_add_int_nv(&kref->kr_count, -1) == 0) {
157 } while (atomic_cas_uint(&kref->kr_count, old, new) != old);
166 return atomic_load_relaxed(&kref->kr_count);
177 return (0 < kref->kr_count);
184 KASSERT(0 < kref->kr_count);
185 return (kref->kr_count == 1);