Lines Matching refs:packet
150 unsigned char *packet) in focaltech_process_touch_packet() argument
154 unsigned char fingers = packet[1]; in focaltech_process_touch_packet()
157 state->pressed = (packet[0] >> 4) & 1; in focaltech_process_touch_packet()
174 unsigned char *packet) in focaltech_process_abs_packet() argument
180 finger = (packet[1] >> 4) - 1; in focaltech_process_abs_packet()
187 state->pressed = (packet[0] >> 4) & 1; in focaltech_process_abs_packet()
189 state->fingers[finger].x = ((packet[1] & 0xf) << 8) | packet[2]; in focaltech_process_abs_packet()
190 state->fingers[finger].y = (packet[3] << 8) | packet[4]; in focaltech_process_abs_packet()
191 state->width = packet[5] >> 4; in focaltech_process_abs_packet()
196 unsigned char *packet) in focaltech_process_rel_packet() argument
202 state->pressed = packet[0] >> 7; in focaltech_process_rel_packet()
203 finger1 = ((packet[0] >> 4) & 0x7) - 1; in focaltech_process_rel_packet()
205 state->fingers[finger1].x += (char)packet[1]; in focaltech_process_rel_packet()
206 state->fingers[finger1].y += (char)packet[2]; in focaltech_process_rel_packet()
219 finger2 = ((packet[3] >> 4) & 0x7) - 1; in focaltech_process_rel_packet()
221 state->fingers[finger2].x += (char)packet[4]; in focaltech_process_rel_packet()
222 state->fingers[finger2].y += (char)packet[5]; in focaltech_process_rel_packet()
228 unsigned char *packet = psmouse->packet; in focaltech_process_packet() local
230 switch (packet[0] & 0xf) { in focaltech_process_packet()
232 focaltech_process_touch_packet(psmouse, packet); in focaltech_process_packet()
236 focaltech_process_abs_packet(psmouse, packet); in focaltech_process_packet()
240 focaltech_process_rel_packet(psmouse, packet); in focaltech_process_packet()
244 psmouse_err(psmouse, "Unknown packet type: %02x\n", packet[0]); in focaltech_process_packet()