Lines Matching full:slope
72 * Use this function on devices where slope and offset calculations
73 * depend on calibration data read from qfprom. On others the slope
74 * and offset values are derived from tz->tzp->slope and tz->tzp->offset
88 priv->sensor[i].slope = SLOPE_DEFAULT; in compute_intercept_slope()
91 * slope (m) = adc_code2 - adc_code1 (y2 - y1)/ in compute_intercept_slope()
97 priv->sensor[i].slope = num / den; in compute_intercept_slope()
102 priv->sensor[i].slope); in compute_intercept_slope()
110 u64 code = div_u64(((u64)degc * s->slope + s->offset), SLOPE_FACTOR); in degc_to_code()
121 den = s->slope; in code_to_degc()
632 seq_puts(s, " id slope offset\n--------------------------\n"); in dbg_sensors_show()
635 priv->sensor[i].slope, priv->sensor[i].offset); in dbg_sensors_show()