| /linux/Documentation/devicetree/bindings/power/reset/ |
| H A D | gpio-poweroff.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/power/reset/gpio-poweroff.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sebastian Reichel <sre@kernel.org> 15 from inactive to active. After a delay (active-delay-ms) it 16 is expected to be switched back to inactive. After another 17 delay (inactive-delay-ms) it is configured as active again. 19 the system is still running after waiting some time (timeout-ms). 22 - $ref: restart-handler.yaml# [all …]
|
| H A D | gpio-restart.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/power/reset/gpio-restart.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sebastian Reichel <sre@kernel.org> 17 'open-source' is not found, the GPIO line will be driven in the inactive state. Otherwise its 22 This will also cause an inactive->active edge condition, triggering positive edge triggered 23 reset. After a delay specified by active-delay, the GPIO is set to inactive, thus causing an 24 active->inactive edge, triggering negative edge triggered reset. After a delay specified by 25 inactive-delay, the GPIO is driven active again. After a delay specified by wait-delay, the [all …]
|
| /linux/include/linux/amba/ |
| H A D | pl022.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 5 * Copyright (C) 2008-2009 ST-Ericsson AB 11 * linux-2.6.17-rc3-mm1/drivers/spi/pxa2xx_spi.c 31 * enum ssp_interface - interfaces allowed for this SSP Controller 48 * enum ssp_hierarchy - whether SSP is configured as Master or Slave 56 * enum ssp_clock_params - clock parameters, to set SSP clock at a 65 * enum ssp_rx_endian - endianess of Rx FIFO Data 74 * enum ssp_tx_endian - endianess of Tx FIFO Data 82 * enum ssp_data_size - number of bits in one data element 98 * enum ssp_mode - SSP mode of operation (Communication modes) [all …]
|
| /linux/kernel/time/ |
| H A D | timer.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * 1997-01-28 Modified by Finn Arne Gangstad to make timers scale better. 9 * 1997-09-10 Updated NTP code according to technical memorandum Jan '96 11 * 1998-12-24 Fixed a xtime SMP race (we need the xtime_lock rw spinlock to 14 * 1999-03-10 Improved NTP compatibility by Ulrich Windl 15 * 2002-05-31 Move sys_sysinfo here and make its locking sane, Robert Love 16 * 2000-10-05 Implemented scalable SMP per-CPU timer handling. 33 #include <linux/posix-timers.h> 36 #include <linux/delay.h> 54 #include "tick-internal.h" [all …]
|
| /linux/drivers/video/backlight/ |
| H A D | pwm_bl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 #include <linux/delay.h> 43 if (pb->enabled) in pwm_backlight_power_on() 46 if (pb->power_supply) { in pwm_backlight_power_on() 47 err = regulator_enable(pb->power_supply); in pwm_backlight_power_on() 49 dev_err(pb->dev, "failed to enable power supply\n"); in pwm_backlight_power_on() 52 if (pb->post_pwm_on_delay) in pwm_backlight_power_on() 53 msleep(pb->post_pwm_on_delay); in pwm_backlight_power_on() 55 gpiod_set_value_cansleep(pb->enable_gpio, 1); in pwm_backlight_power_on() 57 pb->enabled = true; in pwm_backlight_power_on() [all …]
|
| /linux/Documentation/devicetree/bindings/input/ |
| H A D | azoteq,iqs7222.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> 21 - azoteq,iqs7222a 22 - azoteq,iqs7222b 23 - azoteq,iqs7222c 24 - azoteq,iqs7222d 29 irq-gpios: 32 Specifies the GPIO connected to the device's active-low RDY output. [all …]
|
| /linux/fs/dlm/ |
| H A D | lock.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 ** Copyright (C) 2005-2010 Red Hat, Inc. All rights reserved. 52 L: send_xxxx() -> R: receive_xxxx() 54 L: receive_xxxx_reply() <- R: send_xxxx_reply() 89 const struct dlm_message *ms, bool local); 90 static int receive_extralen(const struct dlm_message *ms); 95 * Lock compatibilty matrix - thanks Steve 120 * -1 = nothing happens to the LVB 125 { -1, 1, 1, 1, 1, 1, 1, -1 }, /* UN */ 126 { -1, 1, 1, 1, 1, 1, 1, 0 }, /* NL */ [all …]
|
| /linux/include/linux/input/ |
| H A D | adxl34x.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 71 * factor is 1.25 ms/LSB. A zero value will disable the Double Tap 81 * tap can begin. The scale factor is 1.25 ms/LSB. A zero value will 109 * considered inactive and the inactivity interrupt is triggered. 152 * result in the function appearing un-responsive if the 162 * holds the threshold value for Free-Fall detection. 163 * The data format is unsigned. The root-sum-square(RSS) value 167 * result in undesirable behavior if Free-Fall interrupt is 178 * free_fall_threshold to generate a Free-Fall interrupt. The 179 * scale factor is 5 ms/LSB. A zero value may result in [all …]
|
| /linux/drivers/usb/common/ |
| H A D | usb-conn-gpio.c | 1 // SPDX-License-Identifier: GPL-2.0 9 * Some code borrowed from drivers/extcon/extcon-usb-gpio.c 28 #define USB_GPIO_DEB_MS 20 /* ms */ 36 int conn_id; /* store the IDA-allocated ID */ 56 * so if "HOST" is active (i.e. ID is 0) we keep "DEVICE" inactive 60 * ------------------------------------ 67 * - VBUS only - we want to distinguish between [1] and [2], so ID is always 1 68 * - ID only - we want to distinguish between [1] and [4], so VBUS = ID 80 id = info->id_gpiod ? in usb_conn_detect_cable() 81 gpiod_get_value_cansleep(info->id_gpiod) : 1; in usb_conn_detect_cable() [all …]
|
| /linux/drivers/pci/ |
| H A D | pci.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright 1993 -- 1997 Drew Eckhardt, Frederic Potter, 6 * David Mosberger-Tang 8 * Copyright 1997 -- 2000 Martin Mares <mj@ucw.cz> 13 #include <linux/delay.h> 82 unsigned int delay_ms = max(dev->d3hot_delay, pci_pm_d3hot_delay); in pci_dev_d3_sleep() 86 /* Use a 20% upper bound, 1ms minimum */ in pci_dev_d3_sleep() 95 return dev->reset_methods[0] != 0; in pci_reset_supported() 114 * pci=hpmmiosize=nnM overrides non-prefetchable MMIO size, 125 /* PCIe MPS/MRRS strategy; can be overridden by kernel command-line param */ [all …]
|
| /linux/drivers/net/wireless/ti/wlcore/ |
| H A D | conf.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 117 * Range: 0 - 0xFFFFFFFF 130 * after a PS-poll has been transmitted. 132 * Range: 0 - 200000 139 * Range: 0 - 200000 147 * Range: 0 - 4096 161 * Occupied Rx mem-blocks number which requires interrupting the host 177 * Max time in msec the FW may delay RX-Complete interrupt. 179 * Range: 1 - 100 273 * Range: bit 0: Truncate - when set, FW attempts to send a frame stop [all …]
|
| /linux/drivers/usb/core/ |
| H A D | hub.c | 1 // SPDX-License-Identifier: GPL-2.0 66 * The SET_ADDRESS request timeout will be 500 ms when 69 #define USB_SHORT_SET_ADDRESS_REQ_TIMEOUT 500 /* ms */ 72 * Give SS hubs 200ms time after wake to train downstream links before 75 #define USB_SS_PORT_U0_WAKE_TIME 200 /* ms */ 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 */ [all …]
|
| /linux/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_82598.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 5 #include <linux/delay.h> 26 * ixgbe_set_pcie_completion_timeout - set pci-e completion timeout 29 * The defaults for 82598 should be in the range of 50us to 50ms, 30 * however the hardware default for these parts is 500us to 1ms which is less 31 * than the 10ms recommended by the pci-e spec. To address this we need to 32 * increase the value to either 10ms to 250ms for capability version 1 config, 33 * or 16ms to 55ms for version 2. 40 if (ixgbe_removed(hw->hw_addr)) in ixgbe_set_pcie_completion_timeout() [all …]
|
| H A D | ixgbe_e610.c | 1 // SPDX-License-Identifier: GPL-2.0 13 * ixgbe_should_retry_aci_send_cmd_execute - decide if ACI command should 37 * ixgbe_aci_send_cmd_execute - execute sending FW Admin Command to FW Admin 48 * * - 0 - success. 49 * * - -EIO - CSR mechanism is not enabled. 50 * * - -EBUSY - CSR mechanism is busy. 51 * * - -EINVAL - buf_size is too big or 53 * * - -ETIME - Admin Command X command timeout. 54 * * - -EIO - Admin Command X invalid state of HICR register or 67 hw->aci.last_status = LIBIE_AQ_RC_OK; in ixgbe_aci_send_cmd_execute() [all …]
|
| /linux/drivers/scsi/ |
| H A D | NCR5380.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 9 * +1 (303) 666-5836 19 * 1+ (719) 578-3400 20 * 1+ (800) 334-5454 26 #include <linux/delay.h> 65 * either arbitration is occurring or the phase-indicating signals ( 76 #define ICR_TRI_STATE 0x40 /* wo Set to tri-state drivers */ 137 #define BASR_BUSY_ERROR 0x04 /* ro Unexpected change to inactive state */ 198 #define FLAG_TOSHIBA_DELAY 128 /* Allow for borken CD-ROMs */ 201 NCR5380_implementation_fields; /* Board-specific data */ [all …]
|
| /linux/sound/soc/codecs/ |
| H A D | tlv320aic3x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 16 * ------ 1196 int delay = 0; aic3x_prepare() local [all...] |
| /linux/drivers/pci/hotplug/ |
| H A D | pciehp_hpc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com) 8 * Copyright (C) 2003-2004 Intel Corporation 37 * assert presence detect--and those will still work, they will 38 * just have a bit of extra delay before being probed. 51 return ctrl->pcie->port; in ctrl_dev() 60 int retval, irq = ctrl->pcie->irq; in pciehp_request_irq() 63 ctrl->poll_thread = kthread_run(&pciehp_poll, ctrl, in pciehp_request_irq() 64 "pciehp_poll-%s", in pciehp_request_irq() 66 return PTR_ERR_OR_ZERO(ctrl->poll_thread); in pciehp_request_irq() [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 34 * device time. If a given IO is estimated to cost 10ms, the device should 37 * Currently, there's only one builtin cost model - linear. Each IO is 47 * device-specific coefficients. 54 * 2-1. Vtime Distribution 75 * against the device vtime - an IO which takes 10ms on the underlying 76 * device is considered to take 80ms on A0. [all …]
|
| /linux/arch/arm/boot/dts/ti/omap/ |
| H A D | am335x-evm.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/ 5 /dts-v1/; 8 #include <dt-bindings/interrupt-controller/irq.h> 12 compatible = "ti,am335x-evm", "ti,am33xx"; 16 cpu0-supply = <&vdd1_reg>; 26 stdout-path = &uart0; 30 compatible = "regulator-fixed"; 31 regulator-name = "vbat"; 32 regulator-min-microvolt = <5000000>; [all …]
|
| /linux/kernel/ |
| H A D | workqueue.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * kernel/workqueue.c - generic async execution with shared worker pool 10 * Kai Petzke <wpp@marie.physik.tu-berlin.de> 22 * pools for workqueues which are not bound to any specific CPU - the 25 * Please read Documentation/core-api/workqueue.rst for details. 56 #include <linux/delay.h> 79 * BH pool is per-CPU and always DISASSOCIATED. 108 UNBOUND_POOL_HASH_ORDER = 6, /* hashed by pool->attrs */ 115 /* call for help after 10ms 117 MAYDAY_INTERVAL = HZ / 10, /* and then every 100ms */ [all …]
|
| /linux/drivers/rtc/ |
| H A D | rtc-ds1685.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * An rtc driver for the Dallas/Maxim DS1685/DS1687 and related real-time 6 * Copyright (C) 2011-2014 Joshua Kinard <linux@kumba.dev>. 7 * Copyright (C) 2009 Matthias Fuchs <matthias.fuchs@esd-electronics.com>. 10 * DS1685/DS1687 3V/5V Real-Time Clocks, 19-5215, Rev 4/10. 11 * DS17x85/DS17x87 3V/5V Real-Time Clocks, 19-5222, Rev 4/10. 12 * DS1689/DS1693 3V/5V Serialized Real-Time Clocks, Rev 112105. 19 #include <linux/delay.h> 33 /* ----------------------------------------------------------------------- */ 40 * ds1685_read - read a value from an rtc register. [all …]
|
| /linux/drivers/spi/ |
| H A D | spi-sun4i.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (C) 2012 - 2014 Allwinner Tech 7 * Maxime Ripard <maxime.ripard@free-electrons.com> 11 #include <linux/delay.h> 92 return readl(sspi->base_addr + reg); in sun4i_spi_read() 97 writel(value, sspi->base_addr + reg); in sun4i_spi_write() 138 while (len--) { in sun4i_spi_drain_fifo() 139 byte = readb(sspi->base_addr + SUN4I_RXDATA_REG); in sun4i_spi_drain_fifo() 140 if (sspi->rx_buf) in sun4i_spi_drain_fifo() 141 *sspi->rx_buf++ = byte; in sun4i_spi_drain_fifo() [all …]
|
| /linux/drivers/gpu/drm/msm/ |
| H A D | msm_gpu.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 10 #include <linux/adreno-smmu-priv.h> 116 * struct msm_gpu_devfreq - devfreq related state 132 * it is inactive. 159 * Used to delay clamping to idle freq on active->idle transition. 210 * TODO move to per-ring locking where feasible (ie. submit/retire 251 #define DRM_MSM_INACTIVE_PERIOD 66 /* in ms (roughly four frames) */ 253 #define DRM_MSM_HANGCHECK_DEFAULT_PERIOD 500 /* in ms */ 263 /* work for handling active-list retiring: */ 284 * switch-over happened early enough in mesa a6xx bringup that we [all …]
|
| /linux/drivers/isdn/mISDN/ |
| H A D | dsp_core.c | 12 * Real-time tone generation 14 * Real-time cross-connection and conferrence 23 * The dsp module provides layer 2 for b-channels (64kbit). It provides 26 * - (1) generation of tones 27 * - (2) detection of dtmf tones 28 * - (3) crossconnecting and conferences (clocking) 29 * - (4) echo generation for delay test 30 * - (5) volume control 31 * - (6) disable receive data 32 * - (7) pipeline [all …]
|
| /linux/include/linux/spi/ |
| H A D | spi.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later 38 * INTERFACES between SPI controller-side drivers and SPI target protocol handlers, 44 * struct spi_statistics - statistics for spi transfers 45 * @syncp: seqcount to protect members in this struct for per-cpu update 46 * on 32-bit systems 48 * @messages: number of spi-message 1103 struct spi_delay delay; global() member [all...] |