Lines Matching refs:touchpad
542 struct input_dev *touchpad;
953 /* Second bit of third button byte is for the touchpad button. */
955 input_report_key(sc->touchpad, BTN_LEFT, rd[offset+2] & 0x2);
1111 input_mt_slot(sc->touchpad, n);
1112 input_mt_report_slot_state(sc->touchpad, MT_TOOL_FINGER, active);
1115 input_report_abs(sc->touchpad, ABS_MT_POSITION_X, x);
1116 input_report_abs(sc->touchpad, ABS_MT_POSITION_Y, y);
1121 input_mt_sync_frame(sc->touchpad);
1122 input_sync(sc->touchpad);
1134 * For the first byte, bit 0 is set when touchpad button is pressed.
1151 input_report_key(sc->touchpad, BTN_LEFT, rd[offset] & 0x0F);
1165 input_mt_slot(sc->touchpad, n);
1166 input_mt_report_slot_state(sc->touchpad, MT_TOOL_FINGER, active & 0x03);
1171 input_report_abs(sc->touchpad, ABS_MT_TOUCH_MAJOR,
1173 input_report_abs(sc->touchpad, ABS_MT_TOUCH_MINOR,
1175 input_report_abs(sc->touchpad, ABS_MT_ORIENTATION,
1177 input_report_abs(sc->touchpad, ABS_MT_POSITION_X, x);
1178 input_report_abs(sc->touchpad, ABS_MT_POSITION_Y,
1186 input_report_rel(sc->touchpad, REL_X, relx);
1187 input_report_rel(sc->touchpad, REL_Y, rely);
1195 input_mt_sync_frame(sc->touchpad);
1197 input_sync(sc->touchpad);
1375 sc->touchpad = devm_input_allocate_device(&sc->hdev->dev);
1376 if (!sc->touchpad)
1379 input_set_drvdata(sc->touchpad, sc);
1380 sc->touchpad->dev.parent = &sc->hdev->dev;
1381 sc->touchpad->phys = sc->hdev->phys;
1382 sc->touchpad->uniq = sc->hdev->uniq;
1383 sc->touchpad->id.bustype = sc->hdev->bus;
1384 sc->touchpad->id.vendor = sc->hdev->vendor;
1385 sc->touchpad->id.product = sc->hdev->product;
1386 sc->touchpad->id.version = sc->hdev->version;
1396 sc->touchpad->name = name;
1398 /* We map the button underneath the touchpad to BTN_LEFT. */
1399 __set_bit(EV_KEY, sc->touchpad->evbit);
1400 __set_bit(BTN_LEFT, sc->touchpad->keybit);
1401 __set_bit(INPUT_PROP_BUTTONPAD, sc->touchpad->propbit);
1403 input_set_abs_params(sc->touchpad, ABS_MT_POSITION_X, 0, w, 0, 0);
1404 input_set_abs_params(sc->touchpad, ABS_MT_POSITION_Y, 0, h, 0, 0);
1407 input_set_abs_params(sc->touchpad, ABS_MT_TOUCH_MAJOR,
1410 input_set_abs_params(sc->touchpad, ABS_MT_TOUCH_MINOR,
1413 input_set_abs_params(sc->touchpad, ABS_MT_ORIENTATION,
1418 __set_bit(EV_REL, sc->touchpad->evbit);
1421 ret = input_mt_init_slots(sc->touchpad, touch_count, INPUT_MT_POINTER);
1425 ret = input_register_device(sc->touchpad);
2741 * The Dualshock 4 touchpad supports 2 touches and has a
2777 * The NSG-MRxU touchpad supports 2 touches and has a