Lines Matching refs:voltage
43 int pre_voltage, pre_vsram, new_vsram, vsram, voltage, ret;
78 voltage = new_voltage;
80 voltage = vsram - soc_data->min_volt_shift;
82 ret = regulator_set_voltage(drv->proc_reg, voltage,
90 voltage = max(new_voltage,
92 ret = regulator_set_voltage(drv->proc_reg, voltage,
97 if (voltage == new_voltage)
101 voltage + soc_data->min_volt_shift);
112 pre_voltage = voltage;
117 "over loop count, failed to set voltage\n");
120 } while (voltage != new_voltage || vsram != new_vsram);
132 int voltage, pre_voltage, inter_voltage, target_voltage, ret;
153 voltage = dev_pm_opp_get_voltage(opp);
163 /* scale up: set voltage first then freq. */
164 target_voltage = max(inter_voltage, voltage);
168 dev_err(dev, "failed to scale up voltage\n");
197 * If the new voltage is lower than the intermediate voltage or the
198 * original voltage, scale down to the new voltage.
200 if (voltage < inter_voltage || voltage < pre_voltage) {
201 ret = mtk_ccifreq_set_voltage(drv, voltage);
203 dev_err(dev, "failed to scale down voltage\n");
310 * We assume min voltage is 0 and tracking target voltage using
350 dev_err(dev, "failed to scale to highest voltage %lu in proc_reg\n",