Lines Matching defs:touchdata
106 static bool ili210x_touchdata_to_coords(const u8 *touchdata,
111 if (!(touchdata[0] & BIT(finger)))
114 *x = get_unaligned_be16(touchdata + 1 + (finger * 4) + 0);
115 *y = get_unaligned_be16(touchdata + 1 + (finger * 4) + 2);
162 static bool ili211x_touchdata_to_coords(const u8 *touchdata,
169 data = get_unaligned_be32(touchdata + 1 + (finger * 4) + 0);
173 *x = ((touchdata[1 + (finger * 4) + 0] & 0xf0) << 4) |
174 touchdata[1 + (finger * 4) + 1];
175 *y = ((touchdata[1 + (finger * 4) + 0] & 0x0f) << 8) |
176 touchdata[1 + (finger * 4) + 2];
195 static bool ili212x_touchdata_to_coords(const u8 *touchdata,
202 val = get_unaligned_be16(touchdata + 3 + (finger * 5) + 0);
207 *y = get_unaligned_be16(touchdata + 3 + (finger * 5) + 2);
270 static bool ili251x_touchdata_to_coords(const u8 *touchdata,
277 val = get_unaligned_be16(touchdata + 1 + (finger * 5) + 0);
282 *y = get_unaligned_be16(touchdata + 1 + (finger * 5) + 2);
283 *z = touchdata[1 + (finger * 5) + 4];
304 static bool ili210x_report_events(struct ili210x *priv, u8 *touchdata)
312 touch = priv->chip->parse_touch_data(touchdata, i, &x, &y, &z);
333 u8 touchdata[ILI210X_DATA_SIZE] = { 0 };
342 error = chip->get_touch_data(client, touchdata);
349 touch = ili210x_report_events(priv, touchdata);
350 keep_polling = chip->continue_polling(touchdata, touch);