/linux-6.14.4/drivers/base/power/ |
D | wakeirq.c | 1 // SPDX-License-Identifier: GPL-2.0 13 * dev_pm_attach_wake_irq - Attach device interrupt as a wake IRQ 15 * @wirq: Wake irq specific data 17 * Internal function to attach a dedicated wake-up interrupt as a wake IRQ. 24 return -EINVAL; in dev_pm_attach_wake_irq() 26 spin_lock_irqsave(&dev->power.lock, flags); in dev_pm_attach_wake_irq() 27 if (dev_WARN_ONCE(dev, dev->power.wakeirq, in dev_pm_attach_wake_irq() 28 "wake irq already initialized\n")) { in dev_pm_attach_wake_irq() 29 spin_unlock_irqrestore(&dev->power.lock, flags); in dev_pm_attach_wake_irq() 30 return -EEXIST; in dev_pm_attach_wake_irq() [all …]
|
/linux-6.14.4/arch/arm/mach-pxa/ |
D | pxa2xx-regs.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * arch/arm/mach-pxa/include/mach/pxa2xx-regs.h 5 * Taken from pxa-regs.h by Russell King 14 #include "pxa-regs.h" 23 #define PWER __REG(0x40F0000C) /* Power Manager Wake-up Enable Register */ 24 #define PRER __REG(0x40F00010) /* Power Manager GPIO Rising-Edge Detect Enable Register */ 25 #define PFER __REG(0x40F00014) /* Power Manager GPIO Falling-Edge Detect Enable Register */ 28 #define PGSR0 __REG(0x40F00020) /* Power Manager GPIO Sleep State Register for GP[31-0] */ 29 #define PGSR1 __REG(0x40F00024) /* Power Manager GPIO Sleep State Register for GP[63-32] */ 30 #define PGSR2 __REG(0x40F00028) /* Power Manager GPIO Sleep State Register for GP[84-64] */ [all …]
|
D | pxa3xx-regs.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * arch/arm/mach-pxa/include/mach/pxa3xx-regs.h 13 #include "pxa-regs.h" 30 #define PWER __REG(0x40F50010) /* Power Manager Wake-up Enable Register */ 31 #define PWSR __REG(0x40F50014) /* Power Manager Wake-up Status Register */ 33 #define DCDCSR __REG(0x40F50080) /* DC-DC Controller Status Register */ 42 #define AD3ER __REG(0x40f40008) /* Application Subsystem Wake-Up from D3 Enable */ 43 #define AD3SR __REG(0x40f4000c) /* Application Subsystem Wake-Up from D3 Status */ 44 #define AD2D0ER __REG(0x40f40010) /* Application Subsystem Wake-Up from D2 to D0 Enable */ 45 #define AD2D0SR __REG(0x40f40014) /* Application Subsystem Wake-Up from D2 to D0 Status */ [all …]
|
/linux-6.14.4/Documentation/devicetree/bindings/power/reset/ |
D | atmel,sama5d2-shdwc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/power/reset/atmel,sama5d2-shdwc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Claudiu Beznea <[email protected]> 14 and VDDCORE and the wake-up detection on debounced input lines. 19 - items: 20 - const: microchip,sama7g5-shdwc 21 - const: syscon 22 - enum: [all …]
|
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 <[email protected]> 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 …]
|
/linux-6.14.4/Documentation/ABI/testing/ |
D | sysfs-devices-power | 14 space to check if the device is enabled to wake up the system 33 be enabled to wake up the system from sleep states. 40 space to control the run-time power management of the device. 52 the device is suspended causes it to be woken up. 61 with the main suspend/resume thread) during system-wide power 86 attribute is read-only. If the device is not capable to wake up 88 If the device is not enabled to wake up the system from sleep 98 is read-only. If the device is not capable to wake up the 100 the device is not enabled to wake up the system from sleep 110 state in progress. This attribute is read-only. If the device [all …]
|
/linux-6.14.4/include/linux/ |
D | wait_bit.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 * Linux wait-bit related types and methods: 54 * wait_on_bit - wait for a bit to be cleared 68 * call has ACQUIRE semantics, or %-EINTR if the process received a 69 * signal and the mode permitted wake up on that signal. 83 * wait_on_bit_io - wait for a bit to be cleared 96 * call has ACQUIRE semantics, or %-EINTR if the process received a 97 * signal and the mode permitted wake up on that signal. 111 * wait_on_bit_timeout - wait for a bit to be cleared or a timeout to elapse 126 * call has ACQUIRE semantics, or %-EINTR if the process received a [all …]
|
D | lis3lv02d.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 * struct lis3lv02d_platform_data - lis3 chip family platform data 15 * data available / wake up, open drain, polarity) 18 * @duration1: Wake up unit 1 duration parameter 19 * @duration2: Wake up unit 2 duration parameter 20 * @wakeup_flags: Wake up unit 1 flags 21 * @wakeup_thresh: Wake up unit 1 threshold value 22 * @wakeup_flags2: Wake up unit 2 flags 23 * @wakeup_thresh2: Wake up unit 2 threshold value 26 * @axis_x: Sensor orientation remapping for x-axis [all …]
|
/linux-6.14.4/Documentation/devicetree/bindings/pinctrl/ |
D | samsung,pinctrl-wakeup-interrupt.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/samsung,pinctrl-wakeup-interrupt.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Samsung S3C/S5P/Exynos SoC pin controller - wake-up interrupt controller 10 - Krzysztof Kozlowski <[email protected]> 11 - Sylwester Nawrocki <[email protected]> 12 - Tomasz Figa <[email protected]> 18 External wake-up interrupts for Samsung S3C/S5P/Exynos SoC pin controller. 19 For S3C24xx, S3C64xx, S5PV210 and Exynos4210 compatible wake-up interrupt [all …]
|
D | samsung,pinctrl.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Krzysztof Kozlowski <[email protected]> 11 - Sylwester Nawrocki <[email protected]> 12 - Tomasz Figa <[email protected]> 22 - External GPIO interrupts (see interrupts property in pin controller node); 24 - External wake-up interrupts - multiplexed (capable of waking up the system 25 see interrupts property in external wake-up interrupt controller node - 26 samsung,pinctrl-wakeup-interrupt.yaml); [all …]
|
D | samsung,pinctrl-gpio-bank.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/samsung,pinctrl-gpio-bank.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Samsung S3C/S5P/Exynos SoC pin controller - gpio bank 10 - Krzysztof Kozlowski <[email protected]> 11 - Sylwester Nawrocki <[email protected]> 12 - Tomasz Figa <[email protected]> 24 '#gpio-cells': 27 gpio-controller: true [all …]
|
/linux-6.14.4/drivers/power/reset/ |
D | at91-poweroff.c | 5 * Copyright (C) 2011 Jean-Christophe PLAGNIOL-VILLARD <[email protected]> 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 …]
|
/linux-6.14.4/arch/arm64/boot/dts/qcom/ |
D | ipq9574-rdp433.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 5 * Copyright (c) 2020-2021 The Linux Foundation. All rights reserved. 9 /dts-v1/; 11 #include <dt-bindings/gpio/gpio.h> 12 #include "ipq9574-rdp-common.dtsi" 15 model = "Qualcomm Technologies, Inc. IPQ9574/AP-AL02-C7"; 16 compatible = "qcom,ipq9574-ap-al02-c7", "qcom,ipq9574"; 24 pinctrl-0 = <&pcie1_default>; 25 pinctrl-names = "default"; 27 perst-gpios = <&tlmm 26 GPIO_ACTIVE_LOW>; [all …]
|
/linux-6.14.4/Documentation/admin-guide/ |
D | btmrvl.rst | 14 bit 8:0 -- Gap 15 bit 16:8 -- GPIO 17 where GPIO is the pin number of GPIO used to wake up the host. 18 It could be any valid GPIO pin# (e.g. 0-7) or 0xff (SDIO interface 26 # Use SDIO interface to wake up the host and set GAP to 0x80: 30 # Use GPIO pin #3 to wake up the host and set GAP to 0xff: 39 1 -- Enable auto sleep mode 40 0 -- Disable auto sleep mode 54 These commands are used to enable host sleep or wake up firmware 58 1 -- Enable host sleep [all …]
|
/linux-6.14.4/arch/x86/kernel/acpi/ |
D | madt_wakeup.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 49 acpi_mp_wake_mailbox->apic_id = apicid; in acpi_mp_cpu_die() 50 smp_store_release(&acpi_mp_wake_mailbox->command, in acpi_mp_cpu_die() 55 while (READ_ONCE(acpi_mp_wake_mailbox->command) && --timeout) in acpi_mp_cpu_die() 93 return -ENOMEM; in init_transition_pgtable() 100 return -ENOMEM; in init_transition_pgtable() 107 return -ENOMEM; in init_transition_pgtable() 114 return -ENOMEM; in init_transition_pgtable() 137 return -ENOMEM; in acpi_mp_setup_reset() 146 return -ENOMEM; in acpi_mp_setup_reset() [all …]
|
/linux-6.14.4/kernel/sched/ |
D | wait.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 spin_lock_init(&wq_head->lock); in __init_waitqueue_head() 11 lockdep_set_class_and_name(&wq_head->lock, key, name); in __init_waitqueue_head() 12 INIT_LIST_HEAD(&wq_head->head); in __init_waitqueue_head() 21 wq_entry->flags &= ~WQ_FLAG_EXCLUSIVE; in add_wait_queue() 22 spin_lock_irqsave(&wq_head->lock, flags); in add_wait_queue() 24 spin_unlock_irqrestore(&wq_head->lock, flags); in add_wait_queue() 32 wq_entry->flags |= WQ_FLAG_EXCLUSIVE; in add_wait_queue_exclusive() 33 spin_lock_irqsave(&wq_head->lock, flags); in add_wait_queue_exclusive() 35 spin_unlock_irqrestore(&wq_head->lock, flags); in add_wait_queue_exclusive() [all …]
|
D | wait_bit.c | 1 // SPDX-License-Identifier: GPL-2.0-only 26 if (wait_bit->key.flags != key->flags || in wake_bit_function() 27 wait_bit->key.bit_nr != key->bit_nr || in wake_bit_function() 28 test_bit(key->bit_nr, key->flags)) in wake_bit_function() 36 * To allow interruptible waiting and asynchronous (i.e. non-blocking) 47 prepare_to_wait(wq_head, &wbq_entry->wq_entry, mode); in __wait_on_bit() 48 if (test_bit(wbq_entry->key.bit_nr, wbq_entry->key.flags)) in __wait_on_bit() 49 ret = (*action)(&wbq_entry->key, mode); in __wait_on_bit() 50 } while (test_bit_acquire(wbq_entry->key.bit_nr, wbq_entry->key.flags) && !ret); in __wait_on_bit() 52 finish_wait(wq_head, &wbq_entry->wq_entry); in __wait_on_bit() [all …]
|
/linux-6.14.4/arch/arm/mach-omap2/ |
D | clockdomain.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2008-2011 Texas Instruments, Inc. 6 * Copyright (C) 2008-2011 Nokia Corporation 22 #include <linux/clk-provider.h> 56 if (!strcmp(name, temp_clkdm->name)) { in _clkdm_lookup() 66 * _clkdm_register - register a clockdomain 70 * Returns -EINVAL if given a null pointer, -EEXIST if a clockdomain is 77 if (!clkdm || !clkdm->name) in _clkdm_register() 78 return -EINVAL; in _clkdm_register() 80 pwrdm = pwrdm_lookup(clkdm->pwrdm.name); in _clkdm_register() [all …]
|
/linux-6.14.4/drivers/phy/motorola/ |
D | phy-mapphone-mdm6600.c | 1 // SPDX-License-Identifier: GPL-2.0 35 PHY_MDM6600_MODE0, /* out USB mode0 and OOB wake */ 36 PHY_MDM6600_MODE1, /* out USB mode1, in OOB wake */ 111 struct gpio_desc *enable_gpio = ddata->ctrl_gpios[PHY_MDM6600_ENABLE]; in phy_mdm6600_init() 113 if (!ddata->enabled) in phy_mdm6600_init() 114 return -EPROBE_DEFER; in phy_mdm6600_init() 124 struct gpio_desc *enable_gpio = ddata->ctrl_gpios[PHY_MDM6600_ENABLE]; in phy_mdm6600_power_on() 126 if (!ddata->enabled) in phy_mdm6600_power_on() 127 return -ENODEV; in phy_mdm6600_power_on() 132 if (pm_runtime_enabled(&x->dev)) in phy_mdm6600_power_on() [all …]
|
/linux-6.14.4/drivers/media/rc/ |
D | nuvoton-cir.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Driver for Nuvoton Technology Corporation w83667hg/w83677hg-i CIR 18 #define NVT_DRIVER_NAME "nuvoton-cir" 93 /* total length of CIR and CIR WAKE */ 188 /* CIR WAKE UP Regs */ 206 /* CIR WAKE UP IRCON settings */ 218 /* CIR WAKE IRSTS Bits */ 226 /* CIR WAKE UP IREN Bits */ 233 /* CIR WAKE FIFOCON settings */ 242 /* select WAKE UP RX trigger level as 67 */ [all …]
|
/linux-6.14.4/tools/testing/selftests/futex/include/ |
D | futextest.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 13 * 2009-Nov-6: Initial version by Darren Hart <[email protected]> 28 /* Define the newer op codes if the system header file is not up to date. */ 51 * futex() - SYS_futex syscall wrapper 68 * like-named arguments in the following wrappers except where noted below. 74 * futex_wait() - block on uaddr with optional timeout 84 * futex_wake() - wake one or more tasks blocked on uaddr 85 * @nr_wake: wake up to this many tasks 94 * futex_wait_bitset() - block on uaddr with bitset 106 * futex_wake_bitset() - wake one or more tasks blocked on uaddr with bitset [all …]
|
/linux-6.14.4/include/uapi/linux/ |
D | futex.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 75 #define FUTEX_32 FUTEX2_SIZE_U32 /* historical accident :-( */ 83 * struct futex_waitv - A waiter for vectorized wait 97 * Support for robust futexes: the kernel cleans up held futexes at 102 * Per-lock list entry - embedded in user-space locks, somewhere close 103 * to the futex field. (Note: user-space uses a double-linked list to 115 * Per-thread list head: 129 * This relative offset is set by user-space, it gives the kernel 131 * we keep userspace flexible, to freely shape its data-structure, 138 * up a lock's links. So to handle this race, userspace first [all …]
|
/linux-6.14.4/Documentation/devicetree/bindings/rtc/ |
D | brcm,brcmstb-waketimer.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/rtc/brcm,brcmstb-waketimer.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Broadcom STB wake-up Timer 10 - Florian Fainelli <[email protected]> 13 The Broadcom STB wake-up timer provides a 27Mhz resolution timer, with the 14 ability to wake up the system from low-power suspend/standby modes and 18 - $ref: rtc.yaml# 22 const: brcm,brcmstb-waketimer [all …]
|
/linux-6.14.4/Documentation/devicetree/bindings/input/ |
D | gpio-keys.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/input/gpio-keys.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Rob Herring <[email protected]> 15 - gpio-keys 16 - gpio-keys-polled 23 poll-interval: true 26 …"^(button|event|key|switch|(button|event|key|switch)-[a-z0-9-]+|[a-z0-9-]+-(button|event|key|switc… 35 - items: [all …]
|
/linux-6.14.4/kernel/futex/ |
D | requeue.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 12 * just woken up (timeout, signal). After the wake up the task has to 26 * Q_REQUEUE_PI_NONE -> Q_REQUEUE_PI_IGNORE 27 * Q_REQUEUE_PI_IN_PROGRESS -> Q_REQUEUE_PI_WAIT 30 * Q_REQUEUE_PI_NONE -> Q_REQUEUE_PI_INPROGRESS 31 * Q_REQUEUE_PI_IN_PROGRESS -> Q_REQUEUE_PI_DONE/LOCKED 32 * Q_REQUEUE_PI_IN_PROGRESS -> Q_REQUEUE_PI_NONE (requeue failed) 33 * Q_REQUEUE_PI_WAIT -> Q_REQUEUE_PI_DONE/LOCKED 34 * Q_REQUEUE_PI_WAIT -> Q_REQUEUE_PI_IGNORE (requeue failed) 62 .wake = futex_wake_mark, [all …]
|