Lines Matching refs:query
182 static void parse_touchquery(u8 *data, struct w8001_touch_query *query) in parse_touchquery() argument
184 memset(query, 0, sizeof(*query)); in parse_touchquery()
186 query->panel_res = data[1]; in parse_touchquery()
187 query->sensor_id = data[2] & 0x7; in parse_touchquery()
188 query->capacity_res = data[7]; in parse_touchquery()
190 query->x = data[3] << 9; in parse_touchquery()
191 query->x |= data[4] << 2; in parse_touchquery()
192 query->x |= (data[2] >> 5) & 0x3; in parse_touchquery()
194 query->y = data[5] << 9; in parse_touchquery()
195 query->y |= data[6] << 2; in parse_touchquery()
196 query->y |= (data[2] >> 3) & 0x3; in parse_touchquery()
199 if (!query->x && !query->y) { in parse_touchquery()
200 query->x = 1024; in parse_touchquery()
201 query->y = 1024; in parse_touchquery()
202 if (query->panel_res) in parse_touchquery()
203 query->x = query->y = (1 << query->panel_res); in parse_touchquery()
204 query->panel_res = W8001_TOUCH_RESOLUTION; in parse_touchquery()