Lines Matching defs:packet
8 * TouchScreen detection, absolute mode setting and packet layout is taken from
137 u8 *packet = psmouse->packet;
138 bool relative_packet = packet[0] & 0x08;
146 return (packet[0] & 0xf8) == 0x00 ?
151 return ((packet[2] & 0x30) << 2) == (packet[2] & 0xc0) ?
154 return (packet[3] & 0xf8) == 0xc0 ?
157 return (packet[4] & 0xc0) == (packet[2] & 0xc0) ?
160 if (((packet[5] & 0x30) << 2) != (packet[5] & 0xc0))
162 if ((packet[5] & 0xc0) != (packet[1] & 0xc0))
171 "got relative packet but no relative device set up\n");
175 ((packet[1] & 0x3f) << 6) | (packet[2] & 0x3f));
177 4096 - (((packet[4] & 0x3f) << 6) | (packet[5] & 0x3f)));
180 (packet[1] | ((packet[0] & 0x30) << 4)));
182 1024 - (packet[2] | ((packet[0] & 0xC0) << 2)));
184 input_report_key(dev1, BTN_TOUCH, packet[0] & 0x04);
190 psmouse_report_standard_motion(dev2, packet);
192 psmouse_report_standard_buttons(dev2, packet[0]);
346 * Use packet size = 3 even when using 6-byte protocol because