Lines Matching refs:packet
139 unsigned char *packet = psmouse->packet; in lifebook_process_byte() local
140 bool relative_packet = packet[0] & 0x08; in lifebook_process_byte()
148 return (packet[0] & 0xf8) == 0x00 ? in lifebook_process_byte()
153 return ((packet[2] & 0x30) << 2) == (packet[2] & 0xc0) ? in lifebook_process_byte()
156 return (packet[3] & 0xf8) == 0xc0 ? in lifebook_process_byte()
159 return (packet[4] & 0xc0) == (packet[2] & 0xc0) ? in lifebook_process_byte()
162 if (((packet[5] & 0x30) << 2) != (packet[5] & 0xc0)) in lifebook_process_byte()
164 if ((packet[5] & 0xc0) != (packet[1] & 0xc0)) in lifebook_process_byte()
177 ((packet[1] & 0x3f) << 6) | (packet[2] & 0x3f)); in lifebook_process_byte()
179 4096 - (((packet[4] & 0x3f) << 6) | (packet[5] & 0x3f))); in lifebook_process_byte()
182 (packet[1] | ((packet[0] & 0x30) << 4))); in lifebook_process_byte()
184 1024 - (packet[2] | ((packet[0] & 0xC0) << 2))); in lifebook_process_byte()
186 input_report_key(dev1, BTN_TOUCH, packet[0] & 0x04); in lifebook_process_byte()
193 ((packet[0] & 0x10) ? packet[1] - 256 : packet[1])); in lifebook_process_byte()
195 -(int)((packet[0] & 0x20) ? packet[2] - 256 : packet[2])); in lifebook_process_byte()
197 input_report_key(dev2, BTN_LEFT, packet[0] & 0x01); in lifebook_process_byte()
198 input_report_key(dev2, BTN_RIGHT, packet[0] & 0x02); in lifebook_process_byte()