Lines Matching refs:confirm_switch
101 data->confirm_switch = NULL; in percpu_ref_init()
114 WARN_ON_ONCE(ref->data && ref->data->confirm_switch); in __percpu_ref_exit()
156 data->confirm_switch(ref); in percpu_ref_call_confirm_rcu()
157 data->confirm_switch = NULL; in percpu_ref_call_confirm_rcu()
214 percpu_ref_func_t *confirm_switch) in __percpu_ref_switch_to_atomic() argument
217 if (confirm_switch) in __percpu_ref_switch_to_atomic()
218 confirm_switch(ref); in __percpu_ref_switch_to_atomic()
229 ref->data->confirm_switch = confirm_switch ?: in __percpu_ref_switch_to_atomic()
266 percpu_ref_func_t *confirm_switch) in __percpu_ref_switch_mode() argument
277 wait_event_lock_irq(percpu_ref_switch_waitq, !data->confirm_switch, in __percpu_ref_switch_mode()
281 __percpu_ref_switch_to_atomic(ref, confirm_switch); in __percpu_ref_switch_mode()
307 percpu_ref_func_t *confirm_switch) in percpu_ref_switch_to_atomic() argument
314 __percpu_ref_switch_mode(ref, confirm_switch); in percpu_ref_switch_to_atomic()
331 wait_event(percpu_ref_switch_waitq, !ref->data->confirm_switch); in percpu_ref_switch_to_atomic_sync()