Lines Matching refs:calib_graph

95 static void qcom_vadc_scale_calib(const struct vadc_linear_graph *calib_graph,  in qcom_vadc_scale_calib()  argument
100 *scale_voltage = (adc_code - calib_graph->gnd); in qcom_vadc_scale_calib()
101 *scale_voltage *= calib_graph->dx; in qcom_vadc_scale_calib()
102 *scale_voltage = div64_s64(*scale_voltage, calib_graph->dy); in qcom_vadc_scale_calib()
104 *scale_voltage += calib_graph->dx; in qcom_vadc_scale_calib()
110 static int qcom_vadc_scale_volt(const struct vadc_linear_graph *calib_graph, in qcom_vadc_scale_volt() argument
117 qcom_vadc_scale_calib(calib_graph, adc_code, absolute, &voltage); in qcom_vadc_scale_volt()
126 static int qcom_vadc_scale_therm(const struct vadc_linear_graph *calib_graph, in qcom_vadc_scale_therm() argument
134 qcom_vadc_scale_calib(calib_graph, adc_code, absolute, &voltage); in qcom_vadc_scale_therm()
151 static int qcom_vadc_scale_die_temp(const struct vadc_linear_graph *calib_graph, in qcom_vadc_scale_die_temp() argument
159 qcom_vadc_scale_calib(calib_graph, adc_code, absolute, &voltage); in qcom_vadc_scale_die_temp()
175 static int qcom_vadc_scale_chg_temp(const struct vadc_linear_graph *calib_graph, in qcom_vadc_scale_chg_temp() argument
182 qcom_vadc_scale_calib(calib_graph, adc_code, absolute, &voltage); in qcom_vadc_scale_chg_temp()
195 const struct vadc_linear_graph *calib_graph, in qcom_vadc_scale() argument
202 return qcom_vadc_scale_volt(calib_graph, prescale, in qcom_vadc_scale()
207 return qcom_vadc_scale_therm(calib_graph, prescale, in qcom_vadc_scale()
211 return qcom_vadc_scale_die_temp(calib_graph, prescale, in qcom_vadc_scale()
215 return qcom_vadc_scale_chg_temp(calib_graph, prescale, in qcom_vadc_scale()