Lines Matching full:fingers

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()
394 /* x1 < x2 and y1 < y2 when two fingers, x = y = 0 when not pressed */
413 unsigned int fingers, x1 = 0, y1 = 0, x2 = 0, y2 = 0; in elantech_report_absolute_v2() local
417 fingers = (packet[0] & 0xc0) >> 6; in elantech_report_absolute_v2()
419 switch (fingers) { in elantech_report_absolute_v2()
422 * Same as one finger, except report of more than 3 fingers: in elantech_report_absolute_v2()
426 fingers = 4; in elantech_report_absolute_v2()
470 input_report_key(dev, BTN_TOUCH, fingers != 0); in elantech_report_absolute_v2()
471 if (fingers != 0) { in elantech_report_absolute_v2()
475 elantech_report_semi_mt_data(dev, fingers, x1, y1, x2, y2); in elantech_report_absolute_v2()
476 input_report_key(dev, BTN_TOOL_FINGER, fingers == 1); in elantech_report_absolute_v2()
477 input_report_key(dev, BTN_TOOL_DOUBLETAP, fingers == 2); in elantech_report_absolute_v2()
478 input_report_key(dev, BTN_TOOL_TRIPLETAP, fingers == 3); in elantech_report_absolute_v2()
479 input_report_key(dev, BTN_TOOL_QUADTAP, fingers == 4); in elantech_report_absolute_v2()
556 * hardware version 3. (12 byte packets for two fingers)
564 unsigned int fingers = 0, x1 = 0, y1 = 0, x2 = 0, y2 = 0; in elantech_report_absolute_v3() local
568 fingers = (packet[0] & 0xc0) >> 6; in elantech_report_absolute_v3()
570 switch (fingers) { in elantech_report_absolute_v3()
615 input_report_key(dev, BTN_TOUCH, fingers != 0); in elantech_report_absolute_v3()
616 if (fingers != 0) { in elantech_report_absolute_v3()
620 elantech_report_semi_mt_data(dev, fingers, x1, y1, x2, y2); in elantech_report_absolute_v3()
621 input_report_key(dev, BTN_TOOL_FINGER, fingers == 1); in elantech_report_absolute_v3()
622 input_report_key(dev, BTN_TOOL_DOUBLETAP, fingers == 2); in elantech_report_absolute_v3()
623 input_report_key(dev, BTN_TOOL_TRIPLETAP, fingers == 3); in elantech_report_absolute_v3()
657 unsigned fingers; in process_packet_status_v4() local
661 fingers = packet[1] & 0x1f; in process_packet_status_v4()
663 if ((fingers & (1 << i)) == 0) { in process_packet_status_v4()
717 * Motion packets give us the delta of x, y values of specific fingers, in process_packet_motion_v4()
1235 /* Multitouch capable pad, up to 5 fingers. */ in elantech_set_input_params()