Lines Matching refs:cmd
35 const char *cmd) in get_reboot_mode_magic() argument
41 if (!cmd || !cmd[0]) in get_reboot_mode_magic()
42 cmd = normal; in get_reboot_mode_magic()
45 if (!strcmp(info->mode, cmd)) { in get_reboot_mode_magic()
57 const void *cmd) in reboot_mode_write() argument
61 magic = get_reboot_mode_magic(reboot, cmd); in reboot_mode_write()
71 unsigned long mode, void *cmd) in reboot_mode_notify() argument
76 reboot_mode_write(reboot, cmd); in reboot_mode_notify()
82 unsigned long mode, void *cmd) in reboot_mode_pre_restart_notify() argument
87 if (cmd || !last_magic) in reboot_mode_pre_restart_notify()
88 reboot_mode_write(reboot, cmd); in reboot_mode_pre_restart_notify()
97 const char *cmd = "panic"; in reboot_mode_panic_notify() local
100 reboot_mode_write(reboot, cmd); in reboot_mode_panic_notify()