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