Lines Matching refs:vdd_current
227 int timeout, vdd_current; in wait_for_new_voltage() local
229 vdd_current = read_voltage(i2caddress); in wait_for_new_voltage()
240 abs(vdd - vdd_current) > (IR_VDD_STEP_UP + IR_VDD_STEP_DOWN) && in wait_for_new_voltage()
242 vdd_current = read_voltage(i2caddress); in wait_for_new_voltage()
257 int timeout, vdd_current, vdd; in wait_for_voltage_stable() local
263 vdd_current = read_voltage(i2caddress); in wait_for_voltage_stable()
268 abs(vdd - vdd_current) > ADC_MIN_ACCURACY && in wait_for_voltage_stable()
270 vdd = vdd_current; in wait_for_voltage_stable()
272 vdd_current = read_voltage(i2caddress); in wait_for_voltage_stable()
276 return vdd_current; in wait_for_voltage_stable()
378 int vdd_target, vdd_current, vdd_last; in adjust_vdd() local
541 vdd_current = vdd_last; in adjust_vdd()
546 vdd_last = vdd_current = set_voltage(i2caddress, vdd_target); in adjust_vdd()
556 vdd_current += IR_VDD_STEP_UP; in adjust_vdd()
557 vdd_last = set_voltage(i2caddress, vdd_current); in adjust_vdd()
561 vdd_current -= IR_VDD_STEP_DOWN; in adjust_vdd()
562 vdd_last = set_voltage(i2caddress, vdd_current); in adjust_vdd()
594 int vdd_target, vdd_current, vdd_last; in adjust_vdd() local
731 vdd_current = vdd_last; in adjust_vdd()
741 vdd_current += IR_VDD_STEP_UP; in adjust_vdd()
742 vdd_last = set_voltage(i2caddress, vdd_current); in adjust_vdd()
746 vdd_current -= IR_VDD_STEP_DOWN; in adjust_vdd()
747 vdd_last = set_voltage(i2caddress, vdd_current); in adjust_vdd()