Lines Matching refs:touchdata

85 static bool ili210x_touchdata_to_coords(const u8 *touchdata,  in ili210x_touchdata_to_coords()  argument
90 if (!(touchdata[0] & BIT(finger))) in ili210x_touchdata_to_coords()
93 *x = get_unaligned_be16(touchdata + 1 + (finger * 4) + 0); in ili210x_touchdata_to_coords()
94 *y = get_unaligned_be16(touchdata + 1 + (finger * 4) + 2); in ili210x_touchdata_to_coords()
141 static bool ili211x_touchdata_to_coords(const u8 *touchdata, in ili211x_touchdata_to_coords() argument
148 data = get_unaligned_be32(touchdata + 1 + (finger * 4) + 0); in ili211x_touchdata_to_coords()
152 *x = ((touchdata[1 + (finger * 4) + 0] & 0xf0) << 4) | in ili211x_touchdata_to_coords()
153 touchdata[1 + (finger * 4) + 1]; in ili211x_touchdata_to_coords()
154 *y = ((touchdata[1 + (finger * 4) + 0] & 0x0f) << 8) | in ili211x_touchdata_to_coords()
155 touchdata[1 + (finger * 4) + 2]; in ili211x_touchdata_to_coords()
174 static bool ili212x_touchdata_to_coords(const u8 *touchdata, in ili212x_touchdata_to_coords() argument
181 val = get_unaligned_be16(touchdata + 3 + (finger * 5) + 0); in ili212x_touchdata_to_coords()
186 *y = get_unaligned_be16(touchdata + 3 + (finger * 5) + 2); in ili212x_touchdata_to_coords()
241 static bool ili251x_touchdata_to_coords(const u8 *touchdata, in ili251x_touchdata_to_coords() argument
248 val = get_unaligned_be16(touchdata + 1 + (finger * 5) + 0); in ili251x_touchdata_to_coords()
253 *y = get_unaligned_be16(touchdata + 1 + (finger * 5) + 2); in ili251x_touchdata_to_coords()
254 *z = touchdata[1 + (finger * 5) + 4]; in ili251x_touchdata_to_coords()
275 static bool ili210x_report_events(struct ili210x *priv, u8 *touchdata) in ili210x_report_events() argument
283 touch = priv->chip->parse_touch_data(touchdata, i, &x, &y, &z); in ili210x_report_events()
305 u8 touchdata[ILI210X_DATA_SIZE] = { 0 }; in ili210x_irq() local
311 error = chip->get_touch_data(client, touchdata); in ili210x_irq()
318 touch = ili210x_report_events(priv, touchdata); in ili210x_irq()
319 keep_polling = chip->continue_polling(touchdata, touch); in ili210x_irq()