Searched refs:adc_code (Results 1 – 6 of 6) sorted by relevance
/drivers/iio/adc/ |
D | qcom-vadc-common.c | 307 u16 adc_code, int *result_uv); 311 u16 adc_code, int *result_mdec); 315 u16 adc_code, int *result_mdec); 319 u16 adc_code, int *result_mdec); 323 u16 adc_code, int *result_mdec); 327 u16 adc_code, int *result_mdec); 331 u16 adc_code, int *result_mdec); 394 u16 adc_code, in qcom_vadc_scale_calib() argument 398 *scale_voltage = (adc_code - calib_graph->gnd); in qcom_vadc_scale_calib() 410 bool absolute, u16 adc_code, in qcom_vadc_scale_volt() argument [all …]
|
D | qcom-spmi-rradc.c | 236 int (*scale_fn)(struct rradc_chip *chip, u16 adc_code, int *result); 342 static int rradc_post_process_batt_id(struct rradc_chip *chip, u16 adc_code, in rradc_post_process_batt_id() argument 349 r_id = ((int64_t)adc_code * RR_ADC_FS_VOLTAGE_MV); in rradc_post_process_batt_id() 736 u16 adc_code; in rradc_read_raw() local 750 ret = rradc_do_conversion(chip, chan_spec->address, &adc_code); in rradc_read_raw() 754 *val = adc_code; in rradc_read_raw() 760 ret = rradc_do_conversion(chip, chan_spec->address, &adc_code); in rradc_read_raw() 764 *val = chan->scale_fn(chip, adc_code, val); in rradc_read_raw()
|
D | qcom-pm8xxx-xoadc.c | 441 u8 rsv, u16 *adc_code, in pm8xxx_read_channel_rsv() argument 555 *adc_code = (msb << 8) | lsb; in pm8xxx_read_channel_rsv() 572 u16 *adc_code) in pm8xxx_read_channel() argument 579 return pm8xxx_read_channel_rsv(adc, ch, 0xff, adc_code, false); in pm8xxx_read_channel() 655 u16 adc_code; in pm8xxx_read_raw() local 666 ret = pm8xxx_read_channel(adc, ch, &adc_code); in pm8xxx_read_raw() 674 adc_code, val); in pm8xxx_read_raw() 686 ret = pm8xxx_read_channel(adc, ch, &adc_code); in pm8xxx_read_raw() 690 *val = (int)adc_code; in pm8xxx_read_raw()
|
D | qcom-spmi-vadc.c | 452 u16 adc_code; in vadc_read_raw() local 458 ret = vadc_do_conversion(vadc, prop, &adc_code); in vadc_read_raw() 466 adc_code, val); in vadc_read_raw() 473 ret = vadc_do_conversion(vadc, prop, &adc_code); in vadc_read_raw() 477 *val = (int)adc_code; in vadc_read_raw()
|
/drivers/thermal/qcom/ |
D | qcom-spmi-adc-tm5.c | 527 u16 adc_code = qcom_adc_tm5_temp_volt_scale(channel->prescale, in adc_tm5_configure() local 530 put_unaligned_le16(adc_code, &buf[1]); in adc_tm5_configure() 538 u16 adc_code = qcom_adc_tm5_temp_volt_scale(channel->prescale, in adc_tm5_configure() local 541 put_unaligned_le16(adc_code, &buf[3]); in adc_tm5_configure() 571 u16 adc_code; in adc_tm5_gen2_configure() local 606 adc_code = qcom_adc_tm5_gen2_temp_res_scale(high); in adc_tm5_gen2_configure() 607 put_unaligned_le16(adc_code, &buf[9]); in adc_tm5_gen2_configure() 615 adc_code = qcom_adc_tm5_gen2_temp_res_scale(low); in adc_tm5_gen2_configure() 616 put_unaligned_le16(adc_code, &buf[11]); in adc_tm5_gen2_configure()
|
D | tsens.c | 298 static inline int code_to_degc(u32 adc_code, const struct tsens_sensor *s) in code_to_degc() argument 302 num = (adc_code * SLOPE_FACTOR) - s->offset; in code_to_degc()
|