/linux/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/ |
H A D | pwrseq.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright(c) 2009-2013 Realtek Corporation.*/ 8 /* Check document WM-20110607-Paul-RTL8188EE_Power_Architecture-R02.vsd 10 * 0: POFF--Power Off 11 * 1: PDN--Power Down 12 * 2: CARDEMU--Card Emulation 13 * 3: ACT--Active Mode 14 * 4: LPS--Low Power State 15 * 5: SUS--Suspend 47 /* wait till 0x04[17] = 1 power ready*/}, \ [all …]
|
/linux/Documentation/driver-api/firmware/ |
H A D | firmware_cache.rst | 5 When Linux resumes from suspend some device drivers require firmware lookups to 6 re-initialize devices. During resume there may be a period of time during which 8 requests will fail. Time is of essence though, and delaying drivers to wait for 10 functionality. In order to support these requirements the firmware 15 driver's suspend and resume callback. Users of these API calls needn't cache 18 The firmware cache works by requesting for firmware prior to suspend and 19 caching it in memory. Upon resume device drivers using the firmware API will 20 have access to the firmware immediately, without having to wait for the root 41 will still be used on resume from suspend. 44 as the firmware cache is set up during suspend, the timeout is set back to [all …]
|
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/ |
H A D | pwrseq.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright(c) 2009-2014 Realtek Corporation.*/ 9 * Check document WM-20110607-Paul-RTL8192E_Power_Architecture-R02.vsd 11 * 0: POFF--Power Off 12 * 1: PDN--Power Down 13 * 2: CARDEMU--Card Emulation 14 * 3: ACT--Active Mode 15 * 4: LPS--Low Power State 16 * 5: SUS--Suspend 51 /* disable WL suspend*/ \ [all …]
|
/linux/drivers/base/power/ |
H A D | runtime.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * drivers/base/power/runtime.c - Helper functions for device runtime PM 27 if (dev->pm_domain) in __rpm_get_callback() 28 ops = &dev->pm_domain->ops; in __rpm_get_callback() 29 else if (dev->type && dev->type->pm) in __rpm_get_callback() 30 ops = dev->type->pm; in __rpm_get_callback() 31 else if (dev->class && dev->class->pm) in __rpm_get_callback() 32 ops = dev->class->pm; in __rpm_get_callback() 33 else if (dev->bus && dev->bus->pm) in __rpm_get_callback() 34 ops = dev->bus->pm; in __rpm_get_callback() [all …]
|
H A D | main.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * drivers/base/power/main.c - Where the driver meets power management. 9 * This will initialize the embedded device_pm_info object in the device 10 * and add it to the list of power-controlled devices. sysfs entries for 26 #include <linux/pm-trace.h> 32 #include <linux/suspend.h> 48 * The entries in the dpm_list list are in a depth first order, simply 72 return "suspend"; in pm_verb() 93 * device_pm_sleep_init - Initialize system suspend-related device fields. 98 dev->power.is_prepared = false; in device_pm_sleep_init() [all …]
|
/linux/Documentation/devicetree/bindings/watchdog/ |
H A D | fsl-imx-wdt.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/watchdog/fsl-imx-wdt.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Shawn Guo <shawnguo@kernel.org> 11 - Sascha Hauer <s.hauer@pengutronix.de> 12 - Fabio Estevam <festevam@gmail.com> 17 - const: fsl,imx21-wdt 18 - items: 19 - enum: [all …]
|
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/ |
H A D | pwrseq.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright(c) 2009-2012 Realtek Corporation.*/ 9 * Check document WM-20110607-Paul-RTL8723A_Power_Architecture-R02.vsd 11 * 0: POFF--Power Off 12 * 1: PDN--Power Down 13 * 2: CARDEMU--Card Emulation 14 * 3: ACT--Active Mode 15 * 4: LPS--Low Power State 16 * 5: SUS--Suspend 47 /* wait till 0x04[17] = 1 power ready*/ \ [all …]
|
/linux/drivers/watchdog/ |
H A D | imx2_wdt.c | 1 // SPDX-License-Identifier: GPL-2.0 14 * ---- ----- 15 * Registers: 32-bit 16-bit 18 * Halt on suspend: Manual Can be automatic 34 #define DRIVER_NAME "imx2-wdt" 37 #define IMX2_WDT_WCR_WT (0xFF << 8) /* -> Watchdog Timeout Field */ 38 #define IMX2_WDT_WCR_WDW BIT(7) /* -> Watchdog disable for WAIT */ 39 #define IMX2_WDT_WCR_WDA BIT(5) /* -> External Reset WDOG_B */ 40 #define IMX2_WDT_WCR_SRS BIT(4) /* -> Software Reset Signal */ 41 #define IMX2_WDT_WCR_WRE BIT(3) /* -> WDOG Reset Enable */ [all …]
|
/linux/drivers/char/ |
H A D | apm-emulation.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * bios-less APM driver for ARM Linux 24 #include <linux/suspend.h> 25 #include <linux/apm-emulation.h> 55 * SUSPEND_PENDING: suspend event queued for thread and pending to be read 56 * SUSPEND_READ: suspend event read, pending acknowledgement 60 * SUSPEND_DONE: thread had acked suspend and is now notified of 63 * SUSPEND_WAIT: this thread invoked suspend and is waiting for resume 65 * A thread migrates in one of three paths: 66 * NONE -1-> PENDING -2-> READ -3-> ACKED -4-> DONE -5-> NONE [all …]
|
/linux/drivers/firmware/psci/ |
H A D | psci_checker.c | 1 // SPDX-License-Identifier: GPL-2.0-only 31 static int tos_resident_cpu = -1; 42 * "enable-method" property of each CPU in the DT, but given that there is no 43 * arch-specific way to check this, we assume that the DT is sensible. 47 int migrate_type = -1; in psci_ops_check() 52 return -EOPNOTSUPP; in psci_ops_check() 66 if (tos_resident_cpu == -1) in psci_ops_check() 85 /* Try to power down all CPUs in the mask. */ in down_and_up_cpus() 94 if (ret != -EBUSY) { in down_and_up_cpus() 101 if (ret != -EPERM) { in down_and_up_cpus() [all …]
|
/linux/Documentation/power/ |
H A D | runtime_pm.rst | 5 (C) 2009-2011 Rafael J. Wysocki <rjw@sisk.pl>, Novell Inc. 17 * The power management workqueue pm_wq in which bus types and device drivers can 18 put their PM-related work items. It is strongly recommended that pm_wq be 20 them to be synchronized with system-wide power transitions (suspend to RAM, 21 hibernation and resume from system sleep states). pm_wq is declared in 22 include/linux/pm_runtime.h and defined in kernel/power/main.c. 24 * A number of runtime PM fields in the 'power' member of 'struct device' (which 25 is of the type 'struct dev_pm_info', defined in include/linux/pm.h) that can 28 * Three device runtime PM callbacks in 'struct dev_pm_ops' (defined in 31 * A set of helper functions defined in drivers/base/power/runtime.c that can be [all …]
|
H A D | basic-pm-debugging.rst | 2 Debugging hibernation and suspend 7 1. Testing hibernation (aka suspend to disk or STD) 10 To check if hibernation works, you can try to hibernate in the "reboot" mode:: 18 test at least a couple of times in a row for confidence. [This is necessary, 20 resuming the system.] Moreover, hibernating in the "reboot" and "shutdown" 21 modes causes the PM core to skip some platform-related callbacks which on ACPI 23 fails to hibernate or resume in the "reboot" mode, you should try the 32 with broken BIOSes. In such cases the "shutdown" mode of hibernation might 45 ---------------------------- 50 core run in a test mode. There are 5 test modes available: [all …]
|
/linux/arch/powerpc/platforms/44x/ |
H A D | cpm.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 24 #include <linux/suspend.h> 26 #include <asm/dcr-native.h> 43 unsigned int suspend; member 54 [CPM_IDLE_WAIT] = { 1, "wait" }, /* default */ 84 /* set wait state MSR */ in cpm_idle_wait() 99 /* go to wait state so that CPM0_ER[CPU] can take effect */ in cpm_idle_sleep() 137 *(s-1) = '\n'; /* convert the last space to a newline */ in cpm_idle_show() 139 return s - buf; in cpm_idle_show() 151 len = p ? p - buf : n; in cpm_idle_store() [all …]
|
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
H A D | pwrseq.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright(c) 2009-2014 Realtek Corporation.*/ 9 * Check document WM-20130425-JackieLau-RTL8723B_Power_Architecture v05.vsd 11 * 0: POFF--Power Off 12 * 1: PDN--Power Down 13 * 2: CARDEMU--Card Emulation 14 * 3: ACT--Active Mode 15 * 4: LPS--Low Power State 16 * 5: SUS--Suspend 62 /* Disable USB suspend */ \ [all …]
|
/linux/drivers/usb/misc/ |
H A D | ehset.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2010-2013, The Linux Foundation. All rights reserved. 41 * going under test needs to be put in suspend before sending the in ehset_prepare_port_for_testing() 51 * Wait for the port to be disabled. It's an arbitrary value in ehset_prepare_port_for_testing() 58 * put the port in SUSPEND. in ehset_prepare_port_for_testing() 70 int ret = -EINVAL; in ehset_probe() 72 struct usb_device *hub_udev = dev->parent; in ehset_probe() 74 u8 portnum = dev->portnum; in ehset_probe() 75 u16 test_pid = le16_to_cpu(dev->descriptor.idProduct); in ehset_probe() 115 /* Test: wait for 15secs -> suspend -> 15secs delay -> resume */ in ehset_probe() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bar/ |
H A D | base.c | 6 * to deal in the Software without restriction, including without limitation 11 * The above copyright notice and this permission notice shall be included in 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20 * OTHER DEALINGS IN THE SOFTWARE. 29 if (bar && bar->func->flush) in nvkm_bar_flush() 30 bar->func->flush(bar); in nvkm_bar_flush() 36 return device->bar->func->bar1.vmm(device->bar); in nvkm_bar_bar1_vmm() 42 struct nvkm_bar *bar = device->bar; in nvkm_bar_bar1_reset() [all …]
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-power | 15 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 29 system suspend. Reading from it returns the available modes 32 to suspend the system (by writing "mem" to the /sys/power/state 33 file described above) is enclosed in square brackets. 36 represented by it to be used on subsequent attempts to suspend 39 See Documentation/admin-guide/pm/sleep-states.rst for more 47 suspend-to-disk mechanism. Reading from this file returns 49 sleep on the next suspend. There are four methods supported: [all …]
|
H A D | debugfs-cros-ec | 1 What: /sys/kernel/debug/<cros-ec-device>/console_log 10 What: /sys/kernel/debug/<cros-ec-device>/panicinfo 18 What: /sys/kernel/debug/<cros-ec-device>/pdinfo 23 information for all the USB PD/type-C ports available. If 27 What: /sys/kernel/debug/<cros-ec-device>/uptime 31 A u32 providing the time since EC booted in ms. This is 36 What: /sys/kernel/debug/<cros-ec-device>/last_resume_result 41 the (Intel) processor's SLP_S0 line, in order to detect cases 48 transitions that occurred since the suspend message was 52 S0ix timeouts. The result will be zero if no suspend [all …]
|
/linux/drivers/tee/optee/ |
H A D | optee_rpc_cmd.h | 1 /* SPDX-License-Identifier: BSD-2-Clause */ 3 * Copyright (c) 2016-2021, Linaro Limited 14 * RPC communication with tee-supplicant is reversed compared to normal 23 * 1970-01-01 00:00:00 +0000 (UTC). 33 * If secure world needs to wait for something, for instance a mutex, it 34 * does a notification wait request instead of spinning in secure world. 38 * This interface can also be used to wait for a asynchronous notification 39 * which instead is sent via a non-secure interrupt. 42 * [in] value[0].a OPTEE_RPC_NOTIFICATION_WAIT 43 * [in] value[0].b notification value [all …]
|
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
H A D | pwrseq.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright(c) 2009-2010 Realtek Corporation.*/ 30 /* wait till 0x04[17] = 1 power ready*/}, \ 36 /* disable WL suspend*/}, \ 46 /* 0xc00[7:0] = 4 turn off 3-wire */}, \ 49 /* 0xe00[7:0] = 4 turn off 3-wire */}, \ 70 /*wait till 0x04[9] = 0 polling until return 0 to disable*/}, 91 /* suspend option all off */}, \ 106 /*0x04[11] = 2b'11 enable WL suspend for PCIe*/}, 111 /*0x04[11] = 2b'01enable WL suspend*/}, \ [all …]
|
/linux/drivers/staging/rtl8723bs/include/ |
H A D | hal_pwr_seq.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 8 Check document WM-20130815-JackieLau-RTL8723B_Power_Architecture v08.vsd 10 0: POFF--Power Off 11 1: PDN--Power Down 12 2: CARDEMU--Card Emulation 13 3: ACT--Active Mode 14 4: LPS--Low Power State 15 5: SUS--Suspend 47 …ALL_MSK, PWR_INTF_PCI_MSK, PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT0, BIT0},/* Disable USB suspend */ \ 48 …_MSK, PWR_INTF_ALL_MSK, PWR_BASEADDR_MAC, PWR_CMD_POLLING, BIT1, BIT1},/* wait till 0x04[17] = 1 … [all …]
|
/linux/drivers/gpu/drm/i915/ |
H A D | Kconfig.profile | 9 rounded to whole seconds times three, in order to avoid allowing 10 misbehaving applications causing total rendering failure in unrelated 31 On runtime suspend, as we suspend the device, we have to revoke 35 that complements the runtime-pm autosuspend and provides a lower 46 check the health of the GPU and undertake regular house-keeping of 59 How long to wait (in milliseconds) for a preemption event to occur 69 The compiled in default may get overridden at driver probe time on 70 certain platforms and certain engines which will be reflected in the 77 How long to wait (in milliseconds) for a preemption event to occur 88 The compiled in default may get overridden at driver probe time on [all …]
|
H A D | intel_wakeref.h | 2 * SPDX-License-Identifier: MIT 83 * the runtime pm wakeref and then call the intel_wakeref_ops->get() 86 * Note that intel_wakeref_ops->get() is allowed to fail, in which case 87 * the runtime-pm wakeref will be released and the acquisition unwound, 97 if (unlikely(!atomic_inc_not_zero(&wf->count))) in intel_wakeref_get() 115 INTEL_WAKEREF_BUG_ON(atomic_read(&wf->count) <= 0); in __intel_wakeref_get() 116 atomic_inc(&wf->count); in __intel_wakeref_get() 131 return atomic_inc_not_zero(&wf->count); in intel_wakeref_get_if_active() 142 might_lock(&wf->mutex); in intel_wakeref_might_get() 151 * the runtime pm wakeref will be released after the intel_wakeref_ops->put() [all …]
|
/linux/arch/mips/alchemy/devboards/ |
H A D | pm.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Alchemy Development Board example suspend userspace interface. 10 #include <linux/suspend.h> 12 #include <asm/mach-au1x00/au1000.h> 13 #include <asm/mach-au1x00/gpio-au1000.h> 14 #include <asm/mach-db1x00/bcsr.h> 17 * Generic suspend userspace interface for Alchemy development boards. 19 * can be used by userspace to en/disable all au1x-provided wakeup 54 /* setup 1Hz-timer-based wakeup: wait for reg access */ in db1x_pm_enter() 61 /* wait for value to really hit the register */ in db1x_pm_enter() [all …]
|
/linux/drivers/net/wwan/iosm/ |
H A D | iosm_ipc_imem.h | 1 /* SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2020-21 Intel Corporation. 19 /* IRQ moderation in usec */ 30 /* Timeout in 20 msec to wait for the modem to boot up to 36 /* Wait timeout for ipc status reflects IPC_MEM_DEVICE_IPC_UNINIT 46 /* The timeout in milliseconds for application to wait for remote time. */ 70 #define IMEM_IRQ_DONT_CARE (-1) 88 * Modem crash notification configuration. If this value is non-zero then 91 * will use out-of-band method to notify about it's Crash. 100 #define IPC_CB(skb) ((struct ipc_skb_cb *)((skb)->cb)) [all …]
|