Lines Matching defs:query
71 /* touch query reply packet */
188 static void parse_touchquery(u8 *data, struct w8001_touch_query *query)
190 memset(query, 0, sizeof(*query));
192 query->panel_res = data[1];
193 query->sensor_id = data[2] & 0x7;
194 query->capacity_res = data[7];
196 query->x = data[3] << 9;
197 query->x |= data[4] << 2;
198 query->x |= (data[2] >> 5) & 0x3;
200 query->y = data[5] << 9;
201 query->y |= data[6] << 2;
202 query->y |= (data[2] >> 3) & 0x3;
205 if (!query->x && !query->y) {
206 query->x = 1024;
207 query->y = 1024;
208 if (query->panel_res)
209 query->x = query->y = (1 << query->panel_res);
210 query->panel_res = W8001_TOUCH_RESOLUTION;
476 * Some non-touch devices may reply to the touch query. But their