Searched refs:AD74413R_ADC_RESULT_MAX (Results 1 – 1 of 1) sorted by relevance
139 #define AD74413R_ADC_RESULT_MAX GENMASK(15, 0) macro588 *val = -((int)AD74413R_ADC_RESULT_MAX); in ad74413r_range_to_voltage_offset_raw()591 *val = -((int)AD74413R_ADC_RESULT_MAX / 2); in ad74413r_range_to_voltage_offset_raw()632 *val2 = AD74413R_ADC_RESULT_MAX; in ad74413r_get_input_voltage_scale()669 *val2 = AD74413R_ADC_RESULT_MAX * st->sense_resistor_ohms; in ad74413r_get_input_current_scale()694 *val = voltage_offset * (int)AD74413R_ADC_RESULT_MAX / voltage_range; in ad74413_get_input_current_offset()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()833 AD74413R_ADC_RESULT_MAX - adc_result); in ad74413r_adc_to_resistance_result()