/linux/drivers/input/touchscreen/ |
H A D | da9034-ts.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2006-2008 Marvell International Ltd. 66 static inline int is_pen_down(struct da9034_touch *touch) in is_pen_down() argument 68 return da903x_query_status(touch->da9034_dev, DA9034_STATUS_PEN_DOWN); in is_pen_down() 71 static inline int detect_pen_down(struct da9034_touch *touch, int on) in detect_pen_down() argument 74 return da903x_set_bits(touch->da9034_dev, in detect_pen_down() 77 return da903x_clr_bits(touch->da9034_dev, in detect_pen_down() 81 static int read_tsi(struct da9034_touch *touch) in read_tsi() argument 86 ret = da903x_read(touch->da9034_dev, DA9034_TSI_X_MSB, &_x); in read_tsi() 90 ret = da903x_read(touch->da9034_dev, DA9034_TSI_Y_MSB, &_y); in read_tsi() [all …]
|
H A D | chipone_icn8318.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 34 __u8 event; member 61 .addr = client->addr, in icn8318_read_touch_data() 66 .addr = client->addr, in icn8318_read_touch_data() 73 return i2c_transfer(client->adapter, msg, 2); in icn8318_read_touch_data() 76 static inline bool icn8318_touch_active(u8 event) in icn8318_touch_active() argument 78 return (event == ICN8318_EVENT_UPDATE1) || in icn8318_touch_active() 79 (event == ICN8318_EVENT_UPDATE2); in icn8318_touch_active() 85 struct device *dev = &data->client->dev; in icn8318_irq() 89 ret = icn8318_read_touch_data(data->client, &touch_data); in icn8318_irq() [all …]
|
H A D | goodix_berlin_core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (C) 2020 - 2021 Goodix, Inc. 18 * - ESD Management 19 * - Firmware update/flashing 20 * - "Config" update/flashing 21 * - Stylus Events 22 * - Gesture Events 23 * - Support for older revisions (A & B) 178 struct goodix_berlin_event event; member 190 for (i = 0; i < size - GOODIX_BERLIN_CHECKSUM_SIZE; i++) in goodix_berlin_checksum_valid() [all …]
|
H A D | s6sy761.c | 1 // SPDX-License-Identifier: GPL-2.0 60 /* event id */ 64 /* event register masks */ 74 /* event touch state values */ 122 .addr = sdata->client->addr, in s6sy761_read_events() 127 .addr = sdata->client->addr, in s6sy761_read_events() 130 .buf = sdata->data + S6SY761_EVENT_SIZE, in s6sy761_read_events() 135 ret = i2c_transfer(sdata->client->adapter, msgs, ARRAY_SIZE(msgs)); in s6sy761_read_events() 139 return ret == ARRAY_SIZE(msgs) ? 0 : -EIO; in s6sy761_read_events() 143 u8 *event, u8 tid) in s6sy761_report_coordinates() argument [all …]
|
H A D | chipone_icn8505.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (c) 2015-2018 Red Hat Inc. 54 u8 event; member 96 buf[i] = (reg_addr >> (reg_addr_width - (i + 1) * 8)) & 0xff; in icn8505_read_xfer() 98 ret = i2c_transfer(client->adapter, msg, 2); in icn8505_read_xfer() 101 ret = -EIO; in icn8505_read_xfer() 103 dev_err(&client->dev, in icn8505_read_xfer() 116 u8 buf[3 + 32]; /* 3 bytes for 24 bit reg-addr + 32 bytes max len */ in icn8505_write_xfer() 125 return -EINVAL; in icn8505_write_xfer() 128 buf[i] = (reg_addr >> (reg_addr_width - (i + 1) * 8)) & 0xff; in icn8505_write_xfer() [all …]
|
H A D | stmfts.c | 1 // SPDX-License-Identifier: GPL-2.0 54 /* multi touch related event masks */ 61 /* key related event masks */ 116 if (value != sdata->led_status && sdata->ledvdd) { in stmfts_brightness_set() 118 regulator_disable(sdata->ledvdd); in stmfts_brightness_set() 120 err = regulator_enable(sdata->ledvdd); in stmfts_brightness_set() 122 dev_warn(&sdata->client->dev, in stmfts_brightness_set() 128 sdata->led_status = value; in stmfts_brightness_set() 139 return !!regulator_is_enabled(sdata->ledvdd); in stmfts_brightness_get() 151 .addr = sdata->client->addr, in stmfts_read_events() [all …]
|
H A D | mainstone-wm97xx.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * mainstone-wm97xx.c -- Mainstone Continuous Touch screen driver for 12 * This is a wm97xx extended touch driver to capture touch 16 * - codecs supported:- WM9705, WM9712, WM9713 17 * - processors supported:- Intel XScale PXA25x, PXA26x, PXA27x 31 #include <sound/pxa2xx-lib.h> 33 #include <asm/mach-types.h> 74 * event. If the irq request fails then it will fall back to polling mode. 90 * AC97 touch data slot. 92 * Touch screen readback data ac97 slot [all …]
|
/linux/Documentation/input/ |
H A D | multi-touch-protocol.rst | 4 Multi-touch (MT) Protocol 7 :Copyright: |copy| 2009-2010 Henrik Rydberg <rydberg@euromail.se> 11 ------------ 13 In order to utilize the full power of the new multi-touch and multi-user 16 document describes the multi-touch (MT) protocol which allows kernel 23 describes how to send updates for individual contacts via event slots. 30 -------------- 34 packet. Since these events are ignored by current single-touch (ST) 40 event, which instructs the receiver to accept the data for the current 45 This generates an ABS_MT_SLOT event, which instructs the receiver to [all …]
|
H A D | event-codes.rst | 1 .. _input-event-codes: 4 Input event codes 12 A single hardware event generates multiple input events. Each input event 13 contains the new value of a single data item. A special event type, EV_SYN, is 15 the same moment in time. In the following, the term "event" refers to a single 16 input event encompassing a type, code, and value. 19 of event codes have changed. However, the state is maintained within the Linux 22 event code values using the EVIOCG* ioctls defined in linux/input.h. The event 24 class/input/event*/device/capabilities/, and the properties of a device are 25 provided in class/input/event*/device/properties. [all …]
|
/linux/tools/testing/selftests/hid/tests/ |
H A D | test_sony.py | 2 # SPDX-License-Identifier: GPL-2.0 3 # -*- coding: utf-8 -*- 43 for x in range(-32000, 32000, 4000): 44 r = uhdev.event(accel=(x, None, None)) 51 # to inverse calibration, followed by calibration by hid-sony. 52 assert x - 1 <= value <= x + 1 54 for y in range(-32000, 32000, 4000): 55 r = uhdev.event(accel=(None, y, None)) 61 assert y - 1 <= value <= y + 1 63 for z in range(-32000, 32000, 4000): [all …]
|
H A D | test_wacom_generic.py | 2 # SPDX-License-Identifier: GPL-2.0 3 # -*- coding: utf-8 -*- 86 state is "unchanged" since the previous event. 111 number and tool-type identifier. Values of ``0`` may sometimes be 112 used for the out-of-range condition. 150 range 0 cm - 5 cm) and exact unit comparison (e.g. 1 inch is 151 not within the range 0 cm - 5 cm). 153 phys_size = (field.physical_max - field.physical_min) * 10 ** (field.unit_exp) 173 self.ring = -1 264 def event(self, x, y, pressure, buttons=None, toolid=None, proximity=None): member in BaseTablet [all …]
|
/linux/Documentation/devicetree/bindings/input/touchscreen/ |
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 …]
|
H A D | bu21013.txt | 1 * Rohm BU21013 Touch Screen 4 - compatible : "rohm,bu21013_tp" 5 - reg : I2C device address 6 - reset-gpios : GPIO pin enabling (selecting) chip (CS) 7 - interrupt-parent : the phandle for the gpio controller 8 - interrupts : (gpio) interrupt to which the chip is connected 11 - touch-gpios : GPIO pin registering a touch event 12 - <supply_name>-supply : Phandle to a regulator supply 13 - touchscreen-size-x : General touchscreen binding, see [1]. 14 - touchscreen-size-y : General touchscreen binding, see [1]. [all …]
|
H A D | fsl,imx6ul-tsc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/input/touchscreen/fsl,imx6ul-tsc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Freescale i.MX6UL Touch Controller 10 - Haibo Chen <haibo.chen@nxp.com> 11 - Shawn Guo <shawnguo@kernel.org> 12 - Sascha Hauer <s.hauer@pengutronix.de> 16 const: fsl,imx6ul-tsc 20 - description: touch controller address [all …]
|
/linux/Documentation/devicetree/bindings/input/ |
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# 7 title: Azoteq IQS269A Capacitive Touch Controller 10 - Jeff LaBundy <jeff@labundy.com> 13 - $ref: input.yaml# 16 The Azoteq IQS269A is an 8-channel capacitive touch controller that features 17 additional Hall-effect and inductive sensing capabilities. 24 - azoteq,iqs269a 25 - azoteq,iqs269a-00 [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# 7 title: Azoteq IQS7222A/B/C/D Capacitive Touch Controller 10 - Jeff LaBundy <jeff@labundy.com> 14 capacitive touch controllers that feature additional sensing capabilities. 21 - azoteq,iqs7222a 22 - azoteq,iqs7222b 23 - azoteq,iqs7222c 24 - azoteq,iqs7222d [all …]
|
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# 7 title: Azoteq IQS626A Capacitive Touch Controller 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": [all …]
|
H A D | iqs62x-keys.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/input/iqs62x-keys.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jeff LaBundy <jeff@labundy.com> 13 - $ref: input.yaml# 16 The Azoteq IQS620A, IQS621, IQS622, IQS624 and IQS625 multi-function sensors 17 feature a variety of self-capacitive, mutual-inductive and Hall-effect sens- 23 further details and examples. Sensor hardware configuration (self-capacitive 24 vs. mutual-inductive, etc.) is selected based on the device's firmware. [all …]
|
H A D | atmel,captouch.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Atmel capacitive touch device 10 - Dharma balasubiramani <dharma.b@microchip.com> 13 Atmel capacitive touch device, typically an Atmel touch sensor connected to 17 - $ref: input.yaml# 34 - compatible 35 - reg 36 - interrupts [all …]
|
/linux/include/xen/interface/io/ |
H A D | kbdif.h | 1 /* SPDX-License-Identifier: MIT */ 3 * kbdif.h -- Xen virtual keyboard/mouse 17 * The two halves of a para-virtual driver utilize nodes within 31 *---------------------------- Features supported ---------------------------- 37 * feature-disable-keyboard 43 * feature-disable-pointer 49 * feature-abs-pointer 55 * feature-multi-touch 58 * Backends, which support reporting of multi-touch events 61 * feature-raw-pointer [all …]
|
/linux/tools/perf/tests/shell/ |
H A D | test_arm_coresight.sh | 9 # SPDX-License-Identifier: GPL-2.0 15 perf list | grep -q 'cs_etm//' && return 0 17 # cs_etm event doesn't exist 28 rm -f ${perfdata} 29 rm -f ${file} 30 rm -f "${perfdata}.old" 31 trap - EXIT TERM INT 39 rm - [all...] |
/linux/drivers/hid/ |
H A D | hid-magicmouse.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 21 #include "hid-ids.h" 27 static int middle_button_start = -350; 39 return -EINVAL; in param_set_scroll_speed() 52 …ARM_DESC(report_undeciphered, "Report undeciphered multi-touch state field using a MSC_RAW event"); 65 * 0x03 seem to indicate the aspect ratio of the touch, bits 0x70 seem 66 * to be some kind of bit mask -- 0x20 may be a near-field reading, 75 /* Number of high-resolution events for each low-resolution detent. */ 81 /* Touch surface information. Dimension is in hundredths of a mm, min and max 84 #define MOUSE_MIN_X -1100 [all …]
|
/linux/drivers/input/mouse/ |
H A D | synaptics_i2c.c | 230 static inline void set_scan_rate(struct synaptics_i2c *touch, int scan_rate) in set_scan_rate() argument 232 touch->scan_ms = MSEC_PER_SEC / scan_rate; in set_scan_rate() 233 touch->scan_rate_param = scan_rate; in set_scan_rate() 311 dev_err(&client->dev, "Unable to reset device\n"); in synaptics_i2c_reset_config() 316 dev_err(&client->dev, "Unable to config device\n"); in synaptics_i2c_reset_config() 335 static bool synaptics_i2c_get_input(struct synaptics_i2c *touch) in synaptics_i2c_get_input() argument 337 struct input_dev *input = touch->input; in synaptics_i2c_get_input() 343 if (synaptics_i2c_check_error(touch->client)) in synaptics_i2c_get_input() 347 data = synaptics_i2c_reg_get(touch->client, DATA_REG0); in synaptics_i2c_get_input() 354 xy_delta = synaptics_i2c_word_get(touch->client, REL_X_REG) & 0xffff; in synaptics_i2c_get_input() [all …]
|
/linux/Documentation/w1/ |
H A D | w1-netlink.rst | 21 [struct cn_msg] - connector header. 23 [struct w1_netlink_msg] - w1 netlink header. 24 __u8 type - message type. 36 (read/write/touch) 37 __u8 status - error indication from kernel 38 __u16 len - size of data attached to this header data 40 __u8 id[8]; - slave unique device id 42 __u32 id; - master's id 43 __u32 res; - reserved 47 [struct w1_netlink_cmd] - command for given master or slave device. [all …]
|
/linux/Documentation/input/devices/ |
H A D | bcm5974.rst | 3 ------------------------ 5 ------------------------ 7 :Copyright: |copy| 2008-2009 Henrik Rydberg <rydberg@euromail.se> 10 part of the touchd user-space driver project: 16 :Copyright: |copy| 2001-2004 Greg Kroah-Hartman (greg@kroah.com) 19 :Copyright: |copy| 2005 Frank Arnold (frank@scirocco-5v-turbo.de) 21 :Copyright: |copy| 2005 Michael Hanselmann (linux-kernel@hansmi.ch) 24 This driver adds support for the multi-touch trackpad on the new Apple 33 ----- 36 becomes available both as an event device (/dev/input/event*) and as a [all …]
|