Lines Matching refs:touchpad

487 	struct input_dev *touchpad;
852 * For the first byte, bit 0 is set when touchpad button is pressed.
869 input_report_key(sc->touchpad, BTN_LEFT, rd[offset] & 0x0F);
883 input_mt_slot(sc->touchpad, n);
884 input_mt_report_slot_state(sc->touchpad, MT_TOOL_FINGER, active & 0x03);
889 input_report_abs(sc->touchpad, ABS_MT_TOUCH_MAJOR,
891 input_report_abs(sc->touchpad, ABS_MT_TOUCH_MINOR,
893 input_report_abs(sc->touchpad, ABS_MT_ORIENTATION,
895 input_report_abs(sc->touchpad, ABS_MT_POSITION_X, x);
896 input_report_abs(sc->touchpad, ABS_MT_POSITION_Y,
904 input_report_rel(sc->touchpad, REL_X, relx);
905 input_report_rel(sc->touchpad, REL_Y, rely);
913 input_mt_sync_frame(sc->touchpad);
915 input_sync(sc->touchpad);
1015 sc->touchpad = devm_input_allocate_device(&sc->hdev->dev);
1016 if (!sc->touchpad)
1019 input_set_drvdata(sc->touchpad, sc);
1020 sc->touchpad->dev.parent = &sc->hdev->dev;
1021 sc->touchpad->phys = sc->hdev->phys;
1022 sc->touchpad->uniq = sc->hdev->uniq;
1023 sc->touchpad->id.bustype = sc->hdev->bus;
1024 sc->touchpad->id.vendor = sc->hdev->vendor;
1025 sc->touchpad->id.product = sc->hdev->product;
1026 sc->touchpad->id.version = sc->hdev->version;
1039 sc->touchpad->name = name;
1041 /* We map the button underneath the touchpad to BTN_LEFT. */
1042 __set_bit(EV_KEY, sc->touchpad->evbit);
1043 __set_bit(BTN_LEFT, sc->touchpad->keybit);
1044 __set_bit(INPUT_PROP_BUTTONPAD, sc->touchpad->propbit);
1046 input_set_abs_params(sc->touchpad, ABS_MT_POSITION_X, 0, w, 0, 0);
1047 input_set_abs_params(sc->touchpad, ABS_MT_POSITION_Y, 0, h, 0, 0);
1050 input_set_abs_params(sc->touchpad, ABS_MT_TOUCH_MAJOR,
1053 input_set_abs_params(sc->touchpad, ABS_MT_TOUCH_MINOR,
1056 input_set_abs_params(sc->touchpad, ABS_MT_ORIENTATION,
1061 __set_bit(EV_REL, sc->touchpad->evbit);
1064 ret = input_mt_init_slots(sc->touchpad, touch_count, INPUT_MT_POINTER);
1068 ret = input_register_device(sc->touchpad);
2005 * The NSG-MRxU touchpad supports 2 touches and has a