Lines Matching refs:coords
142 struct wsmouse_calibcoords coords;
145 if (do_calibration(dispdev_name, &tp, &coords) < 0) {
150 replace_data(&data, tp.id, &coords);
258 struct wsmouse_calibcoords *coords)
270 memset(coords, 0, sizeof(*coords));
271 coords->minx = 0;
272 coords->miny = 0;
273 coords->maxx = fb.conf.hf_width - 1;
274 coords->maxy = fb.conf.hf_height - 1;
275 coords->samplelen = 5;
282 coords->samples[0].x = fb.conf.hf_width/2;
283 coords->samples[0].y = fb.conf.hf_height/2;
286 coords->samples[1].x = xm;
287 coords->samples[1].y = ym;
290 coords->samples[2].x = xm;
291 coords->samples[2].y = fb.conf.hf_height - ym;
294 coords->samples[3].x = fb.conf.hf_width - xm;
295 coords->samples[3].y = fb.conf.hf_height - ym;
298 coords->samples[4].x = fb.conf.hf_width - xm;
299 coords->samples[4].y = ym;
303 for (i = 0; i < coords->samplelen; i++) {
305 coords->samples[i].x,
306 coords->samples[i].y,
319 coords->samples[i].rawx = x;
320 coords->samples[i].rawy = y;
322 coords->samples[i].x,
323 coords->samples[i].y,