• Home
  • Raw
  • Download

Lines Matching refs:inputdev

289 	struct input_dev *inputdev;		/* input device struct           */  member
416 struct input_dev *inputdev = aiptek->inputdev; in aiptek_irq() local
475 input_report_key(inputdev, BTN_LEFT, left); in aiptek_irq()
476 input_report_key(inputdev, BTN_MIDDLE, middle); in aiptek_irq()
477 input_report_key(inputdev, BTN_RIGHT, right); in aiptek_irq()
479 input_report_abs(inputdev, ABS_MISC, in aiptek_irq()
481 input_report_rel(inputdev, REL_X, x); in aiptek_irq()
482 input_report_rel(inputdev, REL_Y, y); in aiptek_irq()
488 input_report_rel(inputdev, REL_WHEEL, in aiptek_irq()
493 input_report_key(inputdev, in aiptek_irq()
497 input_sync(inputdev); in aiptek_irq()
535 input_report_key(inputdev, in aiptek_irq()
537 input_report_key(inputdev, in aiptek_irq()
545 input_report_abs(inputdev, ABS_X, x); in aiptek_irq()
546 input_report_abs(inputdev, ABS_Y, y); in aiptek_irq()
547 input_report_abs(inputdev, ABS_PRESSURE, z); in aiptek_irq()
549 input_report_key(inputdev, BTN_TOUCH, tip); in aiptek_irq()
550 input_report_key(inputdev, BTN_STYLUS, bs); in aiptek_irq()
551 input_report_key(inputdev, BTN_STYLUS2, pck); in aiptek_irq()
555 input_report_abs(inputdev, in aiptek_irq()
560 input_report_abs(inputdev, in aiptek_irq()
570 input_report_abs(inputdev, in aiptek_irq()
576 input_report_abs(inputdev, ABS_MISC, p | AIPTEK_REPORT_TOOL_STYLUS); in aiptek_irq()
578 input_report_key(inputdev, in aiptek_irq()
582 input_sync(inputdev); in aiptek_irq()
612 input_report_key(inputdev, in aiptek_irq()
614 input_report_key(inputdev, in aiptek_irq()
622 input_report_abs(inputdev, ABS_X, x); in aiptek_irq()
623 input_report_abs(inputdev, ABS_Y, y); in aiptek_irq()
625 input_report_key(inputdev, BTN_LEFT, left); in aiptek_irq()
626 input_report_key(inputdev, BTN_MIDDLE, middle); in aiptek_irq()
627 input_report_key(inputdev, BTN_RIGHT, right); in aiptek_irq()
633 input_report_abs(inputdev, in aiptek_irq()
639 input_report_abs(inputdev, ABS_MISC, p | AIPTEK_REPORT_TOOL_MOUSE); in aiptek_irq()
641 input_report_key(inputdev, in aiptek_irq()
645 input_sync(inputdev); in aiptek_irq()
669 input_report_key(inputdev, in aiptek_irq()
671 input_report_key(inputdev, in aiptek_irq()
680 input_report_key(inputdev, macroKeyEvents[aiptek->lastMacro], 0); in aiptek_irq()
685 input_report_key(inputdev, macroKeyEvents[macro], 1); in aiptek_irq()
688 input_report_abs(inputdev, ABS_MISC, in aiptek_irq()
690 input_sync(inputdev); in aiptek_irq()
710 input_report_key(inputdev, in aiptek_irq()
712 input_report_key(inputdev, in aiptek_irq()
719 input_report_key(inputdev, macroKeyEvents[aiptek->lastMacro], 0); in aiptek_irq()
724 input_report_key(inputdev, macroKeyEvents[macro], 1); in aiptek_irq()
728 input_report_abs(inputdev, ABS_MISC, in aiptek_irq()
730 input_sync(inputdev); in aiptek_irq()
741 input_report_key(inputdev, macroKeyEvents[macro - 1], in aiptek_irq()
745 input_report_key(inputdev, macroKeyEvents[macro + 1], in aiptek_irq()
754 input_report_key(inputdev, in aiptek_irq()
756 input_report_key(inputdev, in aiptek_irq()
763 input_report_key(inputdev, macroKeyEvents[macro], 1); in aiptek_irq()
764 input_report_abs(inputdev, ABS_MISC, in aiptek_irq()
766 input_sync(inputdev); in aiptek_irq()
825 static int aiptek_open(struct input_dev *inputdev) in aiptek_open() argument
827 struct aiptek *aiptek = input_get_drvdata(inputdev); in aiptek_open()
839 static void aiptek_close(struct input_dev *inputdev) in aiptek_close() argument
841 struct aiptek *aiptek = input_get_drvdata(inputdev); in aiptek_close()
975 input_set_abs_params(aiptek->inputdev, ABS_X, 0, ret - 1, 0, 0); in aiptek_program_tablet()
980 input_set_abs_params(aiptek->inputdev, ABS_Y, 0, ret - 1, 0, 0); in aiptek_program_tablet()
985 input_set_abs_params(aiptek->inputdev, ABS_PRESSURE, 0, ret - 1, 0, 0); in aiptek_program_tablet()
1039 input_abs_get_max(aiptek->inputdev, ABS_X) + 1, in show_tabletSize()
1040 input_abs_get_max(aiptek->inputdev, ABS_Y) + 1); in show_tabletSize()
1656 struct input_dev *inputdev; in aiptek_probe() local
1677 inputdev = input_allocate_device(); in aiptek_probe()
1678 if (!aiptek || !inputdev) { in aiptek_probe()
1697 aiptek->inputdev = inputdev; in aiptek_probe()
1743 inputdev->name = "Aiptek"; in aiptek_probe()
1744 inputdev->phys = aiptek->features.usbPath; in aiptek_probe()
1745 usb_to_input_id(usbdev, &inputdev->id); in aiptek_probe()
1746 inputdev->dev.parent = &intf->dev; in aiptek_probe()
1748 input_set_drvdata(inputdev, aiptek); in aiptek_probe()
1750 inputdev->open = aiptek_open; in aiptek_probe()
1751 inputdev->close = aiptek_close; in aiptek_probe()
1757 __set_bit(eventTypes[i], inputdev->evbit); in aiptek_probe()
1760 __set_bit(absEvents[i], inputdev->absbit); in aiptek_probe()
1763 __set_bit(relEvents[i], inputdev->relbit); in aiptek_probe()
1765 __set_bit(MSC_SERIAL, inputdev->mscbit); in aiptek_probe()
1769 __set_bit(buttonEvents[i], inputdev->keybit); in aiptek_probe()
1772 __set_bit(macroKeyEvents[i], inputdev->keybit); in aiptek_probe()
1780 input_set_abs_params(inputdev, ABS_X, 0, 2999, 0, 0); in aiptek_probe()
1781 input_set_abs_params(inputdev, ABS_Y, 0, 2249, 0, 0); in aiptek_probe()
1782 input_set_abs_params(inputdev, ABS_PRESSURE, 0, 511, 0, 0); in aiptek_probe()
1783 input_set_abs_params(inputdev, ABS_TILT_X, AIPTEK_TILT_MIN, AIPTEK_TILT_MAX, 0, 0); in aiptek_probe()
1784 input_set_abs_params(inputdev, ABS_TILT_Y, AIPTEK_TILT_MIN, AIPTEK_TILT_MAX, 0, 0); in aiptek_probe()
1785 input_set_abs_params(inputdev, ABS_WHEEL, AIPTEK_WHEEL_MIN, AIPTEK_WHEEL_MAX - 1, 0, 0); in aiptek_probe()
1822 if (input_abs_get_max(aiptek->inputdev, ABS_X) > 0) { in aiptek_probe()
1845 err = input_register_device(aiptek->inputdev); in aiptek_probe()
1857 input_free_device(inputdev); in aiptek_probe()
1876 input_unregister_device(aiptek->inputdev); in aiptek_disconnect()