Lines Matching refs:touchdata
107 static bool ili210x_touchdata_to_coords(const u8 *touchdata, in ili210x_touchdata_to_coords() argument
112 if (!(touchdata[0] & BIT(finger))) in ili210x_touchdata_to_coords()
115 *x = get_unaligned_be16(touchdata + 1 + (finger * 4) + 0); in ili210x_touchdata_to_coords()
116 *y = get_unaligned_be16(touchdata + 1 + (finger * 4) + 2); in ili210x_touchdata_to_coords()
163 static bool ili211x_touchdata_to_coords(const u8 *touchdata, in ili211x_touchdata_to_coords() argument
170 data = get_unaligned_be32(touchdata + 1 + (finger * 4) + 0); in ili211x_touchdata_to_coords()
174 *x = ((touchdata[1 + (finger * 4) + 0] & 0xf0) << 4) | in ili211x_touchdata_to_coords()
175 touchdata[1 + (finger * 4) + 1]; in ili211x_touchdata_to_coords()
176 *y = ((touchdata[1 + (finger * 4) + 0] & 0x0f) << 8) | in ili211x_touchdata_to_coords()
177 touchdata[1 + (finger * 4) + 2]; in ili211x_touchdata_to_coords()
196 static bool ili212x_touchdata_to_coords(const u8 *touchdata, in ili212x_touchdata_to_coords() argument
203 val = get_unaligned_be16(touchdata + 3 + (finger * 5) + 0); in ili212x_touchdata_to_coords()
208 *y = get_unaligned_be16(touchdata + 3 + (finger * 5) + 2); in ili212x_touchdata_to_coords()
271 static bool ili251x_touchdata_to_coords(const u8 *touchdata, in ili251x_touchdata_to_coords() argument
278 val = get_unaligned_be16(touchdata + 1 + (finger * 5) + 0); in ili251x_touchdata_to_coords()
283 *y = get_unaligned_be16(touchdata + 1 + (finger * 5) + 2); in ili251x_touchdata_to_coords()
284 *z = touchdata[1 + (finger * 5) + 4]; in ili251x_touchdata_to_coords()
305 static bool ili210x_report_events(struct ili210x *priv, u8 *touchdata) in ili210x_report_events() argument
313 touch = priv->chip->parse_touch_data(touchdata, i, &x, &y, &z); in ili210x_report_events()
335 u8 touchdata[ILI210X_DATA_SIZE] = { 0 }; in ili210x_irq() local
344 error = chip->get_touch_data(client, touchdata); in ili210x_irq()
351 touch = ili210x_report_events(priv, touchdata); in ili210x_irq()
352 keep_polling = chip->continue_polling(touchdata, touch); in ili210x_irq()