Lines Matching refs:confirm_switch
100 data->confirm_switch = NULL; in percpu_ref_init()
113 WARN_ON_ONCE(ref->data && ref->data->confirm_switch); in __percpu_ref_exit()
155 data->confirm_switch(ref); in percpu_ref_call_confirm_rcu()
156 data->confirm_switch = NULL; in percpu_ref_call_confirm_rcu()
213 percpu_ref_func_t *confirm_switch) in __percpu_ref_switch_to_atomic() argument
216 if (confirm_switch) in __percpu_ref_switch_to_atomic()
217 confirm_switch(ref); in __percpu_ref_switch_to_atomic()
228 ref->data->confirm_switch = confirm_switch ?: in __percpu_ref_switch_to_atomic()
264 percpu_ref_func_t *confirm_switch) in __percpu_ref_switch_mode() argument
275 wait_event_lock_irq(percpu_ref_switch_waitq, !data->confirm_switch, in __percpu_ref_switch_mode()
279 __percpu_ref_switch_to_atomic(ref, confirm_switch); in __percpu_ref_switch_mode()
305 percpu_ref_func_t *confirm_switch) in percpu_ref_switch_to_atomic() argument
312 __percpu_ref_switch_mode(ref, confirm_switch); in percpu_ref_switch_to_atomic()
329 wait_event(percpu_ref_switch_waitq, !ref->data->confirm_switch); in percpu_ref_switch_to_atomic_sync()