Lines Matching refs:dev2
25 struct input_dev *dev2; /* Relative device */ member
138 struct input_dev *dev2 = priv ? priv->dev2 : NULL; in lifebook_process_byte() local
171 if (!dev2) in lifebook_process_byte()
190 if (dev2) { in lifebook_process_byte()
192 input_report_rel(dev2, REL_X, in lifebook_process_byte()
194 input_report_rel(dev2, REL_Y, in lifebook_process_byte()
197 input_report_key(dev2, BTN_LEFT, packet[0] & 0x01); in lifebook_process_byte()
198 input_report_key(dev2, BTN_RIGHT, packet[0] & 0x02); in lifebook_process_byte()
199 input_sync(dev2); in lifebook_process_byte()
251 input_unregister_device(priv->dev2); in lifebook_disconnect()
276 struct input_dev *dev2; in lifebook_create_relative_device() local
281 dev2 = input_allocate_device(); in lifebook_create_relative_device()
282 if (!priv || !dev2) in lifebook_create_relative_device()
285 priv->dev2 = dev2; in lifebook_create_relative_device()
289 dev2->phys = priv->phys; in lifebook_create_relative_device()
290 dev2->name = "PS/2 Touchpad"; in lifebook_create_relative_device()
291 dev2->id.bustype = BUS_I8042; in lifebook_create_relative_device()
292 dev2->id.vendor = 0x0002; in lifebook_create_relative_device()
293 dev2->id.product = PSMOUSE_LIFEBOOK; in lifebook_create_relative_device()
294 dev2->id.version = 0x0000; in lifebook_create_relative_device()
295 dev2->dev.parent = &psmouse->ps2dev.serio->dev; in lifebook_create_relative_device()
297 dev2->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REL); in lifebook_create_relative_device()
298 dev2->relbit[BIT_WORD(REL_X)] = BIT_MASK(REL_X) | BIT_MASK(REL_Y); in lifebook_create_relative_device()
299 dev2->keybit[BIT_WORD(BTN_LEFT)] = in lifebook_create_relative_device()
302 error = input_register_device(priv->dev2); in lifebook_create_relative_device()
310 input_free_device(dev2); in lifebook_create_relative_device()