Lines Matching refs:y1
153 /* Linearization calibration x, y1, y2 */
243 /* On YAS530 the x, y1 and y2 values are 12 bits */
258 /* On YAS532 the x, y1 and y2 values are 13 bits */
278 * @y1: the y1 axis measurement
284 static int yas530_measure(struct yas5xx *yas5xx, u16 *t, u16 *x, u16 *y1, u16 *y2)
329 *y1 = yas530_extract_axis(&data[4]);
343 *y1 = yas532_extract_axis(&data[4]);
364 * @y1: the y1 axis measurement
368 static int yas537_measure(struct yas5xx *yas5xx, u16 *t, u16 *x, u16 *y1, u16 *y2)
420 *y1 = xy1y2[1];
504 u16 t_ref, t_comp, t, x, y1, y2;
505 /* These are signed x, signed y1 etc */
510 ret = yas530_measure(yas5xx, &t, &x, &y1, &y2);
516 sy1 = yas530_linearize(yas5xx, y1, 1);
533 * Temperature compensation for x, y1, y2 respectively:
544 * Break y1 and y2 into y and z, y1 and y2 are apparently encoding
586 u16 t, x, y1, y2;
590 ret = yas537_measure(yas5xx, &t, &x, &y1, &y2);
602 /* Calculate x, y, z from x, y1, y2 */
604 *yo = (y1 - y2) * 1732 / 10;
605 *zo = (-y1 - y2 + BIT(14)) * 300;
1195 u16 t, x, y1, y2;
1224 * as the values for [x, y1, y2]. The value is +/-31
1238 ret = yas530_measure(yas5xx, &t, &x, &y1, &y2);
1241 dev_dbg(yas5xx->dev, "measurement %d: x=%d, y1=%d, y2=%d\n",
1242 5-i, x, y1, y2);
1245 oy1 = yas530_adjust_offset(oy1, i, center, y1);
1257 dev_info(yas5xx->dev, "discovered hard offsets: x=%d, y1=%d, y2=%d\n",