Lines Matching full:y2
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 */
279 * @y2: the y2 axis measurement
284 static int yas530_measure(struct yas5xx *yas5xx, u16 *t, u16 *x, u16 *y1, u16 *y2) in yas530_measure() argument
330 *y2 = yas530_extract_axis(&data[6]); in yas530_measure()
344 *y2 = yas532_extract_axis(&data[6]); in yas530_measure()
365 * @y2: the y2 axis measurement
368 static int yas537_measure(struct yas5xx *yas5xx, u16 *t, u16 *x, u16 *y1, u16 *y2) in yas537_measure() argument
422 *y2 = xy1y2[2]; in yas537_measure()
505 u16 t_ref, t_comp, t, x, y1, y2; in yas530_get_measure() local
511 ret = yas530_measure(yas5xx, &t, &x, &y1, &y2); in yas530_get_measure()
518 sy2 = yas530_linearize(yas5xx, y2, 2); in yas530_get_measure()
534 * Temperature compensation for x, y1, y2 respectively: in yas530_get_measure()
545 * Break y1 and y2 into y and z, y1 and y2 are apparently encoding in yas530_get_measure()
587 u16 t, x, y1, y2; in yas537_get_measure() local
591 ret = yas537_measure(yas5xx, &t, &x, &y1, &y2); in yas537_get_measure()
603 /* Calculate x, y, z from x, y1, y2 */ in yas537_get_measure()
605 *yo = (y1 - y2) * 1732 / 10; in yas537_get_measure()
606 *zo = (-y1 - y2 + BIT(14)) * 300; in yas537_get_measure()
1196 u16 t, x, y1, y2; in yas530_measure_offsets() local
1225 * as the values for [x, y1, y2]. The value is +/-31 in yas530_measure_offsets()
1239 ret = yas530_measure(yas5xx, &t, &x, &y1, &y2); in yas530_measure_offsets()
1242 dev_dbg(yas5xx->dev, "measurement %d: x=%d, y1=%d, y2=%d\n", in yas530_measure_offsets()
1243 5-i, x, y1, y2); in yas530_measure_offsets()
1247 oy2 = yas530_adjust_offset(oy2, i, center, y2); in yas530_measure_offsets()
1258 dev_info(yas5xx->dev, "discovered hard offsets: x=%d, y1=%d, y2=%d\n", in yas530_measure_offsets()