| /linux/drivers/power/reset/ |
| H A D | macsmc-reboot.c | 3 * Apple SMC Reboot/Poweroff Handler 14 #include <linux/reboot.h> 89 struct macsmc_reboot *reboot = data->cb_data; in macsmc_prepare_atomic() local 91 dev_info(reboot->dev, "Preparing SMC for atomic mode\n"); in macsmc_prepare_atomic() 93 apple_smc_enter_atomic(reboot->smc); in macsmc_prepare_atomic() 99 struct macsmc_reboot *reboot = data->cb_data; in macsmc_power_off() local 101 dev_info(reboot->dev, "Issuing power off (off1)\n"); in macsmc_power_off() 103 if (apple_smc_write_u32_atomic(reboot->smc, SMC_KEY(MBSE), SMC_KEY(off1)) < 0) { in macsmc_power_off() 104 dev_err(reboot->dev, "Failed to issue MBSE = off1 (power_off)\n"); in macsmc_power_off() 115 struct macsmc_reboot *reboot = data->cb_data; in macsmc_restart() local [all …]
|
| H A D | syscon-reboot-mode.c | 11 #include <linux/reboot.h> 14 #include <linux/reboot-mode.h> 18 struct reboot_mode_driver reboot; member 23 static int syscon_reboot_mode_write(struct reboot_mode_driver *reboot, in syscon_reboot_mode_write() argument 29 syscon_rbm = container_of(reboot, struct syscon_reboot_mode, reboot); in syscon_reboot_mode_write() 34 dev_err(reboot->dev, "update reboot mode bits failed\n"); in syscon_reboot_mode_write() 48 syscon_rbm->reboot.dev = &pdev->dev; in syscon_reboot_mode_probe() 49 syscon_rbm->reboot.write = syscon_reboot_mode_write; in syscon_reboot_mode_probe() 62 ret = devm_reboot_mode_register(&pdev->dev, &syscon_rbm->reboot); in syscon_reboot_mode_probe() 64 dev_err(&pdev->dev, "can't register reboot mode\n"); in syscon_reboot_mode_probe() [all …]
|
| H A D | xgene-reboot.c | 3 * AppliedMicro X-Gene SoC Reboot Driver 9 * This driver provides system reboot functionality for APM X-Gene SoC. 19 #include <linux/reboot.h> 33 /* Issue the reboot */ in xgene_restart_handler() 72 { .compatible = "apm,xgene-reboot" }, 79 .name = "xgene-reboot",
|
| H A D | qcom-pon.c | 11 #include <linux/reboot.h> 12 #include <linux/reboot-mode.h> 30 static int qcom_pon_reboot_mode_write(struct reboot_mode_driver *reboot, in qcom_pon_reboot_mode_write() argument 34 (reboot, struct qcom_pon, reboot_mode); in qcom_pon_reboot_mode_write() 42 dev_err(pon->dev, "update reboot mode bits failed\n"); in qcom_pon_reboot_mode_write() 78 dev_err(&pdev->dev, "can't register reboot mode\n"); in qcom_pon_probe()
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-kernel-reboot | 1 What: /sys/kernel/reboot 5 Description: Interface to set the kernel reboot behavior, similarly to 6 what can be done via the reboot= cmdline option. 9 What: /sys/kernel/reboot/mode 13 Description: Reboot mode. Valid values are: cold warm hard soft gpio 15 What: /sys/kernel/reboot/type 19 Description: Reboot type. Valid values are: bios acpi kbd triple efi pci 21 What: /sys/kernel/reboot/cpu 25 Description: CPU number to use to reboot. 27 What: /sys/kernel/reboot/force [all …]
|
| /linux/Documentation/devicetree/bindings/power/reset/ |
| H A D | nvmem-reboot-mode.yaml | 4 $id: http://devicetree.org/schemas/power/reset/nvmem-reboot-mode.yaml# 7 title: Generic NVMEM reboot mode 13 This driver gets the reboot mode magic value from the reboot-mode driver 14 and stores it in the NVMEM cell named "reboot-mode". The bootloader can 19 const: nvmem-reboot-mode 24 magic value representing the reboot mode is stored. 29 - const: reboot-mode 32 - $ref: reboot-mode.yaml# 47 reboot-mode { 48 compatible = "nvmem-reboot-mode"; [all …]
|
| H A D | syscon-reboot-mode.yaml | 4 $id: http://devicetree.org/schemas/power/reset/syscon-reboot-mode.yaml# 7 title: Generic SYSCON reboot mode driver 13 This driver gets reboot mode magic value from reboot-mode driver 17 parental dt-node plus the offset. So the SYSCON reboot-mode node 22 const: syscon-reboot-mode 33 - $ref: reboot-mode.yaml# 49 reboot-mode { 50 compatible = "syscon-reboot-mode";
|
| H A D | reboot-mode.yaml | 4 $id: http://devicetree.org/schemas/power/reset/reboot-mode.yaml# 7 title: Generic reboot mode core map 13 This driver get reboot mode arguments and call the write 23 - normal: Normal reboot mode, system reboot with command "reboot". 33 Default value to set on a reboot if no command was provided. 43 reboot-mode {
|
| H A D | apple,smc-reboot.yaml | 4 $id: http://devicetree.org/schemas/power/reset/apple,smc-reboot.yaml# 7 title: Apple SMC Reboot Controller 10 The Apple System Management Controller (SMC) provides reboot functionality 19 const: apple,smc-reboot 23 - description: Flag indicating shutdown (as opposed to reboot)
|
| /linux/tools/power/pm-graph/ |
| H A D | bootgraph.8 | 89 \fB-reboot\fR 90 Reboot the machine and generate a new timeline automatically. Works in 4 steps. 92 2. installs a cron job which re-runs the tool after reboot 99 2. reboot the system 134 \f(CW$ sudo bootgraph -reboot -addlogs -o "latest-{hostname)"\fR 138 \f(CW$ sudo bootgraph -reboot -f\fR 142 \f(CW$ sudo bootgraph -reboot -callgraph -mincg 5\fR 146 \f(CW$ sudo bootgraph -reboot -callgraph -func "acpi_ps_parse_aml,msleep"\fR 148 Capture a brand new boot timeline with manual reboot. 154 \f(CW$ sudo reboot # reboot the machine\fR [all …]
|
| /linux/kernel/ |
| H A D | reboot.c | 3 * linux/kernel/reboot.c 8 #define pr_fmt(fmt) "reboot: " fmt 16 #include <linux/reboot.h> 23 * this indicates whether you can reboot with ctrl-alt-del: the default is yes 43 * reboot_type is still set to its default value (i.e., reboot= hasn't 45 * suppress DMI scanning for reboot quirks. Without it, it's 46 * impossible to override a faulty reboot quirk without recompiling. 65 * reboot when the reboot call was invoked with LINUX_REBOOT_CMD_POWER_OFF, but 85 * emergency_restart - reboot the system 88 * reboot the system. This is called when we know we are in [all …]
|
| /linux/tools/testing/ktest/examples/include/ |
| H A D | defaults.conf | 66 # have directory for the scripts to reboot and power cycle the boxes 81 # and ktest will use that kernel to reboot into. 113 # by setting the variable REBOOT to: none, error, fail or 114 # something else, ktest will power cycle or reboot the target box 117 # REBOOT := none 120 # REBOOT := error 121 # Reboot the box if ktest detects an error 123 # REBOOT := fail 130 DEFAULTS IF ${REBOOT} == none 136 DEFAULTS ELSE IF ${REBOOT} == error [all …]
|
| /linux/include/linux/ |
| H A D | reboot-mode.h | 8 int (*write)(struct reboot_mode_driver *reboot, unsigned int magic); 12 int reboot_mode_register(struct reboot_mode_driver *reboot); 13 int reboot_mode_unregister(struct reboot_mode_driver *reboot); 15 struct reboot_mode_driver *reboot); 17 struct reboot_mode_driver *reboot);
|
| /linux/Documentation/devicetree/bindings/arm/bcm/ |
| H A D | brcm,bcm63138.txt | 54 reboot 56 Two nodes are required for software reboot: a timer node and a syscon-reboot node. 63 Syscon reboot node: 65 See Documentation/devicetree/bindings/power/reset/syscon-reboot.yaml for the 80 reboot { 81 compatible = "syscon-reboot";
|
| /linux/Documentation/devicetree/bindings/soc/fsl/ |
| H A D | fsl,ls1028a-reset.yaml | 32 reboot: 33 $ref: /schemas/power/reset/syscon-reboot.yaml# 39 - reboot 50 reboot { 51 compatible = "syscon-reboot";
|
| /linux/Documentation/devicetree/bindings/mfd/ |
| H A D | ti,nspire-misc.yaml | 30 reboot: 31 $ref: /schemas/power/reset/syscon-reboot.yaml# 36 - reboot 46 reboot { 47 compatible = "syscon-reboot";
|
| /linux/drivers/firmware/arm_scmi/ |
| H A D | scmi_power_control.c | 16 * (orderly_poweroff/reboot()) used by ACPI when handling ACPI Shutdown bus 28 * track progress of graceful requests through the means of a reboot notifier 33 * charge of triggering system wide shutdown/reboot events, there should be 42 * this driver and the shutdown/reboot is started, any further notification 51 #include <linux/reboot.h> 80 * @reboot_nb: A notifier_block optionally used to track reboot progress 109 * scmi_reboot_notifier - A reboot notifier to catch an ongoing successful 112 * @reason: The reason for the ongoing reboot 142 dev_dbg(sc->dev, "Reboot in progress...cancel delayed work.\n"); in scmi_reboot_notifier() 193 /* avoid deadlock by unregistering reboot notifier first */ in scmi_forceful_work_func() [all …]
|
| /linux/arch/x86/platform/ce4100/ |
| H A D | ce4100.c | 8 #include <linux/reboot.h> 18 * intention to reset, reboot or power off the system. This 8051 device has 51 * By default, the reboot method is ACPI which is supported by the in x86_ce4100_early_setup() 54 * reboot. By using BOOT_KBD we ensure proper system reboot as in x86_ce4100_early_setup()
|
| /linux/arch/arm/boot/dts/samsung/ |
| H A D | exynos-syscon-restart.dtsi | 3 * Samsung's Exynos SoC syscon reboot/poweroff nodes common definition. 14 reboot: syscon-reboot { label 15 compatible = "syscon-reboot";
|
| /linux/arch/arm/mach-omap2/ |
| H A D | omap4-restart.c | 7 #include <linux/reboot.h> 13 * @mode: the "reboot mode", see arch/arm/kernel/{setup,process}.c 16 * Resets the SoC. For @cmd, see the 'reboot' syscall in 21 /* XXX Should save 'cmd' into scratchpad for use after reboot */ in omap44xx_restart()
|
| /linux/tools/include/nolibc/sys/ |
| H A D | reboot.h | 3 * Reboot definitions for NOLIBC 15 #include <linux/reboot.h> 18 * int reboot(int cmd); 29 int reboot(int cmd) in reboot() function
|
| /linux/tools/testing/selftests/pstore/ |
| H A D | pstore_crash_test | 4 # pstore_crash_test - Pstore test shell script which causes crash and reboot 17 # setting to reboot in 3 seconds after panic 23 # create a file as reboot flag 28 # Note: If you use kdump and want to see kmesg-* files after reboot, you should
|
| /linux/Documentation/devicetree/bindings/soc/loongson/ |
| H A D | loongson,ls2k-pmc.yaml | 46 syscon-reboot: 47 $ref: /schemas/power/reset/syscon-reboot.yaml# 50 Node for reboot method 70 syscon-reboot { 71 compatible = "syscon-reboot";
|
| /linux/arch/arm/mach-zynq/ |
| H A D | slcr.c | 9 #include <linux/reboot.h> 19 #define SLCR_REBOOT_STATUS_OFFSET 0x258 /* PS Reboot Status */ 90 * @action: Reboot mode (unused) 99 u32 reboot; in zynq_slcr_system_restart() local 102 * Clear 0x0F000000 bits of reboot status register to workaround in zynq_slcr_system_restart() 103 * the FSBL not loading the bitstream after soft-reboot in zynq_slcr_system_restart() 106 zynq_slcr_read(&reboot, SLCR_REBOOT_STATUS_OFFSET); in zynq_slcr_system_restart() 107 zynq_slcr_write(reboot & 0xF0FFFFFF, SLCR_REBOOT_STATUS_OFFSET); in zynq_slcr_system_restart()
|
| /linux/arch/sparc/kernel/ |
| H A D | reboot.c | 2 /* reboot.c: reboot/shutdown/halt/poweroff handling 7 #include <linux/reboot.h> 53 panic("Reboot failed!"); in machine_restart()
|