Home
last modified time | relevance | path

Searched +full:reboot +full:- +full:mode (Results 1 – 25 of 436) sorted by relevance

12345678910>>...18

/linux/drivers/power/reset/
H A Dreboot-mode.c1 // SPDX-License-Identifier: GPL-2.0-or-later
11 #include <linux/reboot.h>
12 #include <linux/reboot-mode.h>
14 #define PREFIX "mode-"
17 const char *mode; member
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()
33 if (!strcmp(info->mode, cmd)) in get_reboot_mode_magic()
34 return info->magic; in get_reboot_mode_magic()
37 if (strscpy(cmd_, cmd, sizeof(cmd_)) == -E2BIG) in get_reboot_mode_magic()
[all …]
H A Dnvmem-reboot-mode.c1 // SPDX-License-Identifier: GPL-2.0+
10 #include <linux/nvmem-consumer.h>
12 #include <linux/reboot-mode.h>
15 struct reboot_mode_driver reboot; member
19 static int nvmem_reboot_mode_write(struct reboot_mode_driver *reboot, in nvmem_reboot_mode_write() argument
25 nvmem_rbm = container_of(reboot, struct nvmem_reboot_mode, reboot); in nvmem_reboot_mode_write()
27 ret = nvmem_cell_write(nvmem_rbm->cell, &magic, sizeof(magic)); in nvmem_reboot_mode_write()
29 dev_err(reboot->dev, "update reboot mode bits failed\n"); in nvmem_reboot_mode_write()
39 nvmem_rbm = devm_kzalloc(&pdev->dev, sizeof(*nvmem_rbm), GFP_KERNEL); in nvmem_reboot_mode_probe()
41 return -ENOMEM; in nvmem_reboot_mode_probe()
[all …]
H A Dsyscon-reboot-mode.c1 // SPDX-License-Identifier: GPL-2.0-or-later
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()
31 ret = regmap_update_bits(syscon_rbm->map, syscon_rbm->offset, in syscon_reboot_mode_write()
32 syscon_rbm->mask, magic); in syscon_reboot_mode_write()
34 dev_err(reboot->dev, "update reboot mode bits failed\n"); in syscon_reboot_mode_write()
44 syscon_rbm = devm_kzalloc(&pdev->dev, sizeof(*syscon_rbm), GFP_KERNEL); in syscon_reboot_mode_probe()
[all …]
H A Dqcom-pon.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2017-18 Linaro Limited
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()
37 ret = regmap_update_bits(pon->regmap, in qcom_pon_reboot_mode_write()
38 pon->baseaddr + PON_SOFT_RB_SPARE, in qcom_pon_reboot_mode_write()
39 GENMASK(7, pon->reason_shift), in qcom_pon_reboot_mode_write()
40 magic << pon->reason_shift); in qcom_pon_reboot_mode_write()
[all …]
H A Dsyscon-reboot.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Generic Syscon Reboot Driver
14 #include <linux/reboot.h>
39 unsigned long mode, void *cmd) in syscon_restart_handle() argument
46 if (ctx->rd) { in syscon_restart_handle()
47 if (mode < ARRAY_SIZE(ctx->rd->mode_bits) && in syscon_restart_handle()
48 ctx->rd->mode_bits[mode].valid) in syscon_restart_handle()
49 mode_bits = &ctx->rd->mode_bits[mode]; in syscon_restart_handle()
51 mode_bits = &ctx->rd->catchall; in syscon_restart_handle()
53 mode_bits = &ctx->catchall; in syscon_restart_handle()
[all …]
H A Dmacsmc-reboot.c1 // SPDX-License-Identifier: GPL-2.0-only OR MIT
3 * Apple SMC Reboot/Poweroff Handler
12 #include <linux/nvmem-consumer.h>
14 #include <linux/reboot.h>
61 return -EINVAL; in nvmem_cell_get_u8()
77 * 'offw' - shutdown warning
78 * 'slpw' - sleep warning
79 * 'rest' - restart warning
80 * 'off1' - shutdown (needs PMU bit set to stay on)
81 * 'susp' - suspend
[all …]
H A Dhisi-reboot.c1 // SPDX-License-Identifier: GPL-2.0-only
17 #include <linux/reboot.h>
19 #include <asm/proc-fns.h>
25 unsigned long mode, void *cmd) in hisi_restart_handler() argument
42 struct device_node *np = pdev->dev.of_node; in hisi_reboot_probe()
48 return -ENODEV; in hisi_reboot_probe()
51 if (of_property_read_u32(np, "reboot-offset", &reboot_offset) < 0) { in hisi_reboot_probe()
52 pr_err("failed to find reboot-offset property\n"); in hisi_reboot_probe()
54 return -EINVAL; in hisi_reboot_probe()
59 dev_err(&pdev->dev, "cannot register restart handler (err=%d)\n", in hisi_reboot_probe()
[all …]
/linux/Documentation/devicetree/bindings/power/reset/
H A Dnvmem-reboot-mode.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/power/reset/nvmem-reboot-mode.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Generic NVMEM reboot mode
10 - Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
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
21 nvmem-cells:
[all …]
H A Dsyscon-reboot-mode.yaml1 # SPDX-License-Identifier: GPL-2.0-only
3 ---
4 $id: http://devicetree.org/schemas/power/reset/syscon-reboot-mode.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Generic SYSCON reboot mode driver
10 - Sebastian Reichel <sre@kernel.org>
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
18 should be represented as a sub-node of a "syscon", "simple-mfd" node.
22 const: syscon-reboot-mode
[all …]
H A Dreboot-mode.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/power/reset/reboot-mode.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Generic reboot mode core map
10 - Andy Yan <andy.yan@rock-chips.com>
13 This driver get reboot mode arguments and call the write
18 All mode properties are vendor specific, it is a indication to tell
20 as mode-xxx = <magic> (xxx is mode name, magic should be a non-zero value).
23 - normal: Normal reboot mode, system reboot with command "reboot".
[all …]
H A Dsyscon-reboot.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/power/reset/syscon-reboot.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Sebastian Reichel <sre@kernel.org>
16 mask defined in the reboot node. Default will be little endian mode, 32 bit
18 parental dt-node. So the SYSCON reboot node should be represented as a
19 sub-node of a "syscon", "simple-mfd" node. Though the regmap property
25 - syscon-reboot
26 - google,gs101-reboot
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-kernel-reboot1 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.
7 (see Documentation/admin-guide/kernel-parameters.txt)
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.
[all …]
H A Dsysfs-driver-toshiba_acpi5 Description: This file controls the keyboard backlight operation mode, valid
8 * 0x1 -> FN-Z
9 * 0x2 -> AUTO (also called TIMER)
10 * 0x8 -> ON
11 * 0x10 -> OFF
14 parameters, kernel 3.15 only accepts the first two (FN-Z and
17 a reboot for changes to take effect.
25 whenever the operation mode is set to AUTO (or TIMER),
26 valid values range from 0-60.
29 type and the range accepted for type 2 is 1-60.
[all …]
/linux/tools/power/pm-graph/
H A Dbootgraph.83 bootgraph \- Kernel boot timing analysis
13 timeline is split into two phases: kernel mode & user mode. kernel mode
15 Once user mode begins, the init process is called, and the init calls
24 Generates output files in subdirectory: boot-yymmdd-HHMMSS
30 \fB-h\fR
33 \fB-v\fR
36 \fB-addlogs\fR
40 \fB-result \fIfile\fR
43 \fB-o \fIname\fR
47 e.g. boot-{hostname}-{date}-{time}
[all …]
/linux/arch/arm/mach-omap2/
H A Domap4-restart.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * omap4-restart.c - Common to OMAP4 and OMAP5
7 #include <linux/reboot.h>
12 * omap44xx_restart - trigger a software restart of the SoC
13 * @mode: the "reboot mode", see arch/arm/kernel/{setup,process}.c
16 * Resets the SoC. For @cmd, see the 'reboot' syscall in
19 void omap44xx_restart(enum reboot_mode mode, const char *cmd) in omap44xx_restart() argument
21 /* XXX Should save 'cmd' into scratchpad for use after reboot */ in omap44xx_restart()
H A Dti81xx-restart.c1 // SPDX-License-Identifier: GPL-2.0-only
4 #include <linux/reboot.h>
15 * ti81xx_restart - trigger a software restart of the SoC
16 * @mode: the "reboot mode", see arch/arm/kernel/{setup,process}.c
19 * Resets the SoC. For @cmd, see the 'reboot' syscall in
23 * clocks to bypass mode.
25 void ti81xx_restart(enum reboot_mode mode, const char *cmd) in ti81xx_restart() argument
H A Domap2-restart.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * omap2-restart.c - code common to all OMAP2xxx machines.
23 /* Reboot handling */
26 * omap2xxx_restart - Set DPLL to bypass mode for reboot to work
28 * Set the DPLL to bypass so that reboot completes successfully. No
31 void omap2xxx_restart(enum reboot_mode mode, const char *cmd) in omap2xxx_restart() argument
38 /* XXX Should save the cmd argument for use after the reboot */ in omap2xxx_restart()
44 * omap2xxx_common_look_up_clks_for_reset - look up clocks needed for restart
47 * operation to work - see omap2xxx_restart(). Returns -EINVAL upon
54 return -EINVAL; in omap2xxx_common_look_up_clks_for_reset()
[all …]
H A Domap3-restart.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * omap3-restart.c - Code common to all OMAP3xxx machines.
12 #include <linux/reboot.h>
21 * omap3xxx_restart - trigger a software restart of the SoC
22 * @mode: the "reboot mode", see arch/arm/kernel/{setup,process}.c
25 * Resets the SoC. For @cmd, see the 'reboot' syscall in
28 void omap3xxx_restart(enum reboot_mode mode, const char *cmd) in omap3xxx_restart() argument
/linux/Documentation/devicetree/bindings/soc/samsung/
H A Dexynos-pmu.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/soc/samsung/exynos-pmu.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Krzysztof Kozlowski <krzk@kernel.org>
18 - google,gs101-pmu
19 - samsung,exynos3250-pmu
20 - samsung,exynos4210-pmu
21 - samsung,exynos4212-pmu
22 - samsung,exynos4412-pmu
[all …]
/linux/Documentation/power/
H A Dbasic-pm-debugging.rst10 To check if hibernation works, you can try to hibernate in the "reboot" mode::
12 # echo reboot > /sys/power/disk
15 and the system should create a hibernation image, reboot, resume and get back to
20 resuming the system.] Moreover, hibernating in the "reboot" and "shutdown"
21 modes causes the PM core to skip some platform-related callbacks which on ACPI
23 fails to hibernate or resume in the "reboot" mode, you should try the
24 "platform" mode::
29 which is the default and recommended mode of hibernation.
31 Unfortunately, the "platform" mode of hibernation does not work on some systems
32 with broken BIOSes. In such cases the "shutdown" mode of hibernation might
[all …]
/linux/arch/arm64/boot/dts/exynos/google/
H A Dgs101-pixel-common.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
3 * Device Tree nodes common for all GS101-based Pixel
5 * Copyright 2021-2023 Google LLC
6 * Copyright 2023 Linaro Ltd - <peter.griffin@linaro.org>
9 /dts-v1/;
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/input/input.h>
13 #include <dt-bindings/usb/pd.h>
14 #include "gs101-pinctrl.h"
25 stdout-path = &serial_0;
[all …]
/linux/drivers/watchdog/
H A Dwdt.c1 // SPDX-License-Identifier: GPL-2.0+
5 * (c) Copyright 1996-1997 Alan Cox <alan@lxorguk.ukuu.org.uk>,
10 * "AS-IS" and at no charge.
19 * Alan Cox : Fixed the reboot problem (as noted by
42 #include <linux/reboot.h>
71 /* You must set these - there is no sane way to probe for this board. */
82 /* Support for the Fan Tachometer on the WDT501-P */
86 "WDT501-P Fan Tachometer support (0=disable, default=0)");
91 "WDT501-P Card type (500 or 501, default=500)");
97 static void wdt_ctr_mode(int ctr, int mode) in wdt_ctr_mode() argument
[all …]
H A Dwdt_pci.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Industrial Computer Source PCI-WDT500/501 driver
5 * (c) Copyright 1996-1997 Alan Cox <alan@lxorguk.ukuu.org.uk>,
10 * "AS-IS" and at no charge.
19 * Alan Cox : Fixed the reboot problem (as noted by
47 #include <linux/reboot.h>
83 /* Support for the Fan Tachometer on the PCI-WDT501 */
87 "PCI-WDT501 Fan Tachometer support (0=disable, default=0)");
92 "PCI-WDT501 Card type (500 or 501 , default=500)");
98 static void wdtpci_ctr_mode(int ctr, int mode) in wdtpci_ctr_mode() argument
[all …]
/linux/Documentation/arch/s390/
H A D3270.rst17 Linux/390. A 3270 device is a block-mode rows-and-columns terminal of
21 You may have 3270s in-house and not know it. If you're using the
22 VM-ESA operating system, define a 3270 to your virtual machine by using
23 the command "DEF GRAF <hex-address>" This paper presumes you will be
26 - DEF GRAF 620
27 - DEF GRAF 621
28 - DEF GRAF 622
29 - DEF GRAF 623
31 Your network connection from VM-ESA allows you to use x3270, tn3270, or
34 and this Linux-390 3270 driver, you have another way of talking to your
[all …]
/linux/arch/arm/mach-zynq/
H A Dslcr.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (c) 2011-2013 Xilinx Inc.
9 #include <linux/reboot.h>
19 #define SLCR_REBOOT_STATUS_OFFSET 0x258 /* PS Reboot Status */
33 * zynq_slcr_write - Write to a register in SLCR block
46 * zynq_slcr_read - Read a register in SLCR block
59 * zynq_slcr_unlock - Unlock SLCR registers
71 * zynq_slcr_get_device_id - Read device code id
87 * zynq_slcr_system_restart - Restart the entire system.
90 * @action: Reboot mode (unused)
[all …]

12345678910>>...18