| /Linux-v5.15/drivers/power/reset/ |
| D | syscon-reboot-mode.c | 1 // 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 19 u32 offset; 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() [all …]
|
| D | syscon-reboot.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Generic Syscon Reboot Driver 15 #include <linux/reboot.h> 20 u32 offset; member 33 /* Issue the reboot */ in syscon_restart_handle() 34 regmap_update_bits(ctx->map, ctx->offset, ctx->mask, ctx->value); in syscon_restart_handle() 45 struct device *dev = &pdev->dev; in syscon_reboot_probe() 49 ctx = devm_kzalloc(&pdev->dev, sizeof(*ctx), GFP_KERNEL); in syscon_reboot_probe() 51 return -ENOMEM; in syscon_reboot_probe() 53 ctx->map = syscon_regmap_lookup_by_phandle(dev->of_node, "regmap"); in syscon_reboot_probe() [all …]
|
| D | hisi-reboot.c | 1 // SPDX-License-Identifier: GPL-2.0-only 17 #include <linux/reboot.h> 19 #include <asm/proc-fns.h> 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() 76 .name = "hisi-reboot",
|
| D | brcmstb-reboot.c | 26 #include <linux/reboot.h> 51 rc = regmap_write(regmap, rst_src_en, reset_masks->rst_src_en_mask); in brcmstb_restart_handler() 63 rc = regmap_write(regmap, sw_mstr_rst, reset_masks->sw_mstr_rst_mask); in brcmstb_restart_handler() 97 { .compatible = "brcm,brcmstb-reboot", .data = &reset_bits_40nm }, 98 { .compatible = "brcm,bcm7038-reboot", .data = &reset_bits_65nm }, 105 struct device_node *np = pdev->dev.of_node; in brcmstb_reboot_probe() 111 return -EINVAL; in brcmstb_reboot_probe() 113 reset_masks = of_id->data; in brcmstb_reboot_probe() 118 return -EINVAL; in brcmstb_reboot_probe() 124 pr_err("can't get rst_src_en offset (%d)\n", rc); in brcmstb_reboot_probe() [all …]
|
| D | keystone-reset.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * TI keystone reboot driver 13 #include <linux/reboot.h> 42 * rsctrl_enable_rspll_write - enable access to RSCTRL, RSCFG 71 {.compatible = "ti,keystone-reset", }, 84 struct device *dev = &pdev->dev; in rsctrl_probe() 85 struct device_node *np = dev->of_node; in rsctrl_probe() 88 return -ENODEV; in rsctrl_probe() 91 pllctrl_regs = syscon_regmap_lookup_by_phandle(np, "ti,syscon-pll"); in rsctrl_probe() 95 devctrl_regs = syscon_regmap_lookup_by_phandle(np, "ti,syscon-dev"); in rsctrl_probe() [all …]
|
| /Linux-v5.15/Documentation/devicetree/bindings/power/reset/ |
| D | syscon-reboot.yaml | 1 # 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> 15 defined by the SYSCON register map base plus the offset with the value and 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 24 const: syscon-reboot [all …]
|
| D | syscon-reboot-mode.yaml | 1 # 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 …]
|
| /Linux-v5.15/Documentation/devicetree/bindings/arm/hisilicon/controller/ |
| D | sysctrl.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Wei Xu <xuwei5@hisilicon.com> 14 used to assist the slave core startup, reboot the system, etc. 19 offset. In addition, the HiP01 system controller has some specific control 23 Hisilicon system controller --> hisilicon,sysctrl 24 HiP01 system controller --> hisilicon,hip01-sysctrl 25 Hi6220 system controller --> hisilicon,hi6220-sysctrl 26 Hi3519 system controller --> hisilicon,hi3519-sysctrl [all …]
|
| /Linux-v5.15/arch/arm/mach-zynq/ |
| D | slcr.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) 2011-2013 Xilinx Inc. 9 #include <linux/reboot.h> 20 #define SLCR_REBOOT_STATUS_OFFSET 0x258 /* PS Reboot Status */ 34 * zynq_slcr_write - Write to a register in SLCR block 37 * @offset: Register offset in SLCR block 41 static int zynq_slcr_write(u32 val, u32 offset) in zynq_slcr_write() argument 43 return regmap_write(zynq_slcr_regmap, offset, val); in zynq_slcr_write() 47 * zynq_slcr_read - Read a register in SLCR block 50 * @offset: Register offset in SLCR block [all …]
|
| /Linux-v5.15/Documentation/devicetree/bindings/arm/bcm/ |
| D | brcm,bcm63138.txt | 1 Broadcom BCM63138 DSL System-on-a-Chip device tree bindings 2 ----------------------------------------------------------- 4 Boards compatible with the BCM63138 DSL System-on-a-Chip should have the 13 defined in reset/brcm,bcm63138-pmb.txt for this secondary CPU, and an 14 'enable-method' property. 17 - compatible: should be "brcm,bcm63138-bootlut" 18 - reg: register base address and length for the Boot Lookup table 21 - enable-method: should be "brcm,bcm63138" 24 - enable-method: should be "brcm,bcm63138" 25 - resets: phandle to the relevant PMB controller, one integer indicating the internal [all …]
|
| D | brcm,brcmstb.txt | 2 ----------------------------------------------- 3 Boards with Broadcom Brahma15 ARM-based BCMxxxx (generally BCM7xxx variants) 7 - compatible: "brcm,bcm<chip_id>", "brcm,brcmstb" 11 #address-cells = <2>; 12 #size-cells = <2>; 16 Further, syscon nodes that map platform-specific registers used for general 19 - compatible: "brcm,bcm<chip_id>-sun-top-ctrl", "syscon" 20 - compatible: "brcm,bcm<chip_id>-cpu-biu-ctrl", 21 "brcm,brcmstb-cpu-biu-ctrl", 23 - compatible: "brcm,bcm<chip_id>-hif-continuation", "syscon" [all …]
|
| /Linux-v5.15/arch/x86/platform/ce4100/ |
| D | ce4100.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 #include <linux/reboot.h> 20 #include <asm/emergency-restart.h> 25 * intention to reset, reboot or power off the system. This 8051 device has 36 static unsigned int mem_serial_in(struct uart_port *p, int offset) in mem_serial_in() argument 38 offset = offset << p->regshift; in mem_serial_in() 39 return readl(p->membase + offset); in mem_serial_in() 49 * errata number 9 in Errata - B step. 52 static unsigned int ce4100_mem_serial_in(struct uart_port *p, int offset) in ce4100_mem_serial_in() argument 56 if (offset == UART_IIR) { in ce4100_mem_serial_in() [all …]
|
| /Linux-v5.15/arch/arm/boot/dts/ |
| D | exynos-syscon-restart.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 * Samsung's Exynos SoC syscon reboot/poweroff nodes common definition. 7 poweroff: syscon-poweroff { 8 compatible = "syscon-poweroff"; 10 offset = <0x330C>; /* PS_HOLD_CONTROL */ 14 reboot: syscon-reboot { label 15 compatible = "syscon-reboot"; 17 offset = <0x0400>; /* SWRESET */
|
| /Linux-v5.15/Documentation/devicetree/bindings/mfd/ |
| D | canaan,k210-sysctl.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/mfd/canaan,k210-sysctl.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Damien Le Moal <damien.lemoal@wdc.com> 20 - const: canaan,k210-sysctl 21 - const: syscon 22 - const: simple-mfd 29 clock-names: 31 - const: pclk [all …]
|
| /Linux-v5.15/drivers/firmware/efi/libstub/ |
| D | tpm.c | 1 // SPDX-License-Identifier: GPL-2.0 24 * Enable reboot attack mitigation. This requests that the firmware clear the 25 * RAM on next reboot before proceeding with boot, ensuring that any secrets 27 * from RAM before reboot it can simply reset this variable. 101 * back into a size is contained in the first entry - in efi_retrieve_tpm2_eventlog() 112 ((struct tcpa_event *) last_entry_addr)->event_size; in efi_retrieve_tpm2_eventlog() 114 log_size = log_last_entry - log_location + last_entry_size; in efi_retrieve_tpm2_eventlog() 132 if (final_events_table && final_events_table->nr_events) { in efi_retrieve_tpm2_eventlog() 134 int offset; in efi_retrieve_tpm2_eventlog() local 137 int i = final_events_table->nr_events; in efi_retrieve_tpm2_eventlog() [all …]
|
| /Linux-v5.15/drivers/acpi/ |
| D | reboot.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #include <acpi/reboot.h> 21 devfn = PCI_DEVFN((rr->address >> 32) & 0xffff, in acpi_pci_reboot() 22 (rr->address >> 16) & 0xffff); in acpi_pci_reboot() 26 (rr->address & 0xffff), reset_value); in acpi_pci_reboot() 52 * checking the bit width and bit offset, but Windows ignores in acpi_reboot() 61 switch (rr->space_id) { in acpi_reboot() 76 * subsequent reboot mechanism. in acpi_reboot() 79 * to reboot on the affected platforms. in acpi_reboot()
|
| /Linux-v5.15/arch/mips/boot/dts/brcm/ |
| D | bcm3368.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 #include "dt-bindings/clock/bcm3368-clock.h" 6 #address-cells = <1>; 7 #size-cells = <1>; 11 #address-cells = <1>; 12 #size-cells = <0>; 14 mips-hpt-frequency = <150000000>; 30 periph_clk: periph-clk { 31 compatible = "fixed-clock"; 32 #clock-cells = <0>; [all …]
|
| /Linux-v5.15/arch/mips/boot/dts/mti/ |
| D | sead3.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 8 #include <dt-bindings/interrupt-controller/mips-gic.h> 11 #address-cells = <1>; 12 #size-cells = <1>; 13 compatible = "mti,sead-3"; 14 model = "MIPS SEAD-3"; 17 stdout-path = "serial1:115200"; 36 cpu_intc: interrupt-controller { 37 compatible = "mti,cpu-interrupt-controller"; [all …]
|
| D | malta.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include <dt-bindings/interrupt-controller/irq.h> 5 #include <dt-bindings/interrupt-controller/mips-gic.h> 12 #address-cells = <1>; 13 #size-cells = <1>; 16 cpu_intc: interrupt-controller { 17 compatible = "mti,cpu-interrupt-controller"; 19 interrupt-controller; 20 #interrupt-cells = <1>; [all …]
|
| /Linux-v5.15/drivers/net/ethernet/sfc/ |
| D | mcdi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright 2008-2013 Solarflare Communications Inc. 18 * Management-Controller-to-Driver Interface 25 /* A reboot/assertion causes the MCDI status word to be set after the 26 * command word is set or a REBOOT event is sent. If we notice a reboot 58 "Enable MCDI logging on newly-probed functions"); 65 int rc = -ENOMEM; in efx_mcdi_init() 67 efx->mcdi = kzalloc(sizeof(*efx->mcdi), GFP_KERNEL); in efx_mcdi_init() 68 if (!efx->mcdi) in efx_mcdi_init() 72 mcdi->efx = efx; in efx_mcdi_init() [all …]
|
| /Linux-v5.15/arch/sh/kernel/ |
| D | crash_dump.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * crash_dump.c - Memory preserving reboot related code. 14 * copy_oldmem_page - copy one page from "oldmem" 19 * @offset: offset in bytes into the page (based on pfn) to begin the copy 27 size_t csize, unsigned long offset, int userbuf) in copy_oldmem_page() argument 37 if (copy_to_user(buf, (vaddr + offset), csize)) { in copy_oldmem_page() 39 return -EFAULT; in copy_oldmem_page() 42 memcpy(buf, (vaddr + offset), csize); in copy_oldmem_page()
|
| /Linux-v5.15/arch/ia64/kernel/ |
| D | crash_dump.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * kernel/crash_dump.c - Memory preserving reboot related code. 18 * copy_oldmem_page - copy one page from "oldmem" 23 * @offset: offset in bytes into the page (based on pfn) to begin the copy 31 * copying the data to a pre-allocated kernel page and then copying to user 32 * space in non-atomic context. 36 size_t csize, unsigned long offset, int userbuf) in copy_oldmem_page() argument 44 if (copy_to_user(buf, (vaddr + offset), csize)) { in copy_oldmem_page() 45 return -EFAULT; in copy_oldmem_page() 48 memcpy(buf, (vaddr + offset), csize); in copy_oldmem_page()
|
| /Linux-v5.15/Documentation/devicetree/bindings/mips/lantiq/ |
| D | rcu.txt | 5 where each sub-device has it's own set of registers. 14 ------------------------------------------------------------------------------- 16 - compatible : The first and second values must be: 17 "lantiq,xrx200-rcu", "simple-mfd", "syscon" 18 - reg : The address and length of the system control registers 21 ------------------------------------------------------------------------------- 24 compatible = "lantiq,xrx200-rcu", "simple-mfd", "syscon"; 27 big-endian; 29 reset0: reset-controller@10 { 30 compatible = "lantiq,xrx200-reset"; [all …]
|
| /Linux-v5.15/arch/x86/kernel/ |
| D | crash_dump_32.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Memory preserving reboot related code. 20 * non-PAE kdump kernel executed from a PAE one will crop high pte in is_crashed_pfn_valid() 33 * copy_oldmem_page - copy one page from "oldmem" 38 * @offset: offset in bytes into the page (based on pfn) to begin the copy 46 unsigned long offset, int userbuf) in copy_oldmem_page() argument 54 return -EFAULT; in copy_oldmem_page() 59 memcpy(buf, vaddr + offset, csize); in copy_oldmem_page() 61 if (copy_to_user(buf, vaddr + offset, csize)) in copy_oldmem_page() 62 csize = -EFAULT; in copy_oldmem_page()
|
| /Linux-v5.15/include/linux/ |
| D | atmel-isc-media.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 16 * 4 offset controls, sliders, for each of the BAYER components: R, B, GR, GB. 18 * 1:12:0 with a default value of 0 (+/- 0) 32 * pressed, the driver will perform one-time-adjustment, (preferably with color 36 * for example after reboot or reprobing the driver. 48 /* Red component offset control */ 50 /* Blue component offset control */ 52 /* Green Red component offset control */ 54 /* Green Blue component offset control */
|