Lines Matching refs:nb
52 struct notifier_block nb; member
99 int register_reboot_notifier(struct notifier_block *nb) in register_reboot_notifier() argument
101 return blocking_notifier_chain_register(&reboot_notifier_list, nb); in register_reboot_notifier()
114 int unregister_reboot_notifier(struct notifier_block *nb) in unregister_reboot_notifier() argument
116 return blocking_notifier_chain_unregister(&reboot_notifier_list, nb); in unregister_reboot_notifier()
125 int devm_register_reboot_notifier(struct device *dev, struct notifier_block *nb) in devm_register_reboot_notifier() argument
135 ret = register_reboot_notifier(nb); in devm_register_reboot_notifier()
137 *rcnb = nb; in devm_register_reboot_notifier()
191 int register_restart_handler(struct notifier_block *nb) in register_restart_handler() argument
193 return atomic_notifier_chain_register(&restart_handler_list, nb); in register_restart_handler()
206 int unregister_restart_handler(struct notifier_block *nb) in unregister_restart_handler() argument
208 return atomic_notifier_chain_unregister(&restart_handler_list, nb); in unregister_restart_handler()
316 static int sys_off_notify(struct notifier_block *nb, in sys_off_notify() argument
322 handler = container_of(nb, struct sys_off_handler, nb); in sys_off_notify()
425 handler->nb.notifier_call = sys_off_notify; in register_sys_off_handler()
426 handler->nb.priority = priority; in register_sys_off_handler()
434 &handler->nb); in register_sys_off_handler()
437 &handler->nb); in register_sys_off_handler()
441 &handler->nb); in register_sys_off_handler()
444 &handler->nb); in register_sys_off_handler()
471 &handler->nb); in unregister_sys_off_handler()
474 &handler->nb); in unregister_sys_off_handler()