Searched refs:adc_code (Results 1 – 6 of 6) sorted by relevance
/drivers/iio/adc/ |
D | qcom-vadc-common.c | 284 u16 adc_code, int *result_uv); 288 u16 adc_code, int *result_mdec); 292 u16 adc_code, int *result_mdec); 296 u16 adc_code, int *result_mdec); 300 u16 adc_code, int *result_mdec); 304 u16 adc_code, int *result_mdec); 308 u16 adc_code, int *result_mdec); 369 u16 adc_code, in qcom_vadc_scale_calib() argument 373 *scale_voltage = (adc_code - calib_graph->gnd); in qcom_vadc_scale_calib() 385 bool absolute, u16 adc_code, in qcom_vadc_scale_volt() argument [all …]
|
D | qcom-vadc-common.h | 163 u16 adc_code, int *result_mdec); 167 const struct adc5_data *data, u16 adc_code, int *result); 173 u16 adc_code, int *result_mdec);
|
D | qcom-pm8xxx-xoadc.c | 440 u8 rsv, u16 *adc_code, in pm8xxx_read_channel_rsv() argument 554 *adc_code = (msb << 8) | lsb; in pm8xxx_read_channel_rsv() 571 u16 *adc_code) in pm8xxx_read_channel() argument 578 return pm8xxx_read_channel_rsv(adc, ch, 0xff, adc_code, false); in pm8xxx_read_channel() 654 u16 adc_code; in pm8xxx_read_raw() local 665 ret = pm8xxx_read_channel(adc, ch, &adc_code); in pm8xxx_read_raw() 673 adc_code, val); in pm8xxx_read_raw() 685 ret = pm8xxx_read_channel(adc, ch, &adc_code); in pm8xxx_read_raw() 689 *val = (int)adc_code; in pm8xxx_read_raw()
|
D | qcom-spmi-vadc.c | 450 u16 adc_code; in vadc_read_raw() local 456 ret = vadc_do_conversion(vadc, prop, &adc_code); in vadc_read_raw() 464 adc_code, val); in vadc_read_raw() 471 ret = vadc_do_conversion(vadc, prop, &adc_code); in vadc_read_raw() 475 *val = (int)adc_code; in vadc_read_raw()
|
/drivers/thermal/qcom/ |
D | tsens-8960.c | 238 static inline int code_to_mdegC(u32 adc_code, const struct tsens_sensor *s) in code_to_mdegC() argument 245 return adc_code * slope + offset; in code_to_mdegC()
|
D | tsens.c | 116 static inline int code_to_degc(u32 adc_code, const struct tsens_sensor *s) in code_to_degc() argument 120 num = (adc_code * SLOPE_FACTOR) - s->offset; in code_to_degc()
|