Lines Matching refs:dev2
23 struct input_dev *dev2; /* Relative device */ member
136 struct input_dev *dev2 = priv ? priv->dev2 : NULL; in lifebook_process_byte() local
169 if (!dev2) in lifebook_process_byte()
188 if (dev2) { in lifebook_process_byte()
190 psmouse_report_standard_motion(dev2, packet); in lifebook_process_byte()
192 psmouse_report_standard_buttons(dev2, packet[0]); in lifebook_process_byte()
193 input_sync(dev2); in lifebook_process_byte()
247 input_unregister_device(priv->dev2); in lifebook_disconnect()
272 struct input_dev *dev2; in lifebook_create_relative_device() local
277 dev2 = input_allocate_device(); in lifebook_create_relative_device()
278 if (!priv || !dev2) in lifebook_create_relative_device()
281 priv->dev2 = dev2; in lifebook_create_relative_device()
285 dev2->phys = priv->phys; in lifebook_create_relative_device()
286 dev2->name = "LBPS/2 Fujitsu Lifebook Touchpad"; in lifebook_create_relative_device()
287 dev2->id.bustype = BUS_I8042; in lifebook_create_relative_device()
288 dev2->id.vendor = 0x0002; in lifebook_create_relative_device()
289 dev2->id.product = PSMOUSE_LIFEBOOK; in lifebook_create_relative_device()
290 dev2->id.version = 0x0000; in lifebook_create_relative_device()
291 dev2->dev.parent = &psmouse->ps2dev.serio->dev; in lifebook_create_relative_device()
293 input_set_capability(dev2, EV_REL, REL_X); in lifebook_create_relative_device()
294 input_set_capability(dev2, EV_REL, REL_Y); in lifebook_create_relative_device()
295 input_set_capability(dev2, EV_KEY, BTN_LEFT); in lifebook_create_relative_device()
296 input_set_capability(dev2, EV_KEY, BTN_RIGHT); in lifebook_create_relative_device()
298 error = input_register_device(priv->dev2); in lifebook_create_relative_device()
306 input_free_device(dev2); in lifebook_create_relative_device()