Home
last modified time | relevance | path

Searched +full:timeout +full:- +full:press +full:- +full:ms (Results 1 – 25 of 39) sorted by relevance

12

/openbmc/linux/Documentation/devicetree/bindings/input/
H A Dazoteq,iqs7222.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>
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 …]
/openbmc/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 …]
/openbmc/linux/sound/soc/codecs/
H A Dwcd-mbhc-v2.c1 // SPDX-License-Identifier: GPL-2.0-only
2 // Copyright (c) 2015-2021, The Linux Foundation. All rights reserved.
14 #include "wcd-mbhc-v2.h"
53 /* Delayed work to report long button press */
72 /* Holds type of Headset - Mono/Stereo */
74 /* Holds mbhc detection method - ADC/Legacy */
81 if (!mbhc->fields[field].reg) in wcd_mbhc_write_field()
84 return snd_soc_component_write_field(mbhc->component, in wcd_mbhc_write_field()
85 mbhc->fields[field].reg, in wcd_mbhc_write_field()
86 mbhc->fields[field].mask, val); in wcd_mbhc_write_field()
[all …]
H A Dcs42l43-jack.c1 // SPDX-License-Identifier: GPL-2.0
5 // Copyright (C) 2022-2023 Cirrus Logic, Inc. and
14 #include <linux/mfd/cs42l43-regs.h>
21 #include <sound/soc-component.h>
44 struct cs42l43 *cs42l43 = priv->core; in cs42l43_find_index()
47 ret = device_property_read_u32(cs42l43->dev, prop, &defval); in cs42l43_find_index()
48 if (ret != -EINVAL && ret < 0) { in cs42l43_find_index()
49 dev_err(priv->dev, "Property %s malformed: %d\n", prop, ret); in cs42l43_find_index()
60 dev_err(priv->dev, "Invalid value for property %s: %d\n", prop, defval); in cs42l43_find_index()
61 return -EINVAL; in cs42l43_find_index()
[all …]
H A Dnau8825.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * Co-author: Meng-Huang Kuo <mhkuo@nuvoton.com>
35 #define NUVOTON_CODEC_DAI "nau8825-hifi"
223 * nau8825_sema_acquire - acquire the semaphore of nau88l25
225 * @timeout: how long in jiffies to wait before failure or zero to wait
233 * this function returns -ETIME. If the sleep is interrupted by a signal,
234 * this function will return -EINTR. It returns 0 if the semaphore was
241 static int nau8825_sema_acquire(struct nau8825 *nau8825, long timeout) in nau8825_sema_acquire() argument
245 if (timeout) { in nau8825_sema_acquire()
246 ret = down_timeout(&nau8825->xtalk_sem, timeout); in nau8825_sema_acquire()
[all …]
/openbmc/linux/drivers/media/pci/saa7134/
H A Dsaa7134-input.c1 // SPDX-License-Identifier: GPL-2.0-or-later
8 #include "saa7134-reg.h"
36 printk(KERN_DEBUG pr_fmt("ir %s: " fmt), ir->rc->device_name, \
43 /* -------------------- GPIO generic keycode builder -------------------- */
47 struct saa7134_card_ir *ir = dev->remote; in build_key()
51 switch (dev->board) { in build_key()
62 if (ir->polling) { in build_key()
63 if (ir->last_gpio == gpio) in build_key()
65 ir->last_gpio = gpio; in build_key()
68 data = ir_extract_bits(gpio, ir->mask_keycode); in build_key()
[all …]
/openbmc/linux/drivers/input/misc/
H A Diqs7222.c1 // SPDX-License-Identifier: GPL-2.0-or-later
116 [IQS7222_REG_GRP_CYCLE] = "cycle-%d",
117 [IQS7222_REG_GRP_CHAN] = "channel-%d",
118 [IQS7222_REG_GRP_SLDR] = "slider-%d",
120 [IQS7222_REG_GRP_GPIO] = "gpio-%d",
150 .name = "event-prox",
155 .name = "event-touch",
162 { .name = "event-press", },
164 .name = "event-tap",
171 .name = "event-swipe-pos",
[all …]
/openbmc/openbmc/poky/meta/recipes-core/initrdscripts/files/
H A Dinit-install.sh1 #!/bin/sh -e
3 # Copyright (C) 2008-2011 Intel
11 boot_size=$(du -ms /run/media/$1/ | awk '{print $1}')
13 if [ -e /run/media/$1/$2 ]; then
14 boot_size=$(( boot_size - $( du -ms /run/media/$1/$2 | awk '{print $1}') ))
17 if [ -e /run/media/$1/initrd ]; then
18 boot_size=$(( boot_size - $( du -ms /run/media/$1/initrd | awk '{print $1}') ))
38 live_dev_name=${live_dev_name%%[0-9]*}
46 devices=`ls /sys/block/ | grep -v mmcblk` || true
47 mmc_devices=`ls /sys/block/ | grep "mmcblk[0-9]\{1,\}$"` || true
[all …]
/openbmc/linux/drivers/iio/pressure/
H A Dmprls0025pa.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * MPRLS0025PA - Honeywell MicroPressure pressure sensor series driver
5 * Copyright (c) Andreas Klinger <ak@it-klinger.de>
8 * https://prod-edam.honeywell.com/content/dam/honeywell-edam/sps/siot/en-us/
9 * products/sensors/pressure-sensors/board-mount-pressure-sensors/
10 * micropressure-mpr-series/documents/
11 * sps-siot-mpr-series-datasheet-32332628-ciid-172626.pdf
13 * 7-bit I2C default slave address: 0x18
46 * pressure = (press_cnt - outputmin) * scale + pmin
48 * * pressure - measured pressure in Pascal
[all …]
/openbmc/linux/arch/arm/boot/dts/st/
H A Dste-href-tvk1281618-r3.dtsi1 // SPDX-License-Identifier: GPL-2.0-or-later
7 #include <dt-bindings/interrupt-controller/irq.h>
8 #include <dt-bindings/input/input.h>
12 compatible = "gpio-keys";
13 #address-cells = <1>;
14 #size-cells = <0>;
15 vdd-supply = <&ab8500_ldo_aux1_reg>;
16 pinctrl-names = "default";
17 pinctrl-0 = <&hall_tvk_mode>;
32 interrupt-parent = <&gpio2>;
[all …]
/openbmc/u-boot/common/
H A Dautoboot.c1 // SPDX-License-Identifier: GPL-2.0+
15 #include <u-boot/sha256.h>
35 * Use a "constant-length" time compare function for this
38 * https://crackstation.net/hashing-security.htm
78 * We don't know how long the stop-string is, so we need to in passwd_abort()
144 /* In order to keep up with incoming data, check timeout only in passwd_abort()
152 for (i = 0; i < presskey_max - 1; i++) in passwd_abort()
162 memcmp(presskey + presskey_len - in passwd_abort()
183 * returns: 0 - no key string, allow autoboot 1 - got key string, abort
200 debug_bootkeys("key timeout\n"); in __abortboot()
[all …]
/openbmc/u-boot/drivers/fpga/
H A Dspartan2.c1 // SPDX-License-Identifier: GPL-2.0+
7 #include <common.h> /* core U-Boot definitions */
8 #include <spartan2.h> /* Spartan-II device family */
30 #define CONFIG_SYS_FPGA_WAIT CONFIG_SYS_HZ/100 /* 10 ms */
41 /* ------------------------------------------------------------------------- */
42 /* Spartan-II Generic Implementation */
48 switch (desc->iface) { in spartan2_load()
61 __FUNCTION__, desc->iface); in spartan2_load()
71 switch (desc->iface) { in spartan2_dump()
84 __FUNCTION__, desc->iface); in spartan2_dump()
[all …]
H A Dspartan3.c1 // SPDX-License-Identifier: GPL-2.0+
12 #include <common.h> /* core U-Boot definitions */
13 #include <spartan3.h> /* Spartan-II device family */
34 #define CONFIG_SYS_FPGA_WAIT CONFIG_SYS_HZ/100 /* 10 ms */
45 /* ------------------------------------------------------------------------- */
46 /* Spartan-II Generic Implementation */
52 switch (desc->iface) { in spartan3_load()
65 __FUNCTION__, desc->iface); in spartan3_load()
75 switch (desc->iface) { in spartan3_dump()
88 __FUNCTION__, desc->iface); in spartan3_dump()
[all …]
/openbmc/linux/drivers/input/keyboard/
H A Dnomadik-ske-keypad.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) ST-Ericsson SA 2010
5 * Author: Naveen Kumar G <naveen.gaddipati@stericsson.com> for ST-Ericsson
6 * Author: Sundar Iyer <sundar.iyer@stericsson.com> for ST-Ericsson
22 #include <linux/platform_data/keypad-nomadik-ske.h>
54 * struct ske_keypad - data structure used by keypad driver
80 spin_lock(&keypad->ske_keypad_lock); in ske_keypad_set_bits()
82 ret = readl(keypad->reg_base + addr); in ske_keypad_set_bits()
85 writel(ret, keypad->reg_base + addr); in ske_keypad_set_bits()
87 spin_unlock(&keypad->ske_keypad_lock); in ske_keypad_set_bits()
[all …]
H A Dtwl4030_keypad.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * twl4030_keypad.c - driver for 8x8 keypad controller in twl4030 chips
8 * Code re-written for 2430SDP by:
27 * events, since it uses only the always-on 32KiHz oscillator, and has
29 * multi-key combinations.
59 /*----------------------------------------------------------------------*/
100 #define KEYP_PERIOD_US(t, prescale) ((t) / (31 << ((prescale) + 1)) - 1)
123 /*----------------------------------------------------------------------*/
131 dev_warn(kp->dbg_dev, in twl4030_kpread()
132 "Couldn't read TWL4030: %X - ret %d[%x]\n", in twl4030_kpread()
[all …]
/openbmc/linux/drivers/input/touchscreen/
H A Diqs7211.c1 // SPDX-License-Identifier: GPL-2.0-or-later
52 * The following delay is used during instances that must wait for the open-
124 .name = "event-prox",
131 .name = "event-touch",
138 .name = "event-tap",
145 .name = "event-hold",
152 .name = "event-swipe-x-neg",
159 .name = "event-swipe-x-pos",
166 .name = "event-swipe-y-pos",
173 .name = "event-swipe-y-neg",
[all …]
/openbmc/linux/kernel/
H A Dpanic.c1 // SPDX-License-Identifier: GPL-2.0-only
9 * This function is used through-out the kernel (including mm and fs)
137 /* Returns how long it waited in ms */
142 * Stop ourself in panic -- architecture code may override this
163 * per-CPU features such as virtualization extensions.
246 * and then performs the secondary CPUs shutdown - we cannot have
269 * panic - halt the system
305 * It's possible to come here directly from a panic-assertion and in panic()
331 if (len && buf[len - 1] == '\n') in panic()
332 buf[len - 1] = '\0'; in panic()
[all …]
/openbmc/linux/drivers/media/rc/
H A Drc-main.c1 // SPDX-License-Identifier: GPL-2.0
2 // rc-main.c - Remote Controller core module
4 // Copyright (C) 2009-2010 by Mauro Carvalho Chehab
8 #include <media/rc-core.h>
18 #include "rc-core-priv.h"
31 [RC_PROTO_RC5] = { .name = "rc-5",
33 [RC_PROTO_RC5X_20] = { .name = "rc-5x-20",
35 [RC_PROTO_RC5_SZ] = { .name = "rc-5-sz",
39 [RC_PROTO_SONY12] = { .name = "sony-12",
41 [RC_PROTO_SONY15] = { .name = "sony-15",
[all …]
H A Dimon.c1 // SPDX-License-Identifier: GPL-2.0-or-later
12 * also to the numerous 0xffdc device owners that tested auto-config
30 #include <media/rc-core.h>
127 struct rc_dev *rdev; /* rc-core device for remote */
160 * "struct file"->private_data, we need to remember
171 * display_open() to safely check ->disconnected and increment ->users.
368 * each new device until the 0x0034-0x0046 devices, which all use the same
369 * driver. Some of the devices in the 34-46 range haven't been definitively
471 /* lcd, vfd, vga or none? should be auto-detected, but can be overridden... */
496 struct device *dev = ictx->dev; in free_imon_context()
[all …]
/openbmc/qemu/pc-bios/
HDu-boot.e500 ... --------------------- ...
/openbmc/linux/drivers/input/mouse/
H A Dbyd.c1 // SPDX-License-Identifier: GPL-2.0-only
38 * Absolute coordinate packets are in the range 0-255 for both X and Y
53 /* Time in jiffies used to timeout various touch events (64 ms) */
59 * Swipe gesture from off-pad to on-pad
67 * 1 - 8 : least to most delay
114 * 1 - 7 : least to most sensitive
135 * 1 - 5 : slowest to fastest
147 * 0 - 7 : smallest to largest width
152 * 0 - 9 : smallest to largest height
156 * Disregard palm press as clicks
[all …]
/openbmc/linux/drivers/tty/
H A Dsysrq.c1 // SPDX-License-Identifier: GPL-2.0
68 * sysrq_mask - Getter for sysrq_enabled mask.
103 u8 loglevel = key - '0'; in sysrq_handle_loglevel()
111 .help_msg = "loglevel(0-9)",
196 .help_msg = "show-all-timers(q)",
219 .help_msg = "show-all-locks(d)",
278 .help_msg = "show-backtrace-all-active-cpus(l)",
298 .help_msg = "show-registers(p)",
310 .help_msg = "show-task-states(t)",
321 .help_msg = "show-blocked-tasks(w)",
[all …]
/openbmc/linux/drivers/misc/bcm-vk/
H A Dbcm_vk_dev.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright 2018-2020 Broadcom.
7 #include <linux/dma-mapping.h>
49 {VK_IMAGE_TYPE_BOOT1, {"vk_a0-boot1.bin", "vk-boot1.bin"}},
50 {VK_IMAGE_TYPE_BOOT2, {"vk_a0-boot2.bin", "vk-boot2.bin"}}
53 {VK_IMAGE_TYPE_BOOT1, {"vk_b0-boot1.bin", "vk-boot1.bin"}},
54 {VK_IMAGE_TYPE_BOOT2, {"vk_b0-boot2.bin", "vk-boot2.bin"}}
58 {VK_IMAGE_TYPE_BOOT1, {"vp-boot1.bin", ""}},
59 {VK_IMAGE_TYPE_BOOT2, {"vp-boot2.bin", ""}}
67 /* Allow minimum 1s for Load Image timeout responses */
[all …]
/openbmc/openbmc/poky/bitbake/lib/
H A Dpyinotify.py2 # pyinotify.py - python interface to inotify
3 # Copyright (c) 2005-2015 Sebastien Martini <seb@dbzteam.org>
5 # SPDX-License-Identifier: MIT
159 return -1
167 return -1
175 return -1
259 - Read max_queued_events attribute: myvar = max_queued_events.value
260 - Update max_queued_events attribute: max_queued_events.value = 42
300 # - read: myvar = max_queued_events.value
301 # - update: max_queued_events.value = 42
[all …]
/openbmc/linux/drivers/iio/adc/
H A Dat91_adc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
102 #define AT91_ADC_ACR_PENDETSENS (0x3 << 0) /* pull-up resistor */
136 (st->registers->channel_base + (ch * 4))
138 (readl_relaxed(st->reg_base + reg))
140 (writel_relaxed(val, st->reg_base + reg))
145 #define TOUCH_SAMPLE_PERIOD_US 2000 /* 2ms */
149 #define TOUCH_SAMPLE_PERIOD_US_RL 10000 /* 10ms, the SoC can't keep up with 2ms */
160 * struct at91_adc_trigger - description of triggers
173 * struct at91_adc_reg_desc - Various informations relative to registers
199 /* Pen Detection input pull-up resistor, can be 0~3 */
[all …]

12