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