Lines Matching full:touch
50 /* Touch type */
157 static void mms114_process_mt(struct mms114_data *data, struct mms114_touch *touch) in mms114_process_mt() argument
165 if (touch->id > MMS114_MAX_TOUCH) { in mms114_process_mt()
166 dev_err(&client->dev, "Wrong touch id (%d)\n", touch->id); in mms114_process_mt()
170 if (touch->type != MMS114_TYPE_TOUCHSCREEN) { in mms114_process_mt()
171 dev_err(&client->dev, "Wrong touch type (%d)\n", touch->type); in mms114_process_mt()
175 id = touch->id - 1; in mms114_process_mt()
176 x = touch->x_lo | touch->x_hi << 8; in mms114_process_mt()
177 y = touch->y_lo | touch->y_hi << 8; in mms114_process_mt()
181 id, touch->type, touch->pressed, in mms114_process_mt()
182 x, y, touch->width, touch->strength); in mms114_process_mt()
185 input_mt_report_slot_state(input_dev, MT_TOOL_FINGER, touch->pressed); in mms114_process_mt()
187 if (touch->pressed) { in mms114_process_mt()
189 input_report_abs(input_dev, ABS_MT_TOUCH_MAJOR, touch->width); in mms114_process_mt()
190 input_report_abs(input_dev, ABS_MT_PRESSURE, touch->strength); in mms114_process_mt()
198 struct mms114_touch touch[MMS114_MAX_TOUCH]; in mms114_interrupt() local
222 (u8 *)touch); in mms114_interrupt()
227 mms114_process_mt(data, touch + index); in mms114_interrupt()
568 /* Release all touch */ in mms114_suspend()