Lines Matching refs:packet

309 static bool hgpk_is_byte_valid(struct psmouse *psmouse, unsigned char *packet)  in hgpk_is_byte_valid()  argument
317 valid = (packet[0] & 0x0C) == 0x08; in hgpk_is_byte_valid()
322 packet[0] == HGPK_GS : !(packet[pktcnt - 1] & 0x80); in hgpk_is_byte_valid()
327 packet[0] == HGPK_PT : !(packet[pktcnt - 1] & 0x80); in hgpk_is_byte_valid()
338 priv->mode, pktcnt, 6, psmouse->packet); in hgpk_is_byte_valid()
347 unsigned char *packet = psmouse->packet; in hgpk_process_advanced_packet() local
348 int down = !!(packet[2] & 2); in hgpk_process_advanced_packet()
349 int left = !!(packet[3] & 1); in hgpk_process_advanced_packet()
350 int right = !!(packet[3] & 2); in hgpk_process_advanced_packet()
351 int x = packet[1] | ((packet[2] & 0x78) << 4); in hgpk_process_advanced_packet()
352 int y = packet[4] | ((packet[3] & 0x70) << 3); in hgpk_process_advanced_packet()
355 int pt_down = !!(packet[2] & 1); in hgpk_process_advanced_packet()
356 int finger_down = !!(packet[2] & 2); in hgpk_process_advanced_packet()
357 int z = packet[5]; in hgpk_process_advanced_packet()
431 unsigned char *packet = psmouse->packet; in hgpk_process_simple_packet() local
432 int left = packet[0] & 1; in hgpk_process_simple_packet()
433 int right = (packet[0] >> 1) & 1; in hgpk_process_simple_packet()
434 int x = packet[1] - ((packet[0] << 4) & 0x100); in hgpk_process_simple_packet()
435 int y = ((packet[0] << 3) & 0x100) - packet[2]; in hgpk_process_simple_packet()
437 if (packet[0] & 0xc0) in hgpk_process_simple_packet()
440 packet[0], packet[1], packet[2]); in hgpk_process_simple_packet()
467 if (!hgpk_is_byte_valid(psmouse, psmouse->packet)) in hgpk_process_byte()