Home
last modified time | relevance | path

Searched refs:adc_result (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.1/sound/soc/codecs/
Dwcd-mbhc-v2.c799 u8 adc_result; in wcd_measure_adc_continuous() local
825 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() local
873 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() argument
1029 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()
/Linux-v6.1/drivers/mfd/
Dpcf50633-adc.c154 static int adc_result(struct pcf50633 *pcf) in adc_result() function
188 res = adc_result(pcf); in pcf50633_adc_irq()
/Linux-v6.1/drivers/iio/addac/
Dad74413r.c827 static void ad74413r_adc_to_resistance_result(int adc_result, int *val) in ad74413r_adc_to_resistance_result() argument
829 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()