Searched refs:fingers (Results 1 – 9 of 9) sorted by relevance
/drivers/input/mouse/ |
D | focaltech.c | 94 struct focaltech_finger_state fingers[FOC_MAX_FINGERS]; member 123 struct focaltech_finger_state *finger = &state->fingers[i]; in focaltech_report_state() 154 unsigned char fingers = packet[1]; in focaltech_process_touch_packet() local 161 state->fingers[i].active = fingers & 0x1; in focaltech_process_touch_packet() 162 if (!state->fingers[i].active) { in focaltech_process_touch_packet() 167 state->fingers[i].valid = false; in focaltech_process_touch_packet() 169 fingers >>= 1; in focaltech_process_touch_packet() 189 state->fingers[finger].x = ((packet[1] & 0xf) << 8) | packet[2]; in focaltech_process_abs_packet() 190 state->fingers[finger].y = (packet[3] << 8) | packet[4]; in focaltech_process_abs_packet() 192 state->fingers[finger].valid = true; in focaltech_process_abs_packet() [all …]
|
D | appletouch.c | 334 int fact, int *z, int *fingers) in atp_calculate_abs() argument 348 *fingers = 0; in atp_calculate_abs() 372 (*fingers)++; in atp_calculate_abs() 379 if (*fingers < 1) /* No need to continue if no fingers are found. */ in atp_calculate_abs() 432 static inline void atp_report_fingers(struct input_dev *input, int fingers) in atp_report_fingers() argument 434 input_report_key(input, BTN_TOOL_FINGER, fingers == 1); in atp_report_fingers() 435 input_report_key(input, BTN_TOOL_DOUBLETAP, fingers == 2); in atp_report_fingers() 436 input_report_key(input, BTN_TOOL_TRIPLETAP, fingers > 2); in atp_report_fingers() 519 int key, fingers; in atp_complete_geyser_1_2() local 602 fingers = max(x_f, y_f); in atp_complete_geyser_1_2() [all …]
|
D | elantech.c | 325 int fingers; in elantech_report_absolute_v1() local 332 fingers = ((packet[1] & 0x80) >> 7) + in elantech_report_absolute_v1() 339 fingers = (packet[0] & 0xc0) >> 6; in elantech_report_absolute_v1() 343 if (fingers != 1) { in elantech_report_absolute_v1() 353 input_report_key(dev, BTN_TOUCH, fingers != 0); in elantech_report_absolute_v1() 359 if (fingers) { in elantech_report_absolute_v1() 366 input_report_key(dev, BTN_TOOL_FINGER, fingers == 1); in elantech_report_absolute_v1() 367 input_report_key(dev, BTN_TOOL_DOUBLETAP, fingers == 2); in elantech_report_absolute_v1() 368 input_report_key(dev, BTN_TOOL_TRIPLETAP, fingers == 3); in elantech_report_absolute_v1() 413 unsigned int fingers, x1 = 0, y1 = 0, x2 = 0, y2 = 0; in elantech_report_absolute_v2() local [all …]
|
D | alps.c | 359 int *fingers) in alps_get_bitmap_points() argument 371 (*fingers)++; in alps_get_bitmap_points() 395 int i, fingers_x = 0, fingers_y = 0, fingers, closest; in alps_process_bitmap() local 410 fingers = max(fingers_x, fingers_y); in alps_process_bitmap() 499 return fingers; in alps_process_bitmap() 524 static void alps_report_semi_mt_data(struct psmouse *psmouse, int fingers) in alps_report_semi_mt_data() argument 531 if (fingers < 2) { in alps_report_semi_mt_data() 534 fingers = f->pressure > 0 ? 1 : 0; in alps_report_semi_mt_data() 538 if (fingers >= 1) in alps_report_semi_mt_data() 540 if (fingers >= 2) in alps_report_semi_mt_data() [all …]
|
D | alps.h | 235 unsigned int fingers; member
|
/drivers/input/touchscreen/ |
D | auo-pixcir-ts.c | 178 int fingers = 0; in auo_pixcir_interrupt() local 219 if (fingers == 0) in auo_pixcir_interrupt() 225 fingers++; in auo_pixcir_interrupt() 229 input_report_key(ts->input, BTN_TOUCH, fingers > 0); in auo_pixcir_interrupt()
|
D | wdt87xx_i2c.c | 997 int i, fingers; in wdt87xx_ts_interrupt() local 1007 fingers = raw_buf[TOUCH_PK_V1_OFFSET_FNGR_NUM]; in wdt87xx_ts_interrupt() 1008 if (!fingers) in wdt87xx_ts_interrupt()
|
/drivers/input/keyboard/ |
D | applespi.c | 190 struct tp_finger fingers[]; member 1050 f = &t->fingers[i]; in report_tp_state() 1066 &applespi->pos[i], &t->fingers[i]); in report_tp_state() 1521 tp_len = struct_size(tp, fingers, tp->number_of_fingers); in applespi_got_data()
|
/drivers/hid/ |
D | hid-logitech-hidpp.c | 2039 struct hidpp_touchpad_raw_xy_finger fingers[2]; member 2124 hidpp_touchpad_touch_event(&data[2], &raw_xy->fingers[0]); in hidpp_touchpad_raw_xy_event() 2125 hidpp_touchpad_touch_event(&data[9], &raw_xy->fingers[1]); in hidpp_touchpad_raw_xy_event() 2759 wtp_touch_event(hidpp, &(raw->fingers[i])); in wtp_send_raw_xy_event() 2780 .fingers = { in wtp_mouse_raw_xy_event()
|