Home
last modified time | relevance | path

Searched +full:autosuspend +full:- +full:delay (Results 1 – 25 of 61) sorted by relevance

123

/linux/Documentation/driver-api/usb/
H A Dpower-management.rst1 .. _usb-power-management:
7 :Date: Last-updated: February 2014
11 ---------
17 * Changing the default idle-delay time
20 * The driver interface for autosuspend and autoresume
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
67 ----------------------
85 --------------------------
[all …]
/linux/Documentation/power/
H A Druntime_pm.rst5 (C) 2009-2011 Rafael J. Wysocki <rjw@sisk.pl>, Novell Inc.
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,
53 The ->runtime_suspend(), ->runtime_resume() and ->runtime_idle() callbacks
57 1. PM domain of the device, if the device's PM domain object, dev->pm_domain,
60 2. Device type of the device, if both dev->type and dev->type->pm are present.
62 3. Device class of the device, if both dev->class and dev->class->pm are
65 4. Bus type of the device, if both dev->bus and dev->bus->pm are present.
69 dev->driver->pm directly (if present).
73 and bus type. Moreover, the high-priority one will always take precedence over
[all …]
/linux/drivers/gpu/drm/i915/
H A DKconfig.profile28 int "Runtime autosuspend delay for userspace GGTT mmaps (ms)"
35 that complements the runtime-pm autosuspend and provides a lower
36 floor on the autosuspend delay.
38 May be 0 to disable the extra delay and solely use the device level
39 runtime pm autosuspend delay tunable.
46 check the health of the GPU and undertake regular house-keeping of
98 take a non-negligible time to setup, we do a short spin first to
/linux/include/linux/
H A Dpm_runtime.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * pm_runtime.h - Device run-time power management helper functions.
77 extern int pm_schedule_suspend(struct device *dev, unsigned int delay);
89 extern void pm_runtime_set_autosuspend_delay(struct device *dev, int delay);
103 * pm_suspend_ignore_children - Set runtime PM behavior regarding children.
113 dev->power.ignore_children = enable; in pm_suspend_ignore_children()
117 * pm_runtime_get_noresume - Bump up runtime PM usage counter of a device.
122 atomic_inc(&dev->power.usage_count); in pm_runtime_get_noresume()
126 * pm_runtime_put_noidle - Drop runtime PM usage counter of a device.
133 atomic_add_unless(&dev->power.usage_count, -1, 0); in pm_runtime_put_noidle()
[all …]
/linux/Documentation/devicetree/bindings/media/
H A Dgpio-ir-receiver.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/media/gpio-ir-receiver.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
13 - $ref: rc.yaml#
17 const: gpio-ir-receiver
22 linux,autosuspend-period:
23 description: autosuspend delay time in milliseconds
26 wakeup-source:
[all …]
/linux/drivers/usb/core/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0
30 Documentation/driver-api/usb/persist.rst for more info.
45 Say N here unless you require new-device enumeration failure to
64 "Dual-Role" device, which can act as either a device
69 Select this only if your board has Mini-AB/Micro-AB
97 Implements OTG Finite State Machine as specified in On-The-Go
109 int "Default autosuspend delay"
113 The default autosuspend delay in seconds. Can be overridden
114 with the usbcore.autosuspend command line or module parameter.
117 this value if you want a different delay and cannot modify
H A Dhub.c1 // SPDX-License-Identifier: GPL-2.0
77 /* Protect struct usb_device->state and ->children members
78 * Note: Both are also protected by ->dev.sem, except that ->state can
86 /* synchronize hub-port add/remove and peering operations */
96 * 10 seconds to send reply for the initial 64-byte descriptor request.
98 /* define initial 64-byte descriptor request timeout in milliseconds */
102 "initial 64-byte descriptor request timeout in milliseconds "
103 "(default 5000 - 5.0 seconds)");
147 if (hub_is_superspeedplus(hub->hdev)) in portspeed()
149 if (hub_is_superspeed(hub->hdev)) in portspeed()
[all …]
/linux/Documentation/ABI/stable/
H A Dsysfs-bus-usb8 not the "USB-Persist" facility is enabled for the device. For
12 For more information, see Documentation/driver-api/usb/persist.rst.
14 What: /sys/bus/usb/devices/.../power/autosuspend
20 power/autosuspend. This file holds the time (in seconds)
27 The autosuspend delay for newly-created devices is set to
28 the value of the usbcore.autosuspend module parameter.
37 connected to the machine. This file is read-only.
49 active, i.e. not in a suspended state. This file is read-only.
63 What: /sys/bus/usb/devices/<busnum>-<port[.port]>...:<config num>-<interface num>/supports_autosus…
69 for this interface supports autosuspend. It also
[all …]
/linux/drivers/accel/ivpu/
H A Divpu_pm.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2020-2024 Intel Corporation
34 MODULE_PARM_DESC(tdr_timeout_ms, "Timeout for device hang detection, in milliseconds, 0 - default");
38 MODULE_PARM_DESC(inference_timeout_ms, "Inference maximum duration, in milliseconds, 0 - default");
44 struct ivpu_fw_info *fw = vdev->fw; in ivpu_pm_prepare_cold_boot()
50 fw->entry_point = fw->cold_boot_entry_point; in ivpu_pm_prepare_cold_boot()
51 fw->last_heartbeat = 0; in ivpu_pm_prepare_cold_boot()
56 struct ivpu_fw_info *fw = vdev->fw; in ivpu_pm_prepare_warm_boot()
57 struct vpu_boot_params *bp = ivpu_bo_vaddr(fw->mem); in ivpu_pm_prepare_warm_boot()
59 if (!bp->save_restore_ret_address) { in ivpu_pm_prepare_warm_boot()
[all …]
/linux/drivers/base/power/
H A Druntime.c1 // SPDX-License-Identifier: GPL-2.0
3 * drivers/base/power/runtime.c - Helper functions for device runtime PM
30 if (dev->driver && dev->driver->pm) in __rpm_get_driver_callback()
31 return get_callback_ptr(dev->driver->pm, cb_offset); in __rpm_get_driver_callback()
41 if (dev->pm_domain) in __rpm_get_callback()
42 ops = &dev->pm_domain->ops; in __rpm_get_callback()
43 else if (dev->type && dev->type->pm) in __rpm_get_callback()
44 ops = dev->type->pm; in __rpm_get_callback()
45 else if (dev->class && dev->class->pm) in __rpm_get_callback()
46 ops = dev->class->pm; in __rpm_get_callback()
[all …]
/linux/block/
H A Dblk-pm.c1 // SPDX-License-Identifier: GPL-2.0
3 #include <linux/blk-pm.h>
6 #include "blk-mq.h"
9 * blk_pm_runtime_init - Block layer runtime PM initialization routine
14 * Initialize runtime-PM-related fields for @q and start auto suspend for
15 * @dev. Drivers that want to take advantage of request-based runtime PM
22 * the autosuspend delay is set to -1 to make runtime suspend impossible
24 * not need to touch other autosuspend settings.
31 q->dev = dev; in blk_pm_runtime_init()
32 q->rpm_status = RPM_ACTIVE; in blk_pm_runtime_init()
[all …]
/linux/Documentation/devicetree/bindings/remoteproc/
H A Dti,omap-remoteproc.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/remoteproc/ti,omap-remoteproc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Suman Anna <s-anna@ti.com>
13 The OMAP family of SoCs usually have one or more slave processor sub-systems
14 that are used to offload some of the processor-intensive tasks, or to manage
17 The processor cores in the sub-system are usually behind an IOMMU, and may
18 contain additional sub-modules like Internal RAM and/or ROMs, L1 and/or L2
21 The OMAP SoCs usually have a DSP processor sub-system and/or an IPU processor
[all …]
/linux/Documentation/devicetree/bindings/spi/
H A Dspi-pl022.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/spi/spi-pl022.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Linus Walleij <linus.walleij@linaro.org>
13 - $ref: spi-controller.yaml#
14 - $ref: /schemas/arm/primecell.yaml#
23 - compatible
28 - const: arm,pl022
29 - const: arm,primecell
[all …]
/linux/drivers/media/rc/
H A Dgpio-ir-recv.c1 // SPDX-License-Identifier: GPL-2.0-only
16 #include <media/rc-core.h>
32 struct device *pmdev = gpio_dev->pmdev; in gpio_ir_recv_irq()
38 * this may introduce a millisecond delay to call resume callback, in gpio_ir_recv_irq()
42 * respond to interrupt, another is delay introduced by async api. in gpio_ir_recv_irq()
47 val = gpiod_get_value(gpio_dev->gpiod); in gpio_ir_recv_irq()
49 ir_raw_event_store_edge(gpio_dev->rcdev, val == 1); in gpio_ir_recv_irq()
59 struct device *dev = &pdev->dev; in gpio_ir_recv_probe()
60 struct device_node *np = dev->of_node; in gpio_ir_recv_probe()
67 return -ENODEV; in gpio_ir_recv_probe()
[all …]
/linux/sound/usb/
H A Dusbaudio.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
10 /* handling of USB vendor/product ID pairs as 32-bit numbers */
56 struct list_head ep_list; /* list of audio-related endpoints */
80 #define USB_AUDIO_IFACE_UNUSED ((void *)-1L)
83 dev_err(&(chip)->dev->dev, fmt, ##args)
85 dev_err_ratelimited(&(chip)->dev->dev, fmt, ##args)
87 dev_warn(&(chip)->dev->dev, fmt, ##args)
89 dev_info(&(chip)->dev->dev, fmt, ##args)
91 dev_dbg(&(chip)->dev->dev, fmt, ##args)
98 #define QUIRK_NODEV_INTERFACE -3 /* return -ENODEV */
[all …]
/linux/sound/hda/common/
H A Dcodec.c1 // SPDX-License-Identifier: GPL-2.0-or-later
9 #include <linux/delay.h>
28 #define codec_in_pm(codec) snd_hdac_is_in_pm(&codec->core)
29 #define hda_codec_is_power_on(codec) snd_hdac_is_power_on(&codec->core)
31 ((codec)->core.power_caps & AC_PWRST_EPSS)
33 ((codec)->cor
3403 snd_hda_codec_set_power_save(struct hda_codec * codec,int delay) snd_hda_codec_set_power_save() argument
3430 snd_hda_set_power_save(struct hda_bus * bus,int delay) snd_hda_set_power_save() argument
[all...]
/linux/drivers/usb/misc/
H A Dusb-ljca.c1 // SPDX-License-Identifier: GPL-2.0-only
30 (LJCA_MAX_PACKET_SIZE - sizeof(struct ljca_msg))
108 * struct ljca_adapter - represent a ljca adapter
197 list_for_each_entry(client, &adap->client_list, link) { in ljca_handle_event()
203 if (client->type == header->type) { in ljca_handle_event()
206 spin_lock_irqsave(&client->event_cb_lock, flags); in ljca_handle_event()
207 client->event_cb(client->context, header->cmd, in ljca_handle_event()
208 header->data, header->len); in ljca_handle_event()
209 spin_unlock_irqrestore(&client->event_cb_lock, flags); in ljca_handle_event()
219 struct ljca_msg *tx_header = adap->tx_buf; in ljca_handle_cmd_ack()
[all …]
/linux/drivers/gpu/vga/
H A Dvga_switcheroo.c2 * vga_switcheroo.c - Support for laptop with dual GPU using one set of outputs
33 #include <linux/apple-gmux.h>
71 * handler to control the power state of the discrete GPU, its ->switchto
72 * callback is a no-op for obvious reasons. The discrete GPU is often equipped
93 * struct vga_switcheroo_client - registered client
105 * interface is a no-op so as not to interfere with runtime pm
131 * struct vgasr_priv - vga_switcheroo private data
166 #define client_is_audio(c) ((c)->id & ID_BIT_AUDIO)
168 #define client_id(c) ((c)->id & ~ID_BIT_AUDIO)
192 if (vgasr_priv.handler->init) in vga_switcheroo_enable()
[all …]
/linux/drivers/i2c/busses/
H A Di2c-sprd.c4 * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 #include <linux/delay.h>
72 /* timeout (ms) for pm runtime autosuspend */
95 writel(count, i2c_dev->base + I2C_COUNT); in sprd_i2c_set_count()
100 u32 tmp = readl(i2c_dev->base + I2C_CTL); in sprd_i2c_send_stop()
103 writel(tmp & ~STP_EN, i2c_dev->base + I2C_CTL); in sprd_i2c_send_stop()
105 writel(tmp | STP_EN, i2c_dev->base + I2C_CTL); in sprd_i2c_send_stop()
110 u32 tmp = readl(i2c_dev->base + I2C_CTL); in sprd_i2c_clear_start()
112 writel(tmp & ~I2C_START, i2c_dev->base + I2C_CTL); in sprd_i2c_clear_start()
117 u32 tmp = readl(i2c_dev->base + I2C_STATUS); in sprd_i2c_clear_ack()
[all …]
/linux/drivers/usb/host/
H A Duhci-hcd.h1 /* SPDX-License-Identifier: GPL-2.0 */
61 #define USBPORTSC_DMINUS 0x0020 /* D- high (line status) */
80 /* PCI Intel-specific resume-enable register */
97 /* When no queues need Full-Speed Bandwidth Reclamation,
98 * delay this long before turning FSBR off */
110 * To facilitate the strongest possible byte-order checking from "sparse"
127 * with each endpoint, and qh->element (updated by the HC) is either:
128 * - the next unprocessed TD in the endpoint's queue, or
129 * - UHCI_PTR_TERM (when there's no more traffic for this endpoint).
133 * place. Then qh->element is UHCI_PTR_TERM.
[all …]
/linux/sound/soc/codecs/
H A Drt5682-sdw.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // rt5682-sdw.c -- RT5682 ALSA SoC audio component driver
12 #include <linux/delay.h>
27 #include <sound/soc-dapm.h>
45 regmap_write(rt5682->sdw_regmap, RT5682_SDW_CMD, 0); in rt5682_sdw_read()
46 regmap_write(rt5682->sdw_regmap, RT5682_SDW_ADDR_H, (reg >> 8) & 0xff); in rt5682_sdw_read()
47 regmap_write(rt5682->sdw_regmap, RT5682_SDW_ADDR_L, (reg & 0xff)); in rt5682_sdw_read()
48 regmap_read(rt5682->sdw_regmap, RT5682_SDW_DATA_H, &data_h); in rt5682_sdw_read()
49 regmap_read(rt5682->sdw_regmap, RT5682_SDW_DATA_L, &data_l); in rt5682_sdw_read()
63 regmap_write(rt5682->sdw_regmap, RT5682_SDW_CMD, 1); in rt5682_sdw_write()
[all …]
H A Drt1017-sdca-sdw.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // rt1017-sdca-sdw.c -- rt1017 SDCA ALSA SoC amplifier audio driver
8 #include <linux/delay.h>
18 #include <sound/soc-dapm.h>
22 #include "rt1017-sdca-sdw.h"
259 struct sdw_slave_prop *prop = &slave->prop; in rt1017_sdca_read_prop()
266 prop->scp_int1_mask = SDW_SCP_INT1_BUS_CLASH | SDW_SCP_INT1_PARITY; in rt1017_sdca_read_prop()
267 prop->quirks = SDW_SLAVE_QUIRKS_INVALID_INITIAL_PARITY; in rt1017_sdca_read_prop()
269 prop->paging_support = true; in rt1017_sdca_read_prop()
275 prop->source_ports = BIT(2); /* BITMAP: 00000100 */ in rt1017_sdca_read_prop()
[all …]
H A Drt1320-sdw.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // rt1320-sdw.c -- rt1320 SDCA ALSA SoC amplifier audio driver
8 #include <linux/delay.h>
19 #include <sound/soc-dapm.h>
23 #include "rt1320-sd
563 unsigned int delay = 1000, val; rt1320_pde_transition_delay() local
639 unsigned int i, reg, val, delay; rt1320_vab_preset() local
658 unsigned int i, reg, val, delay, retry, tmp; rt1320_vc_preset() local
[all...]
H A Drt1308-sdw.c1 // SPDX-License-Identifier: GPL-2.0
3 // rt1308-sdw.c -- rt1308 ALSA SoC audio driver
8 #include <linux/delay.h>
22 #include <sound/soc-dapm.h>
26 #include "rt1308-sdw.h"
90 clk_freq = (rt1308->params.curr_dr_freq >> 1); in rt1308_clock_config()
112 return -EINVAL; in rt1308_clock_config()
115 regmap_write(rt1308->regmap, 0xe0, value); in rt1308_clock_config()
116 regmap_write(rt1308->regmap, 0xf0, value); in rt1308_clock_config()
125 struct sdw_slave_prop *prop = &slave->prop; in rt1308_read_prop()
[all …]
H A Dmax98373-sdw.c1 // SPDX-License-Identifier: GPL-2.0-only
5 #include <linux/delay.h>
21 #include "max98373-sdw.h"
255 for (i = 0; i < max98373->cache_num; i++) in max98373_suspend()
256 regmap_read(max98373->regmap, max98373->cache[i].reg, &max98373->cache[i].val); in max98373_suspend()
258 regcache_cache_only(max98373->regmap, true); in max98373_suspend()
271 if (!max98373->first_hw_init) in max98373_resume()
274 if (!slave->unattach_request) in max98373_resume()
277 time = wait_for_completion_timeout(&slave->initialization_complete, in max98373_resume()
281 sdw_show_ping_status(slave->bus, true); in max98373_resume()
[all …]

123