Searched refs:calib_graph (Results 1 – 3 of 3) sorted by relevance
/linux-5.19.10/drivers/iio/adc/ |
D | qcom-vadc-common.c | 393 static void qcom_vadc_scale_calib(const struct vadc_linear_graph *calib_graph, in qcom_vadc_scale_calib() argument 398 *scale_voltage = (adc_code - calib_graph->gnd); in qcom_vadc_scale_calib() 399 *scale_voltage *= calib_graph->dx; in qcom_vadc_scale_calib() 400 *scale_voltage = div64_s64(*scale_voltage, calib_graph->dy); in qcom_vadc_scale_calib() 402 *scale_voltage += calib_graph->dx; in qcom_vadc_scale_calib() 408 static int qcom_vadc_scale_volt(const struct vadc_linear_graph *calib_graph, in qcom_vadc_scale_volt() argument 415 qcom_vadc_scale_calib(calib_graph, adc_code, absolute, &voltage); in qcom_vadc_scale_volt() 424 static int qcom_vadc_scale_therm(const struct vadc_linear_graph *calib_graph, in qcom_vadc_scale_therm() argument 432 qcom_vadc_scale_calib(calib_graph, adc_code, absolute, &voltage); in qcom_vadc_scale_therm() 446 static int qcom_vadc_scale_die_temp(const struct vadc_linear_graph *calib_graph, in qcom_vadc_scale_die_temp() argument [all …]
|
D | sc27xx_adc.c | 193 const struct sc27xx_adc_linear_graph *calib_graph; in sc27xx_adc_scale_calibration() local 199 calib_graph = data->var_data->bscale_cal; in sc27xx_adc_scale_calibration() 203 calib_graph = data->var_data->sscale_cal; in sc27xx_adc_scale_calibration() 211 graph->adc0 = sc27xx_adc_get_calib_data(calib_data, calib_graph->adc0); in sc27xx_adc_scale_calibration() 213 calib_graph->adc1); in sc27xx_adc_scale_calibration()
|
/linux-5.19.10/include/linux/iio/adc/ |
D | qcom-vadc-common.h | 137 const struct vadc_linear_graph *calib_graph,
|