Symbol: touch
arch/arm/mach-s3c/mach-crag6410.c
593
.touch = &touch_pdata,
drivers/hid/hid-magicmouse.c
156
int touch = -1;
drivers/hid/hid-magicmouse.c
166
} else if (touch >= 0) {
drivers/hid/hid-magicmouse.c
167
touch = -1;
drivers/hid/hid-magicmouse.c
170
touch = idx;
drivers/hid/hid-magicmouse.c
174
return touch;
drivers/hid/hid-udraw-ps3.c
105
int touch;
drivers/hid/hid-udraw-ps3.c
112
touch = TOUCH_NONE;
drivers/hid/hid-udraw-ps3.c
114
touch = TOUCH_PEN;
drivers/hid/hid-udraw-ps3.c
116
touch = TOUCH_FINGER;
drivers/hid/hid-udraw-ps3.c
118
touch = TOUCH_TWOFINGER;
drivers/hid/hid-udraw-ps3.c
171
if (touch != TOUCH_NONE) {
drivers/hid/hid-udraw-ps3.c
178
if (touch == TOUCH_FINGER) {
drivers/hid/hid-udraw-ps3.c
184
} else if (touch == TOUCH_TWOFINGER) {
drivers/hid/hid-udraw-ps3.c
213
if (touch == TOUCH_FINGER || touch == TOUCH_TWOFINGER) {
drivers/hid/hid-udraw-ps3.c
216
touch == TOUCH_FINGER);
drivers/hid/hid-udraw-ps3.c
218
touch == TOUCH_TWOFINGER);
drivers/hid/hid-udraw-ps3.c
230
if (touch == TOUCH_PEN) {
drivers/hid/wacom_sys.c
2795
if (shared->touch) {
drivers/hid/wacom_sys.c
2796
wacom2 = hid_get_drvdata(shared->touch);
drivers/hid/wacom_sys.c
874
if (wacom_wac->shared->touch == wacom->hdev)
drivers/hid/wacom_sys.c
875
wacom_wac->shared->touch = NULL;
drivers/hid/wacom_sys.c
915
wacom_wac->shared->touch = hdev;
drivers/hid/wacom_wac.c
1435
unsigned char *touch = &frame[j*finger_touch_len + 1];
drivers/hid/wacom_wac.c
1436
int slot = input_mt_get_slot_by_key(touch_input, touch[0]);
drivers/hid/wacom_wac.c
1437
int x = get_unaligned_le16(&touch[2]);
drivers/hid/wacom_wac.c
1438
int y = get_unaligned_le16(&touch[4]);
drivers/hid/wacom_wac.c
1439
int w = touch[6] * input_abs_get_res(touch_input, ABS_MT_POSITION_X);
drivers/hid/wacom_wac.c
1440
int h = touch[7] * input_abs_get_res(touch_input, ABS_MT_POSITION_Y);
drivers/hid/wacom_wac.c
1446
input_mt_report_slot_state(touch_input, MT_TOOL_FINGER, touch[1] & 0x01);
drivers/hid/wacom_wac.c
1596
bool touch = (data[offset] & 0x1) && report_touch_events(wacom);
drivers/hid/wacom_wac.c
1602
input_mt_report_slot_state(input, MT_TOOL_FINGER, touch);
drivers/hid/wacom_wac.c
1604
if (touch) {
drivers/hid/wacom_wac.c
1660
bool touch = (data[offset] & 0x1) && report_touch_events(wacom);
drivers/hid/wacom_wac.c
1668
input_mt_report_slot_state(input, MT_TOOL_FINGER, touch);
drivers/hid/wacom_wac.c
1669
if (touch) {
drivers/hid/wacom_wac.c
1694
bool touch = p && report_touch_events(wacom);
drivers/hid/wacom_wac.c
1697
input_mt_report_slot_state(input, MT_TOOL_FINGER, touch);
drivers/hid/wacom_wac.c
1698
if (touch) {
drivers/hid/wacom_wac.c
3076
bool touch = report_touch_events(wacom)
drivers/hid/wacom_wac.c
3080
input_mt_report_slot_state(input, MT_TOOL_FINGER, touch);
drivers/hid/wacom_wac.c
3081
if (touch) {
drivers/hid/wacom_wac.c
3108
bool touch = data[1] & 0x80;
drivers/hid/wacom_wac.c
3114
touch = touch && report_touch_events(wacom);
drivers/hid/wacom_wac.c
3117
input_mt_report_slot_state(input, MT_TOOL_FINGER, touch);
drivers/hid/wacom_wac.c
3119
if (touch) {
drivers/hid/wacom_wac.c
3998
if (wacom_wac->shared->touch->product == 0x361) {
drivers/hid/wacom_wac.c
4004
else if (wacom_wac->shared->touch->product == 0x360) {
drivers/hid/wacom_wac.c
4010
else if (wacom_wac->shared->touch->product == 0x393) {
drivers/hid/wacom_wac.c
4040
if (wacom_wac->shared->touch->product == 0x32C ||
drivers/hid/wacom_wac.c
4041
wacom_wac->shared->touch->product == 0xF6) {
drivers/hid/wacom_wac.h
290
struct hid_device *touch;
drivers/input/mouse/byd.c
233
bool touch;
drivers/input/mouse/byd.c
241
input_report_key(dev, BTN_TOUCH, priv->touch);
drivers/input/mouse/byd.c
242
input_report_key(dev, BTN_TOOL_FINGER, priv->touch);
drivers/input/mouse/byd.c
259
priv->touch = false;
drivers/input/mouse/byd.c
290
if (!priv->touch) {
drivers/input/mouse/byd.c
294
priv->touch = time_after(jiffies, tap_time);
drivers/input/mouse/byd.c
313
priv->touch = true;
drivers/input/mouse/byd.c
328
if (priv->touch) {
drivers/input/mouse/cyapa_gen3.c
1154
const struct cyapa_touch *touch = &data->touches[i];
drivers/input/mouse/cyapa_gen3.c
1156
int slot = touch->id - 1;
drivers/input/mouse/cyapa_gen3.c
1161
((touch->xy_hi & 0xf0) << 4) | touch->x_lo);
drivers/input/mouse/cyapa_gen3.c
1163
((touch->xy_hi & 0x0f) << 8) | touch->y_lo);
drivers/input/mouse/cyapa_gen3.c
1164
input_report_abs(input, ABS_MT_PRESSURE, touch->pressure);
drivers/input/mouse/cyapa_gen5.c
2710
const struct cyapa_pip_touch_record *touch)
drivers/input/mouse/cyapa_gen5.c
2713
u8 event_id = PIP_GET_EVENT_ID(touch->touch_tip_event_id);
drivers/input/mouse/cyapa_gen5.c
2714
int slot = PIP_GET_TOUCH_ID(touch->touch_tip_event_id);
drivers/input/mouse/cyapa_gen5.c
2722
x = (touch->x_hi << 8) | touch->x_lo;
drivers/input/mouse/cyapa_gen5.c
2725
y = (touch->y_hi << 8) | touch->y_lo;
drivers/input/mouse/cyapa_gen5.c
2732
touch->z);
drivers/input/mouse/cyapa_gen5.c
2734
touch->major_axis_len);
drivers/input/mouse/cyapa_gen5.c
2736
touch->minor_axis_len);
drivers/input/mouse/cyapa_gen5.c
2739
touch->major_tool_len);
drivers/input/mouse/cyapa_gen5.c
2741
touch->minor_tool_len);
drivers/input/mouse/cyapa_gen5.c
2744
touch->orientation);
drivers/input/mouse/synaptics_i2c.c
230
static inline void set_scan_rate(struct synaptics_i2c *touch, int scan_rate)
drivers/input/mouse/synaptics_i2c.c
232
touch->scan_ms = MSEC_PER_SEC / scan_rate;
drivers/input/mouse/synaptics_i2c.c
233
touch->scan_rate_param = scan_rate;
drivers/input/mouse/synaptics_i2c.c
347
static bool synaptics_i2c_get_input(struct synaptics_i2c *touch)
drivers/input/mouse/synaptics_i2c.c
349
struct input_dev *input = touch->input;
drivers/input/mouse/synaptics_i2c.c
355
if (synaptics_i2c_check_error(touch->client))
drivers/input/mouse/synaptics_i2c.c
359
data = synaptics_i2c_reg_get(touch->client, DATA_REG0);
drivers/input/mouse/synaptics_i2c.c
366
xy_delta = synaptics_i2c_word_get(touch->client, REL_X_REG) & 0xffff;
drivers/input/mouse/synaptics_i2c.c
385
struct synaptics_i2c *touch = dev_id;
drivers/input/mouse/synaptics_i2c.c
387
mod_delayed_work(system_dfl_wq, &touch->dwork, 0);
drivers/input/mouse/synaptics_i2c.c
392
static void synaptics_i2c_check_params(struct synaptics_i2c *touch)
drivers/input/mouse/synaptics_i2c.c
396
if (scan_rate != touch->scan_rate_param)
drivers/input/mouse/synaptics_i2c.c
397
set_scan_rate(touch, scan_rate);
drivers/input/mouse/synaptics_i2c.c
399
if (no_decel != touch->no_decel_param) {
drivers/input/mouse/synaptics_i2c.c
400
touch->no_decel_param = no_decel;
drivers/input/mouse/synaptics_i2c.c
404
if (no_filter != touch->no_filter_param) {
drivers/input/mouse/synaptics_i2c.c
405
touch->no_filter_param = no_filter;
drivers/input/mouse/synaptics_i2c.c
409
if (reduce_report != touch->reduce_report_param) {
drivers/input/mouse/synaptics_i2c.c
410
touch->reduce_report_param = reduce_report;
drivers/input/mouse/synaptics_i2c.c
415
synaptics_i2c_reset_config(touch->client);
drivers/input/mouse/synaptics_i2c.c
419
static unsigned long synaptics_i2c_adjust_delay(struct synaptics_i2c *touch,
drivers/input/mouse/synaptics_i2c.c
425
delay = touch->scan_ms;
drivers/input/mouse/synaptics_i2c.c
427
touch->no_data_count = 0;
drivers/input/mouse/synaptics_i2c.c
429
nodata_count_thres = NO_DATA_THRES / touch->scan_ms;
drivers/input/mouse/synaptics_i2c.c
430
if (touch->no_data_count < nodata_count_thres)
drivers/input/mouse/synaptics_i2c.c
431
touch->no_data_count++;
drivers/input/mouse/synaptics_i2c.c
446
struct synaptics_i2c *touch =
drivers/input/mouse/synaptics_i2c.c
450
synaptics_i2c_check_params(touch);
drivers/input/mouse/synaptics_i2c.c
452
have_data = synaptics_i2c_get_input(touch);
drivers/input/mouse/synaptics_i2c.c
453
delay = synaptics_i2c_adjust_delay(touch, have_data);
drivers/input/mouse/synaptics_i2c.c
463
mod_delayed_work(system_dfl_wq, &touch->dwork, delay);
drivers/input/mouse/synaptics_i2c.c
468
struct synaptics_i2c *touch = input_get_drvdata(input);
drivers/input/mouse/synaptics_i2c.c
471
error = synaptics_i2c_reset_config(touch->client);
drivers/input/mouse/synaptics_i2c.c
476
mod_delayed_work(system_dfl_wq, &touch->dwork,
drivers/input/mouse/synaptics_i2c.c
484
struct synaptics_i2c *touch = input_get_drvdata(input);
drivers/input/mouse/synaptics_i2c.c
487
synaptics_i2c_reg_set(touch->client, INTERRUPT_EN_REG, 0);
drivers/input/mouse/synaptics_i2c.c
489
cancel_delayed_work_sync(&touch->dwork);
drivers/input/mouse/synaptics_i2c.c
492
synaptics_i2c_reg_set(touch->client, DEV_CONTROL_REG, DEEP_SLEEP);
drivers/input/mouse/synaptics_i2c.c
495
static void synaptics_i2c_set_input_params(struct synaptics_i2c *touch)
drivers/input/mouse/synaptics_i2c.c
497
struct input_dev *input = touch->input;
drivers/input/mouse/synaptics_i2c.c
499
input->name = touch->client->name;
drivers/input/mouse/synaptics_i2c.c
500
input->phys = touch->client->adapter->name;
drivers/input/mouse/synaptics_i2c.c
502
input->id.version = synaptics_i2c_word_get(touch->client,
drivers/input/mouse/synaptics_i2c.c
506
input_set_drvdata(input, touch);
drivers/input/mouse/synaptics_i2c.c
519
struct synaptics_i2c *touch;
drivers/input/mouse/synaptics_i2c.c
522
touch = devm_kzalloc(dev, sizeof(*touch), GFP_KERNEL);
drivers/input/mouse/synaptics_i2c.c
523
if (!touch)
drivers/input/mouse/synaptics_i2c.c
526
touch->client = client;
drivers/input/mouse/synaptics_i2c.c
527
touch->no_decel_param = no_decel;
drivers/input/mouse/synaptics_i2c.c
528
touch->scan_rate_param = scan_rate;
drivers/input/mouse/synaptics_i2c.c
529
set_scan_rate(touch, scan_rate);
drivers/input/mouse/synaptics_i2c.c
530
INIT_DELAYED_WORK(&touch->dwork, synaptics_i2c_work_handler);
drivers/input/mouse/synaptics_i2c.c
539
touch->input = devm_input_allocate_device(dev);
drivers/input/mouse/synaptics_i2c.c
540
if (!touch->input)
drivers/input/mouse/synaptics_i2c.c
543
synaptics_i2c_set_input_params(touch);
drivers/input/mouse/synaptics_i2c.c
550
DRIVER_NAME, touch);
drivers/input/mouse/synaptics_i2c.c
563
error = input_register_device(touch->input);
drivers/input/mouse/synaptics_i2c.c
569
i2c_set_clientdata(client, touch);
drivers/input/mouse/synaptics_i2c.c
577
struct synaptics_i2c *touch = i2c_get_clientdata(client);
drivers/input/mouse/synaptics_i2c.c
579
cancel_delayed_work_sync(&touch->dwork);
drivers/input/mouse/synaptics_i2c.c
582
synaptics_i2c_reg_set(touch->client, DEV_CONTROL_REG, DEEP_SLEEP);
drivers/input/mouse/synaptics_i2c.c
590
struct synaptics_i2c *touch = i2c_get_clientdata(client);
drivers/input/mouse/synaptics_i2c.c
591
struct input_dev *input = touch->input;
drivers/input/mouse/synaptics_i2c.c
600
mod_delayed_work(system_dfl_wq, &touch->dwork,
drivers/input/mouse/vsxxxaa.c
253
int left, middle, right, touch;
drivers/input/mouse/vsxxxaa.c
280
touch = buf[0] & 0x10;
drivers/input/mouse/vsxxxaa.c
287
right ? "R" : "r", touch ? "T" : "t");
drivers/input/mouse/vsxxxaa.c
295
input_report_key(dev, BTN_TOUCH, touch);
drivers/input/mousedev.c
134
if (mousedev->touch && mousedev->pkt_count >= 2) {
drivers/input/mousedev.c
150
if (mousedev->touch && mousedev->pkt_count >= 2) {
drivers/input/mousedev.c
322
if (mousedev->touch &&
drivers/input/mousedev.c
324
mousedev->touch + msecs_to_jiffies(tap_time))) {
drivers/input/mousedev.c
338
mousedev->touch = mousedev->pkt_count = 0;
drivers/input/mousedev.c
342
} else if (!mousedev->touch)
drivers/input/mousedev.c
343
mousedev->touch = jiffies;
drivers/input/mousedev.c
382
if (mousedev->touch) {
drivers/input/mousedev.c
76
unsigned long touch;
drivers/input/tablet/acecad.c
70
int touch = data[0] & 0x01;
drivers/input/tablet/acecad.c
76
input_report_key(dev, BTN_TOUCH, touch);
drivers/input/touchscreen/88pm860x-ts.c
107
struct pm860x_touch *touch = input_get_drvdata(dev);
drivers/input/touchscreen/88pm860x-ts.c
112
pm860x_set_bits(touch->i2c, MEAS_EN3, data, 0);
drivers/input/touchscreen/88pm860x-ts.c
176
struct pm860x_touch *touch;
drivers/input/touchscreen/88pm860x-ts.c
235
touch = devm_kzalloc(&pdev->dev, sizeof(struct pm860x_touch),
drivers/input/touchscreen/88pm860x-ts.c
237
if (!touch)
drivers/input/touchscreen/88pm860x-ts.c
240
touch->idev = devm_input_allocate_device(&pdev->dev);
drivers/input/touchscreen/88pm860x-ts.c
241
if (!touch->idev) {
drivers/input/touchscreen/88pm860x-ts.c
246
touch->idev->name = "88pm860x-touch";
drivers/input/touchscreen/88pm860x-ts.c
247
touch->idev->phys = "88pm860x/input0";
drivers/input/touchscreen/88pm860x-ts.c
248
touch->idev->id.bustype = BUS_I2C;
drivers/input/touchscreen/88pm860x-ts.c
249
touch->idev->dev.parent = &pdev->dev;
drivers/input/touchscreen/88pm860x-ts.c
250
touch->idev->open = pm860x_touch_open;
drivers/input/touchscreen/88pm860x-ts.c
251
touch->idev->close = pm860x_touch_close;
drivers/input/touchscreen/88pm860x-ts.c
252
touch->chip = chip;
drivers/input/touchscreen/88pm860x-ts.c
253
touch->i2c = i2c;
drivers/input/touchscreen/88pm860x-ts.c
254
touch->irq = irq;
drivers/input/touchscreen/88pm860x-ts.c
255
touch->res_x = res_x;
drivers/input/touchscreen/88pm860x-ts.c
256
input_set_drvdata(touch->idev, touch);
drivers/input/touchscreen/88pm860x-ts.c
258
ret = devm_request_threaded_irq(&pdev->dev, touch->irq, NULL,
drivers/input/touchscreen/88pm860x-ts.c
260
"touch", touch);
drivers/input/touchscreen/88pm860x-ts.c
264
__set_bit(EV_ABS, touch->idev->evbit);
drivers/input/touchscreen/88pm860x-ts.c
265
__set_bit(ABS_X, touch->idev->absbit);
drivers/input/touchscreen/88pm860x-ts.c
266
__set_bit(ABS_Y, touch->idev->absbit);
drivers/input/touchscreen/88pm860x-ts.c
267
__set_bit(ABS_PRESSURE, touch->idev->absbit);
drivers/input/touchscreen/88pm860x-ts.c
268
__set_bit(EV_SYN, touch->idev->evbit);
drivers/input/touchscreen/88pm860x-ts.c
269
__set_bit(EV_KEY, touch->idev->evbit);
drivers/input/touchscreen/88pm860x-ts.c
270
__set_bit(BTN_TOUCH, touch->idev->keybit);
drivers/input/touchscreen/88pm860x-ts.c
272
input_set_abs_params(touch->idev, ABS_X, 0, 1 << ACCURATE_BIT, 0, 0);
drivers/input/touchscreen/88pm860x-ts.c
273
input_set_abs_params(touch->idev, ABS_Y, 0, 1 << ACCURATE_BIT, 0, 0);
drivers/input/touchscreen/88pm860x-ts.c
274
input_set_abs_params(touch->idev, ABS_PRESSURE, 0, 1 << ACCURATE_BIT,
drivers/input/touchscreen/88pm860x-ts.c
277
ret = input_register_device(touch->idev);
drivers/input/touchscreen/88pm860x-ts.c
50
struct pm860x_touch *touch = data;
drivers/input/touchscreen/88pm860x-ts.c
51
struct pm860x_chip *chip = touch->chip;
drivers/input/touchscreen/88pm860x-ts.c
57
ret = pm860x_bulk_read(touch->i2c, MEAS_TSIX_1, MEAS_LEN, buf);
drivers/input/touchscreen/88pm860x-ts.c
68
if ((x != 0) && (z1 != 0) && (touch->res_x != 0)) {
drivers/input/touchscreen/88pm860x-ts.c
70
rt = (rt * touch->res_x * x) >> ACCURATE_BIT;
drivers/input/touchscreen/88pm860x-ts.c
74
input_report_abs(touch->idev, ABS_X, x);
drivers/input/touchscreen/88pm860x-ts.c
75
input_report_abs(touch->idev, ABS_Y, y);
drivers/input/touchscreen/88pm860x-ts.c
76
input_report_abs(touch->idev, ABS_PRESSURE, rt);
drivers/input/touchscreen/88pm860x-ts.c
77
input_report_key(touch->idev, BTN_TOUCH, 1);
drivers/input/touchscreen/88pm860x-ts.c
80
input_report_abs(touch->idev, ABS_PRESSURE, 0);
drivers/input/touchscreen/88pm860x-ts.c
81
input_report_key(touch->idev, BTN_TOUCH, 0);
drivers/input/touchscreen/88pm860x-ts.c
84
input_sync(touch->idev);
drivers/input/touchscreen/88pm860x-ts.c
92
struct pm860x_touch *touch = input_get_drvdata(dev);
drivers/input/touchscreen/88pm860x-ts.c
97
ret = pm860x_set_bits(touch->i2c, MEAS_EN3, data, data);
drivers/input/touchscreen/chipone_icn8318.c
112
struct icn8318_touch *touch = &touch_data.touches[i];
drivers/input/touchscreen/chipone_icn8318.c
113
bool act = icn8318_touch_active(touch->event);
drivers/input/touchscreen/chipone_icn8318.c
115
input_mt_slot(data->input, touch->slot);
drivers/input/touchscreen/chipone_icn8318.c
121
be16_to_cpu(touch->x),
drivers/input/touchscreen/chipone_icn8318.c
122
be16_to_cpu(touch->y), true);
drivers/input/touchscreen/chipone_icn8505.c
342
struct icn8505_touch *touch = &touch_data.touches[i];
drivers/input/touchscreen/chipone_icn8505.c
343
bool act = icn8505_touch_active(touch->event);
drivers/input/touchscreen/chipone_icn8505.c
345
input_mt_slot(icn8505->input, touch->slot);
drivers/input/touchscreen/chipone_icn8505.c
351
get_unaligned_le16(touch->x),
drivers/input/touchscreen/chipone_icn8505.c
352
get_unaligned_le16(touch->y),
drivers/input/touchscreen/cyttsp5.c
278
struct cyttsp5_touch *touch, u8 *xy_data)
drivers/input/touchscreen/cyttsp5.c
284
cyttsp5_get_touch_axis(&touch->abs[abs],
drivers/input/touchscreen/da9034-ts.c
104
static inline int start_tsi(struct da9034_touch *touch)
drivers/input/touchscreen/da9034-ts.c
106
return da903x_set_bits(touch->da9034_dev,
drivers/input/touchscreen/da9034-ts.c
110
static inline int stop_tsi(struct da9034_touch *touch)
drivers/input/touchscreen/da9034-ts.c
112
return da903x_clr_bits(touch->da9034_dev,
drivers/input/touchscreen/da9034-ts.c
116
static inline void report_pen_down(struct da9034_touch *touch)
drivers/input/touchscreen/da9034-ts.c
118
int x = touch->last_x;
drivers/input/touchscreen/da9034-ts.c
119
int y = touch->last_y;
drivers/input/touchscreen/da9034-ts.c
122
if (touch->x_inverted)
drivers/input/touchscreen/da9034-ts.c
125
if (touch->y_inverted)
drivers/input/touchscreen/da9034-ts.c
128
input_report_abs(touch->input_dev, ABS_X, x);
drivers/input/touchscreen/da9034-ts.c
129
input_report_abs(touch->input_dev, ABS_Y, y);
drivers/input/touchscreen/da9034-ts.c
130
input_report_key(touch->input_dev, BTN_TOUCH, 1);
drivers/input/touchscreen/da9034-ts.c
132
input_sync(touch->input_dev);
drivers/input/touchscreen/da9034-ts.c
135
static inline void report_pen_up(struct da9034_touch *touch)
drivers/input/touchscreen/da9034-ts.c
137
input_report_key(touch->input_dev, BTN_TOUCH, 0);
drivers/input/touchscreen/da9034-ts.c
138
input_sync(touch->input_dev);
drivers/input/touchscreen/da9034-ts.c
141
static void da9034_event_handler(struct da9034_touch *touch, int event)
drivers/input/touchscreen/da9034-ts.c
145
switch (touch->state) {
drivers/input/touchscreen/da9034-ts.c
153
err = start_tsi(touch);
drivers/input/touchscreen/da9034-ts.c
157
touch->state = STATE_BUSY;
drivers/input/touchscreen/da9034-ts.c
164
err = read_tsi(touch);
drivers/input/touchscreen/da9034-ts.c
171
err = stop_tsi(touch);
drivers/input/touchscreen/da9034-ts.c
175
touch->state = STATE_STOP;
drivers/input/touchscreen/da9034-ts.c
183
da9034_event_handler(touch,
drivers/input/touchscreen/da9034-ts.c
184
is_pen_down(touch) ? EVENT_PEN_DOWN :
drivers/input/touchscreen/da9034-ts.c
190
report_pen_down(touch);
drivers/input/touchscreen/da9034-ts.c
191
schedule_delayed_work(&touch->tsi_work,
drivers/input/touchscreen/da9034-ts.c
192
msecs_to_jiffies(touch->interval_ms));
drivers/input/touchscreen/da9034-ts.c
193
touch->state = STATE_WAIT;
drivers/input/touchscreen/da9034-ts.c
197
report_pen_up(touch);
drivers/input/touchscreen/da9034-ts.c
198
touch->state = STATE_IDLE;
drivers/input/touchscreen/da9034-ts.c
206
if (is_pen_down(touch)) {
drivers/input/touchscreen/da9034-ts.c
207
start_tsi(touch);
drivers/input/touchscreen/da9034-ts.c
208
touch->state = STATE_BUSY;
drivers/input/touchscreen/da9034-ts.c
210
report_pen_up(touch);
drivers/input/touchscreen/da9034-ts.c
211
touch->state = STATE_IDLE;
drivers/input/touchscreen/da9034-ts.c
218
touch->state = STATE_IDLE;
drivers/input/touchscreen/da9034-ts.c
219
stop_tsi(touch);
drivers/input/touchscreen/da9034-ts.c
220
detect_pen_down(touch, 1);
drivers/input/touchscreen/da9034-ts.c
225
struct da9034_touch *touch =
drivers/input/touchscreen/da9034-ts.c
228
da9034_event_handler(touch, EVENT_TIMEDOUT);
drivers/input/touchscreen/da9034-ts.c
234
struct da9034_touch *touch =
drivers/input/touchscreen/da9034-ts.c
238
da9034_event_handler(touch, EVENT_TSI_READY);
drivers/input/touchscreen/da9034-ts.c
240
if ((event & DA9034_EVENT_PEN_DOWN) && touch->state == STATE_IDLE)
drivers/input/touchscreen/da9034-ts.c
241
da9034_event_handler(touch, EVENT_PEN_DOWN);
drivers/input/touchscreen/da9034-ts.c
248
struct da9034_touch *touch = input_get_drvdata(dev);
drivers/input/touchscreen/da9034-ts.c
251
ret = da903x_register_notifier(touch->da9034_dev, &touch->notifier,
drivers/input/touchscreen/da9034-ts.c
257
ret = da903x_set_bits(touch->da9034_dev,
drivers/input/touchscreen/da9034-ts.c
263
ret = da903x_write(touch->da9034_dev, DA9034_TSI_CTRL1, 0x1b);
drivers/input/touchscreen/da9034-ts.c
267
ret = da903x_write(touch->da9034_dev, DA9034_TSI_CTRL2, 0x00);
drivers/input/touchscreen/da9034-ts.c
271
touch->state = STATE_IDLE;
drivers/input/touchscreen/da9034-ts.c
272
detect_pen_down(touch, 1);
drivers/input/touchscreen/da9034-ts.c
279
struct da9034_touch *touch = input_get_drvdata(dev);
drivers/input/touchscreen/da9034-ts.c
281
da903x_unregister_notifier(touch->da9034_dev, &touch->notifier,
drivers/input/touchscreen/da9034-ts.c
284
cancel_delayed_work_sync(&touch->tsi_work);
drivers/input/touchscreen/da9034-ts.c
286
touch->state = STATE_IDLE;
drivers/input/touchscreen/da9034-ts.c
287
stop_tsi(touch);
drivers/input/touchscreen/da9034-ts.c
288
detect_pen_down(touch, 0);
drivers/input/touchscreen/da9034-ts.c
291
da903x_clr_bits(touch->da9034_dev,
drivers/input/touchscreen/da9034-ts.c
299
struct da9034_touch *touch;
drivers/input/touchscreen/da9034-ts.c
303
touch = devm_kzalloc(&pdev->dev, sizeof(struct da9034_touch),
drivers/input/touchscreen/da9034-ts.c
305
if (!touch) {
drivers/input/touchscreen/da9034-ts.c
310
touch->da9034_dev = pdev->dev.parent;
drivers/input/touchscreen/da9034-ts.c
313
touch->interval_ms = pdata->interval_ms;
drivers/input/touchscreen/da9034-ts.c
314
touch->x_inverted = pdata->x_inverted;
drivers/input/touchscreen/da9034-ts.c
315
touch->y_inverted = pdata->y_inverted;
drivers/input/touchscreen/da9034-ts.c
318
touch->interval_ms = 10;
drivers/input/touchscreen/da9034-ts.c
321
INIT_DELAYED_WORK(&touch->tsi_work, da9034_tsi_work);
drivers/input/touchscreen/da9034-ts.c
322
touch->notifier.notifier_call = da9034_touch_notifier;
drivers/input/touchscreen/da9034-ts.c
344
touch->input_dev = input_dev;
drivers/input/touchscreen/da9034-ts.c
345
input_set_drvdata(input_dev, touch);
drivers/input/touchscreen/da9034-ts.c
66
static inline int is_pen_down(struct da9034_touch *touch)
drivers/input/touchscreen/da9034-ts.c
68
return da903x_query_status(touch->da9034_dev, DA9034_STATUS_PEN_DOWN);
drivers/input/touchscreen/da9034-ts.c
71
static inline int detect_pen_down(struct da9034_touch *touch, int on)
drivers/input/touchscreen/da9034-ts.c
74
return da903x_set_bits(touch->da9034_dev,
drivers/input/touchscreen/da9034-ts.c
77
return da903x_clr_bits(touch->da9034_dev,
drivers/input/touchscreen/da9034-ts.c
81
static int read_tsi(struct da9034_touch *touch)
drivers/input/touchscreen/da9034-ts.c
86
ret = da903x_read(touch->da9034_dev, DA9034_TSI_X_MSB, &_x);
drivers/input/touchscreen/da9034-ts.c
90
ret = da903x_read(touch->da9034_dev, DA9034_TSI_Y_MSB, &_y);
drivers/input/touchscreen/da9034-ts.c
94
ret = da903x_read(touch->da9034_dev, DA9034_TSI_XY_LSB, &_v);
drivers/input/touchscreen/da9034-ts.c
98
touch->last_x = ((_x << 2) & 0x3fc) | (_v & 0x3);
drivers/input/touchscreen/da9034-ts.c
99
touch->last_y = ((_y << 2) & 0x3fc) | ((_v & 0xc) >> 2);
drivers/input/touchscreen/ili210x.c
121
static bool ili210x_check_continue_polling(const u8 *data, bool touch)
drivers/input/touchscreen/ili210x.c
182
static bool ili211x_decline_polling(const u8 *data, bool touch)
drivers/input/touchscreen/ili210x.c
213
static bool ili212x_check_continue_polling(const u8 *data, bool touch)
drivers/input/touchscreen/ili210x.c
215
return touch;
drivers/input/touchscreen/ili210x.c
289
static bool ili251x_check_continue_polling(const u8 *data, bool touch)
drivers/input/touchscreen/ili210x.c
291
return touch;
drivers/input/touchscreen/ili210x.c
309
bool contact = false, touch;
drivers/input/touchscreen/ili210x.c
313
touch = priv->chip->parse_touch_data(touchdata, i, &x, &y, &z);
drivers/input/touchscreen/ili210x.c
316
if (input_mt_report_slot_state(input, MT_TOOL_FINGER, touch)) {
drivers/input/touchscreen/ili210x.c
338
bool touch;
drivers/input/touchscreen/ili210x.c
350
touch = ili210x_report_events(priv, touchdata);
drivers/input/touchscreen/ili210x.c
351
keep_polling = chip->continue_polling(touchdata, touch);
drivers/input/touchscreen/ili210x.c
51
bool (*continue_polling)(const u8 *data, bool touch);
drivers/input/touchscreen/mc13783_ts.c
126
priv->touch->ato, priv->touch->atox,
drivers/input/touchscreen/mc13783_ts.c
179
priv->touch = dev_get_platdata(&pdev->dev);
drivers/input/touchscreen/mc13783_ts.c
180
if (!priv->touch) {
drivers/input/touchscreen/mc13783_ts.c
38
struct mc13xxx_ts_platform_data *touch;
drivers/input/touchscreen/mms114.c
160
static void mms114_process_mt(struct mms114_data *data, struct mms114_touch *touch)
drivers/input/touchscreen/mms114.c
168
if (touch->id > MMS114_MAX_TOUCH) {
drivers/input/touchscreen/mms114.c
169
dev_err(&client->dev, "Wrong touch id (%d)\n", touch->id);
drivers/input/touchscreen/mms114.c
173
id = touch->id - 1;
drivers/input/touchscreen/mms114.c
174
x = touch->x_lo | touch->x_hi << 8;
drivers/input/touchscreen/mms114.c
175
y = touch->y_lo | touch->y_hi << 8;
drivers/input/touchscreen/mms114.c
179
id, touch->type, touch->pressed,
drivers/input/touchscreen/mms114.c
180
x, y, touch->width, touch->strength);
drivers/input/touchscreen/mms114.c
183
input_mt_report_slot_state(input_dev, MT_TOOL_FINGER, touch->pressed);
drivers/input/touchscreen/mms114.c
185
if (touch->pressed) {
drivers/input/touchscreen/mms114.c
187
input_report_abs(input_dev, ABS_MT_TOUCH_MAJOR, touch->width);
drivers/input/touchscreen/mms114.c
188
input_report_abs(input_dev, ABS_MT_PRESSURE, touch->strength);
drivers/input/touchscreen/mms114.c
193
struct mms114_touch *touch)
drivers/input/touchscreen/mms114.c
199
if (touch->id == 0)
drivers/input/touchscreen/mms114.c
202
if (touch->id > data->num_keycodes) {
drivers/input/touchscreen/mms114.c
204
touch->id);
drivers/input/touchscreen/mms114.c
208
keycode_id = touch->id - 1;
drivers/input/touchscreen/mms114.c
210
touch->pressed);
drivers/input/touchscreen/mms114.c
212
input_report_key(input_dev, data->keycodes[keycode_id], touch->pressed);
drivers/input/touchscreen/mms114.c
220
struct mms114_touch touch[MMS114_MAX_TOUCH];
drivers/input/touchscreen/mms114.c
244
(u8 *)touch);
drivers/input/touchscreen/mms114.c
249
switch (touch[index].type) {
drivers/input/touchscreen/mms114.c
251
mms114_process_mt(data, touch + index);
drivers/input/touchscreen/mms114.c
255
mms114_process_touchkey(data, touch + index);
drivers/input/touchscreen/mms114.c
260
touch[index].type);
drivers/input/touchscreen/novatek-nvt-ts.c
104
touch = &data->buf[i * NVT_TS_TOUCH_SIZE];
drivers/input/touchscreen/novatek-nvt-ts.c
106
if (touch[0] == NVT_TS_TOUCH_INVALID)
drivers/input/touchscreen/novatek-nvt-ts.c
109
slot = touch[0] >> NVT_TS_TOUCH_SLOT_SHIFT;
drivers/input/touchscreen/novatek-nvt-ts.c
115
switch (touch[0] & NVT_TS_TOUCH_TYPE_MASK) {
drivers/input/touchscreen/novatek-nvt-ts.c
124
dev_warn(dev, "slot %d unknown state %d\n", slot, touch[0] & 7);
drivers/input/touchscreen/novatek-nvt-ts.c
129
x = (touch[1] << 4) | (touch[3] >> 4);
drivers/input/touchscreen/novatek-nvt-ts.c
130
y = (touch[2] << 4) | (touch[3] & 0x0f);
drivers/input/touchscreen/novatek-nvt-ts.c
96
u8 *touch;
drivers/input/touchscreen/pixcir_i2c_ts.c
127
touch = rdbuf[0] & 0x7;
drivers/input/touchscreen/pixcir_i2c_ts.c
128
if (touch > tsdata->chip->max_fingers)
drivers/input/touchscreen/pixcir_i2c_ts.c
129
touch = tsdata->chip->max_fingers;
drivers/input/touchscreen/pixcir_i2c_ts.c
131
report->num_touches = touch;
drivers/input/touchscreen/pixcir_i2c_ts.c
134
for (i = 0; i < touch; i++) {
drivers/input/touchscreen/pixcir_i2c_ts.c
99
u8 touch;
drivers/input/touchscreen/usbtouchscreen.c
103
int touch, press;
drivers/input/touchscreen/usbtouchscreen.c
1126
usbtouch->touch = packet->flags & 0x01;
drivers/input/touchscreen/usbtouchscreen.c
1159
dev->touch = pkt[6] > 0;
drivers/input/touchscreen/usbtouchscreen.c
1188
input_report_key(usbtouch->input, BTN_TOUCH, usbtouch->touch);
drivers/input/touchscreen/usbtouchscreen.c
136
dev->touch = (tmp > 0);
drivers/input/touchscreen/usbtouchscreen.c
207
dev->touch = pkt[0] & 0x01;
drivers/input/touchscreen/usbtouchscreen.c
263
dev->touch = pkt[0] & 0x01;
drivers/input/touchscreen/usbtouchscreen.c
304
dev->touch = pkt[0] & 0x01;
drivers/input/touchscreen/usbtouchscreen.c
340
dev->touch = (pkt[2] & 0x40) ? 1 : 0;
drivers/input/touchscreen/usbtouchscreen.c
492
int touch;
drivers/input/touchscreen/usbtouchscreen.c
501
touch = ~pkt[7] & 0x20;
drivers/input/touchscreen/usbtouchscreen.c
502
if (!touch) {
drivers/input/touchscreen/usbtouchscreen.c
503
if (dev->touch) {
drivers/input/touchscreen/usbtouchscreen.c
504
dev->touch = 0;
drivers/input/touchscreen/usbtouchscreen.c
513
dev->touch = touch;
drivers/input/touchscreen/usbtouchscreen.c
548
dev->touch = (pkt[0] & 0x10) ? 1 : 0;
drivers/input/touchscreen/usbtouchscreen.c
585
dev->touch = pkt[0] & 0x20;
drivers/input/touchscreen/usbtouchscreen.c
670
dev->touch = pkt[0] & 0x01;
drivers/input/touchscreen/usbtouchscreen.c
695
dev->touch = (pkt[1] & 0x03) ? 1 : 0;
drivers/input/touchscreen/usbtouchscreen.c
727
dev->touch = pkt[0] & 0x01;
drivers/input/touchscreen/usbtouchscreen.c
765
dev->touch = (pkt[0] & 0x40) ? 1 : 0;
drivers/input/touchscreen/usbtouchscreen.c
772
dev->touch = (pkt[0] & 0x40) ? 1 : 0;
drivers/input/touchscreen/usbtouchscreen.c
800
dev->touch = pkt[0] & 0x01;
drivers/input/touchscreen/usbtouchscreen.c
823
dev->touch = pkt[0] & 0x01;
drivers/input/touchscreen/usbtouchscreen.c
846
dev->touch = (pkt[0] & 0x40) >> 6;
drivers/input/touchscreen/usbtouchscreen.c
877
dev->touch = 1;
drivers/input/touchscreen/usbtouchscreen.c
884
dev->touch = 0;
drivers/input/touchscreen/wacom_w8001.c
157
bool touch = data[0] & (1 << i);
drivers/input/touchscreen/wacom_w8001.c
160
input_mt_report_slot_state(dev, MT_TOOL_FINGER, touch);
drivers/input/touchscreen/wacom_w8001.c
161
if (touch) {
drivers/input/touchscreen/wacom_w8001.c
465
struct w8001_touch_query touch;
drivers/input/touchscreen/wacom_w8001.c
485
parse_touchquery(w8001->response, &touch);
drivers/input/touchscreen/wacom_w8001.c
486
w8001->max_touch_x = touch.x;
drivers/input/touchscreen/wacom_w8001.c
487
w8001->max_touch_y = touch.y;
drivers/input/touchscreen/wacom_w8001.c
491
touch.x = w8001->max_pen_x;
drivers/input/touchscreen/wacom_w8001.c
492
touch.y = w8001->max_pen_y;
drivers/input/touchscreen/wacom_w8001.c
493
touch.panel_res = W8001_PEN_RESOLUTION;
drivers/input/touchscreen/wacom_w8001.c
496
input_set_abs_params(dev, ABS_X, 0, touch.x, 0, 0);
drivers/input/touchscreen/wacom_w8001.c
497
input_set_abs_params(dev, ABS_Y, 0, touch.y, 0, 0);
drivers/input/touchscreen/wacom_w8001.c
498
input_abs_set_res(dev, ABS_X, touch.panel_res);
drivers/input/touchscreen/wacom_w8001.c
499
input_abs_set_res(dev, ABS_Y, touch.panel_res);
drivers/input/touchscreen/wacom_w8001.c
501
switch (touch.sensor_id) {
drivers/input/touchscreen/wacom_w8001.c
529
0, touch.x, 0, 0);
drivers/input/touchscreen/wacom_w8001.c
531
0, touch.y, 0, 0);
drivers/input/touchscreen/wacom_w8001.c
534
input_abs_set_res(dev, ABS_MT_POSITION_X, touch.panel_res);
drivers/input/touchscreen/wacom_w8001.c
535
input_abs_set_res(dev, ABS_MT_POSITION_Y, touch.panel_res);
drivers/input/touchscreen/wm831x-ts.c
241
pdata = core_pdata->touch;
drivers/media/rc/imon.c
1108
input_report_abs(ictx->touch, ABS_X, ictx->touch_x);
drivers/media/rc/imon.c
1109
input_report_abs(ictx->touch, ABS_Y, ictx->touch_y);
drivers/media/rc/imon.c
1110
input_report_key(ictx->touch, BTN_TOUCH, 0x00);
drivers/media/rc/imon.c
1111
input_sync(ictx->touch);
drivers/media/rc/imon.c
124
struct input_dev *touch; /* input device for touchscreen */
drivers/media/rc/imon.c
1388
input_report_abs(ictx->touch, ABS_X, ictx->touch_x);
drivers/media/rc/imon.c
1389
input_report_abs(ictx->touch, ABS_Y, ictx->touch_y);
drivers/media/rc/imon.c
1390
input_report_key(ictx->touch, BTN_TOUCH, 0x01);
drivers/media/rc/imon.c
1391
input_sync(ictx->touch);
drivers/media/rc/imon.c
1637
if (ictx->touch && len == 8 && buf[7] == 0x86) {
drivers/media/rc/imon.c
2089
struct input_dev *touch;
drivers/media/rc/imon.c
2092
touch = input_allocate_device();
drivers/media/rc/imon.c
2093
if (!touch)
drivers/media/rc/imon.c
2099
touch->name = ictx->name_touch;
drivers/media/rc/imon.c
2104
touch->phys = ictx->phys_touch;
drivers/media/rc/imon.c
2106
touch->evbit[0] =
drivers/media/rc/imon.c
2108
touch->keybit[BIT_WORD(BTN_TOUCH)] =
drivers/media/rc/imon.c
2110
input_set_abs_params(touch, ABS_X,
drivers/media/rc/imon.c
2112
input_set_abs_params(touch, ABS_Y,
drivers/media/rc/imon.c
2115
input_set_drvdata(touch, ictx);
drivers/media/rc/imon.c
2117
usb_to_input_id(ictx->usbdev_intf1, &touch->id);
drivers/media/rc/imon.c
2118
touch->dev.parent = ictx->dev;
drivers/media/rc/imon.c
2119
ret = input_register_device(touch);
drivers/media/rc/imon.c
2125
return touch;
drivers/media/rc/imon.c
2128
input_free_device(touch);
drivers/media/rc/imon.c
2350
ictx->touch = imon_init_touch(ictx);
drivers/media/rc/imon.c
2351
if (!ictx->touch)
drivers/media/rc/imon.c
2354
ictx->touch = NULL;
drivers/media/rc/imon.c
2376
if (ictx->touch)
drivers/media/rc/imon.c
2377
input_unregister_device(ictx->touch);
drivers/media/rc/imon.c
2559
input_unregister_device(ictx->touch);
drivers/mfd/88pm860x-core.c
896
touch_devs[0].platform_data = pdata->touch;
drivers/mfd/max8925-core.c
833
if (pdata && (pdata->power || pdata->touch)) {
drivers/mfd/max8925-core.c
887
if (pdata && pdata->touch) {
drivers/mfd/mc13xxx-core.c
480
&pdata->touch, sizeof(pdata->touch));
drivers/pinctrl/tegra/pinctrl-tegra186.c
1277
TEGRA_PIN_FUNCTION(touch),
drivers/pinctrl/tegra/pinctrl-tegra194.c
1198
TEGRA_PIN_FUNCTION(touch),
drivers/pinctrl/tegra/pinctrl-tegra210.c
1249
FUNCTION(touch),
drivers/pinctrl/tegra/pinctrl-tegra234.c
1343
TEGRA_PIN_FUNCTION(touch),
fs/ceph/caps.c
892
int __ceph_caps_issued_mask(struct ceph_inode_info *ci, int mask, int touch)
fs/ceph/caps.c
916
if (touch)
fs/ceph/caps.c
928
if (touch) {
fs/ceph/caps.c
951
int touch)
fs/ceph/caps.c
956
r = __ceph_caps_issued_mask(ci, mask, touch);
fs/ceph/super.h
807
int mask, int touch)
fs/ceph/super.h
811
r = __ceph_caps_issued_mask_metric(ci, mask, touch);
include/linux/mfd/88pm860x.h
438
struct pm860x_touch_pdata *touch;
include/linux/mfd/max8925.h
233
struct max8925_touch_pdata *touch;
include/linux/mfd/mc13xxx.h
225
struct mc13xxx_ts_platform_data touch;
include/linux/mfd/wm831x/pdata.h
128
struct wm831x_touch_pdata *touch;
tools/testing/selftests/ia64/aliasing-test.c
101
rc = scan_tree(path2, file, offset, length, touch);
tools/testing/selftests/ia64/aliasing-test.c
24
static int map_mem(char *path, off_t offset, size_t length, int touch)
tools/testing/selftests/ia64/aliasing-test.c
46
if (touch) {
tools/testing/selftests/ia64/aliasing-test.c
62
static int scan_tree(char *path, char *file, off_t offset, size_t length, int touch)
tools/testing/selftests/ia64/aliasing-test.c
89
rc = map_mem(path2, offset, length, touch);
tools/testing/selftests/ia64/aliasing-test.c
91
fprintf(stderr, "PASS: %s 0x%lx-0x%lx is %s\n", path2, offset, offset + length, touch ? "readable" : "mappable");
tools/testing/selftests/mm/hugetlb_fault_after_madv.c
95
pthread_create(&thread2, NULL, touch, NULL);
tools/testing/selftests/mm/hugetlb_madv_vs_map.c
109
pthread_create(&thread2, NULL, touch, NULL);
tools/testing/selftests/powerpc/benchmarks/context_switch.c
189
touch();
tools/testing/selftests/powerpc/benchmarks/context_switch.c
192
touch();
tools/testing/selftests/powerpc/benchmarks/context_switch.c
204
touch();
tools/testing/selftests/powerpc/benchmarks/context_switch.c
207
touch();
tools/testing/selftests/powerpc/benchmarks/context_switch.c
234
touch();
tools/testing/selftests/powerpc/benchmarks/context_switch.c
246
touch();
tools/testing/selftests/proc/proc-pidns.c
67
ASSERT_SUCCESS(touch("/tmp/dummy/pidns"));