Lines Matching defs:packet
114 if (comm->protoBufTail == 3) { /* PS/2 packet received? */
121 if (comm->protoBufTail >= 6) { /* Full packet received */
125 while ((c = XisbRead(comm->buffer)) >= 0); /* If packet is invalid, re-sync */
150 ALPS_process_packet(unsigned char *packet, struct SynapticsHwState *hw)
158 x = (packet[1] & 0x7f) | ((packet[2] & 0x78) << (7 - 3));
159 y = (packet[4] & 0x7f) | ((packet[3] & 0x70) << (7 - 4));
160 z = packet[5];
163 hw->left = packet[3] & 1;
164 hw->right = (packet[3] >> 1) & 1;
182 left |= (packet[2]) & 1;
183 left |= (packet[3]) & 1;
184 right |= (packet[3] >> 1) & 1;
185 if (packet[0] == 0xff) {
186 int back = (packet[3] >> 2) & 1;
187 int forward = (packet[2] >> 2) & 1;
198 left |= (packet[0]) & 1;
199 right |= (packet[0] >> 1) & 1;
200 middle |= (packet[0] >> 2) & 1;
201 middle |= (packet[3] >> 2) & 1;