Lines Matching refs:packet
38 * Process a PS2++ or PS2T++ packet.
44 u8 *packet = psmouse->packet;
50 * Full packet accumulated, process it
53 if ((packet[0] & 0x48) == 0x48 && (packet[1] & 0x02) == 0x02) {
55 /* Logitech extended packet */
56 switch ((packet[1] >> 4) | (packet[0] & 0x30)) {
61 packet[2] & 0x80 ? REL_HWHEEL : REL_WHEEL,
62 -sign_extend32(packet[2], 3));
63 input_report_key(dev, BTN_SIDE, packet[2] & BIT(4));
64 input_report_key(dev, BTN_EXTRA, packet[2] & BIT(5));
70 input_report_key(dev, BTN_SIDE, packet[2] & BIT(0));
71 input_report_key(dev, BTN_EXTRA, packet[2] & BIT(1));
72 input_report_key(dev, BTN_TASK, packet[2] & BIT(2));
73 input_report_key(dev, BTN_BACK, packet[2] & BIT(3));
74 input_report_key(dev, BTN_FORWARD, packet[2] & BIT(4));
81 packet[2] & 0x08 ? REL_HWHEEL : REL_WHEEL,
82 -sign_extend32(packet[2] >> 4, 3));
83 packet[0] = packet[2] | BIT(3);
88 "Received PS2++ packet #%x, but don't know how to handle.\n",
89 (packet[1] >> 4) | (packet[0] & 0x30));
93 psmouse_report_standard_buttons(dev, packet[0]);
97 psmouse_report_standard_packet(dev, packet);