Home
last modified time | relevance | path

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

123456789

/linux/drivers/input/touchscreen/
H A Dda9034-ts.c66 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()
94 ret = da903x_read(touch->da9034_dev, DA9034_TSI_XY_LSB, &_v); in read_tsi()
98 touch->last_x = ((_x << 2) & 0x3fc) | (_v & 0x3); in read_tsi()
[all …]
H A D88pm860x-ts.c50 struct pm860x_touch *touch = data; in pm860x_touch_handler() local
51 struct pm860x_chip *chip = touch->chip; in pm860x_touch_handler()
57 ret = pm860x_bulk_read(touch->i2c, MEAS_TSIX_1, MEAS_LEN, buf); in pm860x_touch_handler()
68 if ((x != 0) && (z1 != 0) && (touch->res_x != 0)) { in pm860x_touch_handler()
70 rt = (rt * touch->res_x * x) >> ACCURATE_BIT; in pm860x_touch_handler()
74 input_report_abs(touch->idev, ABS_X, x); in pm860x_touch_handler()
75 input_report_abs(touch->idev, ABS_Y, y); in pm860x_touch_handler()
76 input_report_abs(touch->idev, ABS_PRESSURE, rt); in pm860x_touch_handler()
77 input_report_key(touch->idev, BTN_TOUCH, 1); in pm860x_touch_handler()
80 input_report_abs(touch->idev, ABS_PRESSURE, 0); in pm860x_touch_handler()
[all …]
H A Dmms114.c252 static void mms114_process_mt(struct mms114_data *data, struct mms114_touch *touch) in mms114_process_mt() argument
256 unsigned int id = FIELD_GET(MMS114_FLAGS_ID_MASK, touch->flags); in mms114_process_mt()
257 unsigned int type = FIELD_GET(MMS114_FLAGS_TYPE_MASK, touch->flags); in mms114_process_mt()
258 bool pressed = FIELD_GET(MMS114_FLAGS_PRESSED_MASK, touch->flags); in mms114_process_mt()
268 x = touch->x_lo | FIELD_GET(MMS114_XY_HI_X_MASK, touch->xy_hi) << 8; in mms114_process_mt()
269 y = touch->y_lo | FIELD_GET(MMS114_XY_HI_Y_MASK, touch->xy_hi) << 8; in mms114_process_mt()
274 x, y, touch->width, touch->strength); in mms114_process_mt()
281 input_report_abs(input_dev, ABS_MT_TOUCH_MAJOR, touch->width); in mms114_process_mt()
282 input_report_abs(input_dev, ABS_MT_PRESSURE, touch->strength); in mms114_process_mt()
287 struct mms114_touch *touch) in mms114_process_touchkey() argument
[all …]
H A Dnovatek-nvt-ts.c96 u8 *touch; in nvt_ts_irq() local
104 touch = &data->buf[i * NVT_TS_TOUCH_SIZE]; in nvt_ts_irq()
106 if (touch[0] == NVT_TS_TOUCH_INVALID) in nvt_ts_irq()
109 slot = touch[0] >> NVT_TS_TOUCH_SLOT_SHIFT; in nvt_ts_irq()
115 switch (touch[0] & NVT_TS_TOUCH_TYPE_MASK) { in nvt_ts_irq()
124 dev_warn(dev, "slot %d unknown state %d\n", slot, touch[0] & 7); in nvt_ts_irq()
129 x = (touch[1] << 4) | (touch[3] >> 4); in nvt_ts_irq()
130 y = (touch[2] << 4) | (touch[3] & 0x0f); in nvt_ts_irq()
H A Dusbtouchscreen.c103 int touch, press; member
136 dev->touch = (tmp > 0); in e2i_read_data()
207 dev->touch = pkt[0] & 0x01; in egalax_read_data()
263 dev->touch = pkt[0] & 0x01; in etouch_read_data()
304 dev->touch = pkt[0] & 0x01; in panjit_read_data()
340 dev->touch = (pkt[2] & 0x40) ? 1 : 0; in mtouch_read_data()
492 int touch; in itm_read_data() local
501 touch = ~pkt[7] & 0x20; in itm_read_data()
502 if (!touch) { in itm_read_data()
503 if (dev->touch) { in itm_read_data()
[all …]
H A Dmc13783_ts.c38 struct mc13xxx_ts_platform_data *touch; member
126 priv->touch->ato, priv->touch->atox, in mc13783_ts_work()
179 priv->touch = dev_get_platdata(&pdev->dev); in mc13783_ts_probe()
180 if (!priv->touch) { in mc13783_ts_probe()
H A Dili210x.c50 bool (*continue_polling)(const u8 *data, bool touch);
120 static bool ili210x_check_continue_polling(const u8 *data, bool touch) in ili210x_check_continue_polling() argument
181 static bool ili211x_decline_polling(const u8 *data, bool touch) in ili211x_decline_polling() argument
212 static bool ili212x_check_continue_polling(const u8 *data, bool touch) in ili212x_check_continue_polling() argument
214 return touch; in ili212x_check_continue_polling()
288 static bool ili251x_check_continue_polling(const u8 *data, bool touch) in ili251x_check_continue_polling() argument
290 return touch; in ili251x_check_continue_polling()
308 bool contact = false, touch; in ili210x_report_events() local
312 touch = priv->chip->parse_touch_data(touchdata, i, &x, &y, &z); in ili210x_report_events()
315 if (input_mt_report_slot_state(input, MT_TOOL_FINGER, touch)) { in ili210x_report_events()
[all …]
/linux/drivers/input/mouse/
H A 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()
347 static bool synaptics_i2c_get_input(struct synaptics_i2c *touch) in synaptics_i2c_get_input() argument
349 struct input_dev *input = touch->input; in synaptics_i2c_get_input()
355 if (synaptics_i2c_check_error(touch->client)) in synaptics_i2c_get_input()
359 data = synaptics_i2c_reg_get(touch->client, DATA_REG0); in synaptics_i2c_get_input()
366 xy_delta = synaptics_i2c_word_get(touch->client, REL_X_REG) & 0xffff; in synaptics_i2c_get_input()
385 struct synaptics_i2c *touch = dev_id; in synaptics_i2c_irq() local
387 mod_delayed_work(system_dfl_wq, &touch->dwork, 0); in synaptics_i2c_irq()
[all …]
H A Dbyd.c233 bool touch; member
241 input_report_key(dev, BTN_TOUCH, priv->touch); in byd_report_input()
242 input_report_key(dev, BTN_TOOL_FINGER, priv->touch); in byd_report_input()
259 priv->touch = false; in byd_clear_touch()
290 if (!priv->touch) { in byd_process_byte()
294 priv->touch = time_after(jiffies, tap_time); in byd_process_byte()
313 priv->touch = true; in byd_process_byte()
328 if (priv->touch) { in byd_process_byte()
/linux/Documentation/userspace-api/media/v4l/
H A Ddev-touch.rst17 Sensors may be Optical, or Projected Capacitive touch (PCT).
22 analogue front end device which delivers touch data at high rate, and any touch
25 For capacitive touch sensing, the touchscreen is composed of an array of
31 A touch input may be determined by comparing the raw capacitance measurement to
32 a no-touch reference (or "baseline") measurement:
37 the touch sensor matrix, for example manufacturing irregularities,
43 Devices supporting the touch interface set the ``V4L2_CAP_VIDEO_CAPTURE`` flag
51 The formats supported by touch devices are documented in
57 A touch device may support any I/O method.
/linux/drivers/hid/
H A Dhid-udraw-ps3.c105 int touch; in udraw_raw_event() local
112 touch = TOUCH_NONE; in udraw_raw_event()
114 touch = TOUCH_PEN; in udraw_raw_event()
116 touch = TOUCH_FINGER; in udraw_raw_event()
118 touch = TOUCH_TWOFINGER; in udraw_raw_event()
171 if (touch != TOUCH_NONE) { in udraw_raw_event()
178 if (touch == TOUCH_FINGER) { in udraw_raw_event()
184 } else if (touch == TOUCH_TWOFINGER) { in udraw_raw_event()
213 if (touch == TOUCH_FINGER || touch == TOUCH_TWOFINGER) { in udraw_raw_event()
216 touch == TOUCH_FINGER); in udraw_raw_event()
[all …]
/linux/tools/testing/scatterlist/
H A DMakefile28 @touch asm/io.h
29 @touch linux/highmem.h
30 @touch linux/kmemleak.h
31 @touch linux/slab.h
/linux/Documentation/ABI/testing/
H A Dsysfs-driver-hid-ntrig7 start of activity (activating touch).
16 acknowledging the end of activity (deactivating touch).
34 start processing touch events.
37 start processing touch events.
49 min_width (RW) Minimum touch contact width to decide
52 min_height (RW) Minimum touch contact height to decide
/linux/tools/testing/selftests/ia64/
H A Daliasing-test.c24 static int map_mem(char *path, off_t offset, size_t length, int touch) in map_mem() argument
46 if (touch) { in map_mem()
62 static int scan_tree(char *path, char *file, off_t offset, size_t length, int touch) in scan_tree() argument
89 rc = map_mem(path2, offset, length, touch); in scan_tree()
91 …fprintf(stderr, "PASS: %s 0x%lx-0x%lx is %s\n", path2, offset, offset + length, touch ? "readable"… in scan_tree()
101 rc = scan_tree(path2, file, offset, length, touch); in scan_tree()
/linux/arch/arm/boot/dts/st/
H A Dste-href-stuib.dtsi109 rohm,touch-max-x = <384>;
110 rohm,touch-max-y = <704>;
121 rohm,touch-max-x = <384>;
122 rohm,touch-max-y = <704>;
177 touch {
180 * ROHM touch screen uses GPIO 143 for
/linux/tools/testing/selftests/powerpc/benchmarks/
H A Dcontext_switch.c55 static void touch(void) in touch() function
189 touch(); in pipe_thread1()
192 touch(); in pipe_thread1()
204 touch(); in pipe_thread2()
207 touch(); in pipe_thread2()
234 touch(); in yield_thread1()
246 touch(); in yield_thread2()
/linux/Documentation/input/
H A 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 …]
H A 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.
148 BTN_TOUCH is used for touch contact. While an input tool is determined to be
152 touchpad may set the value to 1 only when the touch pressure rises above a
160 Note: Historically a touch device with BTN_TOOL_FINGER and BTN_TOUCH was
182 be used to emit these codes. Please see multi-touch-protocol.txt for details.
222 may emit coordinates for a touch location.
253 multi-touch-protocol.txt for details.
257 - For touch devices, many devices converted contact size into pressure.
[all …]
/linux/tools/perf/tests/shell/
H A Dtest_arm_coresight.sh
H A Dtest_arm_coresight_disasm.sh
/linux/tools/testing/selftests/hid/tests/
H A Dtest_sony.py145 r = uhdev.event(touch=[t0])
155 r = uhdev.event(touch=[t0])
173 r = uhdev.event(touch=[t0])
184 r = uhdev.event(touch=[t0, t1])
203 r = uhdev.event(touch=[t0, t1])
212 r = uhdev.event(touch=[t1])
/linux/tools/testing/selftests/vfio/scripts/
H A Dsetup.sh41 touch ${device_dir}/driver_override
44 touch ${device_dir}/vfio-pci
/linux/tools/testing/selftests/rcutorture/bin/
H A Dkvm-test-1-run.sh46 touch $resdir/ConfigFragment.input
85 touch $resdir/builtkernel
111 touch $resdir/builtkernel
175 touch $resdir/bare-metal
214 touch $resdir/buildonly
/linux/arch/arm64/boot/dts/rockchip/
H A Dpx30-ringneck-haikou-lvds-9904379.dtso105 touch {
106 touch_int: touch-int {
110 touch_rst: touch-rst {
/linux/Documentation/devicetree/bindings/
H A DMakefile42 && touch $@ || true
47 && touch $@ || true
59 && touch $@ || true; rm -f $$f

123456789