Lines Matching full:y2
101 /* Linearization calibration x, y1, y2 */
151 /* On YAS530 the x, y1 and y2 values are 12 bits */
166 /* On YAS532 the x, y1 and y2 values are 13 bits */
187 * @y2: the y2 axis measurement
190 static int yas5xx_measure(struct yas5xx *yas5xx, u16 *t, u16 *x, u16 *y1, u16 *y2) in yas5xx_measure() argument
235 *y2 = yas530_extract_axis(&data[6]); in yas5xx_measure()
249 *y2 = yas532_extract_axis(&data[6]); in yas5xx_measure()
319 u16 t, x, y1, y2; in yas5xx_get_measure() local
325 ret = yas5xx_measure(yas5xx, &t, &x, &y1, &y2); in yas5xx_get_measure()
332 sy2 = yas5xx_linearize(yas5xx, y2, 2); in yas5xx_get_measure()
335 * Temperature compensation for x, y1, y2 respectively: in yas5xx_get_measure()
346 * Break y1 and y2 into y and z, y1 and y2 are apparently encoding in yas5xx_get_measure()
727 u16 t, x, y1, y2; in yas5xx_meaure_offsets() local
756 * as the values for [x, y1, y2]. The value is +/-31 in yas5xx_meaure_offsets()
770 ret = yas5xx_measure(yas5xx, &t, &x, &y1, &y2); in yas5xx_meaure_offsets()
773 dev_dbg(yas5xx->dev, "measurement %d: x=%d, y1=%d, y2=%d\n", in yas5xx_meaure_offsets()
774 5-i, x, y1, y2); in yas5xx_meaure_offsets()
778 oy2 = yas5xx_adjust_offset(oy2, i, center, y2); in yas5xx_meaure_offsets()
789 dev_info(yas5xx->dev, "discovered hard offsets: x=%d, y1=%d, y2=%d\n", in yas5xx_meaure_offsets()