Searched +full:timeout +full:- +full:press +full:- +full:ms (Results 1 – 25 of 39) sorted by relevance
12
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,iqs7222a22 - azoteq,iqs7222b23 - azoteq,iqs7222c24 - azoteq,iqs7222d29 irq-gpios:32 Specifies the GPIO connected to the device's active-low RDY output.[all …]
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,iqs7210a22 - azoteq,iqs7211a23 - azoteq,iqs7211e28 irq-gpios:[all …]
1 // SPDX-License-Identifier: GPL-2.0-only2 // 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 …]
1 // SPDX-License-Identifier: GPL-2.05 // Copyright (C) 2022-2023 Cirrus Logic, Inc. and14 #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 …]
1 // SPDX-License-Identifier: GPL-2.0-only8 * Co-author: Meng-Huang Kuo <mhkuo@nuvoton.com>35 #define NUVOTON_CODEC_DAI "nau8825-hifi"223 * nau8825_sema_acquire - acquire the semaphore of nau88l25225 * @timeout: how long in jiffies to wait before failure or zero to wait233 * this function returns -ETIME. If the sleep is interrupted by a signal,234 * this function will return -EINTR. It returns 0 if the semaphore was241 static int nau8825_sema_acquire(struct nau8825 *nau8825, long timeout) in nau8825_sema_acquire() argument245 if (timeout) { in nau8825_sema_acquire()246 ret = down_timeout(&nau8825->xtalk_sem, timeout); in nau8825_sema_acquire()[all …]
1 // SPDX-License-Identifier: GPL-2.0-or-later8 #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 …]
1 // SPDX-License-Identifier: GPL-2.0-or-later116 [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 …]
1 #!/bin/sh -e3 # Copyright (C) 2008-2011 Intel11 boot_size=$(du -ms /run/media/$1/ | awk '{print $1}')13 if [ -e /run/media/$1/$2 ]; then14 boot_size=$(( boot_size - $( du -ms /run/media/$1/$2 | awk '{print $1}') ))17 if [ -e /run/media/$1/initrd ]; then18 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` || true47 mmc_devices=`ls /sys/block/ | grep "mmcblk[0-9]\{1,\}$"` || true[all …]
1 // SPDX-License-Identifier: GPL-2.0-or-later3 * MPRLS0025PA - Honeywell MicroPressure pressure sensor series driver5 * 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.pdf13 * 7-bit I2C default slave address: 0x1846 * pressure = (press_cnt - outputmin) * scale + pmin48 * * pressure - measured pressure in Pascal[all …]
1 // SPDX-License-Identifier: GPL-2.0-or-later7 #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 …]
1 // SPDX-License-Identifier: GPL-2.0+15 #include <u-boot/sha256.h>35 * Use a "constant-length" time compare function for this38 * https://crackstation.net/hashing-security.htm78 * 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, abort200 debug_bootkeys("key timeout\n"); in __abortboot()[all …]
1 // 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 …]
1 // 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 …]
1 // SPDX-License-Identifier: GPL-2.0-only3 * Copyright (C) ST-Ericsson SA 20105 * Author: Naveen Kumar G <naveen.gaddipati@stericsson.com> for ST-Ericsson6 * Author: Sundar Iyer <sundar.iyer@stericsson.com> for ST-Ericsson22 #include <linux/platform_data/keypad-nomadik-ske.h>54 * struct ske_keypad - data structure used by keypad driver80 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 …]
1 // SPDX-License-Identifier: GPL-2.0-or-later3 * twl4030_keypad.c - driver for 8x8 keypad controller in twl4030 chips8 * Code re-written for 2430SDP by:27 * events, since it uses only the always-on 32KiHz oscillator, and has29 * 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 …]
1 // SPDX-License-Identifier: GPL-2.0-or-later52 * 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 …]
1 // SPDX-License-Identifier: GPL-2.0-only9 * 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 this163 * per-CPU features such as virtualization extensions.246 * and then performs the secondary CPUs shutdown - we cannot have269 * panic - halt the system305 * 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 …]
1 // SPDX-License-Identifier: GPL-2.02 // rc-main.c - Remote Controller core module4 // Copyright (C) 2009-2010 by Mauro Carvalho Chehab8 #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 …]
1 // SPDX-License-Identifier: GPL-2.0-or-later12 * also to the numerous 0xffdc device owners that tested auto-config30 #include <media/rc-core.h>127 struct rc_dev *rdev; /* rc-core device for remote */160 * "struct file"->private_data, we need to remember171 * display_open() to safely check ->disconnected and increment ->users.368 * each new device until the 0x0034-0x0046 devices, which all use the same369 * driver. Some of the devices in the 34-46 range haven't been definitively471 /* lcd, vfd, vga or none? should be auto-detected, but can be overridden... */496 struct device *dev = ictx->dev; in free_imon_context()[all …]
... --------------------- ...
1 // SPDX-License-Identifier: GPL-2.0-only38 * Absolute coordinate packets are in the range 0-255 for both X and Y53 /* Time in jiffies used to timeout various touch events (64 ms) */59 * Swipe gesture from off-pad to on-pad67 * 1 - 8 : least to most delay114 * 1 - 7 : least to most sensitive135 * 1 - 5 : slowest to fastest147 * 0 - 7 : smallest to largest width152 * 0 - 9 : smallest to largest height156 * Disregard palm press as clicks[all …]
1 // SPDX-License-Identifier: GPL-2.068 * 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 …]
1 // SPDX-License-Identifier: GPL-2.03 * 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 …]
2 # pyinotify.py - python interface to inotify3 # Copyright (c) 2005-2015 Sebastien Martini <seb@dbzteam.org>5 # SPDX-License-Identifier: MIT159 return -1167 return -1175 return -1259 - Read max_queued_events attribute: myvar = max_queued_events.value260 - Update max_queued_events attribute: max_queued_events.value = 42300 # - read: myvar = max_queued_events.value301 # - update: max_queued_events.value = 42[all …]
1 // SPDX-License-Identifier: GPL-2.0-or-later102 #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 triggers173 * struct at91_adc_reg_desc - Various informations relative to registers199 /* Pen Detection input pull-up resistor, can be 0~3 */[all …]