Home
last modified time | relevance | path

Searched refs:touch (Results 1 – 25 of 225) sorted by relevance

123456789

/Linux-v4.19/drivers/input/touchscreen/
Dda9034-ts.c69 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()
101 touch->last_x = ((_x << 2) & 0x3fc) | (_v & 0x3); in read_tsi()
[all …]
D88pm860x-ts.c53 struct pm860x_touch *touch = data; in pm860x_touch_handler() local
54 struct pm860x_chip *chip = touch->chip; in pm860x_touch_handler()
60 ret = pm860x_bulk_read(touch->i2c, MEAS_TSIX_1, MEAS_LEN, buf); in pm860x_touch_handler()
71 if ((x != 0) && (z1 != 0) && (touch->res_x != 0)) { in pm860x_touch_handler()
73 rt = (rt * touch->res_x * x) >> ACCURATE_BIT; in pm860x_touch_handler()
77 input_report_abs(touch->idev, ABS_X, x); in pm860x_touch_handler()
78 input_report_abs(touch->idev, ABS_Y, y); in pm860x_touch_handler()
79 input_report_abs(touch->idev, ABS_PRESSURE, rt); in pm860x_touch_handler()
80 input_report_key(touch->idev, BTN_TOUCH, 1); in pm860x_touch_handler()
83 input_report_abs(touch->idev, ABS_PRESSURE, 0); in pm860x_touch_handler()
[all …]
Dmms114.c153 static void mms114_process_mt(struct mms114_data *data, struct mms114_touch *touch) in mms114_process_mt() argument
161 if (touch->id > MMS114_MAX_TOUCH) { in mms114_process_mt()
162 dev_err(&client->dev, "Wrong touch id (%d)\n", touch->id); in mms114_process_mt()
166 if (touch->type != MMS114_TYPE_TOUCHSCREEN) { in mms114_process_mt()
167 dev_err(&client->dev, "Wrong touch type (%d)\n", touch->type); in mms114_process_mt()
171 id = touch->id - 1; in mms114_process_mt()
172 x = touch->x_lo | touch->x_hi << 8; in mms114_process_mt()
173 y = touch->y_lo | touch->y_hi << 8; in mms114_process_mt()
177 id, touch->type, touch->pressed, in mms114_process_mt()
178 x, y, touch->width, touch->strength); in mms114_process_mt()
[all …]
Dwacom_w8001.c155 bool touch = data[0] & (1 << i); in parse_multi_touch() local
158 input_mt_report_slot_state(dev, MT_TOOL_FINGER, touch); in parse_multi_touch()
159 if (touch) { in parse_multi_touch()
465 struct w8001_touch_query touch; in w8001_setup_touch() local
485 parse_touchquery(w8001->response, &touch); in w8001_setup_touch()
486 w8001->max_touch_x = touch.x; in w8001_setup_touch()
487 w8001->max_touch_y = touch.y; in w8001_setup_touch()
491 touch.x = w8001->max_pen_x; in w8001_setup_touch()
492 touch.y = w8001->max_pen_y; in w8001_setup_touch()
493 touch.panel_res = W8001_PEN_RESOLUTION; in w8001_setup_touch()
[all …]
Dusbtouchscreen.c118 int touch, press; member
283 dev->touch = (tmp > 0); in e2i_read_data()
351 dev->touch = pkt[0] & 0x01; in egalax_read_data()
396 dev->touch = pkt[0] & 0x01; in etouch_read_data()
427 dev->touch = pkt[0] & 0x01; in panjit_read_data()
454 dev->touch = (pkt[2] & 0x40) ? 1 : 0; in mtouch_read_data()
596 int touch; in itm_read_data() local
605 touch = ~pkt[7] & 0x20; in itm_read_data()
606 if (!touch) { in itm_read_data()
607 if (dev->touch) { in itm_read_data()
[all …]
Dchipone_icn8318.c116 struct icn8318_touch *touch = &touch_data.touches[i]; in icn8318_irq() local
117 bool act = icn8318_touch_active(touch->event); in icn8318_irq()
119 input_mt_slot(data->input, touch->slot); in icn8318_irq()
125 be16_to_cpu(touch->x), in icn8318_irq()
126 be16_to_cpu(touch->y), true); in icn8318_irq()
Dmc13783_ts.c41 struct mc13xxx_ts_platform_data *touch; member
131 priv->touch->ato, priv->touch->atox, in mc13783_ts_work()
186 priv->touch = dev_get_platdata(&pdev->dev); in mc13783_ts_probe()
187 if (!priv->touch) { in mc13783_ts_probe()
/Linux-v4.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()
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()
372 static void synaptics_i2c_reschedule_work(struct synaptics_i2c *touch, in synaptics_i2c_reschedule_work() argument
377 spin_lock_irqsave(&touch->lock, flags); in synaptics_i2c_reschedule_work()
[all …]
Dbyd.c236 bool touch; member
244 input_report_key(dev, BTN_TOUCH, priv->touch); in byd_report_input()
245 input_report_key(dev, BTN_TOOL_FINGER, priv->touch); in byd_report_input()
261 priv->touch = false; in byd_clear_touch()
294 if (!priv->touch) { in byd_process_byte()
298 priv->touch = time_after(jiffies, tap_time); in byd_process_byte()
317 priv->touch = true; in byd_process_byte()
334 if (priv->touch) { in byd_process_byte()
/Linux-v4.19/Documentation/devicetree/bindings/input/touchscreen/
Dbu21013.txt8 - touch-gpio : GPIO pin registering a touch event
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>;
24 rohm,touch-max-x = <384>;
25 rohm,touch-max-y = <704>;
Dimx6ul_tsc.txt5 - 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.
10 This xnur-gpio returns to low once the finger leave the touch screen (The
11 last touch event the touch controller capture).
17 This value depends on the touch screen.
18 - pre-charge-time: the touch screen need some time to precharge.
19 This value depends on the touch screen.
Dst,stmfts.txt7 The driver supports also hovering as an absolute single touch event with x, y, z
20 - touch-key-connected : specifies whether the touchkey feature is connected
21 - ledvdd-supply : power supply to the touch key leds
36 touch-key-connected;
Dmax11801-ts.txt1 * MAXI MAX11801 Resistive touch screen controller with i2c interface
6 - interrupts: touch controller interrupt
/Linux-v4.19/Documentation/media/uapi/v4l/
Ddev-touch.rst16 Sensors may be Optical, or Projected Capacitive touch (PCT).
21 analogue front end device which delivers touch data at high rate, and any touch
24 For capacitive touch sensing, the touchscreen is composed of an array of
30 A touch input may be determined by comparing the raw capacitance measurement to
31 a no-touch reference (or "baseline") measurement:
36 the touch sensor matrix, for example manufacturing irregularities,
42 Devices supporting the touch interface set the ``V4L2_CAP_VIDEO_CAPTURE`` flag
50 The formats supported by touch devices are documented in
56 A touch device may support any I/O method.
/Linux-v4.19/drivers/hid/
Dhid-udraw-ps3.c113 int touch; in udraw_raw_event() local
120 touch = TOUCH_NONE; in udraw_raw_event()
122 touch = TOUCH_PEN; in udraw_raw_event()
124 touch = TOUCH_FINGER; in udraw_raw_event()
126 touch = TOUCH_TWOFINGER; in udraw_raw_event()
179 if (touch != TOUCH_NONE) { in udraw_raw_event()
186 if (touch == TOUCH_FINGER) { in udraw_raw_event()
192 } else if (touch == TOUCH_TWOFINGER) { in udraw_raw_event()
221 if (touch == TOUCH_FINGER || touch == TOUCH_TWOFINGER) { in udraw_raw_event()
224 touch == TOUCH_FINGER); in udraw_raw_event()
[all …]
/Linux-v4.19/Documentation/ABI/testing/
Dsysfs-driver-hid-ntrig7 start of activity (activating touch).
16 acknowledging the end of activity (deactivating touch).
33 start processing touch events.
36 start processing touch events.
47 min_width: (RW) Minimum touch contact width to decide
50 min_height: (RW) Minimum touch contact height to decide
/Linux-v4.19/tools/testing/selftests/ia64/
Daliasing-test.c27 static int map_mem(char *path, off_t offset, size_t length, int touch) in map_mem() argument
49 if (touch) { in map_mem()
65 static int scan_tree(char *path, char *file, off_t offset, size_t length, int touch) in scan_tree() argument
92 rc = map_mem(path2, offset, length, touch); in scan_tree()
94 …fprintf(stderr, "PASS: %s 0x%lx-0x%lx is %s\n", path2, offset, offset + length, touch ? "readable"… in scan_tree()
104 rc = scan_tree(path2, file, offset, length, touch); in scan_tree()
/Linux-v4.19/arch/arm/boot/dts/
Dste-href-stuib.dtsi114 rohm,touch-max-x = <384>;
115 rohm,touch-max-y = <704>;
126 rohm,touch-max-x = <384>;
127 rohm,touch-max-y = <704>;
173 touch {
176 * ROHM touch screen uses GPIO 143 for
/Linux-v4.19/tools/testing/scatterlist/
DMakefile27 @touch asm/io.h
28 @touch linux/highmem.h
29 @touch linux/kmemleak.h
/Linux-v4.19/tools/testing/selftests/powerpc/benchmarks/
Dcontext_switch.c58 static void touch(void) in touch() function
182 touch(); in pipe_thread1()
185 touch(); in pipe_thread1()
197 touch(); in pipe_thread2()
200 touch(); in pipe_thread2()
227 touch(); in yield_thread1()
239 touch(); in yield_thread2()
/Linux-v4.19/drivers/media/rc/
Dimon.c137 struct input_dev *touch; /* input device for touchscreen */ member
1077 input_report_abs(ictx->touch, ABS_X, ictx->touch_x); in imon_touch_display_timeout()
1078 input_report_abs(ictx->touch, ABS_Y, ictx->touch_y); in imon_touch_display_timeout()
1079 input_report_key(ictx->touch, BTN_TOUCH, 0x00); in imon_touch_display_timeout()
1080 input_sync(ictx->touch); in imon_touch_display_timeout()
1360 input_report_abs(ictx->touch, ABS_X, ictx->touch_x); in imon_touch_event()
1361 input_report_abs(ictx->touch, ABS_Y, ictx->touch_y); in imon_touch_event()
1362 input_report_key(ictx->touch, BTN_TOUCH, 0x01); in imon_touch_event()
1363 input_sync(ictx->touch); in imon_touch_event()
2036 struct input_dev *touch; in imon_init_touch() local
[all …]
/Linux-v4.19/Documentation/input/
Dmulti-touch-protocol.rst4 Multi-touch (MT) Protocol
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
34 packet. Since these events are ignored by current single-touch (ST)
48 All drivers mark the end of a multi-touch transfer by calling the usual
95 Here is what a minimal event sequence for a two-contact touch would look
131 Here is what a minimal event sequence for a two-contact touch would look
182 ABS_MT_TOOL_X/Y. The touch diameter is ABS_MT_TOUCH_MAJOR and the finger
184 harder against the glass. The touch region will increase, and in general,
213 In addition to the MAJOR parameters, the oval shape of the touch and finger
[all …]
Devent-codes.rst52 coordinates of a touch on a touchscreen.
110 - Used to synchronize and separate touch events. See the
111 multi-touch-protocol.txt document for more information.
144 BTN_TOUCH is used for touch contact. While an input tool is determined to be
148 touchpad may set the value to 1 only when the touch pressure rises above a
156 Note: Historically a touch device with BTN_TOOL_FINGER and BTN_TOUCH was
178 be used to emit these codes. Please see multi-touch-protocol.txt for details.
199 may emit coordinates for a touch location.
218 multi-touch-protocol.txt for details.
362 The guidelines below ensure proper single-touch and multi-finger functionality.
[all …]
/Linux-v4.19/Documentation/input/devices/
Delantech.rst26 5.2.2 One/Three finger touch
27 5.2.3 Two finger touch
31 6.2.1 One/Three finger touch
32 6.2.2 Two finger touch
54 and width of the touch. Hardware version 3 uses 6 bytes per packet (and
285 w = 1 when wide finger touch?
331 tw = 1 when two finger touch
332 th = 1 when three finger touch
333 f = 1 when finger touch
425 One/Three finger touch
[all …]
/Linux-v4.19/scripts/
Dadjust_autoksyms.sh82 touch "$depfile"
88 touch "$depfile"

123456789