Lines Matching defs:packet
61 "delay (ms) before recal after packet spew detected");
66 "interval (ms) during which recal will be restarted if packet received");
238 /* we're not spewing, but this packet might be the start */
260 psmouse_warn(psmouse, "packet spew detected (%d,%d)\n",
306 static bool hgpk_is_byte_valid(struct psmouse *psmouse, unsigned char *packet)
314 valid = (packet[0] & 0x0C) == 0x08;
319 packet[0] == HGPK_GS : !(packet[pktcnt - 1] & 0x80);
324 packet[0] == HGPK_PT : !(packet[pktcnt - 1] & 0x80);
335 priv->mode, pktcnt, 6, psmouse->packet);
344 unsigned char *packet = psmouse->packet;
345 int down = !!(packet[2] & 2);
346 int left = !!(packet[3] & 1);
347 int right = !!(packet[3] & 2);
348 int x = packet[1] | ((packet[2] & 0x78) << 4);
349 int y = packet[4] | ((packet[3] & 0x70) << 3);
352 int pt_down = !!(packet[2] & 1);
353 int finger_down = !!(packet[2] & 2);
354 int z = packet[5];
378 * If this packet says that the finger was removed, reset our position
428 unsigned char *packet = psmouse->packet;
429 int left = packet[0] & 1;
430 int right = (packet[0] >> 1) & 1;
431 int x = packet[1] - ((packet[0] << 4) & 0x100);
432 int y = ((packet[0] << 3) & 0x100) - packet[2];
434 if (packet[0] & 0xc0)
437 packet[0], packet[1], packet[2]);
464 if (!hgpk_is_byte_valid(psmouse, psmouse->packet))
478 * ugh, got a packet inside our recalibration
482 "packet inside calibration window, queueing another recalibration\n");