Lines Matching refs:packet
154 unsigned char *packet) in focaltech_process_touch_packet() argument
158 unsigned char fingers = packet[1]; in focaltech_process_touch_packet()
161 state->pressed = (packet[0] >> 4) & 1; in focaltech_process_touch_packet()
178 unsigned char *packet) in focaltech_process_abs_packet() argument
184 finger = (packet[1] >> 4) - 1; in focaltech_process_abs_packet()
191 state->pressed = (packet[0] >> 4) & 1; in focaltech_process_abs_packet()
193 state->fingers[finger].x = ((packet[1] & 0xf) << 8) | packet[2]; in focaltech_process_abs_packet()
194 state->fingers[finger].y = (packet[3] << 8) | packet[4]; in focaltech_process_abs_packet()
195 state->width = packet[5] >> 4; in focaltech_process_abs_packet()
200 unsigned char *packet) in focaltech_process_rel_packet() argument
206 state->pressed = packet[0] >> 7; in focaltech_process_rel_packet()
207 finger1 = ((packet[0] >> 4) & 0x7) - 1; in focaltech_process_rel_packet()
209 state->fingers[finger1].x += (char)packet[1]; in focaltech_process_rel_packet()
210 state->fingers[finger1].y += (char)packet[2]; in focaltech_process_rel_packet()
223 finger2 = ((packet[3] >> 4) & 0x7) - 1; in focaltech_process_rel_packet()
225 state->fingers[finger2].x += (char)packet[4]; in focaltech_process_rel_packet()
226 state->fingers[finger2].y += (char)packet[5]; in focaltech_process_rel_packet()
232 unsigned char *packet = psmouse->packet; in focaltech_process_packet() local
234 switch (packet[0] & 0xf) { in focaltech_process_packet()
236 focaltech_process_touch_packet(psmouse, packet); in focaltech_process_packet()
240 focaltech_process_abs_packet(psmouse, packet); in focaltech_process_packet()
244 focaltech_process_rel_packet(psmouse, packet); in focaltech_process_packet()
248 psmouse_err(psmouse, "Unknown packet type: %02x\n", packet[0]); in focaltech_process_packet()