/openbmc/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 17 delay (inactive-delay-ms) it is configured as active again. 19 the system is still running after waiting some time (timeout-ms). 23 const: gpio-poweroff 32 it to an output when the power-off sequence is initiated. If this optional [all …]
|
/openbmc/linux/arch/mips/cavium-octeon/executive/ |
H A D | cvmx-spi.c | 7 * Copyright (c) 2003-2008 Cavium Networks 14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 34 #include <asm/octeon/cvmx-config.h> 36 #include <asm/octeon/cvmx-pko.h> 37 #include <asm/octeon/cvmx-spi.h> 39 #include <asm/octeon/cvmx-spxx-defs.h> 40 #include <asm/octeon/cvmx-stxx-defs.h> 41 #include <asm/octeon/cvmx-srxx-defs.h> 98 * active) or as a halfplex (either the Tx data path is [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/input/touchscreen/ |
H A D | cypress,cy8ctma340.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 14 - Javier Martinez Canillas <javier@dowhile0.org> 15 - Linus Walleij <linus.walleij@linaro.org> 18 - $ref: touchscreen.yaml# 26 - const: cypress,cy8ctma340 27 - const: cypress,cy8ctst341 28 - const: cypress,cyttsp-spi 31 - const: cypress,cyttsp-i2c [all …]
|
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 …]
|
/openbmc/linux/drivers/power/reset/ |
H A D | gpio-poweroff.c | 1 // SPDX-License-Identifier: GPL-2.0-only 25 static u32 timeout = DEFAULT_TIMEOUT_MS; variable 33 /* drive it active, also inactive->active edge */ in gpio_poweroff_do_poweroff() 37 /* drive inactive, also active->inactive edge */ in gpio_poweroff_do_poweroff() 41 /* drive it active, also inactive->active edge */ in gpio_poweroff_do_poweroff() 45 mdelay(timeout); in gpio_poweroff_do_poweroff() 57 dev_err(&pdev->dev, in gpio_poweroff_probe() 60 return -EBUSY; in gpio_poweroff_probe() 63 input = device_property_read_bool(&pdev->dev, "input"); in gpio_poweroff_probe() 69 device_property_read_u32(&pdev->dev, "active-delay-ms", &active_delay); in gpio_poweroff_probe() [all …]
|
/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | devlink_linecard.sh | 2 # SPDX-License-Identifier: GPL-2.0 5 # LC_SLOT - If not set, all probed line cards are going to be tested, 41 devlink lc show $DEVLINK_DEV lc $lc -j | jq -e -r ".[][][].state" 48 local timeout=$3 # ms 50 busywait "$timeout" until_lc_state_is_not "$state" lc_state_get "$lc" 57 local timeout=$3 # ms 59 busywait "$timeout" until_lc_state_is "$state" lc_state_get "$lc" 75 devlink port -j | jq -e -r ".[][] | select(.lc==$lc) | .port" | wc -l 82 local timeout=$3 # ms 84 busywait "$timeout" until_lc_port_count_is "$port_count" lc_port_count_get "$lc" [all …]
|
/openbmc/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> 55 #include "tick-internal.h" 85 * timeout timers (networking, disk I/O ...) are canceled before expiry. If [all …]
|
/openbmc/linux/drivers/gpu/drm/i915/ |
H A D | Kconfig.profile | 2 int "Default timeout for requests (ms)" 5 Configures the default timeout after which any user submissions will 13 May be 0 to disable the timeout. 16 int "Timeout for unsignaled foreign fences (ms, jiffy granularity)" 21 make forward progress. This value specifies the timeout used for an 24 May be 0 to disable the timeout, and rely on the foreign fence being 28 int "Runtime autosuspend delay for userspace GGTT mmaps (ms)" 35 that complements the runtime-pm autosuspend and provides a lower 42 int "Interval between heartbeat pulses (ms)" 45 The driver sends a periodic heartbeat down all active engines to [all …]
|
/openbmc/linux/drivers/media/tuners/ |
H A D | it913x.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 23 bool active; member 28 struct it913x_dev *dev = fe->tuner_priv; in it913x_init() 29 struct platform_device *pdev = dev->pdev; in it913x_init() 34 unsigned long timeout; in it913x_init() local 36 dev_dbg(&pdev->dev, "role %u\n", dev->role); in it913x_init() 38 ret = regmap_write(dev->regmap, 0x80ec4c, 0x68); in it913x_init() 44 ret = regmap_read(dev->regmap, 0x80ec86, &utmp); in it913x_init() 51 dev->clk_mode = utmp; in it913x_init() 52 dev->xtal = 2000; in it913x_init() [all …]
|
/openbmc/linux/drivers/input/touchscreen/ |
H A D | cyttsp_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 47 #define CY_DELAY_DFLT 20 /* ms */ 49 /* Active distance in pixels for a gesture to be reported */ 52 /* Active Power state scanning/processing refresh interval */ 53 #define CY_ACT_INTRVL_DFLT 0x00 /* ms */ 55 #define CY_LP_INTRVL_DFLT 0x0A /* ms */ 56 /* touch timeout for the Active power */ 57 #define CY_TCH_TMOUT_DFLT 0xFF /* ms */ 85 error = ts->bus_ops->read(ts->dev, ts->xfer_buf, command, in ttsp_read_block_data() 93 return -EIO; in ttsp_read_block_data() [all …]
|
/openbmc/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 …]
|
/openbmc/linux/Documentation/devicetree/bindings/input/ |
H A D | iqs626a.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jeff LaBundy <jeff@labundy.com> 13 The Azoteq IQS626A is a 14-channel capacitive touch controller that features 14 additional Hall-effect and inductive sensing capabilities. 19 - $ref: touchscreen/touchscreen.yaml# 31 "#address-cells": 34 "#size-cells": 37 azoteq,suspend-mode: [all …]
|
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 …]
|
H A D | iqs269a.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jeff LaBundy <jeff@labundy.com> 13 The Azoteq IQS269A is an 8-channel capacitive touch controller that features 14 additional Hall-effect and inductive sensing capabilities. 28 "#address-cells": 31 "#size-cells": 34 azoteq,hall-enable: 37 Enables Hall-effect sensing on channels 6 and 7. In this case, keycodes [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/power/supply/ |
H A D | bq256xx.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Andrew Davis <afd@ti.com> 14 The bq256xx devices are a family of highly-integrated battery charge 15 management and system power management ICs for single cell Li-ion and Li- 19 - https://www.ti.com/lit/ds/symlink/bq25600.pdf 20 - https://www.ti.com/lit/ds/symlink/bq25601.pdf 21 - https://www.ti.com/lit/ds/symlink/bq25600d.pdf 22 - https://www.ti.com/lit/ds/symlink/bq25601d.pdf [all …]
|
/openbmc/linux/drivers/watchdog/ |
H A D | pnx4008_wdt.c | 1 // SPDX-License-Identifier: GPL-2.0 12 * 2005-2006 (c) MontaVista Software, Inc. 34 /* WatchDog Timer - Chapter 23 Page 207 */ 98 /* the longest pulse period 65541/(13*10^6) seconds ~ 5 ms. */ in pnx4008_wdt_start() 100 writel(wdd->timeout * WDOG_COUNTER_RATE, WDTIM_MATCH0(wdt_base)); in pnx4008_wdt_start() 101 /*enable counter, stop when debugger active */ in pnx4008_wdt_start() 121 wdd->timeout = new_timeout; in pnx4008_wdt_set_timeout() 133 * - For details, see the 'reboot' syscall in kernel/reboot.c in pnx4008_restart_handler() 134 * - If the received "cmd" is not supported, use the default mode. in pnx4008_restart_handler() 144 /* Force match output active */ in pnx4008_restart_handler() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/i2c/ |
H A D | i2c-gpio.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/i2c/i2c-gpio.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Wolfram Sang <wsa@kernel.org> 13 - $ref: /schemas/i2c/i2c-controller.yaml# 18 - const: i2c-gpio 20 sda-gpios: 23 active high using open drain with (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN) 24 from <dt-bindings/gpio/gpio.h> since the signal is by definition [all …]
|
/openbmc/linux/drivers/input/misc/ |
H A D | iqs626a.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 * inductive keys as well as Hall-effect switches, and one for a trackpad that 227 .name = "event-prox", 233 .name = "event-prox-alt", 240 .name = "event-touch", 246 .name = "event-touch-alt", 253 .name = "event-deep", 259 .name = "event-deep-alt", 338 u8 active; member 361 u8 active; member [all …]
|
/openbmc/linux/drivers/net/ethernet/engleder/ |
H A D | tsnep_selftests.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (C) 2021 Gerhard Engleder <gerhard@engleder-embedded.com> */ 16 "Enable timeout (offline)", 26 iowrite8(TSNEP_GC_ENABLE_TIMEOUT, adapter->addr + TSNEP_GC); in enable_gc_timeout() 27 if (!(ioread32(adapter->addr + TSNEP_GC) & TSNEP_GC_TIMEOUT_ACTIVE)) in enable_gc_timeout() 35 if (ioread32(adapter->addr + TSNEP_GC) & TSNEP_GC_TIMEOUT_SIGNAL) in gc_timeout_signaled() 43 iowrite8(TSNEP_GC_ENABLE_TIMEOUT, adapter->addr + TSNEP_GC); in ack_gc_timeout() 44 if (ioread32(adapter->addr + TSNEP_GC) & in ack_gc_timeout() 53 u8 active; in enable_gc() local 57 active = TSNEP_GC_ACTIVE_A; in enable_gc() [all …]
|
/openbmc/linux/drivers/usb/serial/ |
H A D | ftdi_sio.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Driver definitions for the FTDI USB Single Port Serial Converter - 9 * The example I have is known as the USC-1000 which is available from 10 * http://www.dse.co.nz - cat no XH4214 It looks similar to this: 12 * USC-1000s which don't look like my device though so beware! 21 * Bill Ryder - bryder@sgi.com formerly of Silicon Graphics, Inc.- wrote the 107 * wValue: BaudDivisor value - see below 112 * - BaseClock is either 12000000 or 48000000 depending on the device. 114 * - BaudDivisor is a fixed point number encoded in a funny way. 115 * (--WRONG WAY OF THINKING--) [all …]
|
/openbmc/linux/drivers/pps/clients/ |
H A D | pps-gpio.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * pps-gpio.c -- PPS client driver using GPIO 9 #define PPS_GPIO_NAME "pps-gpio" 33 struct timer_list echo_timer; /* timer to reset echo active state */ 36 unsigned int echo_active_ms; /* PPS echo active duration */ 37 unsigned long echo_timeout; /* timer timeout value in jiffies */ 55 rising_edge = gpiod_get_value(info->gpio_pin); in pps_gpio_irq_handler() 56 if ((rising_edge && !info->assert_falling_edge) || in pps_gpio_irq_handler() 57 (!rising_edge && info->assert_falling_edge)) in pps_gpio_irq_handler() 58 pps_event(info->pps, &ts, PPS_CAPTUREASSERT, data); in pps_gpio_irq_handler() [all …]
|
/openbmc/linux/drivers/net/wireless/ath/ath9k/ |
H A D | channel.c | 25 struct ath_hw *ah = sc->sc_ah; in ath_set_channel() 27 struct ieee80211_hw *hw = sc->hw; in ath_set_channel() 29 struct cfg80211_chan_def *chandef = &sc->cur_chan->chandef; in ath_set_channel() 30 struct ieee80211_channel *chan = chandef->chan; in ath_set_channel() 31 int pos = chan->hw_value; in ath_set_channel() 33 int old_pos = -1; in ath_set_channel() 36 if (test_bit(ATH_OP_INVALID, &common->op_flags)) in ath_set_channel() 37 return -EIO; in ath_set_channel() 39 if (ah->curchan) in ath_set_channel() 40 old_pos = ah->curchan - &ah->channels[0]; in ath_set_channel() [all …]
|
/openbmc/u-boot/drivers/fpga/ |
H A D | virtex2.c | 1 // SPDX-License-Identifier: GPL-2.0+ 30 * file and add board-specific support for checking BUSY status. By default, 60 * The default timeout in mS for INIT_B to deassert after PROG_B has 64 * which yields 11.44 mS. So let's make it bigger in order to handle 68 #define CONFIG_SYS_FPGA_WAIT_INIT CONFIG_SYS_HZ/2 /* 500 ms */ 72 * The default timeout for waiting for BUSY to deassert during configuration. 77 #define CONFIG_SYS_FPGA_WAIT_BUSY CONFIG_SYS_HZ/200 /* 5 ms*/ 80 /* Default timeout for waiting for FPGA to enter operational mode after 84 #define CONFIG_SYS_FPGA_WAIT_CONFIG CONFIG_SYS_HZ/5 /* 200 ms */ 98 switch (desc->iface) { in virtex2_load() [all …]
|
/openbmc/qemu/util/ |
H A D | qemu-timer.c | 4 * Copyright (c) 2003-2008 Fabrice Bellard 26 #include "qemu/main-loop.h" 29 #include "sysemu/cpu-timers.h" 93 return timer_head && (timer_head->expire_time <= current_time); in timer_expired_ns() 104 qemu_event_init(&timer_list->timers_done_ev, true); in timerlist_new() 105 timer_list->clock = clock; in timerlist_new() 106 timer_list->notify_cb = cb; in timerlist_new() 107 timer_list->notify_opaque = opaque; in timerlist_new() 108 qemu_mutex_init(&timer_list->active_timers_lock); in timerlist_new() 109 QLIST_INSERT_HEAD(&clock->timerlists, timer_list, list); in timerlist_new() [all …]
|
/openbmc/linux/include/linux/mfd/arizona/ |
H A D | pdata.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 11 #include <dt-bindings/mfd/arizona.h> 12 #include <linux/regulator/arizona-ldo1.h> 13 #include <linux/regulator/arizona-micsupp.h> 36 #define ARIZONA_GPN_FN_MASK 0x007F /* GPN_FN - [6:0] */ 37 #define ARIZONA_GPN_FN_SHIFT 0 /* GPN_FN - [6:0] */ 38 #define ARIZONA_GPN_FN_WIDTH 7 /* GPN_FN - [6:0] */ 89 /** Mode for primary IRQ (defaults to active low) */ 129 /** Extra debounce timeout used during initial mic detection (ms) */ 144 /** Mic detect timeout (ms) */
|