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()
265 percpu_ref_func_t *confirm_switch) in __percpu_ref_switch_mode() argument
276 wait_event_lock_irq(percpu_ref_switch_waitq, !data->confirm_switch, in __percpu_ref_switch_mode()
280 __percpu_ref_switch_to_atomic(ref, confirm_switch); in __percpu_ref_switch_mode()
306 percpu_ref_func_t *confirm_switch) in percpu_ref_switch_to_atomic() argument
313 __percpu_ref_switch_mode(ref, confirm_switch); in percpu_ref_switch_to_atomic()
330 wait_event(percpu_ref_switch_waitq, !ref->data->confirm_switch); in percpu_ref_switch_to_atomic_sync()