Lines Matching full:touch
49 /* Touch type */
154 static void mms114_process_mt(struct mms114_data *data, struct mms114_touch *touch) in mms114_process_mt() argument
162 if (touch->id > MMS114_MAX_TOUCH) { in mms114_process_mt()
163 dev_err(&client->dev, "Wrong touch id (%d)\n", touch->id); in mms114_process_mt()
167 if (touch->type != MMS114_TYPE_TOUCHSCREEN) { in mms114_process_mt()
168 dev_err(&client->dev, "Wrong touch type (%d)\n", touch->type); in mms114_process_mt()
172 id = touch->id - 1; in mms114_process_mt()
173 x = touch->x_lo | touch->x_hi << 8; in mms114_process_mt()
174 y = touch->y_lo | touch->y_hi << 8; in mms114_process_mt()
178 id, touch->type, touch->pressed, in mms114_process_mt()
179 x, y, touch->width, touch->strength); in mms114_process_mt()
182 input_mt_report_slot_state(input_dev, MT_TOOL_FINGER, touch->pressed); in mms114_process_mt()
184 if (touch->pressed) { in mms114_process_mt()
186 input_report_abs(input_dev, ABS_MT_TOUCH_MAJOR, touch->width); in mms114_process_mt()
187 input_report_abs(input_dev, ABS_MT_PRESSURE, touch->strength); in mms114_process_mt()
195 struct mms114_touch touch[MMS114_MAX_TOUCH]; in mms114_interrupt() local
215 (u8 *)touch); in mms114_interrupt()
220 mms114_process_mt(data, touch + index); in mms114_interrupt()
557 /* Release all touch */ in mms114_suspend()