Searched refs:sys_off (Results 1 – 2 of 2) sorted by relevance
39 struct sys_off_handler *sys_off; member98 struct sys_off_handler *sys_off; in pvpanic_synchronize_sys_off_handler() local100 if (!(pi->events & PVPANIC_SHUTDOWN) == !pi->sys_off) in pvpanic_synchronize_sys_off_handler()103 if (!pi->sys_off) { in pvpanic_synchronize_sys_off_handler()104 sys_off = register_sys_off_handler(SYS_OFF_MODE_POWER_OFF, SYS_OFF_PRIO_LOW, in pvpanic_synchronize_sys_off_handler()106 if (IS_ERR(sys_off)) in pvpanic_synchronize_sys_off_handler()107 dev_warn(dev, "Could not register sys_off_handler: %pe\n", sys_off); in pvpanic_synchronize_sys_off_handler()109 pi->sys_off = sys_off; in pvpanic_synchronize_sys_off_handler()111 unregister_sys_off_handler(pi->sys_off); in pvpanic_synchronize_sys_off_handler()112 pi->sys_off = NULL; in pvpanic_synchronize_sys_off_handler()[all …]
656 struct sys_off_handler *sys_off = NULL; in do_kernel_power_off() local666 sys_off = register_sys_off_handler(SYS_OFF_MODE_POWER_OFF, in do_kernel_power_off()672 unregister_sys_off_handler(sys_off); in do_kernel_power_off()