Lines Matching defs:packet
7 * TouchScreen detection, absolute mode setting and packet layout is taken from
139 unsigned char *packet = psmouse->packet;
140 bool relative_packet = packet[0] & 0x08;
148 return (packet[0] & 0xf8) == 0x00 ?
153 return ((packet[2] & 0x30) << 2) == (packet[2] & 0xc0) ?
156 return (packet[3] & 0xf8) == 0xc0 ?
159 return (packet[4] & 0xc0) == (packet[2] & 0xc0) ?
162 if (((packet[5] & 0x30) << 2) != (packet[5] & 0xc0))
164 if ((packet[5] & 0xc0) != (packet[1] & 0xc0))
172 printk(KERN_WARNING "lifebook.c: got relative packet "
177 ((packet[1] & 0x3f) << 6) | (packet[2] & 0x3f));
179 4096 - (((packet[4] & 0x3f) << 6) | (packet[5] & 0x3f)));
182 (packet[1] | ((packet[0] & 0x30) << 4)));
184 1024 - (packet[2] | ((packet[0] & 0xC0) << 2)));
186 input_report_key(dev1, BTN_TOUCH, packet[0] & 0x04);
193 ((packet[0] & 0x10) ? packet[1] - 256 : packet[1]));
195 -(int)((packet[0] & 0x20) ? packet[2] - 256 : packet[2]));
197 input_report_key(dev2, BTN_LEFT, packet[0] & 0x01);
198 input_report_key(dev2, BTN_RIGHT, packet[0] & 0x02);
345 * Use packet size = 3 even when using 6-byte protocol because