Lines Matching refs:tp_dev
508 struct input_dev *tp_dev = etd->tp_dev; in elantech_report_trackpoint() local
536 psmouse_report_standard_buttons(tp_dev, packet[0]); in elantech_report_trackpoint()
538 input_report_rel(tp_dev, REL_X, x); in elantech_report_trackpoint()
539 input_report_rel(tp_dev, REL_Y, y); in elantech_report_trackpoint()
541 input_sync(tp_dev); in elantech_report_trackpoint()
882 if (etd->tp_dev && (packet[3] & 0x0f) == 0x06) in elantech_packet_check_v4()
1471 if (etd->tp_dev) in elantech_disconnect()
1472 input_unregister_device(etd->tp_dev); in elantech_disconnect()
2075 struct input_dev *tp_dev; in elantech_setup_ps2() local
2113 tp_dev = input_allocate_device(); in elantech_setup_ps2()
2115 if (!tp_dev) { in elantech_setup_ps2()
2120 etd->tp_dev = tp_dev; in elantech_setup_ps2()
2123 tp_dev->phys = etd->tp_phys; in elantech_setup_ps2()
2124 tp_dev->name = "ETPS/2 Elantech TrackPoint"; in elantech_setup_ps2()
2125 tp_dev->id.bustype = BUS_I8042; in elantech_setup_ps2()
2126 tp_dev->id.vendor = 0x0002; in elantech_setup_ps2()
2127 tp_dev->id.product = PSMOUSE_ELANTECH; in elantech_setup_ps2()
2128 tp_dev->id.version = 0x0000; in elantech_setup_ps2()
2129 tp_dev->dev.parent = &psmouse->ps2dev.serio->dev; in elantech_setup_ps2()
2130 tp_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REL); in elantech_setup_ps2()
2131 tp_dev->relbit[BIT_WORD(REL_X)] = in elantech_setup_ps2()
2133 tp_dev->keybit[BIT_WORD(BTN_LEFT)] = in elantech_setup_ps2()
2137 __set_bit(INPUT_PROP_POINTER, tp_dev->propbit); in elantech_setup_ps2()
2138 __set_bit(INPUT_PROP_POINTING_STICK, tp_dev->propbit); in elantech_setup_ps2()
2140 error = input_register_device(etd->tp_dev); in elantech_setup_ps2()
2153 input_free_device(tp_dev); in elantech_setup_ps2()