Lines Matching refs:dev2
154 struct input_dev *dev1, struct input_dev *dev2, in alps_report_buttons() argument
164 dev = test_bit(BTN_LEFT, dev2->key) ? dev2 : dev1; in alps_report_buttons()
167 dev = test_bit(BTN_RIGHT, dev2->key) ? dev2 : dev1; in alps_report_buttons()
170 dev = test_bit(BTN_MIDDLE, dev2->key) ? dev2 : dev1; in alps_report_buttons()
177 input_sync(dev2); in alps_report_buttons()
185 struct input_dev *dev2 = priv->dev2; in alps_process_packet_v1_v2() local
221 input_report_rel(dev2, REL_X, (x > 383 ? (x - 768) : x)); in alps_process_packet_v1_v2()
222 input_report_rel(dev2, REL_Y, -(y > 255 ? (y - 512) : y)); in alps_process_packet_v1_v2()
224 alps_report_buttons(psmouse, dev2, dev, left, right, middle); in alps_process_packet_v1_v2()
226 input_sync(dev2); in alps_process_packet_v1_v2()
230 alps_report_buttons(psmouse, dev, dev2, left, right, middle); in alps_process_packet_v1_v2()
475 struct input_dev *dev = priv->dev2; in alps_process_trackstick_packet_v3()
621 struct input_dev *dev2 = priv->dev2; in alps_process_touchpad_packet_v3_v5() local
703 input_report_key(dev2, BTN_LEFT, f->ts_left); in alps_process_touchpad_packet_v3_v5()
704 input_report_key(dev2, BTN_RIGHT, f->ts_right); in alps_process_touchpad_packet_v3_v5()
705 input_report_key(dev2, BTN_MIDDLE, f->ts_middle); in alps_process_touchpad_packet_v3_v5()
706 input_sync(dev2); in alps_process_touchpad_packet_v3_v5()
735 struct input_dev *dev2 = priv->dev2; in alps_process_packet_v6() local
762 input_report_rel(dev2, REL_X, (char)x / 4); in alps_process_packet_v6()
763 input_report_rel(dev2, REL_Y, -((char)y / 4)); in alps_process_packet_v6()
765 input_report_key(dev2, BTN_LEFT, left); in alps_process_packet_v6()
766 input_report_key(dev2, BTN_RIGHT, right); in alps_process_packet_v6()
767 input_report_key(dev2, BTN_MIDDLE, middle); in alps_process_packet_v6()
769 input_sync(dev2); in alps_process_packet_v6()
998 struct input_dev *dev2 = priv->dev2; in alps_process_trackstick_packet_v7() local
1022 input_report_rel(dev2, REL_X, (char)x / 2); in alps_process_trackstick_packet_v7()
1023 input_report_rel(dev2, REL_Y, -((char)y / 2)); in alps_process_trackstick_packet_v7()
1025 input_report_key(dev2, BTN_LEFT, left); in alps_process_trackstick_packet_v7()
1026 input_report_key(dev2, BTN_RIGHT, right); in alps_process_trackstick_packet_v7()
1027 input_report_key(dev2, BTN_MIDDLE, middle); in alps_process_trackstick_packet_v7()
1029 input_sync(dev2); in alps_process_trackstick_packet_v7()
1069 struct input_dev *dev2 = priv->dev2; in alps_report_bare_ps2_packet() local
1072 alps_report_buttons(psmouse, dev2, psmouse->dev, in alps_report_bare_ps2_packet()
1075 input_report_rel(dev2, REL_X, in alps_report_bare_ps2_packet()
1077 input_report_rel(dev2, REL_Y, in alps_report_bare_ps2_packet()
1080 input_sync(dev2); in alps_report_bare_ps2_packet()
2318 input_unregister_device(priv->dev2); in alps_disconnect()
2352 struct input_dev *dev1 = psmouse->dev, *dev2; in alps_init() local
2355 dev2 = input_allocate_device(); in alps_init()
2356 if (!priv || !dev2) in alps_init()
2359 priv->dev2 = dev2; in alps_init()
2419 dev2->phys = priv->phys; in alps_init()
2420 dev2->name = (priv->flags & ALPS_DUALPOINT) ? in alps_init()
2422 dev2->id.bustype = BUS_I8042; in alps_init()
2423 dev2->id.vendor = 0x0002; in alps_init()
2424 dev2->id.product = PSMOUSE_ALPS; in alps_init()
2425 dev2->id.version = 0x0000; in alps_init()
2426 dev2->dev.parent = &psmouse->ps2dev.serio->dev; in alps_init()
2428 dev2->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REL); in alps_init()
2429 dev2->relbit[BIT_WORD(REL_X)] = BIT_MASK(REL_X) | BIT_MASK(REL_Y); in alps_init()
2430 dev2->keybit[BIT_WORD(BTN_LEFT)] = in alps_init()
2433 __set_bit(INPUT_PROP_POINTER, dev2->propbit); in alps_init()
2435 __set_bit(INPUT_PROP_POINTING_STICK, dev2->propbit); in alps_init()
2437 if (input_register_device(priv->dev2)) in alps_init()
2456 input_free_device(dev2); in alps_init()