Home
last modified time | relevance | path

Searched refs:touch (Results 1 – 25 of 31) 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.c60 u8 touch; in pixcir_ts_parse() local
88 touch = rdbuf[0] & 0x7; in pixcir_ts_parse()
89 if (touch > tsdata->max_fingers) in pixcir_ts_parse()
90 touch = tsdata->max_fingers; in pixcir_ts_parse()
92 report->num_touches = touch; in pixcir_ts_parse()
95 for (i = 0; i < touch; i++) { in pixcir_ts_parse()
113 struct pixcir_touch *touch; in pixcir_ts_report() local
124 touch = &report->touches[i]; in pixcir_ts_report()
125 pos[i].x = touch->x; in pixcir_ts_report()
126 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
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()
452 dev->touch = (pkt[2] & 0x40) ? 1 : 0; in mtouch_read_data()
504 int touch; in itm_read_data() local
513 touch = ~pkt[7] & 0x20; in itm_read_data()
514 if (!touch) { in itm_read_data()
515 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()
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
782 cyttsp4_get_touch_axis(md, &touch->abs[abs], in cyttsp4_get_touch()
789 touch->abs[abs], touch->abs[abs]); in cyttsp4_get_touch()
793 tmp = touch->abs[CY_TCH_X]; in cyttsp4_get_touch()
794 touch->abs[CY_TCH_X] = touch->abs[CY_TCH_Y]; in cyttsp4_get_touch()
795 touch->abs[CY_TCH_Y] = tmp; in cyttsp4_get_touch()
802 touch->abs[CY_TCH_X] = md->si->si_ofs.max_y - in cyttsp4_get_touch()
803 touch->abs[CY_TCH_X]; in cyttsp4_get_touch()
805 touch->abs[CY_TCH_X] = md->si->si_ofs.max_x - in cyttsp4_get_touch()
806 touch->abs[CY_TCH_X]; in cyttsp4_get_touch()
[all …]
DKconfig132 tristate "BU21013 based touch panel controllers"
270 Say Y here to enable support for I2C connected EETI touch panels.
276 tristate "EETI eGalax multi-touch panel support"
280 eGalax multi-touch panels.
659 tristate "WM97xx Atmel accelerated touch"
674 tristate "WM97xx Mainstone/Palm accelerated touch"
686 tristate "Zylonite accelerated touch"
795 bool "JASTEC/DigiTech DTR-02U USB touch controller device support" if EXPERT
DMakefile39 obj-$(CONFIG_TOUCHSCREEN_INTEL_MID) += intel-mid-touch.o
Dwm831x-ts.c245 pdata = core_pdata->touch; in wm831x_ts_probe()
/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 …]
Dcyapa.c710 const struct cyapa_touch *touch = &data.touches[i]; in cyapa_irq() local
712 int slot = touch->id - 1; in cyapa_irq()
717 ((touch->xy_hi & 0xf0) << 4) | touch->x_lo); in cyapa_irq()
719 ((touch->xy_hi & 0x0f) << 8) | touch->y_lo); in cyapa_irq()
720 input_report_abs(input, ABS_MT_PRESSURE, touch->pressure); in cyapa_irq()
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()
/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()
2061 struct input_dev *touch; in imon_init_touch() local
[all …]
/drivers/staging/cptm1217/
Dclearpad_tm1217.c121 struct touch_state touch; member
227 input_info->touch.x = (xy_data[1] << 4) in process_touch()
229 input_info->touch.y = (xy_data[2] << 4) in process_touch()
231 input_report_abs(input_info->input, ABS_X, input_info->touch.x); in process_touch()
232 input_report_abs(input_info->input, ABS_Y, input_info->touch.y); in process_touch()
255 if (ts->cp_input_info[i].touch.button == 0) { in cp_tm1217_get_data()
260 ts->cp_input_info[i].touch.button = 1; in cp_tm1217_get_data()
264 if (ts->cp_input_info[i].touch.button == 1) { in cp_tm1217_get_data()
270 ts->cp_input_info[i].touch.button = 0; in cp_tm1217_get_data()
/drivers/hid/
DKconfig443 tristate "Apple Magic Mouse/Trackpad multi-touch support"
446 Support for the Apple Magic Mouse/Trackpad multi-touch.
448 Say Y here if you want support for the multi-touch features of the
472 - 3M PCT touch screens
473 - ActionStar dual touch panels
475 - Cando dual touch panels
479 - Elan Microelectronics touch panels
483 - Hanvon dual touch panels
484 - Ilitek dual touch panels
488 - MosArt dual-touch panels
[all …]
Dwacom_wac.c1039 bool touch = data[offset] & 0x1 && !wacom->shared->stylus_in_proximity; in wacom_24hdt_irq() local
1045 input_mt_report_slot_state(input, MT_TOOL_FINGER, touch); in wacom_24hdt_irq()
1047 if (touch) { in wacom_24hdt_irq()
1097 bool touch = data[offset] & 0x1; in wacom_mt_touch() local
1105 input_mt_report_slot_state(input, MT_TOOL_FINGER, touch); in wacom_mt_touch()
1106 if (touch) { in wacom_mt_touch()
1131 bool touch = p && !wacom->shared->stylus_in_proximity; in wacom_tpc_mt_touch() local
1134 input_mt_report_slot_state(input, MT_TOOL_FINGER, touch); in wacom_tpc_mt_touch()
1135 if (touch) { in wacom_tpc_mt_touch()
1444 struct input_dev *input, bool touch) in wacom_wac_finger_mt_report() argument
[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()
/drivers/input/
Dmousedev.c78 unsigned long touch; member
136 if (mousedev->touch && mousedev->pkt_count >= 2) { in mousedev_touchpad_event()
152 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.c465 &pdata->touch, sizeof(pdata->touch)); in mc13xxx_common_init()
Dmax8925-core.c846 if (pdata && (pdata->power || pdata->touch)) { in max8925_device_init()
900 if (pdata && pdata->touch) { in max8925_device_init()

12