Lines Matching refs:abs_dev
74 struct input_dev *abs_dev; member
116 struct input_dev *abs_dev, in vmmouse_report_button() argument
121 if (test_bit(code, abs_dev->key)) in vmmouse_report_button()
122 pref_dev = abs_dev; in vmmouse_report_button()
145 struct input_dev *abs_dev = priv->abs_dev; in vmmouse_report_events() local
189 pref_dev = abs_dev; in vmmouse_report_events()
190 input_report_abs(abs_dev, ABS_X, x); in vmmouse_report_events()
191 input_report_abs(abs_dev, ABS_Y, y); in vmmouse_report_events()
197 vmmouse_report_button(psmouse, abs_dev, rel_dev, in vmmouse_report_events()
200 vmmouse_report_button(psmouse, abs_dev, rel_dev, in vmmouse_report_events()
203 vmmouse_report_button(psmouse, abs_dev, rel_dev, in vmmouse_report_events()
206 input_sync(abs_dev); in vmmouse_report_events()
381 input_unregister_device(priv->abs_dev); in vmmouse_disconnect()
423 struct input_dev *rel_dev = psmouse->dev, *abs_dev; in vmmouse_init() local
432 abs_dev = input_allocate_device(); in vmmouse_init()
433 if (!priv || !abs_dev) { in vmmouse_init()
438 priv->abs_dev = abs_dev; in vmmouse_init()
448 abs_dev->phys = priv->phys; in vmmouse_init()
449 abs_dev->name = priv->dev_name; in vmmouse_init()
450 abs_dev->id.bustype = BUS_I8042; in vmmouse_init()
451 abs_dev->id.vendor = 0x0002; in vmmouse_init()
452 abs_dev->id.product = PSMOUSE_VMMOUSE; in vmmouse_init()
453 abs_dev->id.version = psmouse->model; in vmmouse_init()
454 abs_dev->dev.parent = &psmouse->ps2dev.serio->dev; in vmmouse_init()
457 input_set_capability(abs_dev, EV_KEY, BTN_LEFT); in vmmouse_init()
458 input_set_capability(abs_dev, EV_KEY, BTN_RIGHT); in vmmouse_init()
459 input_set_capability(abs_dev, EV_KEY, BTN_MIDDLE); in vmmouse_init()
460 input_set_capability(abs_dev, EV_ABS, ABS_X); in vmmouse_init()
461 input_set_capability(abs_dev, EV_ABS, ABS_Y); in vmmouse_init()
462 input_set_abs_params(abs_dev, ABS_X, 0, VMMOUSE_MAX_X, 0, 0); in vmmouse_init()
463 input_set_abs_params(abs_dev, ABS_Y, 0, VMMOUSE_MAX_Y, 0, 0); in vmmouse_init()
465 error = input_register_device(priv->abs_dev); in vmmouse_init()
481 input_free_device(abs_dev); in vmmouse_init()