Lines Matching refs:query
188 static void parse_touchquery(u8 *data, struct w8001_touch_query *query) in parse_touchquery() argument
190 memset(query, 0, sizeof(*query)); in parse_touchquery()
192 query->panel_res = data[1]; in parse_touchquery()
193 query->sensor_id = data[2] & 0x7; in parse_touchquery()
194 query->capacity_res = data[7]; in parse_touchquery()
196 query->x = data[3] << 9; in parse_touchquery()
197 query->x |= data[4] << 2; in parse_touchquery()
198 query->x |= (data[2] >> 5) & 0x3; in parse_touchquery()
200 query->y = data[5] << 9; in parse_touchquery()
201 query->y |= data[6] << 2; in parse_touchquery()
202 query->y |= (data[2] >> 3) & 0x3; in parse_touchquery()
205 if (!query->x && !query->y) { in parse_touchquery()
206 query->x = 1024; in parse_touchquery()
207 query->y = 1024; in parse_touchquery()
208 if (query->panel_res) in parse_touchquery()
209 query->x = query->y = (1 << query->panel_res); in parse_touchquery()
210 query->panel_res = W8001_TOUCH_RESOLUTION; in parse_touchquery()