Lines Matching defs:voltage
83 * Get current voltage of SM0 and SM1
85 * @param sm0 Place to put SM0 voltage
86 * @param sm1 Place to put SM1 voltage
138 static int calculate_next_voltage(int voltage, int target, int step)
140 int diff = voltage < target ? step : -step;
142 if (abs(target - voltage) > step)
143 voltage += diff;
145 voltage = target;
147 return voltage;
178 /* get current voltage settings */
180 debug("%s: Cannot read voltage settings\n", __func__);
198 * than their nominal voltage, the adjustment may go either directions.