Lines Matching refs:vdd_current
143 int timeout, vdd_current; in wait_for_voltage_change() local
145 vdd_current = read_voltage(); in wait_for_voltage_change()
147 for (timeout = 0; abs(vdd_last - vdd_current) <= 4 && in wait_for_voltage_change()
149 vdd_current = read_voltage(); in wait_for_voltage_change()
164 int timeout, vdd_current, vdd_last; in wait_for_voltage_stable() local
169 vdd_current = read_voltage(); in wait_for_voltage_stable()
170 for (timeout = 0; abs(vdd_last - vdd_current) >= 4 && in wait_for_voltage_stable()
172 vdd_last = vdd_current; in wait_for_voltage_stable()
174 vdd_current = read_voltage(); in wait_for_voltage_stable()
181 return vdd_current; in wait_for_voltage_stable()
212 int vdd_target, vdd_current, vdd_last; in adjust_vdd() local
295 vdd_current = 121250 - (vid_current - 0x40) * 625; in adjust_vdd()
297 vid_current, vdd_current/100); in adjust_vdd()