Home
last modified time | relevance | path

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

12345678910>>...42

/linux-6.14.4/arch/x86/realmode/rm/
Dwakeup.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Definitions for the wakeup data structure at the head of the
4 * wakeup code.
13 /* This must match data at wakeup.S */
15 u16 video_mode; /* Video mode number */
16 u32 pmode_entry; /* Protected mode resume point, 32-bit only */
18 u32 pmode_cr0; /* Protected mode cr0 */
19 u32 pmode_cr3; /* Protected mode cr3 */
20 u32 pmode_cr4; /* Protected mode cr4 */
21 u32 pmode_efer_low; /* Protected mode EFER */
[all …]
Dwakeup_asm.S1 /* SPDX-License-Identifier: GPL-2.0 */
3 * ACPI wakeup real mode startup stub
7 #include <asm/msr-index.h>
10 #include <asm/processor-flags.h>
12 #include "wakeup.h"
16 /* This should match the structure in wakeup.h */
21 video_mode: .short 0 /* Video mode number */
30 pmode_behavior: .long 0 /* Wakeup behavior flags */
95 /* Restore MISC_ENABLE before entering protected mode, in case
134 /* -> jmp *%eax in trampoline_32.S */
[all …]
/linux-6.14.4/Documentation/devicetree/bindings/net/bluetooth/
Dbrcm,bluetooth.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Linus Walleij <[email protected]>
13 This binding describes Broadcom UART-attached bluetooth chips.
18 - items:
19 - enum:
20 - infineon,cyw43439-bt
21 - const: brcm,bcm4329-bt
22 - enum:
[all …]
/linux-6.14.4/Documentation/devicetree/bindings/usb/
Dmediatek,mtu3.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 ---
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Chunfeng Yun <[email protected]>
14 - $ref: usb-drd.yaml
23 - enum:
24 - mediatek,mt2712-mtu3
25 - mediatek,mt8173-mtu3
26 - mediatek,mt8183-mtu3
27 - mediatek,mt8186-mtu3
[all …]
Dmediatek,mtk-xhci.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 ---
5 $id: http://devicetree.org/schemas/usb/mediatek,mtk-xhci.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Chunfeng Yun <[email protected]>
14 - $ref: usb-xhci.yaml
19 case 2: supports dual-role mode, and the host is based on xHCI driver.
25 - enum:
26 - mediatek,mt2701-xhci
27 - mediatek,mt2712-xhci
[all …]
/linux-6.14.4/kernel/sched/
Dwait.c1 // 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 …]
/linux-6.14.4/Documentation/devicetree/bindings/power/reset/
Datmel,at91sam9260-shdwc.yaml1 # 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/drivers/usb/phy/
Dphy-am335x.c1 // SPDX-License-Identifier: GPL-2.0
4 #include <linux/dma-mapping.h>
13 #include "phy-am335x-control.h"
14 #include "phy-generic.h"
25 struct am335x_phy *am_phy = dev_get_drvdata(phy->dev); in am335x_init()
27 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, am_phy->dr_mode, true); in am335x_init()
33 struct am335x_phy *am_phy = dev_get_drvdata(phy->dev); in am335x_shutdown()
35 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, am_phy->dr_mode, false); in am335x_shutdown()
41 struct device *dev = &pdev->dev; in am335x_phy_probe()
46 return -ENOMEM; in am335x_phy_probe()
[all …]
/linux-6.14.4/Documentation/ABI/testing/
Dsysfs-power15 labels, which may be "mem" (suspend), "standby" (power-on
16 suspend), "freeze" (suspend-to-idle) and "disk" (hibernation).
21 See Documentation/admin-guide/pm/sleep-states.rst for more
28 The /sys/power/mem_sleep file controls the operating mode of
31 supported). The mode that will be used on subsequent attempts
35 Writing one of the above strings to this file causes the mode
39 See Documentation/admin-guide/pm/sleep-states.rst for more
46 The /sys/power/disk file controls the operating mode of the
47 suspend-to-disk mechanism. Reading from this file returns
51 'firmware' - means that the memory image will be saved to disk
[all …]
/linux-6.14.4/drivers/power/reset/
Dat91-poweroff.c5 * Copyright (C) 2011 Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
27 #define AT91_SHDW_MR 0x04 /* Shut Down Mode Register */
28 #define AT91_SHDW_WKMODE0 GENMASK(2, 0) /* Wake-up 0 Mode Selection */
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()
76 dev_info(&pdev->dev, "Wake-Up source: %s\n", reason); in at91_wakeup_status()
[all …]
Datc260x-poweroff.c1 // SPDX-License-Identifier: GPL-2.0+
27 /* S4-Deep Sleep Mode is NOT available for WALL/USB power */ in atc2603c_do_poweroff()
30 dev_info(pwrc->dev, "Enabling S4-Deep Sleep Mode"); in atc2603c_do_poweroff()
33 /* Update wakeup sources */ in atc2603c_do_poweroff()
38 ret = regmap_update_bits(pwrc->regmap, ATC2603C_PMU_SYS_CTL0, in atc2603c_do_poweroff()
41 dev_warn(pwrc->dev, "failed to write SYS_CTL0: %d\n", ret); in atc2603c_do_poweroff()
43 /* Update power mode */ in atc2603c_do_poweroff()
46 ret = regmap_update_bits(pwrc->regmap, ATC2603C_PMU_SYS_CTL3, reg_mask, in atc2603c_do_poweroff()
49 dev_err(pwrc->dev, "failed to write SYS_CTL3: %d\n", ret); in atc2603c_do_poweroff()
58 ret = regmap_update_bits(pwrc->regmap, in atc2603c_do_poweroff()
[all …]
/linux-6.14.4/drivers/usb/fotg210/
Dfotg210-core.c1 // SPDX-License-Identifier: GPL-2.0+
24 #define FOTG210_RR_ID BIT(21) /* 1 = B-device, 0 = A-device */
28 * Gemini-specific initialization function, only executed on the
31 * The gemini USB blocks are connected to either Mini-A (host mode) or
32 * Mini-B (peripheral mode) plugs. There is no role switch support on the
33 * Gemini SoC, just either-or.
44 enum usb_dr_mode mode) in fotg210_gemini_init() argument
46 struct device *dev = fotg->dev; in fotg210_gemini_init()
47 struct device_node *np = dev->of_node; in fotg210_gemini_init()
49 bool wakeup; in fotg210_gemini_init() local
[all …]
/linux-6.14.4/arch/arm/mach-omap2/
Dclockdomain.c1 // 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>
37 /* array of clockdomain deps to be added/removed when clkdm in hwsup mode */
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()
[all …]
Dclockdomain.h1 /* SPDX-License-Identifier: GPL-2.0-only */
6 * Copyright (C) 2008-2011 Nokia Corporation
33 * hardware-supervised idle mode, the PRCM may transition the
38 * force-sleep mode, then the HW_AUTO mode will be used to put the
40 * the force-wakeup mode, then it will be used whenever a clock or
42 * HW_AUTO mode.
57 * struct clkdm_autodep - clkdm deps to add when entering/exiting hwsup mode
58 * @clkdm: clockdomain to add wkdep+sleepdep on - set name member only
61 * clockdomain should stay active in hwsup mode; and conversely,
63 * hwsup mode.
[all …]
/linux-6.14.4/arch/arm/boot/dts/intel/pxa/
Dpxa300-raumfeld-controller.dts1 // SPDX-License-Identifier: GPL-2.0
3 /dts-v1/;
5 #include "pxa300-raumfeld-common.dtsi"
9 compatible = "raumfeld,raumfeld-controller-pxa303", "marvell,pxa300";
11 reg_vbatt: regulator-vbatt {
12 compatible = "regulator-fixed";
13 regulator-name = "vbatt-fixed-supply";
14 regulator-min-microvolt = <3700000>;
15 regulator-max-microvolt = <3700000>;
16 regulator-always-on;
[all …]
/linux-6.14.4/arch/mips/loongson2ef/common/
Dpm.c1 // 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
96 /* setup wakeup events via enabling the IRQs */ in loongson_suspend_enter()
103 /* Put CPU into wait mode */ in loongson_suspend_enter()
106 /* wait for the given events to wakeup cpu from wait mode */ in loongson_suspend_enter()
/linux-6.14.4/arch/x86/kvm/vmx/
Dposted_intr.c1 // SPDX-License-Identifier: GPL-2.0-only
16 * Maintain a per-CPU list of vCPUs that need to be awakened by wakeup_handler()
26 * Protect the per-CPU list with a per-CPU spinlock to handle task migration.
28 * ->sched_in() path will need to take the vCPU off the list of the _previous_
30 * occur if a wakeup IRQ arrives and attempts to acquire the lock.
36 return &(to_vmx(vcpu)->pi_desc); in vcpu_to_pi_desc()
47 if (!try_cmpxchg64(&pi_desc->control, pold, new)) in pi_try_set_control()
48 return -EBUSY; in pi_try_set_control()
62 * To simplify hot-plug and dynamic toggling of APICv, keep PI.NDST and in vmx_vcpu_pi_load()
63 * PI.SN up-to-date even if there is no assigned device or if APICv is in vmx_vcpu_pi_load()
[all …]
/linux-6.14.4/drivers/soc/fsl/
Drcpm.c1 // SPDX-License-Identifier: GPL-2.0
3 // rcpm.c - Freescale QorIQ RCPM driver
5 // Copyright 2019-2020 NXP
34 np = of_find_compatible_node(NULL, NULL, "fsl,ls1021a-scfg"); in copy_ippdexpcr1_setting()
50 * rcpm_pm_prepare - performs device-level tasks associated with power
51 * management, such as programming related to the wakeup source control.
61 struct device_node *np = dev->of_node; in rcpm_pm_prepare()
67 return -EINVAL; in rcpm_pm_prepare()
69 base = rcpm->ippdexpcr_base; in rcpm_pm_prepare()
72 /* Begin with first registered wakeup source */ in rcpm_pm_prepare()
[all …]
/linux-6.14.4/drivers/gnss/
Dsirf.c1 // SPDX-License-Identifier: GPL-2.0
45 struct gpio_desc *wakeup; member
62 mutex_lock(&data->serdev_mutex); in sirf_serdev_open()
63 if (++data->serdev_count == 1) { in sirf_serdev_open()
64 ret = serdev_device_open(data->serdev); in sirf_serdev_open()
66 data->serdev_count--; in sirf_serdev_open()
70 serdev_device_set_baudrate(data->serdev, data->speed); in sirf_serdev_open()
71 serdev_device_set_flow_control(data->serdev, false); in sirf_serdev_open()
75 mutex_unlock(&data->serdev_mutex); in sirf_serdev_open()
82 mutex_lock(&data->serdev_mutex); in sirf_serdev_close()
[all …]
/linux-6.14.4/arch/powerpc/kernel/
Didle_book3s.S1 /* SPDX-License-Identifier: GPL-2.0-or-later */
8 * SRR1 wakeup reason return value.
10 * The platform / CPU caller must ensure SPRs and any other non-GPR
15 #include <asm/asm-offsets.h>
16 #include <asm/ppc-opcode.h>
24 * No state will be lost regardless of wakeup mechanism (interrupt or NIA).
26 * An EC=0 type wakeup will return with a value of 0. SRESET wakeup (which can
40 * GPRs may be lost, so they are saved here. Wakeup is by interrupt only.
41 * The SRESET wakeup returns to this function's caller by calling
44 * A wakeup without GPR loss may alteratively be handled as in
[all …]
/linux-6.14.4/Documentation/devicetree/bindings/pinctrl/
Dste,nomadik.txt4 - compatible: "stericsson,db8500-pinctrl", "stericsson,db8540-pinctrl",
5 "stericsson,stn8815-pinctrl"
6 - nomadik-gpio-chips: array of phandles to the corresponding GPIO chips
8 - prcm: phandle to the PRCMU managing the back end of this pin controller
10 Please refer to pinctrl-bindings.txt in this directory for details of the
23 (see pinctrl-bindings.txt):
26 - function: A string containing the name of the function to mux to the
28 - groups : An array of strings. Each string contains the name of a pin
30 set-up.
33 - pins: A string array describing the pins affected by the configuration
[all …]
/linux-6.14.4/Documentation/admin-guide/
Dbtmrvl.rst14 bit 8:0 -- Gap
15 bit 16:8 -- GPIO
18 It could be any valid GPIO pin# (e.g. 0-7) or 0xff (SDIO interface
19 wakeup will be used instead).
21 where Gap is the gap in milli seconds between wakeup signal and
22 wakeup event, or 0xff for special host sleep setting.
35 These commands are used to enable/disable auto sleep mode
39 1 -- Enable auto sleep mode
40 0 -- Disable auto sleep mode
44 # Enable auto sleep mode
[all …]
/linux-6.14.4/arch/arm/boot/dts/microchip/
Dat91sam9261ek.dts1 // SPDX-License-Identifier: GPL-2.0-only
3 * at91sam9261ek.dts - Device Tree file for Atmel at91sam9261 reference board
5 * Copyright (C) 2013 Jean-Jacques Hiblot <[email protected]>
7 /dts-v1/;
16 stdout-path = "serial0:115200n8";
25 clock-frequency = <32768>;
29 clock-frequency = <18432000>;
40 atmel,power-control-gpio = <&pioA 12 GPIO_ACTIVE_LOW>;
44 bits-per-pixel = <16>;
45 atmel,lcdcon-backlight;
[all …]
/linux-6.14.4/drivers/usb/dwc3/
Ddwc3-qcom.c1 // SPDX-License-Identifier: GPL-2.0
4 * Inspired by dwc3-of-simple.c
88 enum usb_dr_mode mode; member
122 dwc3_qcom_setbits(qcom->qscratch_base, QSCRATCH_SS_PHY_CTRL, in dwc3_qcom_vbus_override_enable()
124 dwc3_qcom_setbits(qcom->qscratch_base, QSCRATCH_HS_PHY_CTRL, in dwc3_qcom_vbus_override_enable()
127 dwc3_qcom_clrbits(qcom->qscratch_base, QSCRATCH_SS_PHY_CTRL, in dwc3_qcom_vbus_override_enable()
129 dwc3_qcom_clrbits(qcom->qscratch_base, QSCRATCH_HS_PHY_CTRL, in dwc3_qcom_vbus_override_enable()
139 /* enable vbus override for device mode */ in dwc3_qcom_vbus_notifier()
141 qcom->mode = event ? USB_DR_MODE_PERIPHERAL : USB_DR_MODE_HOST; in dwc3_qcom_vbus_notifier()
151 /* disable vbus override in host mode */ in dwc3_qcom_host_notifier()
[all …]
/linux-6.14.4/Documentation/devicetree/bindings/rtc/
Dfsl,ls-ftm-alarm.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/rtc/fsl,ls-ftm-alarm.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Frank Li <[email protected]>
15 - fsl,ls1012a-ftm-alarm
16 - fsl,ls1021a-ftm-alarm
17 - fsl,ls1028a-ftm-alarm
18 - fsl,ls1043a-ftm-alarm
19 - fsl,ls1046a-ftm-alarm
[all …]

12345678910>>...42