Home
last modified time | relevance | path

Searched +full:event +full:- +full:touch (Results 1 – 25 of 706) sorted by relevance

12345678910>>...29

/kernel/linux/linux-5.10/drivers/input/touchscreen/
Dda9034-ts.c1 // 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 …]
Dchipone_icn8318.c1 // 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 …]
Dchipone_icn8505.c1 // SPDX-License-Identifier: GPL-2.0+
5 * Copyright (c) 2015-2018 Red Hat Inc.
54 u8 event; member
97 buf[i] = (reg_addr >> (reg_addr_width - (i + 1) * 8)) & 0xff; in icn8505_read_xfer()
99 ret = i2c_transfer(client->adapter, msg, 2); in icn8505_read_xfer()
102 ret = -EIO; in icn8505_read_xfer()
104 dev_err(&client->dev, in icn8505_read_xfer()
117 u8 buf[3 + 32]; /* 3 bytes for 24 bit reg-addr + 32 bytes max len */ in icn8505_write_xfer()
126 return -EINVAL; in icn8505_write_xfer()
129 buf[i] = (reg_addr >> (reg_addr_width - (i + 1) * 8)) & 0xff; in icn8505_write_xfer()
[all …]
/kernel/linux/linux-4.19/drivers/input/touchscreen/
Dda9034-ts.c4 * Copyright (C) 2006-2008 Marvell International Ltd.
69 static inline int is_pen_down(struct da9034_touch *touch) in is_pen_down() argument
71 return da903x_query_status(touch->da9034_dev, DA9034_STATUS_PEN_DOWN); in is_pen_down()
74 static inline int detect_pen_down(struct da9034_touch *touch, int on) in detect_pen_down() argument
77 return da903x_set_bits(touch->da9034_dev, in detect_pen_down()
80 return da903x_clr_bits(touch->da9034_dev, in detect_pen_down()
84 static int read_tsi(struct da9034_touch *touch) in read_tsi() argument
89 ret = da903x_read(touch->da9034_dev, DA9034_TSI_X_MSB, &_x); in read_tsi()
93 ret = da903x_read(touch->da9034_dev, DA9034_TSI_Y_MSB, &_y); in read_tsi()
97 ret = da903x_read(touch->da9034_dev, DA9034_TSI_XY_LSB, &_v); in read_tsi()
[all …]
Dchipone_icn8318.c38 __u8 event; member
65 .addr = client->addr, in icn8318_read_touch_data()
70 .addr = client->addr, in icn8318_read_touch_data()
77 return i2c_transfer(client->adapter, msg, 2); in icn8318_read_touch_data()
80 static inline bool icn8318_touch_active(u8 event) in icn8318_touch_active() argument
82 return (event == ICN8318_EVENT_UPDATE1) || in icn8318_touch_active()
83 (event == ICN8318_EVENT_UPDATE2); in icn8318_touch_active()
89 struct device *dev = &data->client->dev; in icn8318_irq()
93 ret = icn8318_read_touch_data(data->client, &touch_data); in icn8318_irq()
95 dev_err(dev, "Error reading touch data: %d\n", ret); in icn8318_irq()
[all …]
Dchipone_icn8505.c1 // SPDX-License-Identifier: GPL-2.0+
5 * Copyright (c) 2015-2018 Red Hat Inc.
54 u8 event; member
97 buf[i] = (reg_addr >> (reg_addr_width - (i + 1) * 8)) & 0xff; in icn8505_read_xfer()
99 ret = i2c_transfer(client->adapter, msg, 2); in icn8505_read_xfer()
102 ret = -EIO; in icn8505_read_xfer()
104 dev_err(&client->dev, in icn8505_read_xfer()
117 u8 buf[3 + 32]; /* 3 bytes for 24 bit reg-addr + 32 bytes max len */ in icn8505_write_xfer()
126 return -EINVAL; in icn8505_write_xfer()
129 buf[i] = (reg_addr >> (reg_addr_width - (i + 1) * 8)) & 0xff; in icn8505_write_xfer()
[all …]
Ds6sy761.c1 // 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 …]
/kernel/linux/linux-5.10/Documentation/input/
Dmulti-touch-protocol.rst4 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 …]
Devent-codes.rst1 .. _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 …]
/kernel/linux/linux-4.19/Documentation/input/
Dmulti-touch-protocol.rst4 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 …]
Devent-codes.rst1 .. _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 …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/input/
Diqs269a.yaml1 # 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 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:
[all …]
Diqs62x-keys.yaml1 # 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 The Azoteq IQS620A, IQS621, IQS622, IQS624 and IQS625 multi-function sensors
14 feature a variety of self-capacitive, mutual-inductive and Hall-effect sens-
20 further details and examples. Sensor hardware configuration (self-capacitive
21 vs. mutual-inductive, etc.) is selected based on the device's firmware.
26 - azoteq,iqs620a-keys
[all …]
/kernel/linux/linux-4.19/include/xen/interface/io/
Dkbdif.h2 * kbdif.h -- Xen virtual keyboard/mouse
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
34 * The two halves of a para-virtual driver utilize nodes within
48 *---------------------------- Features supported ----------------------------
54 * feature-disable-keyboard
60 * feature-disable-pointer
66 * feature-abs-pointer
72 * feature-multi-touch
75 * Backends, which support reporting of multi-touch events
78 * feature-raw-pointer
[all …]
/kernel/linux/linux-5.10/include/xen/interface/io/
Dkbdif.h2 * kbdif.h -- Xen virtual keyboard/mouse
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
34 * The two halves of a para-virtual driver utilize nodes within
48 *---------------------------- Features supported ----------------------------
54 * feature-disable-keyboard
60 * feature-disable-pointer
66 * feature-abs-pointer
72 * feature-multi-touch
75 * Backends, which support reporting of multi-touch events
78 * feature-raw-pointer
[all …]
/kernel/linux/linux-4.19/Documentation/devicetree/bindings/input/touchscreen/
Dbu21013.txt1 * Rohm BU21013 Touch Screen
4 - compatible : "rohm,bu21013_tp"
5 - reg : I2C device address
8 - touch-gpio : GPIO pin registering a touch event
9 - <supply_name>-supply : Phandle to a regulator supply
10 - rohm,touch-max-x : Maximum outward permitted limit in the X axis
11 - rohm,touch-max-y : Maximum outward permitted limit in the Y axis
12 - rohm,flip-x : Flip touch coordinates on the X axis
13 - rohm,flip-y : Flip touch coordinates on the Y axis
21 touch-gpio = <&gpio2 20 0x4>;
[all …]
Dimx6ul_tsc.txt1 * Freescale i.MX6UL Touch Controller
4 - compatible: must be "fsl,imx6ul-tsc".
5 - reg: this touch controller address and the ADC2 address.
6 - interrupts: the interrupt of this touch controller and ADC2.
7 - clocks: the root clock of touch controller and ADC2.
8 - clock-names; must be "tsc" and "adc".
9 - xnur-gpio: the X- gpio this controller connect to.
10 This xnur-gpio returns to low once the finger leave the touch screen (The
11 last touch event the touch controller capture).
14 - measure-delay-time: the value of measure delay time.
[all …]
Dst,stmfts.txt1 * ST-Microelectronics FingerTip touchscreen controller
3 The ST-Microelectronics FingerTip device provides a basic touchscreen
7 The driver supports also hovering as an absolute single touch event with x, y, z
11 - compatible : must be "st,stmfts"
12 - reg : I2C slave address, (e.g. 0x49)
13 - interrupts : interrupt specification
14 - avdd-supply : analogic power supply
15 - vdd-supply : power supply
16 - touchscreen-size-x : see touchscreen.txt
17 - touchscreen-size-y : see touchscreen.txt
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/input/touchscreen/
Dimx6ul_tsc.txt1 * Freescale i.MX6UL Touch Controller
4 - compatible: must be "fsl,imx6ul-tsc".
5 - reg: this touch controller address and the ADC2 address.
6 - interrupts: the interrupt of this touch controller and ADC2.
7 - clocks: the root clock of touch controller and ADC2.
8 - clock-names; must be "tsc" and "adc".
9 - xnur-gpio: the X- gpio this controller connect to.
10 This xnur-gpio returns to low once the finger leave the touch screen (The
11 last touch event the touch controller capture).
14 - measure-delay-time: the value of measure delay time.
[all …]
Dbu21013.txt1 * 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 …]
Dst,stmfts.txt1 * ST-Microelectronics FingerTip touchscreen controller
3 The ST-Microelectronics FingerTip device provides a basic touchscreen
7 The driver supports also hovering as an absolute single touch event with x, y, z
11 - compatible : must be "st,stmfts"
12 - reg : I2C slave address, (e.g. 0x49)
13 - interrupts : interrupt specification
14 - avdd-supply : analogic power supply
15 - vdd-supply : power supply
16 - touchscreen-size-x : see touchscreen.txt
17 - touchscreen-size-y : see touchscreen.txt
[all …]
/kernel/linux/linux-5.10/tools/perf/tests/shell/
Dtest_arm_coresight.sh9 # SPDX-License-Identifier: GPL-2.0
16 perf list | grep -q 'cs_etm//' && return 0
18 # cs_etm event doesn't exist
26 rm -f ${perfdata}
27 rm -f ${file}
34 rm -f $file
35 perf record -o ${perfdata} -e cs_etm/@$1/u --per-thread \
36 -- taskset -c $2 touch $file
43 …# touch 6512 1 branches:u: ffffb220824c strcmp+0xc (/lib/aarch64-linux-gn…
44 …# touch 6512 1 branches:u: ffffb22082e0 strcmp+0xa0 (/lib/aarch64-linux-g…
[all …]
/kernel/linux/linux-4.19/drivers/hid/
Dhid-magicmouse.c23 #include "hid-ids.h"
29 static int middle_button_start = -350;
41 return -EINVAL; in param_set_scroll_speed()
54 …ARM_DESC(report_undeciphered, "Report undeciphered multi-touch state field using a MSC_RAW event");
60 * 0x03 seem to indicate the aspect ratio of the touch, bits 0x70 seem
61 * to be some kind of bit mask -- 0x20 may be a near-field reading,
72 /* Touch surface information. Dimension is in hundredths of a mm, min and max
75 #define MOUSE_MIN_X -1100
77 #define MOUSE_RES_X ((MOUSE_MAX_X - MOUSE_MIN_X) / (MOUSE_DIMENSION_X / 100))
79 #define MOUSE_MIN_Y -1589
[all …]
/kernel/linux/linux-4.19/drivers/input/mouse/
Dsynaptics_i2c.c231 static inline void set_scan_rate(struct synaptics_i2c *touch, int scan_rate) in set_scan_rate() argument
233 touch->scan_ms = MSEC_PER_SEC / scan_rate; in set_scan_rate()
234 touch->scan_rate_param = scan_rate; in set_scan_rate()
312 dev_err(&client->dev, "Unable to reset device\n"); in synaptics_i2c_reset_config()
317 dev_err(&client->dev, "Unable to config device\n"); in synaptics_i2c_reset_config()
336 static bool synaptics_i2c_get_input(struct synaptics_i2c *touch) in synaptics_i2c_get_input() argument
338 struct input_dev *input = touch->input; in synaptics_i2c_get_input()
344 if (synaptics_i2c_check_error(touch->client)) in synaptics_i2c_get_input()
348 data = synaptics_i2c_reg_get(touch->client, DATA_REG0); in synaptics_i2c_get_input()
355 xy_delta = synaptics_i2c_word_get(touch->client, REL_X_REG) & 0xffff; in synaptics_i2c_get_input()
[all …]
/kernel/linux/linux-5.10/drivers/input/mouse/
Dsynaptics_i2c.c230 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 …]

12345678910>>...29