Lines Matching refs:touchpad
487 struct input_dev *touchpad; member
869 input_report_key(sc->touchpad, BTN_LEFT, rd[offset] & 0x0F); in nsg_mrxu_parse_report()
883 input_mt_slot(sc->touchpad, n); in nsg_mrxu_parse_report()
884 input_mt_report_slot_state(sc->touchpad, MT_TOOL_FINGER, active & 0x03); in nsg_mrxu_parse_report()
889 input_report_abs(sc->touchpad, ABS_MT_TOUCH_MAJOR, in nsg_mrxu_parse_report()
891 input_report_abs(sc->touchpad, ABS_MT_TOUCH_MINOR, in nsg_mrxu_parse_report()
893 input_report_abs(sc->touchpad, ABS_MT_ORIENTATION, in nsg_mrxu_parse_report()
895 input_report_abs(sc->touchpad, ABS_MT_POSITION_X, x); in nsg_mrxu_parse_report()
896 input_report_abs(sc->touchpad, ABS_MT_POSITION_Y, in nsg_mrxu_parse_report()
904 input_report_rel(sc->touchpad, REL_X, relx); in nsg_mrxu_parse_report()
905 input_report_rel(sc->touchpad, REL_Y, rely); in nsg_mrxu_parse_report()
913 input_mt_sync_frame(sc->touchpad); in nsg_mrxu_parse_report()
915 input_sync(sc->touchpad); in nsg_mrxu_parse_report()
1015 sc->touchpad = devm_input_allocate_device(&sc->hdev->dev); in sony_register_touchpad()
1016 if (!sc->touchpad) in sony_register_touchpad()
1019 input_set_drvdata(sc->touchpad, sc); in sony_register_touchpad()
1020 sc->touchpad->dev.parent = &sc->hdev->dev; in sony_register_touchpad()
1021 sc->touchpad->phys = sc->hdev->phys; in sony_register_touchpad()
1022 sc->touchpad->uniq = sc->hdev->uniq; in sony_register_touchpad()
1023 sc->touchpad->id.bustype = sc->hdev->bus; in sony_register_touchpad()
1024 sc->touchpad->id.vendor = sc->hdev->vendor; in sony_register_touchpad()
1025 sc->touchpad->id.product = sc->hdev->product; in sony_register_touchpad()
1026 sc->touchpad->id.version = sc->hdev->version; in sony_register_touchpad()
1039 sc->touchpad->name = name; in sony_register_touchpad()
1042 __set_bit(EV_KEY, sc->touchpad->evbit); in sony_register_touchpad()
1043 __set_bit(BTN_LEFT, sc->touchpad->keybit); in sony_register_touchpad()
1044 __set_bit(INPUT_PROP_BUTTONPAD, sc->touchpad->propbit); in sony_register_touchpad()
1046 input_set_abs_params(sc->touchpad, ABS_MT_POSITION_X, 0, w, 0, 0); in sony_register_touchpad()
1047 input_set_abs_params(sc->touchpad, ABS_MT_POSITION_Y, 0, h, 0, 0); in sony_register_touchpad()
1050 input_set_abs_params(sc->touchpad, ABS_MT_TOUCH_MAJOR, in sony_register_touchpad()
1053 input_set_abs_params(sc->touchpad, ABS_MT_TOUCH_MINOR, in sony_register_touchpad()
1056 input_set_abs_params(sc->touchpad, ABS_MT_ORIENTATION, in sony_register_touchpad()
1061 __set_bit(EV_REL, sc->touchpad->evbit); in sony_register_touchpad()
1064 ret = input_mt_init_slots(sc->touchpad, touch_count, INPUT_MT_POINTER); in sony_register_touchpad()
1068 ret = input_register_device(sc->touchpad); in sony_register_touchpad()