Lines Matching refs:confirm_switch
90 ref->confirm_switch = NULL; in percpu_ref_init()
111 WARN_ON_ONCE(ref->confirm_switch); in percpu_ref_exit()
122 ref->confirm_switch(ref); in percpu_ref_call_confirm_rcu()
123 ref->confirm_switch = NULL; in percpu_ref_call_confirm_rcu()
173 percpu_ref_func_t *confirm_switch) in __percpu_ref_switch_to_atomic() argument
176 if (confirm_switch) in __percpu_ref_switch_to_atomic()
177 confirm_switch(ref); in __percpu_ref_switch_to_atomic()
188 ref->confirm_switch = confirm_switch ?: percpu_ref_noop_confirm_switch; in __percpu_ref_switch_to_atomic()
223 percpu_ref_func_t *confirm_switch) in __percpu_ref_switch_mode() argument
232 wait_event_lock_irq(percpu_ref_switch_waitq, !ref->confirm_switch, in __percpu_ref_switch_mode()
236 __percpu_ref_switch_to_atomic(ref, confirm_switch); in __percpu_ref_switch_mode()
262 percpu_ref_func_t *confirm_switch) in percpu_ref_switch_to_atomic() argument
269 __percpu_ref_switch_mode(ref, confirm_switch); in percpu_ref_switch_to_atomic()
286 wait_event(percpu_ref_switch_waitq, !ref->confirm_switch); in percpu_ref_switch_to_atomic_sync()