Searched refs:percpu_count_ptr (Results 1 – 1 of 1) sorted by relevance
40 static unsigned long __percpu *percpu_count_ptr(struct percpu_ref *ref) in percpu_count_ptr() function43 (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 …]