Home
last modified time | relevance | path

Searched +full:suspend +full:- +full:in +full:- +full:wait (Results 1 – 25 of 1007) sorted by relevance

12345678910>>...41

/Linux-v6.6/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
Dpwrseq.h1 /* 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-v6.6/Documentation/driver-api/firmware/
Dfirmware_cache.rst5 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-v6.6/drivers/base/power/
Druntime.c1 // SPDX-License-Identifier: GPL-2.0
3 * drivers/base/power/runtime.c - Helper functions for device runtime PM
26 if (dev->pm_domain) in __rpm_get_callback()
27 ops = &dev->pm_domain->ops; in __rpm_get_callback()
28 else if (dev->type && dev->type->pm) in __rpm_get_callback()
29 ops = dev->type->pm; in __rpm_get_callback()
30 else if (dev->class && dev->class->pm) in __rpm_get_callback()
31 ops = dev->class->pm; in __rpm_get_callback()
32 else if (dev->bus && dev->bus->pm) in __rpm_get_callback()
33 ops = dev->bus->pm; in __rpm_get_callback()
[all …]
Dmain.c1 // 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
73 return "suspend"; in pm_verb()
94 * device_pm_sleep_init - Initialize system suspend-related device fields.
99 dev->power.is_prepared = false; in device_pm_sleep_init()
[all …]
/Linux-v6.6/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
Dpwrseq.h1 /* 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-v6.6/Documentation/devicetree/bindings/watchdog/
Dfsl-imx-wdt.yaml1 # 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 - Anson Huang <Anson.Huang@nxp.com>
15 - const: fsl,imx21-wdt
16 - items:
17 - enum:
18 - fsl,imx25-wdt
19 - fsl,imx27-wdt
[all …]
/Linux-v6.6/drivers/watchdog/
Dimx2_wdt.c1 // 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-v6.6/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
Dpwrseq.h1 /* 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-v6.6/drivers/char/
Dapm-emulation.c1 // 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-v6.6/drivers/tee/optee/
Doptee_rpc_cmd.h1 /* 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-v6.6/drivers/firmware/psci/
Dpsci_checker.c1 // 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-v6.6/arch/powerpc/platforms/4xx/
Dcpm.c1 // 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-v6.6/Documentation/power/
Druntime_pm.rst5 (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 …]
Dbasic-pm-debugging.rst2 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-v6.6/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
Dpwrseq.h1 /* 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-v6.6/drivers/gpu/drm/i915/
Dintel_wakeref.h2 * SPDX-License-Identifier: MIT
71 * the runtime pm wakeref and then call the intel_wakeref_ops->get()
74 * Note that intel_wakeref_ops->get() is allowed to fail, in which case
75 * the runtime-pm wakeref will be released and the acquisition unwound,
85 if (unlikely(!atomic_inc_not_zero(&wf->count))) in intel_wakeref_get()
103 INTEL_WAKEREF_BUG_ON(atomic_read(&wf->count) <= 0); in __intel_wakeref_get()
104 atomic_inc(&wf->count); in __intel_wakeref_get()
119 return atomic_inc_not_zero(&wf->count); in intel_wakeref_get_if_active()
130 might_lock(&wf->mutex); in intel_wakeref_might_get()
139 * the runtime pm wakeref will be released after the intel_wakeref_ops->put()
[all …]
DKconfig.profile9 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 …]
/Linux-v6.6/drivers/usb/misc/
Dehset.c1 // 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-v6.6/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
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 …]
Ddebugfs-cros-ec1 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-v6.6/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
Dpwrseq.h1 /* 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-v6.6/drivers/staging/rtl8723bs/include/
Dhal_pwr_seq.h1 /* 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
49 …ALL_MSK, PWR_INTF_PCI_MSK, PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT0, BIT0},/* Disable USB suspend */ \
50 …_MSK, PWR_INTF_ALL_MSK, PWR_BASEADDR_MAC, PWR_CMD_POLLING, BIT1, BIT1},/* wait till 0x04[17] = 1 …
[all …]
/Linux-v6.6/arch/mips/alchemy/devboards/
Dpm.c1 // 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-v6.6/drivers/net/wwan/iosm/
Diosm_ipc_imem.h1 /* 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 …]
/Linux-v6.6/arch/powerpc/platforms/pseries/
Dmobility.c1 // SPDX-License-Identifier: GPL-2.0-only
50 #define PRRN_SCOPE -2
97 is_platfac = of_node_is_type(dn, "ibm,platform-facilities") || in delete_dt_node()
98 of_node_is_type(pdn, "ibm,platform-facilities"); in delete_dt_node()
102 * The drivers that bind to nodes in the platform-facilities in delete_dt_node()
126 * value is contained in the buffer and we need to call in update_dt_property()
127 * ibm,update-properties again to get the rest of the value. in update_dt_property()
138 char *new_data = kzalloc(new_prop->length + vd, GFP_KERNEL); in update_dt_property()
140 return -ENOMEM; in update_dt_property()
142 memcpy(new_data, new_prop->value, new_prop->length); in update_dt_property()
[all …]

12345678910>>...41