Searched refs:kr_count (Results 1 – 1 of 1) sorted by relevance
45 unsigned int kr_count; member51 atomic_store_relaxed(&kref->kr_count, 1); in kref_init()58 atomic_inc_uint_nv(&kref->kr_count); in kref_get()69 count = atomic_load_relaxed(&kref->kr_count); in kref_get_unless_zero()72 } while (atomic_cas_uint(&kref->kr_count, count, (count + 1)) != in kref_get_unless_zero()86 old = atomic_load_relaxed(&kref->kr_count); in kref_sub()90 } while (atomic_cas_uint(&kref->kr_count, old, new) != old); in kref_sub()110 old = atomic_load_relaxed(&kref->kr_count); in kref_put_lock()114 if (atomic_add_int_nv(&kref->kr_count, -1) == 0) { in kref_put_lock()123 } while (atomic_cas_uint(&kref->kr_count, old, new) != old); in kref_put_lock()[all …]