Lines Matching refs:vdd_last

282 	int wait, vdd_last;  in set_voltage_to_IR()  local
307 vdd_last = wait_for_voltage_stable(i2caddress); in set_voltage_to_IR()
308 if (vdd_last < 0) in set_voltage_to_IR()
310 debug("VID: Current voltage is %d mV\n", vdd_last); in set_voltage_to_IR()
311 return vdd_last; in set_voltage_to_IR()
320 int ret, vdd_last, vdd_target = vdd; in set_voltage_to_LTC() local
341 vdd_last = read_voltage_from_LTC(i2caddress); in set_voltage_to_LTC()
342 if (vdd_last < 0) { in set_voltage_to_LTC()
346 } while (vdd_last != vdd_target); in set_voltage_to_LTC()
348 return vdd_last; in set_voltage_to_LTC()
354 int vdd_last = -1; in set_voltage() local
357 vdd_last = set_voltage_to_IR(i2caddress, vdd); in set_voltage()
359 vdd_last = set_voltage_to_LTC(i2caddress, vdd); in set_voltage()
363 return vdd_last; in set_voltage()
378 int vdd_target, vdd_current, vdd_last; in adjust_vdd() local
535 vdd_last = read_voltage(i2caddress); in adjust_vdd()
536 if (vdd_last < 0) { in adjust_vdd()
541 vdd_current = vdd_last; in adjust_vdd()
542 debug("VID: Core voltage is currently at %d mV\n", vdd_last); in adjust_vdd()
546 vdd_last = vdd_current = set_voltage(i2caddress, vdd_target); in adjust_vdd()
554 while (vdd_last > 0 && in adjust_vdd()
555 vdd_last < vdd_target) { in adjust_vdd()
557 vdd_last = set_voltage(i2caddress, vdd_current); in adjust_vdd()
559 while (vdd_last > 0 && in adjust_vdd()
560 vdd_last > vdd_target + (IR_VDD_STEP_DOWN - 1)) { in adjust_vdd()
562 vdd_last = set_voltage(i2caddress, vdd_current); in adjust_vdd()
571 if (vdd_last > 0) in adjust_vdd()
573 vdd_last); in adjust_vdd()
594 int vdd_target, vdd_current, vdd_last; in adjust_vdd() local
725 vdd_last = read_voltage(i2caddress); in adjust_vdd()
726 if (vdd_last < 0) { in adjust_vdd()
731 vdd_current = vdd_last; in adjust_vdd()
732 debug("VID: Core voltage is currently at %d mV\n", vdd_last); in adjust_vdd()
739 while (vdd_last > 0 && in adjust_vdd()
740 vdd_last < vdd_target) { in adjust_vdd()
742 vdd_last = set_voltage(i2caddress, vdd_current); in adjust_vdd()
744 while (vdd_last > 0 && in adjust_vdd()
745 vdd_last > vdd_target + (IR_VDD_STEP_DOWN - 1)) { in adjust_vdd()
747 vdd_last = set_voltage(i2caddress, vdd_current); in adjust_vdd()
750 if (vdd_last > 0) in adjust_vdd()
752 vdd_last); in adjust_vdd()
767 int vdd_last, ret, i2caddress; in print_vdd() local
789 vdd_last = read_voltage(i2caddress); in print_vdd()
790 if (vdd_last < 0) { in print_vdd()
794 printf("VID: Core voltage is at %d mV\n", vdd_last); in print_vdd()