Searched refs:AD74413R_ADC_RESULT_MAX (Results 1 – 1 of 1) sorted by relevance
144 #define AD74413R_ADC_RESULT_MAX GENMASK(15, 0) macro 645 *val = -((int)AD74413R_ADC_RESULT_MAX); in ad74413r_range_to_voltage_offset_raw() 648 *val = -((int)AD74413R_ADC_RESULT_MAX / 2); in ad74413r_range_to_voltage_offset_raw() 689 *val2 = AD74413R_ADC_RESULT_MAX; in ad74413r_get_input_voltage_scale() 726 *val2 = AD74413R_ADC_RESULT_MAX * st->sense_resistor_ohms; in ad74413r_get_input_current_scale() 751 *val = voltage_offset * (int)AD74413R_ADC_RESULT_MAX / voltage_range; in ad74413r_get_input_current_offset() 883 if (adc_result == AD74413R_ADC_RESULT_MAX) in ad74413r_adc_to_resistance_result() 884 adc_result = AD74413R_ADC_RESULT_MAX - 1; in ad74413r_adc_to_resistance_result() 887 AD74413R_ADC_RESULT_MAX - adc_result); in ad74413r_adc_to_resistance_result()