Lines Matching full:prescale
305 const struct u32_fract *prescale,
309 const struct u32_fract *prescale,
313 const struct u32_fract *prescale,
317 const struct u32_fract *prescale,
321 const struct u32_fract *prescale,
325 const struct u32_fract *prescale,
329 const struct u32_fract *prescale,
409 const struct u32_fract *prescale, in qcom_vadc_scale_volt() argument
417 voltage *= prescale->denominator; in qcom_vadc_scale_volt()
418 result = div64_s64(voltage, prescale->numerator); in qcom_vadc_scale_volt()
425 const struct u32_fract *prescale, in qcom_vadc_scale_therm() argument
447 const struct u32_fract *prescale, in qcom_vadc_scale_die_temp() argument
457 temp = voltage * prescale->denominator; in qcom_vadc_scale_die_temp()
458 do_div(temp, prescale->numerator * 2); in qcom_vadc_scale_die_temp()
470 const struct u32_fract *prescale, in qcom_vadc_scale_chg_temp() argument
478 voltage *= prescale->denominator; in qcom_vadc_scale_chg_temp()
479 voltage = div64_s64(voltage, prescale->numerator); in qcom_vadc_scale_chg_temp()
490 const struct u32_fract *prescale, in qcom_vadc_scale_voltage_code() argument
497 volt *= prescale->numerator * factor * full_scale_code_volt; in qcom_vadc_scale_voltage_code()
498 volt = div64_s64(volt, (s64)prescale->denominator * adc_vdd_ref_mv * 1000); in qcom_vadc_scale_voltage_code()
504 const struct u32_fract *prescale, in qcom_vadc_scale_code_voltage_factor() argument
523 voltage *= prescale->denominator; in qcom_vadc_scale_code_voltage_factor()
524 temp = prescale->numerator * factor; in qcom_vadc_scale_code_voltage_factor()
534 const struct u32_fract *prescale, in qcom_vadc7_scale_hw_calib_therm() argument
560 const struct u32_fract *prescale, in qcom_vadc_scale_hw_calib_volt() argument
565 prescale, data, 1); in qcom_vadc_scale_hw_calib_volt()
571 const struct u32_fract *prescale, in qcom_vadc_scale_hw_calib_therm() argument
578 prescale, data, 1000); in qcom_vadc_scale_hw_calib_therm()
587 const struct u32_fract *prescale, in qcom_vadc_scale_hw_calib_die_temp() argument
592 prescale, data, 2); in qcom_vadc_scale_hw_calib_die_temp()
599 const struct u32_fract *prescale, in qcom_vadc7_scale_hw_calib_die_temp() argument
607 prescale, data, 1); in qcom_vadc7_scale_hw_calib_die_temp()
614 const struct u32_fract *prescale, in qcom_vadc_scale_hw_smb_temp() argument
619 prescale, data, PMIC5_SMB_TEMP_SCALE_FACTOR); in qcom_vadc_scale_hw_smb_temp()
626 const struct u32_fract *prescale, in qcom_vadc_scale_hw_chg5_temp() argument
631 prescale, data, 4); in qcom_vadc_scale_hw_chg5_temp()
639 const struct u32_fract *prescale, in qcom_vadc_scale() argument
645 return qcom_vadc_scale_volt(calib_graph, prescale, in qcom_vadc_scale()
650 return qcom_vadc_scale_therm(calib_graph, prescale, in qcom_vadc_scale()
654 return qcom_vadc_scale_die_temp(calib_graph, prescale, in qcom_vadc_scale()
658 return qcom_vadc_scale_chg_temp(calib_graph, prescale, in qcom_vadc_scale()
670 const struct u32_fract *prescale = &adc5_prescale_ratios[prescale_ratio]; in qcom_adc_tm5_temp_volt_scale() local
676 return qcom_vadc_scale_voltage_code(voltage, prescale, full_scale_code_volt, 1000); in qcom_adc_tm5_temp_volt_scale()
696 const struct u32_fract *prescale = &adc5_prescale_ratios[prescale_ratio]; in qcom_adc5_hw_scale() local
704 return scale_adc5_fn[scaletype].scale_fn(prescale, data, in qcom_adc5_hw_scale()