Lines Matching refs:percpu_count
109 unsigned long __percpu *percpu_count = percpu_count_ptr(ref); in __percpu_ref_exit() local
111 if (percpu_count) { in __percpu_ref_exit()
114 free_percpu(percpu_count); in __percpu_ref_exit()
171 unsigned long __percpu *percpu_count = percpu_count_ptr(ref); in percpu_ref_switch_to_atomic_rcu() local
177 count += *per_cpu_ptr(percpu_count, cpu); in percpu_ref_switch_to_atomic_rcu()
237 unsigned long __percpu *percpu_count = percpu_count_ptr(ref); in __percpu_ref_switch_to_percpu() local
240 BUG_ON(!percpu_count); in __percpu_ref_switch_to_percpu()
257 *per_cpu_ptr(percpu_count, cpu) = 0; in __percpu_ref_switch_to_percpu()
410 unsigned long __percpu *percpu_count; in percpu_ref_is_zero() local
413 if (__ref_is_percpu(ref, &percpu_count)) in percpu_ref_is_zero()
463 unsigned long __percpu *percpu_count; in percpu_ref_resurrect() local
469 WARN_ON_ONCE(__ref_is_percpu(ref, &percpu_count)); in percpu_ref_resurrect()