| /linux/drivers/power/reset/ |
| H A D | macsmc-reboot.c | 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 117 dev_info(reboot->dev, "Issuing restart (phra)\n"); in macsmc_restart() 119 if (apple_smc_write_u32_atomic(reboot->smc, SMC_KEY(MBSE), SMC_KEY(phra)) < 0) { in macsmc_restart() [all …]
|
| H A D | reboot-mode.c | 22 static unsigned int get_reboot_mode_magic(struct reboot_mode_driver *reboot, in get_reboot_mode_magic() argument 32 list_for_each_entry(info, &reboot->head, list) in get_reboot_mode_magic() 44 list_for_each_entry(info, &reboot->head, list) in get_reboot_mode_magic() 54 struct reboot_mode_driver *reboot; in reboot_mode_notify() local 57 reboot = container_of(this, struct reboot_mode_driver, reboot_notifier); in reboot_mode_notify() 58 magic = get_reboot_mode_magic(reboot, cmd); in reboot_mode_notify() 60 reboot->write(reboot, magic); in reboot_mode_notify() 71 int reboot_mode_register(struct reboot_mode_driver *reboot) in reboot_mode_register() argument 75 struct device_node *np = reboot->dev->of_node; in reboot_mode_register() 79 INIT_LIST_HEAD(&reboot->head); in reboot_mode_register() [all …]
|
| H A D | Makefile | 9 obj-$(CONFIG_POWER_RESET_BRCMSTB) += brcmstb-reboot.o 14 obj-$(CONFIG_POWER_RESET_HISI) += hisi-reboot.o 16 obj-$(CONFIG_POWER_RESET_MACSMC) += macsmc-reboot.o 27 obj-$(CONFIG_POWER_RESET_SPACEMIT_P1) += spacemit-p1-reboot.o 29 obj-$(CONFIG_POWER_RESET_TH1520_AON) += th1520-aon-reboot.o 32 obj-$(CONFIG_POWER_RESET_VERSATILE) += arm-versatile-reboot.o 34 obj-$(CONFIG_POWER_RESET_XGENE) += xgene-reboot.o 36 obj-$(CONFIG_POWER_RESET_SYSCON) += syscon-reboot.o 39 obj-$(CONFIG_REBOOT_MODE) += reboot-mode.o 40 obj-$(CONFIG_SYSCON_REBOOT_MODE) += syscon-reboot-mode.o [all …]
|
| H A D | nvmem-reboot-mode.c | 16 struct reboot_mode_driver reboot; member 20 static int nvmem_reboot_mode_write(struct reboot_mode_driver *reboot, in nvmem_reboot_mode_write() argument 28 nvmem_rbm = container_of(reboot, struct nvmem_reboot_mode, reboot); in nvmem_reboot_mode_write() 40 dev_err(reboot->dev, "update reboot mode bits failed\n"); in nvmem_reboot_mode_write() 54 nvmem_rbm->reboot.dev = &pdev->dev; in nvmem_reboot_mode_probe() 55 nvmem_rbm->reboot.write = nvmem_reboot_mode_write; in nvmem_reboot_mode_probe() 63 ret = devm_reboot_mode_register(&pdev->dev, &nvmem_rbm->reboot); in nvmem_reboot_mode_probe()
|
| H A D | syscon-reboot-mode.c | 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()
|
| H A D | Kconfig | 154 power-on and reboot reason, Say Y. 256 bool "ARM Versatile family reboot driver" 322 tristate "Generic SYSCON regmap reboot mode driver" 327 Say y here will enable reboot mode driver. This will 328 get reboot mode arguments and store it in SYSCON mapped 342 tristate "Generic NVMEM reboot mode driver" 346 Say y here will enable reboot mode driver. This will 347 get reboot mode arguments and store it in a NVMEM cell,
|
| H A D | qcom-pon.c | 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()
|
| /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 15 What: /sys/kernel/reboot/type 21 What: /sys/kernel/reboot/cpu 25 Description: CPU number to use to reboot. 27 What: /sys/kernel/reboot/force 31 Description: Don't wait for any other CPUs on reboot and 34 What: /sys/kernel/reboot/hw_protection [all …]
|
| H A D | sysfs-class-chromeos | 15 What: /sys/class/chromeos/<ec-device-name>/reboot 19 Tell the EC to reboot in various ways. Options are: 21 - "cancel": Cancel a pending reboot. 24 - "cold": Cold reboot. 25 - "disable-jump": Disable jump until next reboot.
|
| H A D | sysfs-platform-intel-wmi-sbl-fw-update | 9 on next reboot, by writing a value of 1. 13 * 1 -> Attempt firmware update on next reboot
|
| /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";
|
| H A D | brcm,brcmstb.txt | 68 Nodes that allow for support of SMP initialization and reboot are required: 98 reboot 103 The string property "brcm,brcmstb-reboot" for 40nm/28nm chips with 104 the new SYS_CTRL interface, or "brcm,bcm7038-reboot" for 65nm 115 reboot { 116 compatible = "brcm,brcmstb-reboot";
|
| /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/arm64/boot/dts/qcom/ |
| H A D | pmk8550.dtsi | 12 reboot-mode { 13 compatible = "nvmem-reboot-mode"; 15 nvmem-cell-names = "reboot-mode"; 61 reboot_reason: reboot-reason@48 {
|
| H A D | pmk8350.dtsi | 17 reboot-mode { 18 compatible = "nvmem-reboot-mode"; 20 nvmem-cell-names = "reboot-mode"; 94 reboot_reason: reboot-reason@48 {
|
| H A D | lemans-pmics.dtsi | 92 reboot-mode { 93 compatible = "nvmem-reboot-mode"; 95 nvmem-cell-names = "reboot-mode"; 161 reboot_reason: reboot-reason@48 {
|
| /linux/Documentation/watchdog/ |
| H A D | watchdog-api.rst | 30 system (causing a reboot) after the timeout occurs. 41 activates as soon as /dev/watchdog is opened and will reboot unless 53 crashes the system will not reboot. Because of this, some of the 57 started. So, if the watchdog daemon crashes, the system will reboot 71 cause a reboot if the watchdog is not re-opened in sufficient time. 140 Get the number of seconds before reboot 144 before the system will reboot. The WDIOC_GETTIMELEFT is the ioctl 145 that returns the number of seconds before reboot:: 155 the reason for the last reboot of the system. The GETSUPPORT ioctl is 210 The last reboot was caused by the watchdog card [all …]
|
| H A D | wdt.rst | 14 to within a timeout or the machine will reboot. Each write delays the reboot 16 reboot will depend on the state of the machines and interrupts. The hardware 18 will reboot from almost anything.
|
| /linux/arch/arm/mach-zynq/ |
| H A D | slcr.c | 99 u32 reboot; in zynq_slcr_system_restart() local 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/mips/boot/dts/brcm/ |
| H A D | bcm3368.dtsi | 69 reboot: syscon-reboot@fff8c008 { label 70 compatible = "syscon-reboot";
|
| /linux/tools/testing/selftests/kho/ |
| H A D | init.c | 87 if (reboot(RB_KEXEC)) in main() 93 reboot(RB_AUTOBOOT); in main()
|
| /linux/arch/arm64/boot/dts/exynos/google/ |
| H A D | gs101-pixel-common.dtsi | 63 reboot-mode { 64 compatible = "nvmem-reboot-mode"; 66 nvmem-cell-names = "reboot-mode"; 71 mode-reboot-ab-update = <0x80000052>; 263 nvmem_reboot_mode: reboot-mode@0 {
|
| /linux/Documentation/power/ |
| H A D | s2ram.rst | 25 driver that doesn't resume and recompile and reboot). 41 - if it doesn't come back up (which is usually the problem), reboot by 72 survive a reboot. 84 As the clock keeps ticking it is also essential that the reboot is done
|
| /linux/arch/mips/boot/dts/img/ |
| H A D | boston.dts | 215 reboot: syscon-reboot { label 216 compatible = "syscon-reboot";
|