Searched refs:adc_result (Results 1 – 3 of 3) sorted by relevance
799 u8 adc_result; in wcd_measure_adc_continuous() local825 adc_result = wcd_mbhc_read_field(mbhc, WCD_MBHC_ADC_RESULT); in wcd_measure_adc_continuous()831 output_mv = wcd_get_voltage_from_adc(adc_result, wcd_mbhc_get_micbias(mbhc)); in wcd_measure_adc_continuous()841 u8 adc_result; in wcd_measure_adc_once() local873 adc_result = wcd_mbhc_read_field(mbhc, WCD_MBHC_ADC_RESULT); in wcd_measure_adc_once()876 output_mv = wcd_get_voltage_from_adc(adc_result, in wcd_measure_adc_once()1020 static int wcd_mbhc_get_plug_from_adc(struct wcd_mbhc *mbhc, int adc_result) in wcd_mbhc_get_plug_from_adc() argument1029 if (adc_result < hph_thr) in wcd_mbhc_get_plug_from_adc()1031 else if (adc_result > hs_thr) in wcd_mbhc_get_plug_from_adc()
154 static int adc_result(struct pcf50633 *pcf) in adc_result() function188 res = adc_result(pcf); in pcf50633_adc_irq()
827 static void ad74413r_adc_to_resistance_result(int adc_result, int *val) in ad74413r_adc_to_resistance_result() argument829 if (adc_result == AD74413R_ADC_RESULT_MAX) in ad74413r_adc_to_resistance_result()830 adc_result = AD74413R_ADC_RESULT_MAX - 1; in ad74413r_adc_to_resistance_result()832 *val = DIV_ROUND_CLOSEST(adc_result * 2100, in ad74413r_adc_to_resistance_result()833 AD74413R_ADC_RESULT_MAX - adc_result); in ad74413r_adc_to_resistance_result()