/openbmc/linux/drivers/net/wireless/intel/iwlwifi/fw/api/ |
H A D | d3.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (C) 2012-2014, 2018-2023 Intel Corporation 4 * Copyright (C) 2013-2014 Intel Mobile Communications GmbH 5 * Copyright (C) 2015-2017 Intel Deutschland GmbH 9 #include <iwl-trans.h> 12 * enum iwl_d0i3_flags - d0i3 flags 20 * enum iwl_d3_wakeup_flags - D3 manager wakeup flags 28 * struct iwl_d3_manager_config - D3 manager configuration command 30 * @wakeup_flags: wakeup flags, see &enum iwl_d3_wakeup_flags 31 * @wakeup_host_timer: force wakeup after this many seconds [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/power/reset/ |
H A D | atmel,at91sam9260-shdwc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/power/reset/atmel,at91sam9260-shdwc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Claudiu Beznea <claudiu.beznea@microchip.com> 14 and VDDCORE and the wake-up detection on debounced input lines. 19 - atmel,at91sam9260-shdwc 20 - atmel,at91sam9rl-shdwc 21 - atmel,at91sam9x5-shdwc 29 atmel,wakeup-mode: [all …]
|
/openbmc/linux/drivers/base/power/ |
H A D | wakeup.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * drivers/base/power/wakeup.c - System wakeup events framework 27 * if wakeup events are registered during or immediately before the transition. 31 /* First wakeup IRQ seen by the kernel in the last cycle. */ 39 * Combined counters of registered wakeup events and wakeup events in progress. 46 #define MAX_IN_PROGRESS ((1 << IN_PROGRESS_BITS) - 1) 56 /* A preserved old value of the events counter. */ 77 * wakeup_source_create - Create a struct wakeup_source object. 78 * @name: Name of the new wakeup source. 93 ws->name = ws_name; in wakeup_source_create() [all …]
|
/openbmc/linux/drivers/power/reset/ |
H A D | at91-poweroff.c | 5 * Copyright (C) 2011 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> 28 #define AT91_SHDW_WKMODE0 GENMASK(2, 0) /* Wake-up 0 Mode Selection */ 29 #define AT91_SHDW_CPTWK0_MAX 0xf /* Maximum Counter On Wake Up 0 */ 30 #define AT91_SHDW_CPTWK0 (AT91_SHDW_CPTWK0_MAX << 4) /* Counter On Wake Up 0 */ 32 #define AT91_SHDW_RTTWKEN BIT(16) /* Real Time Timer Wake-up Enable */ 33 #define AT91_SHDW_RTCWKEN BIT(17) /* Real Time Clock Wake-up Enable */ 36 #define AT91_SHDW_WAKEUP0 BIT(0) /* Wake-up 0 Status */ 37 #define AT91_SHDW_RTTWK BIT(16) /* Real-time Timer Wake-up */ 38 #define AT91_SHDW_RTCWK BIT(17) /* Real-time Clock Wake-up [SAM9RL] */ 65 /* Simple power-on, just bail out */ in at91_wakeup_status() [all …]
|
/openbmc/linux/fs/ |
H A D | eventfd.c | 1 // SPDX-License-Identifier: GPL-2.0-only 36 * wakeup is performed on "wqh". If EFD_SEMAPHORE flag was not 39 * also, adds to the "count" counter and issue a wakeup. 52 * through waitqueue wakeup handlers. If the caller users potentially in eventfd_signal_mask() 53 * nested waitqueues with custom wakeup handlers, then it should in eventfd_signal_mask() 58 if (WARN_ON_ONCE(current->in_eventfd)) in eventfd_signal_mask() 61 spin_lock_irqsave(&ctx->wqh.lock, flags); in eventfd_signal_mask() 62 current->in_eventfd = 1; in eventfd_signal_mask() 63 if (ULLONG_MAX - ctx->count < n) in eventfd_signal_mask() 64 n = ULLONG_MAX - ctx->count; in eventfd_signal_mask() [all …]
|
/openbmc/linux/drivers/platform/surface/aggregator/ |
H A D | controller.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 5 * Copyright (C) 2019-2022 Maximilian Luz <luzmaximilian@gmail.com> 28 /* -- Safe counters. -------------------------------------------------------- */ 31 * struct ssh_seq_counter - Safe counter for SSH sequence IDs. 32 * @value: The current counter value. 39 * struct ssh_rqid_counter - Safe counter for SSH request IDs. 40 * @value: The current counter value. 47 /* -- Event/notification system. -------------------------------------------- */ 50 * struct ssam_nf_head - Notifier head for SSAM events. 52 * @head: List-head for notifier blocks registered under this head. [all …]
|
/openbmc/linux/Documentation/driver-api/usb/ |
H A D | power-management.rst | 1 .. _usb-power-management: 7 :Date: Last-updated: February 2014 11 --------- 13 * What is Remote Wakeup? 17 * Changing the default idle-delay time 31 ------------------------- 35 component is ``suspended`` it is in a nonfunctional low-power state; it 37 ``resumed`` (returned to a functional full-power state) when the kernel 66 What is Remote Wakeup? 67 ---------------------- [all …]
|
/openbmc/linux/arch/arm/boot/dts/st/ |
H A D | stm32mp151.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 3 * Copyright (C) STMicroelectronics 2017 - All Rights Reserved 6 #include <dt-bindings/interrupt-controller/arm-gic.h> 7 #include <dt-bindings/clock/stm32mp1-clks.h> 8 #include <dt-bindings/reset/stm32mp1-resets.h> 11 #address-cells = <1>; 12 #size-cells = <1>; 15 #address-cells = <1>; 16 #size-cells = <0>; 19 compatible = "arm,cortex-a7"; [all …]
|
H A D | stm32mp131.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 3 * Copyright (C) STMicroelectronics 2021 - All Rights Reserved 6 #include <dt-bindings/interrupt-controller/arm-gic.h> 7 #include <dt-bindings/clock/stm32mp13-clks.h> 8 #include <dt-bindings/reset/stm32mp13-resets.h> 11 #address-cells = <1>; 12 #size-cells = <1>; 15 #address-cells = <1>; 16 #size-cells = <0>; 19 compatible = "arm,cortex-a7"; [all …]
|
/openbmc/linux/Documentation/power/ |
H A D | pci.rst | 13 power management refer to Documentation/driver-api/pm/devices.rst and 27 1.1. Native and Platform-Based Power Management 28 ----------------------------------------------- 31 devices into states in which they draw less power (low-power states) at the 34 Usually, a device is put into a low-power state when it is underutilized or 36 again, it has to be put back into the "fully functional" state (full-power 41 PCI devices may be put into low-power states in two ways, by using the device 50 Devices supporting the native PCI PM usually can generate wakeup signals called 53 to put the device that sent it into the full-power state. However, the PCI Bus 63 preparing the device to generate wakeup signals. In that case, however, it [all …]
|
/openbmc/linux/arch/arm/boot/dts/microchip/ |
H A D | usb_a9260.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * usb_a9260.dts - Device Tree file for Caloa USB A9260 board 5 * Copyright (C) 2011-2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> 7 /dts-v1/; 13 compatible = "calao,usb-a9260", "atmel,at91sam9260", "atmel,at91sam9"; 26 atmel,wakeup-counter = <10>; 27 atmel,wakeup-rtt-timer;
|
H A D | at91sam9260ek.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 /dts-v1/; 10 #include <dt-bindings/input/input.h> 17 stdout-path = &dbgu; 26 clock-frequency = <32768>; 30 clock-frequency = <18432000>; 38 compatible = "atmel,tcb-timer"; 43 compatible = "atmel,tcb-timer"; 49 atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>; 54 pinctrl-0 = < [all …]
|
H A D | usb_a9263.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * usb_a9263.dts - Device Tree file for Caloa USB A9293 board 5 * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> 7 /dts-v1/; 12 compatible = "atmel,usb-a9263", "atmel,at91sam9263", "atmel,at91sam9"; 24 clock-frequency = <32768>; 28 clock-frequency = <12000000>; 40 compatible = "atmel,tcb-timer"; 45 compatible = "atmel,tcb-timer"; 51 phy-mode = "rmii"; [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/mfd/ |
H A D | st,stm32-lptimer.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/mfd/st,stm32-lptimer.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: STMicroelectronics STM32 Low-Power Timers 10 The STM32 Low-Power Timer (LPTIM) is a 16-bit timer that provides several 12 - PWM output (with programmable prescaler, configurable polarity) 13 - Trigger source for STM32 ADC/DAC (LPTIM_OUT) 14 - Several counter modes: 15 - quadrature encoder to detect angular position and direction of rotary [all …]
|
/openbmc/linux/arch/mips/loongson2ef/common/ |
H A D | pm.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * loongson-specific suspend support 57 * Setup the board-specific events for waking up loongson from wait mode 64 * Check wakeup events 72 * If the events are really what we want to wakeup the CPU, wake it up 84 * $24 is the control register of Loongson perf counter 96 /* setup wakeup events via enabling the IRQs */ in loongson_suspend_enter() 106 /* wait for the given events to wakeup cpu from wait mode */ in loongson_suspend_enter()
|
/openbmc/linux/arch/arm/mach-s3c/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 5 source "arch/arm/mach-s3c/Kconfig.s3c64xx" 29 int "S3C UART to use for low-level messages" 33 Choice of which UART port to use for the low-level messages, 36 must have been initialised by the boot-loader before use. 56 purposes. This allows any problems where an counter overflows from 106 Compile in platform device definition for USB high-speed OtG 132 pinctrl-samsung driver. 139 Compile support for wakeup-mask controls found on the S3C6400 140 and above. This code allows a set of interrupt to wakeup-mask [all …]
|
/openbmc/linux/drivers/pinctrl/samsung/ |
H A D | pinctrl-samsung.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * pin-controller/pin-mux/pin-config/gpio-driver for Samsung's SoC's. 25 * enum pincfg_type - possible pin configuration types supported. 46 * packed together into a 16-bits. The upper 8-bits represent the configuration 47 * type and the lower 8-bits hold the value of the configuration type. 65 * enum eint_type - possible external interrupt types. 68 * @EINT_TYPE_WKUP: bank supportes external wakeup interrupts 69 * @EINT_TYPE_WKUP_MUX: bank supports multiplexed external wakeup interrupts 72 * in a pin bank can support external gpio interrupts or external wakeup 74 * difference between external gpio and external wakeup interrupts is that [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | usb_a9263.dts | 2 * usb_a9263.dts - Device Tree file for Caloa USB A9293 board 4 * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> 8 /dts-v1/; 13 compatible = "atmel,usb-a9263", "atmel,at91sam9263", "atmel,at91sam9"; 25 clock-frequency = <32768>; 29 clock-frequency = <12000000>; 40 phy-mode = "rmii"; 45 atmel,vbus-gpio = <&pioB 11 GPIO_ACTIVE_HIGH>; 50 cs-gpios = <&pioB 15 GPIO_ACTIVE_HIGH>; 55 spi-max-frequency = <15000000>; [all …]
|
H A D | at91sam9g20ek_common.dtsi | 2 * at91sam9g20ek_common.dtsi - Device Tree file for Atmel at91sam9g20ek board 4 * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> 12 u-boot,dm-pre-reloc; 13 stdout-path = &dbgu; 22 clock-frequency = <32768>; 26 clock-frequency = <18432000>; 42 pinctrl_board_mmc0_slot1: mmc0_slot1-board { 50 u-boot,dm-pre-reloc; 55 pinctrl-0 = 70 phy-mode = "rmii"; [all …]
|
H A D | at91sam9260ek.dts | 7 * This file is dual-licensed: you can use it either under the terms 45 /dts-v1/; 53 u-boot,dm-pre-reloc; 54 stdout-path = &dbgu; 63 clock-frequency = <32768>; 67 clock-frequency = <18432000>; 74 atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>; 79 pinctrl-0 = < 87 bus-width = <4>; 88 cd-gpios = <&pioC 9 GPIO_ACTIVE_HIGH>; [all …]
|
/openbmc/linux/drivers/clocksource/ |
H A D | timer-ti-dm-systimer.c | 1 // SPDX-License-Identifier: GPL-2.0+ 15 #include <linux/clk/clk-conf.h> 17 #include <clocksource/timer-ti-dm.h> 18 #include <dt-bindings/bus/ti-sysc.h> 44 u8 counter; member 46 u8 wakeup; member 68 u32 tidr = readl_relaxed(t->base); in dmtimer_systimer_revision1() 82 writel_relaxed(val, t->base + t->sysc); in dmtimer_systimer_enable() 90 writel_relaxed(DMTIMER_TYPE1_DISABLE, t->base + t->sysc); in dmtimer_systimer_disable() 95 void __iomem *syss = t->base + OMAP_TIMER_V1_SYS_STAT_OFFSET; in dmtimer_systimer_type1_reset() [all …]
|
/openbmc/linux/kernel/locking/ |
H A D | percpu-rwsem.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 #include <linux/percpu-rwsem.h> 17 sem->read_count = alloc_percpu(int); in __percpu_init_rwsem() 18 if (unlikely(!sem->read_count)) in __percpu_init_rwsem() 19 return -ENOMEM; in __percpu_init_rwsem() 21 rcu_sync_init(&sem->rss); in __percpu_init_rwsem() 22 rcuwait_init(&sem->writer); in __percpu_init_rwsem() 23 init_waitqueue_head(&sem->waiters); in __percpu_init_rwsem() 24 atomic_set(&sem->block, 0); in __percpu_init_rwsem() 27 lockdep_init_map(&sem->dep_map, name, key, 0); in __percpu_init_rwsem() [all …]
|
/openbmc/linux/arch/x86/realmode/rm/ |
H A D | wakemain.c | 1 // SPDX-License-Identifier: GPL-2.0 2 #include "wakeup.h" 7 while (loops--) in udelay() 22 outb(div, 0x42); /* LSB of counter */ in beep() 24 outb(div >> 8, 0x42); /* MSB of counter */ in beep() 52 case '-': in send_morse() 77 send_morse("...-"); in main()
|
/openbmc/linux/drivers/usb/core/ |
H A D | driver.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * drivers/usb/core/driver.c - most of the driver model stuff for usb 5 * (C) Copyright 2005 Greg Kroah-Hartman <gregkh@suse.de> 9 * (C) Copyright Johannes Erdfelt 1999-2001 14 * (C) Copyright David Brownell 2000-2004 17 * (C) Copyright Greg Kroah-Hartman 2002-2003 58 return -EINVAL; in usb_store_new_id() 62 return -ENOMEM; in usb_store_new_id() 64 INIT_LIST_HEAD(&dynid->node); in usb_store_new_id() 65 dynid->id.idVendor = idVendor; in usb_store_new_id() [all …]
|
/openbmc/linux/drivers/net/ethernet/sun/ |
H A D | sunqe.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 15 #define GLOB_MSIZE 0x0cUL /* Local-memory Size */ 45 /* The following registers are for per-qe channel information/status. */ 58 #define CREG_CCNT 0x30UL /* Collision Counter */ 59 #define CREG_PIPG 0x34UL /* Inter-Frame Gap */ 64 #define CREG_CTRL_TWAKEUP 0x00000001 /* Transmitter Wakeup, 'go'. */ 74 #define CREG_STAT_CCOFLOW 0x00100000 /* TX Coll-counter Overflow */ 79 #define CREG_STAT_RCCOFLOW 0x00001000 /* RX Coll-counter Overflow */ 80 #define CREG_STAT_RUOFLOW 0x00000800 /* Runt Counter Overflow */ 81 #define CREG_STAT_MCOFLOW 0x00000400 /* Missed Counter Overflow */ [all …]
|