Home
last modified time | relevance | path

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

12

/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.c144 static void mms114_process_mt(struct mms114_data *data, struct mms114_touch *touch) in mms114_process_mt() argument
153 if (touch->id > MMS114_MAX_TOUCH) { in mms114_process_mt()
154 dev_err(&client->dev, "Wrong touch id (%d)\n", touch->id); in mms114_process_mt()
158 if (touch->type != MMS114_TYPE_TOUCHSCREEN) { in mms114_process_mt()
159 dev_err(&client->dev, "Wrong touch type (%d)\n", touch->type); in mms114_process_mt()
163 id = touch->id - 1; in mms114_process_mt()
164 x = touch->x_lo | touch->x_hi << 8; in mms114_process_mt()
165 y = touch->y_lo | touch->y_hi << 8; in mms114_process_mt()
179 id, touch->type, touch->pressed, in mms114_process_mt()
180 x, y, touch->width, touch->strength); in mms114_process_mt()
[all …]
Dpixcir_i2c_ts.c63 u8 touch; in pixcir_ts_parse() local
91 touch = rdbuf[0] & 0x7; in pixcir_ts_parse()
92 if (touch > tsdata->max_fingers) in pixcir_ts_parse()
93 touch = tsdata->max_fingers; in pixcir_ts_parse()
95 report->num_touches = touch; in pixcir_ts_parse()
98 for (i = 0; i < touch; i++) { in pixcir_ts_parse()
116 struct pixcir_touch *touch; in pixcir_ts_report() local
127 touch = &report->touches[i]; in pixcir_ts_report()
128 pos[i].x = touch->x; in pixcir_ts_report()
129 pos[i].y = touch->y; in pixcir_ts_report()
[all …]
Dwacom_w8001.c151 bool touch = data[0] & (1 << i); in parse_multi_touch() local
154 input_mt_report_slot_state(dev, MT_TOOL_FINGER, touch); in parse_multi_touch()
155 if (touch) { in parse_multi_touch()
387 struct w8001_touch_query touch; in w8001_setup() local
438 parse_touchquery(w8001->response, &touch); in w8001_setup()
439 w8001->max_touch_x = touch.x; in w8001_setup()
440 w8001->max_touch_y = touch.y; in w8001_setup()
444 touch.x = w8001->max_pen_x; in w8001_setup()
445 touch.y = w8001->max_pen_y; in w8001_setup()
446 touch.panel_res = W8001_PEN_RESOLUTION; in w8001_setup()
[all …]
Dusbtouchscreen.c120 int touch, press; member
286 dev->touch = (tmp > 0); in e2i_read_data()
354 dev->touch = pkt[0] & 0x01; in egalax_read_data()
399 dev->touch = pkt[0] & 0x01; in etouch_read_data()
430 dev->touch = pkt[0] & 0x01; in panjit_read_data()
455 dev->touch = (pkt[2] & 0x40) ? 1 : 0; in mtouch_read_data()
507 int touch; in itm_read_data() local
516 touch = ~pkt[7] & 0x20; in itm_read_data()
517 if (!touch) { in itm_read_data()
518 if (dev->touch) { in itm_read_data()
[all …]
Dmc13783_ts.c42 struct mc13xxx_ts_platform_data *touch; member
130 priv->touch->ato, priv->touch->atox, in mc13783_ts_work()
185 priv->touch = dev_get_platdata(&pdev->dev); in mc13783_ts_probe()
186 if (!priv->touch) { in mc13783_ts_probe()
Dchipone_icn8318.c119 struct icn8318_touch *touch = &touch_data.touches[i]; in icn8318_irq() local
120 bool act = icn8318_touch_active(touch->event); in icn8318_irq()
122 input_mt_slot(data->input, touch->slot); in icn8318_irq()
127 x = be16_to_cpu(touch->x); in icn8318_irq()
128 y = be16_to_cpu(touch->y); in icn8318_irq()
Dili210x.c82 bool touch; in ili210x_report_events() local
91 touch = touchdata->status & (1 << i); in ili210x_report_events()
92 input_mt_report_slot_state(input, MT_TOOL_FINGER, touch); in ili210x_report_events()
93 if (touch) { in ili210x_report_events()
Dcyttsp4_core.c773 struct cyttsp4_touch *touch, u8 *xy_data) in cyttsp4_get_touch() argument
781 cyttsp4_get_touch_axis(md, &touch->abs[abs], in cyttsp4_get_touch()
788 touch->abs[abs], touch->abs[abs]); in cyttsp4_get_touch()
792 swap(touch->abs[CY_TCH_X], touch->abs[CY_TCH_Y]); in cyttsp4_get_touch()
799 touch->abs[CY_TCH_X] = md->si->si_ofs.max_y - in cyttsp4_get_touch()
800 touch->abs[CY_TCH_X]; in cyttsp4_get_touch()
802 touch->abs[CY_TCH_X] = md->si->si_ofs.max_x - in cyttsp4_get_touch()
803 touch->abs[CY_TCH_X]; in cyttsp4_get_touch()
807 touch->abs[CY_TCH_Y] = md->si->si_ofs.max_x - in cyttsp4_get_touch()
808 touch->abs[CY_TCH_Y]; in cyttsp4_get_touch()
[all …]
DKconfig132 tristate "BU21013 based touch panel controllers"
283 Say Y here to enable support for I2C connected EETI touch panels.
289 tristate "EETI eGalax multi-touch panel support"
293 eGalax multi-touch panels.
354 tristate "IPROC touch panel driver support"
357 Say Y here if you want to add support for the IPROC touch
747 tristate "WM97xx Atmel accelerated touch"
762 tristate "WM97xx Mainstone/Palm accelerated touch"
774 tristate "Zylonite accelerated touch"
883 bool "JASTEC/DigiTech DTR-02U USB touch controller device support" if EXPERT
[all …]
DMakefile44 obj-$(CONFIG_TOUCHSCREEN_INTEL_MID) += intel-mid-touch.o
/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 …]
Dvsxxxaa.c268 int left, middle, right, touch; in vsxxxaa_handle_ABS_packet() local
295 touch = buf[0] & 0x10; in vsxxxaa_handle_ABS_packet()
302 right ? "R" : "r", touch ? "T" : "t"); in vsxxxaa_handle_ABS_packet()
310 input_report_key(dev, BTN_TOUCH, touch); in vsxxxaa_handle_ABS_packet()
Dcyapa_gen3.c1196 const struct cyapa_touch *touch = &data.touches[i]; in cyapa_gen3_irq_handler() local
1198 int slot = touch->id - 1; in cyapa_gen3_irq_handler()
1203 ((touch->xy_hi & 0xf0) << 4) | touch->x_lo); in cyapa_gen3_irq_handler()
1205 ((touch->xy_hi & 0x0f) << 8) | touch->y_lo); in cyapa_gen3_irq_handler()
1206 input_report_abs(input, ABS_MT_PRESSURE, touch->pressure); in cyapa_gen3_irq_handler()
Dcyapa_gen5.c2658 const struct cyapa_pip_touch_record *touch) in cyapa_pip_report_slot_data() argument
2661 u8 event_id = PIP_GET_EVENT_ID(touch->touch_tip_event_id); in cyapa_pip_report_slot_data()
2662 int slot = PIP_GET_TOUCH_ID(touch->touch_tip_event_id); in cyapa_pip_report_slot_data()
2670 x = (touch->x_hi << 8) | touch->x_lo; in cyapa_pip_report_slot_data()
2673 y = (touch->y_hi << 8) | touch->y_lo; in cyapa_pip_report_slot_data()
2680 touch->z); in cyapa_pip_report_slot_data()
2682 touch->major_axis_len); in cyapa_pip_report_slot_data()
2684 touch->minor_axis_len); in cyapa_pip_report_slot_data()
2687 touch->major_tool_len); in cyapa_pip_report_slot_data()
2689 touch->minor_tool_len); in cyapa_pip_report_slot_data()
[all …]
/drivers/media/rc/
Dimon.c141 struct input_dev *touch; /* input device for touchscreen */ member
1088 input_report_abs(ictx->touch, ABS_X, ictx->touch_x); in imon_touch_display_timeout()
1089 input_report_abs(ictx->touch, ABS_Y, ictx->touch_y); in imon_touch_display_timeout()
1090 input_report_key(ictx->touch, BTN_TOUCH, 0x00); in imon_touch_display_timeout()
1091 input_sync(ictx->touch); in imon_touch_display_timeout()
1396 input_report_abs(ictx->touch, ABS_X, ictx->touch_x); in imon_touch_event()
1397 input_report_abs(ictx->touch, ABS_Y, ictx->touch_y); in imon_touch_event()
1398 input_report_key(ictx->touch, BTN_TOUCH, 0x01); in imon_touch_event()
1399 input_sync(ictx->touch); in imon_touch_event()
1647 if (ictx->touch && len == 8 && buf[7] == 0x86) { in imon_incoming_packet()
[all …]
/drivers/hid/
DKconfig471 tristate "Apple Magic Mouse/Trackpad multi-touch support"
474 Support for the Apple Magic Mouse/Trackpad multi-touch.
476 Say Y here if you want support for the multi-touch features of the
500 - 3M PCT touch screens
501 - ActionStar dual touch panels
503 - Cando dual touch panels
508 - Elan Microelectronics touch panels
512 - Hanvon dual touch panels
513 - Ilitek dual touch panels
517 - MosArt dual-touch panels
[all …]
Dhid-magicmouse.c123 int touch = -1; in magicmouse_firm_touch() local
133 } else if (touch >= 0) { in magicmouse_firm_touch()
134 touch = -1; in magicmouse_firm_touch()
137 touch = idx; in magicmouse_firm_touch()
141 return touch; in magicmouse_firm_touch()
Dwacom_wac.c1257 bool touch = (data[offset] & 0x1) && !wacom->shared->stylus_in_proximity; in wacom_24hdt_irq() local
1263 input_mt_report_slot_state(input, MT_TOOL_FINGER, touch); in wacom_24hdt_irq()
1265 if (touch) { in wacom_24hdt_irq()
1321 bool touch = (data[offset] & 0x1) && !wacom->shared->stylus_in_proximity; in wacom_mt_touch() local
1329 input_mt_report_slot_state(input, MT_TOOL_FINGER, touch); in wacom_mt_touch()
1330 if (touch) { in wacom_mt_touch()
1355 bool touch = p && !wacom->shared->stylus_in_proximity; in wacom_tpc_mt_touch() local
1358 input_mt_report_slot_state(input, MT_TOOL_FINGER, touch); in wacom_tpc_mt_touch()
1359 if (touch) { in wacom_tpc_mt_touch()
1897 bool touch = data[offset + 3] & 0x80; in wacom_bpt_touch() local
[all …]
Dwacom_wac.h191 struct hid_device *touch; member
/drivers/input/
Dmousedev.c79 unsigned long touch; member
137 if (mousedev->touch && mousedev->pkt_count >= 2) { in mousedev_touchpad_event()
153 if (mousedev->touch && mousedev->pkt_count >= 2) { in mousedev_touchpad_event()
325 if (mousedev->touch && in mousedev_touchpad_touch()
327 mousedev->touch + msecs_to_jiffies(tap_time))) { in mousedev_touchpad_touch()
341 mousedev->touch = mousedev->pkt_count = 0; in mousedev_touchpad_touch()
345 } else if (!mousedev->touch) in mousedev_touchpad_touch()
346 mousedev->touch = jiffies; in mousedev_touchpad_touch()
385 if (mousedev->touch) { in mousedev_event()
/drivers/staging/ste_rmi4/
Dsynaptics_i2c_rmi4.c415 int touch = 0; in synaptics_rmi4_report_device() local
425 touch = synpatics_rmi4_touchpad_report(pdata, rfi); in synaptics_rmi4_report_device()
426 return touch; in synaptics_rmi4_report_device()
439 int touch = 0; in synaptics_rmi4_sensor_report() local
469 touch = synaptics_rmi4_report_device(pdata, in synaptics_rmi4_sensor_report()
474 return touch; in synaptics_rmi4_sensor_report()
/drivers/input/tablet/
Dacecad.c94 int touch = data[0] & 0x01; in usb_acecad_irq() local
100 input_report_key(dev, BTN_TOUCH, touch); in usb_acecad_irq()
/drivers/mfd/
Dmc13xxx-core.c468 &pdata->touch, sizeof(pdata->touch)); in mc13xxx_common_init()

12