Lines Matching refs:input_report_key
38 input_report_key(input, wacom->tool[0], 1); in wacom_penpartner_irq()
43 input_report_key(input, BTN_TOUCH, ((signed char)data[6] > -127)); in wacom_penpartner_irq()
44 input_report_key(input, BTN_STYLUS, (data[5] & 0x40)); in wacom_penpartner_irq()
46 input_report_key(input, wacom->tool[0], 0); in wacom_penpartner_irq()
49 input_report_key(input, BTN_TOUCH, 0); in wacom_penpartner_irq()
54 input_report_key(input, BTN_TOOL_PEN, 1); in wacom_penpartner_irq()
59 input_report_key(input, BTN_TOUCH, ((signed char)data[6] > -80) && !(data[5] & 0x20)); in wacom_penpartner_irq()
60 input_report_key(input, BTN_STYLUS, (data[5] & 0x40)); in wacom_penpartner_irq()
109 input_report_key(input, wacom->tool[1], 0); in wacom_pl_irq()
120 input_report_key(input, wacom->tool[1], prox); /* report in proximity for tool */ in wacom_pl_irq()
126 input_report_key(input, BTN_TOUCH, data[4] & 0x08); in wacom_pl_irq()
127 input_report_key(input, BTN_STYLUS, data[4] & 0x10); in wacom_pl_irq()
129 input_report_key(input, BTN_STYLUS2, (wacom->tool[1] == BTN_TOOL_PEN) && (data[4] & 0x20)); in wacom_pl_irq()
136 input_report_key(input, wacom->tool[1], prox); in wacom_pl_irq()
154 input_report_key(input, BTN_TOOL_RUBBER, data[1] & 0x20); in wacom_ptu_irq()
155 input_report_key(input, BTN_TOUCH, data[1] & 0x08); in wacom_ptu_irq()
158 input_report_key(input, BTN_TOOL_PEN, data[1] & 0x20); in wacom_ptu_irq()
159 input_report_key(input, BTN_TOUCH, data[1] & 0x01); in wacom_ptu_irq()
166 input_report_key(input, BTN_STYLUS, data[1] & 0x02); in wacom_ptu_irq()
167 input_report_key(input, BTN_STYLUS2, data[1] & 0x10); in wacom_ptu_irq()
188 input_report_key(input, BTN_STYLUS, data[1] & 0x02); in wacom_dtu_irq()
189 input_report_key(input, BTN_STYLUS2, data[1] & 0x10); in wacom_dtu_irq()
196 input_report_key(input, BTN_TOUCH, data[1] & 0x05); in wacom_dtu_irq()
199 input_report_key(input, wacom->tool[0], prox); in wacom_dtu_irq()
234 input_report_key(input, BTN_MIDDLE, data[1] & 0x04); in wacom_graphire_irq()
247 input_report_key(input, BTN_TOUCH, data[1] & 0x01); in wacom_graphire_irq()
248 input_report_key(input, BTN_STYLUS, data[1] & 0x02); in wacom_graphire_irq()
249 input_report_key(input, BTN_STYLUS2, data[1] & 0x04); in wacom_graphire_irq()
251 input_report_key(input, BTN_LEFT, data[1] & 0x01); in wacom_graphire_irq()
252 input_report_key(input, BTN_RIGHT, data[1] & 0x02); in wacom_graphire_irq()
267 input_report_key(input, wacom->tool[0], prox); in wacom_graphire_irq()
278 input_report_key(input, BTN_BACK, (data[7] & 0x40)); in wacom_graphire_irq()
279 input_report_key(input, BTN_FORWARD, (data[7] & 0x80)); in wacom_graphire_irq()
294 input_report_key(input, BTN_BACK, (data[7] & 0x08)); in wacom_graphire_irq()
295 input_report_key(input, BTN_LEFT, (data[7] & 0x20)); in wacom_graphire_irq()
296 input_report_key(input, BTN_FORWARD, (data[7] & 0x10)); in wacom_graphire_irq()
297 input_report_key(input, BTN_RIGHT, (data[7] & 0x40)); in wacom_graphire_irq()
419 input_report_key(input, BTN_LEFT, 0); in wacom_intuos_inout()
420 input_report_key(input, BTN_MIDDLE, 0); in wacom_intuos_inout()
421 input_report_key(input, BTN_RIGHT, 0); in wacom_intuos_inout()
422 input_report_key(input, BTN_SIDE, 0); in wacom_intuos_inout()
423 input_report_key(input, BTN_EXTRA, 0); in wacom_intuos_inout()
428 input_report_key(input, BTN_STYLUS, 0); in wacom_intuos_inout()
429 input_report_key(input, BTN_STYLUS2, 0); in wacom_intuos_inout()
430 input_report_key(input, BTN_TOUCH, 0); in wacom_intuos_inout()
435 input_report_key(input, wacom->tool[idx], 0); in wacom_intuos_inout()
462 input_report_key(input, BTN_STYLUS, data[1] & 2); in wacom_intuos_general()
463 input_report_key(input, BTN_STYLUS2, data[1] & 4); in wacom_intuos_general()
464 input_report_key(input, BTN_TOUCH, t > 10); in wacom_intuos_general()
498 input_report_key(input, BTN_0, (data[2] & 0x01)); in wacom_intuos_irq()
499 input_report_key(input, BTN_1, (data[3] & 0x01)); in wacom_intuos_irq()
500 input_report_key(input, BTN_2, (data[3] & 0x02)); in wacom_intuos_irq()
501 input_report_key(input, BTN_3, (data[3] & 0x04)); in wacom_intuos_irq()
502 input_report_key(input, BTN_4, (data[3] & 0x08)); in wacom_intuos_irq()
503 input_report_key(input, BTN_5, (data[3] & 0x10)); in wacom_intuos_irq()
504 input_report_key(input, BTN_6, (data[3] & 0x20)); in wacom_intuos_irq()
512 input_report_key(input, BTN_7, (data[3] & 0x40)); in wacom_intuos_irq()
513 input_report_key(input, BTN_8, (data[3] & 0x80)); in wacom_intuos_irq()
516 input_report_key(input, wacom->tool[1], 1); in wacom_intuos_irq()
519 input_report_key(input, wacom->tool[1], 0); in wacom_intuos_irq()
523 input_report_key(input, BTN_0, (data[6] & 0x01)); in wacom_intuos_irq()
524 input_report_key(input, BTN_1, (data[6] & 0x02)); in wacom_intuos_irq()
525 input_report_key(input, BTN_2, (data[6] & 0x04)); in wacom_intuos_irq()
526 input_report_key(input, BTN_3, (data[6] & 0x08)); in wacom_intuos_irq()
527 input_report_key(input, BTN_4, (data[6] & 0x10)); in wacom_intuos_irq()
528 input_report_key(input, BTN_5, (data[6] & 0x20)); in wacom_intuos_irq()
529 input_report_key(input, BTN_6, (data[6] & 0x40)); in wacom_intuos_irq()
530 input_report_key(input, BTN_7, (data[6] & 0x80)); in wacom_intuos_irq()
531 input_report_key(input, BTN_8, (data[8] & 0x01)); in wacom_intuos_irq()
532 input_report_key(input, BTN_9, (data[8] & 0x02)); in wacom_intuos_irq()
533 input_report_key(input, BTN_A, (data[8] & 0x04)); in wacom_intuos_irq()
534 input_report_key(input, BTN_B, (data[8] & 0x08)); in wacom_intuos_irq()
535 input_report_key(input, BTN_C, (data[8] & 0x10)); in wacom_intuos_irq()
536 input_report_key(input, BTN_X, (data[8] & 0x20)); in wacom_intuos_irq()
537 input_report_key(input, BTN_Y, (data[8] & 0x40)); in wacom_intuos_irq()
538 input_report_key(input, BTN_Z, (data[8] & 0x80)); in wacom_intuos_irq()
547 input_report_key(input, KEY_PROG1, data[4] & 0x07); in wacom_intuos_irq()
548 input_report_key(input, KEY_PROG2, data[4] & 0xE0); in wacom_intuos_irq()
549 input_report_key(input, KEY_PROG3, data[3] & 0x1C); in wacom_intuos_irq()
566 input_report_key(input, wacom->tool[1], 1); in wacom_intuos_irq()
569 input_report_key(input, wacom->tool[1], 0); in wacom_intuos_irq()
574 input_report_key(input, BTN_0, (data[5] & 0x01)); in wacom_intuos_irq()
575 input_report_key(input, BTN_1, (data[6] & 0x01)); in wacom_intuos_irq()
576 input_report_key(input, BTN_2, (data[6] & 0x02)); in wacom_intuos_irq()
577 input_report_key(input, BTN_3, (data[6] & 0x04)); in wacom_intuos_irq()
578 input_report_key(input, BTN_4, (data[6] & 0x08)); in wacom_intuos_irq()
579 input_report_key(input, BTN_5, (data[6] & 0x10)); in wacom_intuos_irq()
580 input_report_key(input, BTN_6, (data[6] & 0x20)); in wacom_intuos_irq()
581 input_report_key(input, BTN_7, (data[6] & 0x40)); in wacom_intuos_irq()
582 input_report_key(input, BTN_8, (data[6] & 0x80)); in wacom_intuos_irq()
583 input_report_key(input, BTN_9, (data[7] & 0x01)); in wacom_intuos_irq()
584 input_report_key(input, BTN_A, (data[8] & 0x01)); in wacom_intuos_irq()
585 input_report_key(input, BTN_B, (data[8] & 0x02)); in wacom_intuos_irq()
586 input_report_key(input, BTN_C, (data[8] & 0x04)); in wacom_intuos_irq()
587 input_report_key(input, BTN_X, (data[8] & 0x08)); in wacom_intuos_irq()
588 input_report_key(input, BTN_Y, (data[8] & 0x10)); in wacom_intuos_irq()
589 input_report_key(input, BTN_Z, (data[8] & 0x20)); in wacom_intuos_irq()
590 input_report_key(input, BTN_BASE, (data[8] & 0x40)); in wacom_intuos_irq()
591 input_report_key(input, BTN_BASE2, (data[8] & 0x80)); in wacom_intuos_irq()
593 input_report_key(input, BTN_0, (data[5] & 0x01)); in wacom_intuos_irq()
594 input_report_key(input, BTN_1, (data[5] & 0x02)); in wacom_intuos_irq()
595 input_report_key(input, BTN_2, (data[5] & 0x04)); in wacom_intuos_irq()
596 input_report_key(input, BTN_3, (data[5] & 0x08)); in wacom_intuos_irq()
597 input_report_key(input, BTN_4, (data[6] & 0x01)); in wacom_intuos_irq()
598 input_report_key(input, BTN_5, (data[6] & 0x02)); in wacom_intuos_irq()
599 input_report_key(input, BTN_6, (data[6] & 0x04)); in wacom_intuos_irq()
600 input_report_key(input, BTN_7, (data[6] & 0x08)); in wacom_intuos_irq()
601 input_report_key(input, BTN_8, (data[5] & 0x10)); in wacom_intuos_irq()
602 input_report_key(input, BTN_9, (data[6] & 0x10)); in wacom_intuos_irq()
610 input_report_key(input, wacom->tool[1], 1); in wacom_intuos_irq()
613 input_report_key(input, wacom->tool[1], 0); in wacom_intuos_irq()
677 input_report_key(input, BTN_LEFT, data[8] & 0x01); in wacom_intuos_irq()
678 input_report_key(input, BTN_MIDDLE, data[8] & 0x02); in wacom_intuos_irq()
679 input_report_key(input, BTN_RIGHT, data[8] & 0x04); in wacom_intuos_irq()
681 input_report_key(input, BTN_SIDE, data[8] & 0x20); in wacom_intuos_irq()
682 input_report_key(input, BTN_EXTRA, data[8] & 0x10); in wacom_intuos_irq()
689 input_report_key(input, BTN_LEFT, data[6] & 0x01); in wacom_intuos_irq()
690 input_report_key(input, BTN_MIDDLE, data[6] & 0x02); in wacom_intuos_irq()
691 input_report_key(input, BTN_RIGHT, data[6] & 0x04); in wacom_intuos_irq()
694 input_report_key(input, BTN_SIDE, data[6] & 0x08); in wacom_intuos_irq()
695 input_report_key(input, BTN_EXTRA, data[6] & 0x10); in wacom_intuos_irq()
702 input_report_key(input, BTN_LEFT, data[8] & 0x04); in wacom_intuos_irq()
703 input_report_key(input, BTN_MIDDLE, data[8] & 0x08); in wacom_intuos_irq()
704 input_report_key(input, BTN_RIGHT, data[8] & 0x10); in wacom_intuos_irq()
710 input_report_key(input, BTN_SIDE, data[8] & 0x40); in wacom_intuos_irq()
711 input_report_key(input, BTN_EXTRA, data[8] & 0x20); in wacom_intuos_irq()
718 input_report_key(input, BTN_LEFT, data[8] & 0x01); in wacom_intuos_irq()
719 input_report_key(input, BTN_MIDDLE, data[8] & 0x02); in wacom_intuos_irq()
720 input_report_key(input, BTN_RIGHT, data[8] & 0x04); in wacom_intuos_irq()
721 input_report_key(input, BTN_SIDE, data[8] & 0x10); in wacom_intuos_irq()
722 input_report_key(input, BTN_EXTRA, data[8] & 0x08); in wacom_intuos_irq()
727 input_report_key(input, wacom->tool[idx], 1); in wacom_intuos_irq()
788 input_report_key(input, BTN_TOUCH, prox); in wacom_tpc_single_touch()
813 input_report_key(input, BTN_STYLUS, data[1] & 0x02); in wacom_tpc_pen()
814 input_report_key(input, BTN_STYLUS2, data[1] & 0x10); in wacom_tpc_pen()
821 input_report_key(input, BTN_TOUCH, data[1] & 0x05); in wacom_tpc_pen()
822 input_report_key(input, wacom->tool[0], prox); in wacom_tpc_pen()
895 input_report_key(input, BTN_LEFT, (data[1] & 0x08) != 0); in wacom_bpt_touch()
896 input_report_key(input, BTN_FORWARD, (data[1] & 0x04) != 0); in wacom_bpt_touch()
897 input_report_key(input, BTN_BACK, (data[1] & 0x02) != 0); in wacom_bpt_touch()
898 input_report_key(input, BTN_RIGHT, (data[1] & 0x01) != 0); in wacom_bpt_touch()
931 input_report_key(input, BTN_LEFT, (data[1] & 0x08) != 0); in wacom_bpt3_button_msg()
932 input_report_key(input, BTN_FORWARD, (data[1] & 0x04) != 0); in wacom_bpt3_button_msg()
933 input_report_key(input, BTN_BACK, (data[1] & 0x02) != 0); in wacom_bpt3_button_msg()
934 input_report_key(input, BTN_RIGHT, (data[1] & 0x01) != 0); in wacom_bpt3_button_msg()
1015 input_report_key(input, BTN_TOUCH, pen); in wacom_bpt_pen()
1016 input_report_key(input, BTN_STYLUS, btn1); in wacom_bpt_pen()
1017 input_report_key(input, BTN_STYLUS2, btn2); in wacom_bpt_pen()
1029 input_report_key(input, wacom->tool[0], prox); /* PEN or RUBBER */ in wacom_bpt_pen()