Home
last modified time | relevance | path

Searched refs:percpu_count_ptr (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/lib/
Dpercpu-refcount.c40 static unsigned long __percpu *percpu_count_ptr(struct percpu_ref *ref) in percpu_count_ptr() function
43 (ref->percpu_count_ptr & ~__PERCPU_REF_ATOMIC_DEAD); in percpu_count_ptr()
67 ref->percpu_count_ptr = (unsigned long) in percpu_ref_init()
69 if (!ref->percpu_count_ptr) in percpu_ref_init()
76 ref->percpu_count_ptr |= __PERCPU_REF_ATOMIC; in percpu_ref_init()
83 ref->percpu_count_ptr |= __PERCPU_REF_DEAD; in percpu_ref_init()
107 unsigned long __percpu *percpu_count = percpu_count_ptr(ref); in percpu_ref_exit()
113 ref->percpu_count_ptr = __PERCPU_REF_ATOMIC_DEAD; in percpu_ref_exit()
136 unsigned long __percpu *percpu_count = percpu_count_ptr(ref); in percpu_ref_switch_to_atomic_rcu()
175 if (ref->percpu_count_ptr & __PERCPU_REF_ATOMIC) { in __percpu_ref_switch_to_atomic()
[all …]
/Linux-v5.4/include/linux/
Dpercpu-refcount.h101 unsigned long percpu_count_ptr; member
161 percpu_ptr = READ_ONCE(ref->percpu_count_ptr); in __ref_is_percpu()
265 } else if (!(ref->percpu_count_ptr & __PERCPU_REF_DEAD)) { in percpu_ref_tryget_live()
323 return ref->percpu_count_ptr & __PERCPU_REF_DEAD; in percpu_ref_is_dying()
/Linux-v5.4/drivers/md/
Dmd.c5373 if (mddev->writes_pending.percpu_count_ptr) in mddev_init_writes_pending()