Home
last modified time | relevance | path

Searched +full:idle +full:- +full:wait +full:- +full:delay (Results 1 – 25 of 490) sorted by relevance

12345678910>>...20

/linux/Documentation/devicetree/bindings/phy/
H A Dnvidia,tegra20-usb-phy.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/phy/nvidia,tegra20-usb-phy.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Dmitry Osipenko <digetx@gmail.com>
11 - Jon Hunter <jonathanh@nvidia.com>
12 - Thierry Reding <thierry.reding@gmail.com>
17 - items:
18 - enum:
19 - nvidia,tegra124-usb-phy
[all …]
/linux/include/linux/platform_data/
H A Di2c-mux-gpio.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * i2c-mux-gpio interface to platform code
11 /* MUX has no specific idle mode */
12 #define I2C_MUX_GPIO_NO_IDLE ((unsigned)-1)
15 * struct i2c_mux_gpio_platform_data - Platform-dependent data for i2c-mux-gpio
21 * @idle: Bitmask to write to MUX when idle or GPIO_I2CMUX_NO_IDLE if not used
22 * @settle_time: Delay to wait when a new bus is selected
29 unsigned idle; member
/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/drivers/clk/ti/
H A Dclkt_dflt.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2005-2008, 2015 Texas Instruments, Inc.
6 * Copyright (C) 2004-2010 Nokia Corporation
9 * Richard Woodruff <r-woodruff2@ti.com>
11 * Tero Kristo <t-kristo@ti.com>
16 #include <linux/clk-provider.h>
19 #include <linux/delay.h>
24 * MAX_MODULE_ENABLE_WAIT: maximum of number of microseconds to wait
25 * for a module to indicate that it is no longer in idle
37 * _wait_idlest_generic - wait for a module to leave the idle state
[all …]
/linux/arch/arm/mach-tegra/
H A Dplatsmp.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/arch/arm/mach-tegra/platsmp.c
13 #include <linux/delay.h>
26 #include <asm/mach-types.h>
42 static int tegra20_boot_secondary(unsigned int cpu, struct task_struct *idle) in tegra20_boot_secondary() argument
50 * power-gated via the flow controller). This will have no in tegra20_boot_secondary()
58 * power-gate the CPU this will cause the flow controller to in tegra20_boot_secondary()
70 static int tegra30_boot_secondary(unsigned int cpu, struct task_struct *idle) in tegra30_boot_secondary() argument
84 * power will be resumed automatically after un-halting the in tegra30_boot_secondary()
85 * flow controller of the warm boot CPU. We need to wait for in tegra30_boot_secondary()
[all …]
/linux/arch/arm/mach-omap2/
H A Dsleep24xx.S1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * linux/arch/arm/mach-omap2/sleep.S
7 * Richard Woodruff <r-woodruff2@ti.com>
10 * Fixed idle loop sleep
26 * omap24xx_cpu_suspend() - Forces OMAP into deep sleep state by completing
31 * R0 : DLL ctrl value pre-Sleep
36 * when we get called, but the DLL probably isn't. We will wait a bit more in
37 * case the DPLL isn't quite there yet. The code will wait on DLL for DDR even
40 * For less than 242x-ES2.2 upon wake from a sleep mode where the external
41 * oscillator was stopped, a timing bug exists where a non-stabilized 12MHz
[all …]
/linux/arch/arm/mach-mvebu/
H A Dpmsu.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * Gregory Clement <gregory.clement@free-electrons.com>
9 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
16 #define pr_fmt(fmt) "mvebu-pmsu: " fmt
20 #include <linux/delay.h>
25 #include <linux/mvebu-pmsu.h>
73 /* PMSU delay registers */
104 { .compatible = "marvell,armada-370-pmsu", },
105 { .compatible = "marvell,armada-370-xp-pmsu", },
106 { .compatible = "marvell,armada-380-pmsu", },
[all …]
/linux/Documentation/devicetree/bindings/cpu/
H A Didle-states.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/cpu/idle-states.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Idle states
10 - Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
11 - Anup Patel <anup@brainfault.org>
15 1 - Introduction
18 ARM and RISC-V systems contain HW capable of managing power consumption
19 dynamically, where cores can be put in different low-power states (ranging
[all …]
/linux/kernel/rcu/
H A Dtree.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Read-Copy Update mechanism for mutual exclusion (tree-based version)
14 * For detailed explanation of Read-Copy Update mechanism see -
44 #include <linux/wait.h>
48 #include <linux/delay.h>
67 #include "../time/tick-internal.h"
88 return READ_ONCE(rdp->gpwrap_count); in rcu_get_gpwrap_count()
95 .gp_seq = (0UL - 300UL) << RCU_SEQ_CTR_SHIFT,
119 /* Control rcu_node-tree auto-balancing at boot time. */
138 * boot-time false positives from lockdep-RCU error checking. Finally, it
[all …]
H A Dsrcutree.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Sleepable Read-Copy Update mechanism for mutual exclusion.
11 * For detailed explanation of Read-Copy Update mechanism see -
25 #include <linux/delay.h>
33 /* Holdoff in nanoseconds for auto-expediting. */
38 /* Overflow-check frequency. N bits roughly says every 2**N grace periods. */
63 /* Number of CPUs to trigger init_srcu_struct()-tim
681 unsigned long delay; cleanup_srcu_struct() local
832 srcu_queue_delayed_work_on(struct srcu_data * sdp,unsigned long delay) srcu_queue_delayed_work_on() argument
846 srcu_schedule_cbs_sdp(struct srcu_data * sdp,unsigned long delay) srcu_schedule_cbs_sdp() argument
858 srcu_schedule_cbs_snp(struct srcu_struct * ssp,struct srcu_node * snp,unsigned long mask,unsigned long delay) srcu_schedule_cbs_snp() argument
1830 srcu_reschedule(struct srcu_struct * ssp,unsigned long delay) srcu_reschedule() argument
[all...]
/linux/Documentation/devicetree/bindings/i2c/
H A Di2c-mux-gpio.yaml1 # SPDX-License-Identifier: GPL-2.0-only
3 ---
4 $id: http://devicetree.org/schemas/i2c/i2c-mux-gpio.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: GPIO-based I2C Bus Mux
10 - Wolfram Sang <wsa@kernel.org>
15 +-----+ +-----+
17 +------------+ +-----+ +-----+
19 | | /--------+--------+
20 | +------+ | +------+ child bus A, on GPIO value set to 0
[all …]
/linux/sound/soc/rockchip/
H A Drockchip_sai.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * ALSA SoC Audio Layer - Rockchip SAI Controller driver
11 #include <linux/delay.h>
24 #define DRV_NAME "rockchip-sai"
78 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && in rockchip_sai_stream_valid()
79 sai->has_playback) in rockchip_sai_stream_valid()
82 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE && in rockchip_sai_stream_valid()
83 sai->has_capture) in rockchip_sai_stream_valid()
93 if (sai->is_master_mode || sai->version < SAI_VER_2311) in rockchip_sai_fsync_lost_detect()
96 regmap_read(sai->regmap, SAI_FSCR, &fw); in rockchip_sai_fsync_lost_detect()
[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/Documentation/devicetree/bindings/input/touchscreen/
H A Dazoteq,iqs7211.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Jeff LaBundy <jeff@labundy.com>
13 The Azoteq IQS7210A, IQS7211A and IQS7211E trackpad and touchscreen control-
14 lers employ projected-capacitance sensing and can track two contacts.
21 - azoteq,iqs7210a
22 - azoteq,iqs7211a
23 - azoteq,iqs7211e
28 irq-gpios:
[all …]
/linux/drivers/net/wireless/broadcom/b43/
H A Dphy_n.h1 /* SPDX-License-Identifier: GPL-2.0 */
9 /* N-PHY registers. */
18 #define B43_NPHY_4WI_ADDR B43_PHY_N(0x00B) /* Four-wire bus address */
19 #define B43_NPHY_4WI_DATAHI B43_PHY_N(0x00C) /* Four-wire bus data high */
20 #define B43_NPHY_4WI_DATALO B43_PHY_N(0x00D) /* Four-wire bus data low */
21 #define B43_NPHY_BIST_STAT0 B43_PHY_N(0x00E) /* Built-in self test status 0 */
22 #define B43_NPHY_BIST_STAT1 B43_PHY_N(0x00F) /* Built-in self test status 1 */
310 #define B43_NPHY_TXMACDELAY B43_PHY_N(0x0B4) /* TX MAC delay */
311 #define B43_NPHY_TXFRAMEDELAY B43_PHY_N(0x0B5) /* TX frame delay */
324 #define B43_NPHY_BPHY_CTL2_MACDEL 0x7FE0 /* MAC delay */
[all …]
/linux/net/ipv4/
H A Dtcp_vegas.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * IEEE Journal on Selected Areas in Communication, 13(8):1465--1480,
17 * using fine-grained timers, NewReno, and FACK.
19 * only every-other RTT during slow start, we increase during
29 * o When the sender re-starts from idle, it waits until it has
32 * assumed senders never went idle.
55 /* There are several situations when we must "re-start" Vegas:
61 * unacknowledged data (restarting an idle connection)
65 * stale info -- both the saved cwnd and congestion feedback are
68 * Instead we must wait until the completion of an RTT during
[all …]
/linux/block/
H A Dblk-iocost.c1 /* SPDX-License-Identifier: GPL-2.0
17 * useless for the purpose of IO capacity distribution. While on-device
19 * non-queued rotational devices, this is no longer viable with modern
27 * implement a reasonable work-conserving proportional IO resource
37 * Currently, there's only one builtin cost model - linear. Each IO is
47 * device-specific coefficients.
54 * 2-1. Vtime Distribution
66 * If B is idle and only A0 and A1 are actively issuing IOs, as the two are
75 * against the device vtime - an IO which takes 10ms on the underlying
84 * 2-2. Vrate Adjustment
[all …]
/linux/arch/mips/kernel/
H A Dreset.c6 * Copyright (C) 2001, 06 by Ralf Baechle (ralf@linux-mips.org)
14 #include <linux/delay.h>
17 #include <asm/idle.h>
43 * low power wait state. in machine_hang()
50 * We know that the wait instruction is supported so in machine_hang()
57 "wait\n\t" in machine_hang()
62 * it'll re-enable interrupts, but that ought to be in machine_hang()
77 * In most modern MIPS CPUs interrupts will cause the wait in machine_hang()
81 * wait state, we clear any pending timer interrupt here. in machine_hang()
99 pr_emerg("Reboot failed -- System halted\n"); in machine_restart()
/linux/drivers/gpu/drm/radeon/
H A Drs600.c39 #include <linux/io-64-nonatomic-lo-hi.h>
59 AVIVO_D2CRTC_H_TOTAL - AVIVO_D1CRTC_H_TOTAL
84 * avivo_wait_for_vblank - vblank wait asic callback.
87 * @crtc: crtc to wait for vblank on
89 * Wait for vblank on the requested crtc (r5xx-r7xx).
95 if (crtc >= rdev->num_crtc) in avivo_wait_for_vblank()
102 * wait for another frame. in avivo_wait_for_vblank()
121 struct radeon_crtc *radeon_crtc = rdev->mode_info.crtcs[crtc_id]; in rs600_page_flip()
122 struct drm_framebuffer *fb = radeon_crtc->base.primary->fb; in rs600_page_flip()
123 u32 tmp = RREG32(AVIVO_D1GRPH_UPDATE + radeon_crtc->crtc_offset); in rs600_page_flip()
[all …]
/linux/include/linux/
H A Dworkqueue.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * workqueue.h --- work queue handling for Linux.
24 #define work_data_bits(work) ((unsigned long *)(&(work)->data))
52 * data contains off-queue information when !WORK_STRUCT_PWQ.
61 WORK_OFFQ_FLAG_BITS = WORK_OFFQ_FLAG_END - WORK_OFFQ_FLAG_SHIFT,
67 * When a work item is off queue, the high bits encode off-queue flags
72 WORK_OFFQ_LEFT = BITS_PER_LONG - WORK_OFFQ_POOL_SHIFT,
102 /* Convenience constants - of type 'unsigned long', not 'enum'! */
104 #define WORK_OFFQ_FLAG_MASK (((1ul << WORK_OFFQ_FLAG_BITS) - 1) << WORK_OFFQ_FLAG_SHIFT)
105 #define WORK_OFFQ_DISABLE_MASK (((1ul << WORK_OFFQ_DISABLE_BITS) - 1) << WORK_OFFQ_DISABLE_SHIFT)
[all …]
/linux/drivers/spi/
H A Dspi-mpc52xx.c1 // SPDX-License-Identifier: GPL-2.0-only
18 #include <linux/delay.h>
31 MODULE_DESCRIPTION("MPC52xx SPI (non-PSC) Driver");
104 if (ms->gpio_cs_count > 0) { in mpc52xx_spi_chipsel()
105 cs = spi_get_chipselect(ms->message->spi, 0); in mpc52xx_spi_chipsel()
106 gpiod_set_value(ms->gpio_cs[cs], value); in mpc52xx_spi_chipsel()
108 out_8(ms->regs + SPI_PORTDATA, value ? 0 : 0x08); in mpc52xx_spi_chipsel()
113 * Start a new transfer. This is called both by the idle state
114 * for the first transfer in a message, and by the wait state when the
119 ms->rx_buf = ms->transfer->rx_buf; in mpc52xx_spi_start_transfer()
[all …]
/linux/drivers/leds/trigger/
H A Dledtrig-activity.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Partially based on Atsushi Nemoto's ledtrig-heartbeat.c.
37 struct led_classdev *led_cdev = activity_data->led_cdev; in led_activity_function()
40 int delay; in led_activity_function() local
48 if (test_and_clear_bit(LED_BLINK_BRIGHTNESS_CHANGE, &led_cdev->work_flags)) in led_activity_function()
49 led_cdev->blink_brightness = led_cdev->new_blink_brightness; in led_activity_function()
53 led_set_brightness_nosleep(led_cdev, led_cdev->blink_brightness); in led_activity_function()
75 * down to 16us, ensuring we won't overflow 32-bit computations below in led_activity_function()
79 diff_boot = (curr_boot - activity_data->last_boot) >> 16; in led_activity_function()
80 diff_used = (curr_used - activity_data->last_used) >> 16; in led_activity_function()
[all …]
/linux/tools/testing/selftests/powerpc/scripts/
H A Dhmi.sh2 # SPDX-License-Identifier: GPL-2.0-only
9 if [ -x ./getscom ] && [ -x ./putscom ]; then
18 See https://github.com/open-power/skiboot.
19 The tool is in external/xscom-utils
28 dmesg | grep -c 'Harmless Hypervisor Maintenance interrupt'
31 # massively expand snooze delay, allowing injection on all cores
32 ppc64_cpu --smt-snooze-delay=1000000000
35 trap "ppc64_cpu --smt-snooze-delay=100" 0 1
38 # todo - less fragile parsing
39 grep -E -o 'OCC: Chip [0-9a-f]+ Core [0-9a-f]' < /sys/firmware/opal/msglog |
[all …]
/linux/arch/arm/mach-qcom/
H A Dplatsmp.c1 // SPDX-License-Identifier: GPL-2.0-only
11 #include <linux/delay.h>
59 node = of_find_compatible_node(NULL, NULL, "qcom,gcc-msm8660"); in scss_release_secondary()
62 return -ENXIO; in scss_release_secondary()
68 return -ENOMEM; in scss_release_secondary()
88 return -ENODEV; in cortex_a7_release_secondary()
92 ret = -ENODEV; in cortex_a7_release_secondary()
98 ret = -ENOMEM; in cortex_a7_release_secondary()
108 /* Wait for the BHS to settle */ in cortex_a7_release_secondary()
144 return -ENODEV; in kpssv1_release_secondary()
[all …]
/linux/arch/sh/boards/
H A Dboard-magicpanelr2.c1 // SPDX-License-Identifier: GPL-2.0
12 #include <linux/delay.h>
35 /* Wait until reset finished. Timeout is 100ms. */
65 /* CS2: LAN (0x08000000 - 0x0bffffff) */ in setup_chip_select()
66 /* no idle cycles, normal space, 8 bit data bus */ in setup_chip_select()
68 /* (SW:1.5 WR:3 HW:1.5), ext. wait */ in setup_chip_select()
71 /* CS4: CAN1 (0xb0000000 - 0xb3ffffff) */ in setup_chip_select()
72 /* no idle cycles, normal space, 8 bit data bus */ in setup_chip_select()
74 /* (SW:1.5 WR:3 HW:1.5), ext. wait */ in setup_chip_select()
77 /* CS5a: CAN2 (0xb4000000 - 0xb5ffffff) */ in setup_chip_select()
[all …]

12345678910>>...20