Lines Matching refs:touch
144 static void mms114_process_mt(struct mms114_data *data, struct mms114_touch *touch) in mms114_process_mt() argument
153 if (touch->id > MMS114_MAX_TOUCH) { in mms114_process_mt()
154 dev_err(&client->dev, "Wrong touch id (%d)\n", touch->id); in mms114_process_mt()
158 if (touch->type != MMS114_TYPE_TOUCHSCREEN) { in mms114_process_mt()
159 dev_err(&client->dev, "Wrong touch type (%d)\n", touch->type); in mms114_process_mt()
163 id = touch->id - 1; in mms114_process_mt()
164 x = touch->x_lo | touch->x_hi << 8; in mms114_process_mt()
165 y = touch->y_lo | touch->y_hi << 8; in mms114_process_mt()
179 id, touch->type, touch->pressed, in mms114_process_mt()
180 x, y, touch->width, touch->strength); in mms114_process_mt()
183 input_mt_report_slot_state(input_dev, MT_TOOL_FINGER, touch->pressed); in mms114_process_mt()
185 if (touch->pressed) { in mms114_process_mt()
186 input_report_abs(input_dev, ABS_MT_TOUCH_MAJOR, touch->width); in mms114_process_mt()
189 input_report_abs(input_dev, ABS_MT_PRESSURE, touch->strength); in mms114_process_mt()
197 struct mms114_touch touch[MMS114_MAX_TOUCH]; in mms114_interrupt() local
217 (u8 *)touch); in mms114_interrupt()
222 mms114_process_mt(data, touch + index); in mms114_interrupt()