Lines Matching refs:pts
346 static int qcom_vadc_map_voltage_temp(const struct vadc_map_pt *pts, in qcom_vadc_map_voltage_temp() argument
351 if (!pts) in qcom_vadc_map_voltage_temp()
354 while (i < tablesize && pts[i].x > input) in qcom_vadc_map_voltage_temp()
358 *output = pts[0].y; in qcom_vadc_map_voltage_temp()
360 *output = pts[tablesize - 1].y; in qcom_vadc_map_voltage_temp()
363 *output = fixp_linear_interpolate(pts[i - 1].x, pts[i - 1].y, in qcom_vadc_map_voltage_temp()
364 pts[i].x, pts[i].y, in qcom_vadc_map_voltage_temp()
371 static s32 qcom_vadc_map_temp_voltage(const struct vadc_map_pt *pts, in qcom_vadc_map_temp_voltage() argument
380 while (i < tablesize && pts[i].y < input) in qcom_vadc_map_temp_voltage()
384 return pts[0].x; in qcom_vadc_map_temp_voltage()
386 return pts[tablesize - 1].x; in qcom_vadc_map_temp_voltage()
389 return fixp_linear_interpolate(pts[i - 1].y, pts[i - 1].x, in qcom_vadc_map_temp_voltage()
390 pts[i].y, pts[i].x, input); in qcom_vadc_map_temp_voltage()