Lines Matching refs:dev3
1404 struct input_dev *dev3; in alps_register_bare_ps2_mouse() local
1409 if (priv->dev3) in alps_register_bare_ps2_mouse()
1412 dev3 = input_allocate_device(); in alps_register_bare_ps2_mouse()
1413 if (!dev3) { in alps_register_bare_ps2_mouse()
1422 dev3->phys = priv->phys3; in alps_register_bare_ps2_mouse()
1428 dev3->name = "PS/2 ALPS Mouse"; in alps_register_bare_ps2_mouse()
1430 dev3->id.bustype = BUS_I8042; in alps_register_bare_ps2_mouse()
1431 dev3->id.vendor = 0x0002; in alps_register_bare_ps2_mouse()
1432 dev3->id.product = PSMOUSE_PS2; in alps_register_bare_ps2_mouse()
1433 dev3->id.version = 0x0000; in alps_register_bare_ps2_mouse()
1434 dev3->dev.parent = &psmouse->ps2dev.serio->dev; in alps_register_bare_ps2_mouse()
1436 input_set_capability(dev3, EV_REL, REL_X); in alps_register_bare_ps2_mouse()
1437 input_set_capability(dev3, EV_REL, REL_Y); in alps_register_bare_ps2_mouse()
1438 input_set_capability(dev3, EV_KEY, BTN_LEFT); in alps_register_bare_ps2_mouse()
1439 input_set_capability(dev3, EV_KEY, BTN_RIGHT); in alps_register_bare_ps2_mouse()
1440 input_set_capability(dev3, EV_KEY, BTN_MIDDLE); in alps_register_bare_ps2_mouse()
1442 __set_bit(INPUT_PROP_POINTER, dev3->propbit); in alps_register_bare_ps2_mouse()
1444 error = input_register_device(dev3); in alps_register_bare_ps2_mouse()
1449 input_free_device(dev3); in alps_register_bare_ps2_mouse()
1453 priv->dev3 = dev3; in alps_register_bare_ps2_mouse()
1461 priv->dev3 = ERR_PTR(error); in alps_register_bare_ps2_mouse()
1479 } else if (unlikely(IS_ERR_OR_NULL(priv->dev3))) { in alps_report_bare_ps2_packet()
1481 if (!IS_ERR(priv->dev3)) in alps_report_bare_ps2_packet()
1486 dev = priv->dev3; in alps_report_bare_ps2_packet()
2976 if (!IS_ERR_OR_NULL(priv->dev3)) in alps_disconnect()
2977 input_unregister_device(priv->dev3); in alps_disconnect()