Home
last modified time | relevance | path

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

12

/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 …]
/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/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"
54 /* Delayed work to report long button press */
76 /* Holds type of Headset - Mono/Stereo */
78 /* Holds mbhc detection method - ADC/Legacy */
85 if (!mbhc->fields[field].reg) in wcd_mbhc_write_field()
88 return snd_soc_component_write_field(mbhc->component, in wcd_mbhc_write_field()
89 mbhc->fields[field].reg, in wcd_mbhc_write_field()
90 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
15 #include <linux/mfd/cs42l43-regs.h>
26 #include <sound/soc-component.h>
27 #include <sound/soc-jack.h>
50 struct cs42l43 *cs42l43 = priv->core; in cs42l43_find_index()
53 ret = device_property_read_u32(cs42l43->dev, prop, &defval); in cs42l43_find_index()
54 if (ret != -EINVA 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 …]
H A Dnau8824.c1 // SPDX-License-Identifier: GPL-2.0-only
35 static int quirk_override = -1;
37 MODULE_PARM_DESC(quirk, "Board-specific quirk override");
206 static int nau8824_sema_acquire(struct nau8824 *nau8824, long timeout) in nau8824_sema_acquire() argument
210 if (timeout) { in nau8824_sema_acquire()
211 ret = down_timeout(&nau8824->jd_sem, timeout); in nau8824_sema_acquire()
213 dev_warn(nau8824->dev, "Acquire semaphore timeout\n"); in nau8824_sema_acquire()
215 ret = down_interruptible(&nau8824->jd_sem); in nau8824_sema_acquire()
217 dev_warn(nau8824->dev, "Acquire semaphore fail\n"); in nau8824_sema_acquire()
225 up(&nau8824->jd_sem); in nau8824_sema_release()
[all …]
H A Dcs42l43.c1 // SPDX-License-Identifier: GPL-2.0
5 // Copyright (C) 2022-2023 Cirrus Logic, Inc. and
21 #include <linux/mfd/cs42l43-regs.h>
33 #include <sound/soc-component.h>
34 #include <sound/soc-dapm.h>
35 #include <sound/soc-dai.h>
137 dev_err(priv->dev, "Error " #name " IRQ\n"); \
157 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(priv->component); in CS42L43_IRQ_ERROR()
161 priv->hp_ilimit_count--; in CS42L43_IRQ_ERROR()
163 if (priv->hp_ilimit_count) in CS42L43_IRQ_ERROR()
[all …]
H A Darizona-jack.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * extcon-arizona.c - Extcon driver Wolfson Arizona devices
5 * Copyright (C) 2012-2014 Wolfson Microelectronics plc
26 #include <dt-bindings/mfd/arizona.h>
33 * The hardware supports 8 ranges / buttons, but the snd-jack interface
34 * only supports 6 buttons (button 0-5).
100 struct arizona *arizona = info->arizona; in arizona_extcon_hp_clamp()
105 switch (arizona->type) { in arizona_extcon_hp_clamp()
122 ret = regmap_update_bits(arizona->regmap, in arizona_extcon_hp_clamp()
127 dev_warn(arizona->dev, "Failed to set TST_CAP_SEL: %d\n", ret); in arizona_extcon_hp_clamp()
[all …]
/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 …]
/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 …]
/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 …]
/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-edam.honeywell.com/content/dam/honeywell-edam/sps/siot/en-us/products/sensors/pressure-sensors/bo…
45 * pressure = (press_cnt - outputmin) * scale + pmin
47 * * pressure - measured pressure in Pascal
48 * * press_cnt - raw value read from sensor
49 * * pmin - minimum pressure range value of sensor (data->pmin)
50 * * pmax - maximum pressure range value of sensor (data->pmax)
51 * * outputmin - minimum numerical range raw value delivered by sensor
[all …]
/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 …]
/linux/drivers/input/keyboard/
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 …]
/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 …]
/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 …]
/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 …]
/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)
140 /* Returns how long it waited in ms */
145 * Stop ourself in panic -- architecture code may override this
166 * per-CPU features such as virtualization extensions.
253 * and then performs the secondary CPUs shutdown - we cannot have
259 /* Temporary allow non-panic CPUs to write their backtraces. */ in panic_other_cpus_shutdown()
280 * panic - halt the system
316 * It's possible to come here directly from a panic-assertion and in panic()
345 if (len && buf[len - 1] == '\n') in panic()
[all …]
/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 …]
H A Dbcm_vk_msg.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright 2018-2020 Broadcom.
46 u32 q_num = msg->trans_id & BCM_VK_MSG_Q_MASK; in get_q_num()
62 msg->trans_id = (msg->trans_id & ~BCM_VK_MSG_Q_MASK) | trans_q; in set_q_num()
67 return ((msg->trans_id >> BCM_VK_MSG_Q_SHIFT) & BCM_VK_MSG_ID_MASK); in get_msg_id()
72 msg->trans_id = (val << BCM_VK_MSG_Q_SHIFT) | get_q_num(msg); in set_msg_id()
77 return ((idx + inc) & qinfo->q_mask); in msgq_inc()
84 return qinfo->q_start + (VK_MSGQ_BLK_SIZE * idx); in msgq_blk_addr()
92 wr_idx = readl_relaxed(&msgq->wr_idx); in msgq_occupied()
93 rd_idx = readl_relaxed(&msgq->rd_idx); in msgq_occupied()
[all …]
/linux/drivers/hid/
H A Dhid-logitech-hidpp.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright (c) 2012-2013 Google (c)
7 * Copyright (c) 2013-2014 Red Hat Inc.
25 #include <linux/fixp-arith.h>
28 #include "hid-ids.h"
39 "Disable Tap-To-Click mode reporting for touchpads (only on the K400 currently).");
41 /* Define a non-zero software ID to identify our own requests */
83 /* Convenience constant to check for any high-res support. */
127 u8 params[HIDPP_REPORT_VERY_LONG_MAX_LENGTH - 4U];
133 u8 params[HIDPP_REPORT_VERY_LONG_MAX_LENGTH - 4U];
[all …]
/linux/drivers/media/usb/dvb-usb-v2/
H A Daf9015.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * DVB USB Linux driver for Afatech AF9015 DVB-T USB2.0 receiver
22 struct usb_interface *intf = d->intf; in af9015_ctrl_msg()
26 mutex_lock(&d->usb_mutex); in af9015_ctrl_msg()
28 state->buf[0] = req->cmd; in af9015_ctrl_msg()
29 state->buf[1] = state->seq++; in af9015_ctrl_msg()
30 state->buf[2] = req->i2c_addr << 1; in af9015_ctrl_msg()
31 state->buf[3] = req->addr >> 8; in af9015_ctrl_msg()
32 state->buf[4] = req->addr & 0xff; in af9015_ctrl_msg()
33 state->buf[5] = req->mbox; in af9015_ctrl_msg()
[all …]
/linux/tools/power/pm-graph/
H A Dsleepgraph.py2 # SPDX-License-Identifier: GPL-2.0-only
21 # https://www.intel.com/content/www/us/en/developer/topic-technology/open/pm-graph/overview.html
23 # git@github.com:intel/pm-graph
51 # ---
1240 pollWifi(self, dev, timeout=10) global() argument
[all...]
/linux/include/linux/platform_data/
H A Dcros_ec_commands.h1 /* SPDX-License-Identifier: GPL-2.0-only */
7 * NOTE: This file is auto-generated from ChromeOS EC Open Source code from
52 * The actual block is 0x800-0x8ff, but some BIOSes think it's 0x880-0x8ff
77 #define EC_MEMMAP_TEMP_SENSOR 0x00 /* Temp sensors 0x00 - 0x0f */
78 #define EC_MEMMAP_FAN 0x10 /* Fan speeds 0x10 - 0x17 */
79 #define EC_MEMMAP_TEMP_SENSOR_B 0x18 /* More temp sensors 0x18 - 0x1f */
81 #define EC_MEMMAP_ID_VERSION 0x22 /* Version of data in 0x20 - 0x2f */
82 #define EC_MEMMAP_THERMAL_VERSION 0x23 /* Version of data in 0x00 - 0x1f */
83 #define EC_MEMMAP_BATTERY_VERSION 0x24 /* Version of data in 0x40 - 0x7f */
84 #define EC_MEMMAP_SWITCHES_VERSION 0x25 /* Version of data in 0x30 - 0x33 */
[all …]

12