Lines Matching refs:finger
123 struct focaltech_finger_state *finger = &state->fingers[i]; in focaltech_report_state() local
124 bool active = finger->active && finger->valid; in focaltech_report_state()
135 clamped_x = clamp(finger->x, 0U, priv->x_max); in focaltech_report_state()
136 clamped_y = clamp(finger->y, 0U, priv->y_max); in focaltech_report_state()
178 unsigned int finger; in focaltech_process_abs_packet() local
180 finger = (packet[1] >> 4) - 1; in focaltech_process_abs_packet()
181 if (finger >= FOC_MAX_FINGERS) { in focaltech_process_abs_packet()
183 finger); 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()
192 state->fingers[finger].valid = true; in focaltech_process_abs_packet()