/linux/Documentation/devicetree/bindings/phy/ |
H A D | nvidia,tegra20-usb-phy.yaml | 1 # 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 D | i2c-mux-gpio.h | 1 /* 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 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 …]
|
/linux/drivers/clk/ti/ |
H A D | clkt_dflt.c | 1 // 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 D | platsmp.c | 1 // 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 D | sleep24xx.S | 1 /* 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 D | pmsu.c | 1 // 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/drivers/gpu/drm/imagination/ |
H A D | pvr_fw_startstop.c | 1 // SPDX-License-Identifier: GPL-2.0-only OR MIT 13 #include <linux/delay.h> 22 /* Setup AXI-ACE config. Set everything to outer cache. */ in rogue_axi_ace_list_init() 43 pc_dma_addr = pvr_vm_get_page_table_root_addr(pvr_dev->kernel_vm_ctx); in rogue_bif_init() 89 * pvr_fw_start() - Start FW processor and boot firmware 117 /* Set Rogue in soft-reset. */ in pvr_fw_start() 122 /* Read soft-reset to fence previous write in order to clear the SOCIF pipeline. */ in pvr_fw_start() 151 pvr_dev->fw_dev.defs->wrapper_init(pvr_dev); in pvr_fw_start() 153 /* We must init the AXI-ACE interface before first BIF transaction. */ in pvr_fw_start() 156 if (pvr_dev->fw_dev.processor_type != PVR_FW_PROCESSOR_TYPE_MIPS) { in pvr_fw_start() [all …]
|
/linux/Documentation/devicetree/bindings/cpu/ |
H A D | idle-states.yaml | 1 # 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/drivers/i2c/busses/ |
H A D | i2c-s3c2410.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* linux/drivers/i2c/busses/i2c-s3c2410.c 17 #include <linux/delay.h> 34 #include <linux/platform_data/i2c-s3c2410.h> 81 /* Max time to wait for bus to become idle after a xfer (in us) */ 97 wait_queue_head_t wait; member 125 .name = "s3c2410-i2c", 128 .name = "s3c2440-i2c", 131 .name = "s3c2440-hdmiphy-i2c", 141 { .compatible = "samsung,s3c2410-i2c", .data = (void *)0 }, [all …]
|
/linux/Documentation/devicetree/bindings/i2c/ |
H A D | i2c-mux-gpio.yaml | 1 # 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/Documentation/power/ |
H A D | runtime_pm.rst | 5 (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 D | azoteq,iqs7211.yaml | 1 # 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 D | phy_n.h | 1 /* 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 D | tcp_vegas.c | 1 // 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 D | blk-iocost.c | 1 /* 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 D | reset.c | 6 * 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 D | rs600.c | 39 #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 D | workqueue.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * workqueue.h --- work queue handling for Linux. 23 #define work_data_bits(work) ((unsigned long *)(&(work)->data)) 51 * data contains off-queue information when !WORK_STRUCT_PWQ. 60 WORK_OFFQ_FLAG_BITS = WORK_OFFQ_FLAG_END - WORK_OFFQ_FLAG_SHIFT, 66 * When a work item is off queue, the high bits encode off-queue flags 71 WORK_OFFQ_LEFT = BITS_PER_LONG - WORK_OFFQ_POOL_SHIFT, 101 /* Convenience constants - of type 'unsigned long', not 'enum'! */ 103 #define WORK_OFFQ_FLAG_MASK (((1ul << WORK_OFFQ_FLAG_BITS) - 1) << WORK_OFFQ_FLAG_SHIFT) 104 #define WORK_OFFQ_DISABLE_MASK (((1ul << WORK_OFFQ_DISABLE_BITS) - 1) << WORK_OFFQ_DISABLE_SHIFT) [all …]
|
H A D | scc.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 30 unsigned char txdelay; /* Transmit Delay 10 ms/cnt */ 31 unsigned char persist; /* Persistence (0-255) as a % */ 32 unsigned char slottime; /* Delay to wait on persistence hit */ 33 unsigned char tailtime; /* Delay after last byte written */ 38 unsigned int idletime; /* Maximum idle time in ALWAYS KEYED mode (seconds) */
|
/linux/drivers/spi/ |
H A D | spi-mpc52xx.c | 1 // 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/tools/testing/selftests/powerpc/scripts/ |
H A D | hmi.sh | 2 # 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 D | platsmp.c | 1 // 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/drivers/iio/adc/ |
H A D | mt6577_auxadc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 #include <linux/delay.h> 118 reg_channel = adc_dev->reg_base + MT6577_AUXADC_DAT0 + in mt6577_auxadc_read() 119 chan->channel * 0x04; in mt6577_auxadc_read() 121 mutex_lock(&adc_dev->lock); in mt6577_auxadc_read() 123 mt6577_auxadc_mod_reg(adc_dev->reg_base + MT6577_AUXADC_CON1, in mt6577_auxadc_read() 124 0, 1 << chan->channel); in mt6577_auxadc_read() 132 dev_err(indio_dev->dev.parent, in mt6577_auxadc_read() 133 "wait for channel[%d] ready bit clear time out\n", in mt6577_auxadc_read() 134 chan->channel); in mt6577_auxadc_read() [all …]
|
/linux/arch/sh/boards/ |
H A D | board-magicpanelr2.c | 1 // 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 …]
|