/openbmc/openbmc/meta-facebook/meta-bletchley/recipes-bletchley/motor-ctrl/files/ |
H A D | power-ctrl | 5 # On/off System by step moter to press power key 9 # shellcheck source=meta-facebook/meta-bletchley/recipes-bletchley/plat-tools/files/bletchley-commo… 10 source /usr/libexec/bletchley-common-functions 22 DBUS_HOST_ST_OFF="xyz.openbmc_project.State.Host.HostState.Off" 26 HOST_ST_OFF="Off" 31 HOST_AC_OFF="AC Off" 34 ACTION_OFF="off" 39 ACTION_AC_ON="ac-on" 40 ACTION_AC_OFF="ac-off" 42 ACTION_BOOT_MODE="boot-from-bootmode" [all …]
|
/openbmc/openbmc/meta-fii/meta-mori/recipes-mori/mori-sys-utility/mori-cmd/ |
H A D | mori.sh | 5 # shellcheck source=meta-fii/meta-mori/recipes-mori/mori-fw-utility/mori-fw/mori-lib.sh 6 source /usr/libexec/mori-fw/mori-lib.sh 8 function usage_rst() { 10 echo " system --> reset the host" 11 echo " btn --> trigger a power button event" 12 echo " shutdown --> send out shutdown signal to CPU" 13 echo " display --> " 16 function usage_led() { 18 echo " on --> turn led on" 19 echo " off --> turn led off" [all …]
|
/openbmc/phosphor-fan-presence/monitor/ |
H A D | power_off_action.hpp | 20 * This is the base class for a power off action, which is 24 * The power off is started with the start() method, and the 27 * there is a delay before the power off. 30 * the D-Bus call to do the power off, so it can be mocked 36 using PrePowerOffFunc = std::function<void()>; 48 * @param[in] name - The action name. Used for tracing. 49 * @param[in] powerInterface - The object used to invoke the power off. 50 * @param[in] powerOffFunc - A function to call right before the power 51 * off occurs (after any delays). May be 52 * empty if no function is necessary. [all …]
|
/openbmc/phosphor-state-manager/ |
H A D | obmcutil | 1 #!/bin/bash -e 3 set -euo pipefail 9 USAGE="Usage: obmcutil [-h] [--wait] [--verbose] [--id=<INSTANCE_ID>] 20 HOST_TIMEOUT_TARGET=obmc-host-timeout@0.target 21 HOST_CRASH_TARGET=obmc-host-crash@0.target 28 # The command passed in to be executed (e.g. poweron/off, status, etc.) 33 # The query to run during a poweron/off or chassison/off to check that 44 function print_help() 73 echo "obmcutil listlogs List all phosphor-logging entries on the" 79 echo "obmcutil deletelogs Delete all phosphor-logging entries from" [all …]
|
/openbmc/linux/arch/arm64/boot/dts/freescale/ |
H A D | imx8mm-venice-gw7904.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/input/linux-event-codes.h> 10 #include <dt-bindings/leds/common.h> 11 #include <dt-bindings/phy/phy-imx8-pcie.h> 17 compatible = "gateworks,imx8mm-gw7904", "fsl,imx8mm"; 20 stdout-path = &uart2; 28 gpio-keys { 29 compatible = "gpio-keys"; [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/leds/ |
H A D | common.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jacek Anaszewski <jacek.anaszewski@gmail.com> 11 - Pavel Machek <pavel@ucw.cz> 25 led-sources: 30 $ref: /schemas/types.yaml#/definitions/uint32-array 32 function: 34 LED function. Use one of the LED_FUNCTION_* prefixed definitions 35 from the header include/dt-bindings/leds/common.h. If there is no [all …]
|
/openbmc/phosphor-webui/app/server-control/controllers/ |
H A D | power-operations-controller.js | 2 * Controller for power-operations 9 window.angular && (function(angular) { 15 function( 24 $scope.defaultRebootSetting = 'warm-reboot'; 25 $scope.defaultShutdownSetting = 'warm-shutdown'; 35 const modalTemplate = require('./power-operations-modal.html'); 55 let timePassed = now.getTime() - start.getTime(); 77 // Check for off state 79 Constants.HOST_STATE_TEXT.off, Constants.TIMEOUT.HOST_OFF, 107 // Check for off state [all …]
|
/openbmc/linux/kernel/ |
H A D | reboot.c | 1 // SPDX-License-Identifier: GPL-2.0-only 23 * this indicates whether you can reboot with ctrl-alt-del: the default is yes 67 * emergency_restart - reboot the system 91 * register_reboot_notifier - Register function to be called at reboot time 92 * @nb: Info about notifier function to be called 94 * Registers a function with the list of functions 107 * unregister_reboot_notifier - Unregister previously registered reboot notifier 111 * notifier function. 113 * Returns zero on success, or %-ENOENT on failure. 134 return -ENOMEM; in devm_register_reboot_notifier() [all …]
|
H A D | kallsyms.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * kallsyms.c: in-kernel printing of symbolic oopses and stack traces. 5 * Rewritten and vastly simplified by Rusty Russell for in-kernel 42 static unsigned int kallsyms_expand_symbol(unsigned int off, in kallsyms_expand_symbol() argument 50 data = &kallsyms_names[off]; in kallsyms_expand_symbol() 53 off++; in kallsyms_expand_symbol() 59 off++; in kallsyms_expand_symbol() 66 off += len; in kallsyms_expand_symbol() 75 len--; in kallsyms_expand_symbol() 83 maxlen--; in kallsyms_expand_symbol() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | pinctrl-palmas.txt | 7 - compatible: It must be one of following: 8 - "ti,palmas-pinctrl" for Palma series of the pincontrol. 9 - "ti,tps65913-pinctrl" for Palma series device TPS65913. 10 - "ti,tps80036-pinctrl" for Palma series device TPS80036. 12 Please refer to pinctrl-bindings.txt in this directory for details of the 18 list of pins. This configuration can include the mux function to select on 19 those pin(s), and various pin configuration parameters, such as pull-up, 26 other words, a subnode that lists a mux function but no pin configuration 29 information about e.g. the mux function. 32 - ti,palmas-enable-dvfs1: Enable DVFS1. Configure pins for DVFS1 mode. [all …]
|
/openbmc/linux/arch/arm/boot/dts/nxp/lpc/ |
H A D | lpc4357-myd-lpc4357.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 3 * MYIR Tech MYD-LPC4357 Development Board with 800x480 7" TFT panel 5 * Copyright (C) 2016-2018 Vladimir Zapolskiy <vz@mleia.com> 8 /dts-v1/; 13 #include <dt-bindings/gpio/gpio.h> 17 compatible = "myir,myd-lpc4357", "nxp,lpc4357"; 20 stdout-path = "serial3:115200n8"; 29 compatible = "gpio-leds"; 30 pinctrl-names = "default"; 31 pinctrl-0 = <&led_pins>; [all …]
|
/openbmc/linux/tools/testing/selftests/ftrace/test.d/kprobe/ |
H A D | kprobe_ftrace.tc | 2 # SPDX-License-Identifier: GPL-2.0 3 # description: Kprobe dynamic event with function tracer 4 # requires: kprobe_events stack_trace_filter function:tracer 11 # kprobe on / ftrace off 16 ! grep "$FUNCTION_FORK <-" trace 19 echo function > current_tracer 23 grep "$FUNCTION_FORK <-" trace 25 # kprobe off / ftrace on 30 grep "$FUNCTION_FORK <-" trace 34 echo function > current_tracer [all …]
|
/openbmc/linux/arch/arm64/boot/dts/microchip/ |
H A D | sparx5_pcb134_board.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 10 gpio-restart { 11 compatible = "gpio-restart"; 17 compatible = "gpio-leds"; 53 default-state = "off"; 58 default-state = "off"; 63 default-state = "off"; 68 default-state = "off"; 73 default-state = "off"; [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_ptp.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2013 - 2018 Intel Corporation. */ 5 #include <linux/posix-clock.h> 39 CANT_DO_PINS = -1, 52 end = -2, 54 off, enumerator 62 "off", "in_A", "in_B", "out_A", "out_B" 66 led_end = -2, 83 {off, off, off, high, high, high, high}, 84 {off, in_A, off, high, high, high, low}, [all …]
|
/openbmc/linux/arch/parisc/net/ |
H A D | bpf_jit_comp64.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * BPF JIT compiler for PA-RISC (64-bit) 10 * - check if bpf_jit_needs_zext() is needed (currently enabled) 11 * - implement arch_prepare_bpf_trampoline(), poke(), ... 39 * HPPA64 sp => +----------+ <= HPPA64 fp 42 * | ... | HPPA64 callee-saved registers 45 * +----------+ <= (BPF FP) 49 * | ... | Function call stack 51 * +----------+ 58 #define EXIT_PTR_LOAD(reg) hppa64_ldd_im16(-FRAME_SIZE, HPPA_REG_SP, reg) [all …]
|
/openbmc/linux/arch/arm/boot/dts/marvell/ |
H A D | armada-xp-netgear-rn2120.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 /dts-v1/; 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/gpio/gpio.h> 12 #include "armada-xp-mv78230.dtsi" 16 …compatible = "netgear,readynas-2120", "marvell,armadaxp-mv78230", "marvell,armadaxp", "marvell,arm… 19 stdout-path = "serial0:115200n8"; 33 internal-regs { 41 clock-frequency = <400000>; 45 * MGT4012XB-O20, 8000RPM) near eSATA port */ [all …]
|
/openbmc/u-boot/include/ |
H A D | generic-phy.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/ 4 * Written by Jean-Jacques Hiblot <jjhiblot@ti.com> 13 * struct phy - A handle to (allowing control of) a single phy port. 30 * struct udevice_ops - set of function pointers for phy operations 35 * @power_off: powering off the phy (optional) 39 * of_xlate - Translate a client's device-tree (OF) phy specifier. 41 * The PHY core calls this function as the first step in implementing 44 * If this function pointer is set to NULL, the PHY core will use a 45 * default implementation, which assumes #phy-cells = <0> or [all …]
|
H A D | power-domain-uclass.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 9 /* See power-domain.h for background documentation. */ 11 #include <power-domain.h> 16 * struct power_domain_ops - The functions that a power domain controller driver 21 * of_xlate - Translate a client's device-tree (OF) power domain 24 * The power domain core calls this function as the first step in 27 * If this function pointer is set to NULL, the power domain core will 28 * use a default implementation, which assumes #power-domain-cells = 31 * At present, the power domain API solely supports device-tree. If 44 * request - Request a translated power domain. [all …]
|
/openbmc/openbmc/meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-cmd/ |
H A D | kudo.sh | 5 # shellcheck source=meta-fii/meta-kudo/recipes-kudo/kudo-fw-utility/kudo-fw/kudo-lib.sh 6 source /usr/libexec/kudo-fw/kudo-lib.sh 8 function usage_rst() { 10 echo " hotswap --> reset the whole kudo node" 11 echo " system --> reset the host" 12 echo " btn --> trigger a power button event" 13 echo " shutdown --> send out shutdown signal to CPU" 14 echo " display --> " 17 function usage_led() { 19 echo " on --> change to CPU console" [all …]
|
/openbmc/linux/include/drm/ |
H A D | drm_panel.h | 17 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 44 * struct drm_panel_funcs - perform operations on a given panel 46 * The .prepare() function is typically called before the display controller 53 * to call the .enable() function. This will typically enable the backlight to 55 * time or frames before the image is displayed. This function is responsible 60 * necessary to turn off the panel to avoid visual glitches. This is done in 61 * the .disable() function. Analogously to .enable() this typically involves 62 * turning off the backlight and waiting for some time to make sure no image 67 * the panel. This is the job of the .unprepare() function. 79 * This function is optional. [all …]
|
/openbmc/phosphor-host-ipmid/xyz/openbmc_project/Ipmi/Internal/ |
H A D | SoftPowerOff.interface.yaml | 2 Implement the Soft Power Off function. On receiving the SMS_ATTN from BMC, 7 quiesce. Once that is done, Host will send a hard power off command to BMC 8 and then BMC will issue a hard power off. 11 - name: ResponseReceived 17 Off request. 20 - name: HostResponse 22 Possible response types from Host for a Soft Power Off function. 24 - name: NotApplicable 27 - name: SoftOffReceived 30 needs to do a Soft Power Off. [all …]
|
/openbmc/linux/arch/mips/net/ |
H A D | bpf_jit_comp64.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Just-In-Time compiler for eBPF bytecode on MIPS. 4 * Implementation of JIT functions for 64-bit CPUs. 18 #include <asm/cpu-features.h> 19 #include <asm/isa-rev.h> 24 /* MIPS t0-t3 are not available in the n64 ABI */ 30 /* Stack is 16-byte aligned in n64 ABI */ 33 /* Extra 64-bit eBPF registers used by JIT */ 40 /* Callee-saved CPU registers that the JIT must preserve */ 54 /* Caller-saved CPU registers available for JIT use */ [all …]
|
/openbmc/linux/arch/arm/mach-omap2/ |
H A D | omap-mpuss-lowpower.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * OMAP4430 MPUSS mainly consists of dual Cortex-A9 with per-CPU 17 * to the Cortex-A9 processor must be asserted by the external 24 * ---------------------------------------------- 26 * ON(Inactive) OFF ON(Inactive) 27 * OFF OFF CSWR 28 * OFF OFF OSWR 29 * OFF OFF OFF(Device OFF *TBD) 30 * ---------------------------------------------- 33 * and first to wake-up when MPUSS low power states are excercised [all …]
|
/openbmc/openbmc/poky/meta/recipes-devtools/flex/flex/ |
H A D | check-funcs.patch | 4 argument of AC_CHECK_FUNCS as function tokens and generate a lot of 10 had been shipped within flex-2.6.4 release tarball. 13 <https://lists.gnu.org/archive/html/bug-autoconf/2018-02/msg00005.html> 17 Upstream-Status: Backport 18 Signed-off-by: Ross Burton <ross.burton@arm.com> 20 Signed-off-by: Kang-Che Sung <explorer09@gmail.com> 21 Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com> 22 --- 23 configure.ac | 28 +++++++++++++--------------- 24 1 file changed, 13 insertions(+), 15 deletions(-) [all …]
|
/openbmc/u-boot/cmd/ |
H A D | legacy_led.c | 1 // SPDX-License-Identifier: GPL-2.0+ 7 * http://www.mail-archive.com/u-boot@lists.denx.de/msg06873.html 20 void (*off)(void); /* Optional function for turning LED off */ member 21 void (*on)(void); /* Optional function for turning LED on */ 22 void (*toggle)(void);/* Optional function for toggling LED */ 68 if (strcmp(var, "off") == 0) in get_led_cmd() 77 return -1; in get_led_cmd() 82 * PCA9551, can override this empty weak function 116 if (led_commands[i].off) in do_legacy_led() 117 led_commands[i].off(); in do_legacy_led() [all …]
|