Searched refs:NUM_READINGS (Results 1 – 3 of 3) sorted by relevance
86 #define NUM_READINGS 4 /* prefer to be power of 2 for efficiency */ macro106 for (i = 0; i < NUM_READINGS; i++) { in read_voltage_from_INA220()125 voltage_read /= NUM_READINGS; in read_voltage_from_INA220()139 for (i = 0; i < NUM_READINGS; i++) { in read_voltage_from_IR()163 voltage_read /= NUM_READINGS; in read_voltage_from_IR()260 udelay(NUM_READINGS * WAIT_FOR_ADC); in wait_for_voltage_stable()271 udelay(NUM_READINGS * WAIT_FOR_ADC); in wait_for_voltage_stable()305 debug("VID: Waited %d us\n", wait * NUM_READINGS * WAIT_FOR_ADC); in set_voltage_to_IR()
107 #define NUM_READINGS 4 /* prefer to be power of 2 for efficiency */ macro115 for (i = 0; i < NUM_READINGS; i++) { in read_voltage()132 voltage_read /= NUM_READINGS; in read_voltage()167 udelay(wait * NUM_READINGS * WAIT_FOR_ADC); in wait_for_voltage_stable()173 udelay(wait * NUM_READINGS * WAIT_FOR_ADC); in wait_for_voltage_stable()193 debug("VID: Waited %d us\n", wait * NUM_READINGS * WAIT_FOR_ADC); in set_voltage()
102 #define NUM_READINGS 4 /* prefer to be power of 2 for efficiency */ macro109 for (i = 0; i < NUM_READINGS; i++) { in read_voltage()126 voltage_read /= NUM_READINGS; in read_voltage()