Lines Matching defs:packet
302 static void synaptics_pass_pt_packet(struct serio *ptport, unsigned char *packet)
307 serio_interrupt(ptport, packet[1], 0);
308 serio_interrupt(ptport, packet[4], 0);
309 serio_interrupt(ptport, packet[5], 0);
311 serio_interrupt(ptport, packet[2], 0);
313 serio_interrupt(ptport, packet[1], 0);
435 * called for each full received packet from the touchpad
446 synaptics_parse_hw_state(psmouse->packet, priv, &hw);
531 static int synaptics_validate_byte(unsigned char packet[], int idx, unsigned char pkt_type)
546 return (packet[idx] & newabs_rel_mask[idx]) == newabs_rslt[idx];
549 return (packet[idx] & newabs_mask[idx]) == newabs_rslt[idx];
552 return (packet[idx] & oldabs_mask[idx]) == oldabs_rslt[idx];
555 printk(KERN_ERR "synaptics: unknown packet type %d\n", pkt_type);
565 if (!synaptics_validate_byte(psmouse->packet, i, SYN_NEWABS_STRICT)) {
566 printk(KERN_INFO "synaptics: using relaxed packet validation\n");
577 if (psmouse->pktcnt >= 6) { /* Full packet received */
581 if (SYN_CAP_PASS_THROUGH(priv->capabilities) && synaptics_is_pt_packet(psmouse->packet)) {
583 synaptics_pass_pt_packet(psmouse->ps2dev.serio->child, psmouse->packet);
590 return synaptics_validate_byte(psmouse->packet, psmouse->pktcnt - 1, priv->pkt_type) ?