Lines Matching refs:packet
149 unsigned char *packet) in focaltech_process_touch_packet() argument
153 unsigned char fingers = packet[1]; in focaltech_process_touch_packet()
156 state->pressed = (packet[0] >> 4) & 1; in focaltech_process_touch_packet()
173 unsigned char *packet) in focaltech_process_abs_packet() argument
179 finger = (packet[1] >> 4) - 1; in focaltech_process_abs_packet()
186 state->pressed = (packet[0] >> 4) & 1; in focaltech_process_abs_packet()
188 state->fingers[finger].x = ((packet[1] & 0xf) << 8) | packet[2]; in focaltech_process_abs_packet()
189 state->fingers[finger].y = (packet[3] << 8) | packet[4]; in focaltech_process_abs_packet()
194 unsigned char *packet) in focaltech_process_rel_packet() argument
200 state->pressed = packet[0] >> 7; in focaltech_process_rel_packet()
201 finger1 = ((packet[0] >> 4) & 0x7) - 1; in focaltech_process_rel_packet()
203 state->fingers[finger1].x += (char)packet[1]; in focaltech_process_rel_packet()
204 state->fingers[finger1].y += (char)packet[2]; in focaltech_process_rel_packet()
217 finger2 = ((packet[3] >> 4) & 0x7) - 1; in focaltech_process_rel_packet()
219 state->fingers[finger2].x += (char)packet[4]; in focaltech_process_rel_packet()
220 state->fingers[finger2].y += (char)packet[5]; in focaltech_process_rel_packet()
226 unsigned char *packet = psmouse->packet; in focaltech_process_packet() local
228 switch (packet[0] & 0xf) { in focaltech_process_packet()
230 focaltech_process_touch_packet(psmouse, packet); in focaltech_process_packet()
234 focaltech_process_abs_packet(psmouse, packet); in focaltech_process_packet()
238 focaltech_process_rel_packet(psmouse, packet); in focaltech_process_packet()
242 psmouse_err(psmouse, "Unknown packet type: %02x\n", packet[0]); in focaltech_process_packet()