Lines Matching refs:vproc

84 	int pre_vproc, pre_vsram, new_vsram, vsram, vproc, ret;  in mtk_cpufreq_voltage_tracking()  local
115 vproc = new_vproc; in mtk_cpufreq_voltage_tracking()
117 vproc = vsram - soc_data->min_volt_shift; in mtk_cpufreq_voltage_tracking()
119 ret = regulator_set_voltage(proc_reg, vproc, in mtk_cpufreq_voltage_tracking()
127 vproc = max(new_vproc, in mtk_cpufreq_voltage_tracking()
129 ret = regulator_set_voltage(proc_reg, vproc, in mtk_cpufreq_voltage_tracking()
134 if (vproc == new_vproc) in mtk_cpufreq_voltage_tracking()
138 vproc + soc_data->min_volt_shift); in mtk_cpufreq_voltage_tracking()
149 pre_vproc = vproc; in mtk_cpufreq_voltage_tracking()
157 } while (vproc != new_vproc || vsram != new_vsram); in mtk_cpufreq_voltage_tracking()
162 static int mtk_cpufreq_set_voltage(struct mtk_cpu_dvfs_info *info, int vproc) in mtk_cpufreq_set_voltage() argument
168 ret = mtk_cpufreq_voltage_tracking(info, vproc); in mtk_cpufreq_set_voltage()
170 ret = regulator_set_voltage(info->proc_reg, vproc, in mtk_cpufreq_set_voltage()
173 info->pre_vproc = vproc; in mtk_cpufreq_set_voltage()
210 int vproc, pre_vproc, inter_vproc, target_vproc, ret; in mtk_cpufreq_set_target() local
238 vproc = dev_pm_opp_get_voltage(opp); in mtk_cpufreq_set_target()
247 vproc = max(vproc, info->vproc_on_boot); in mtk_cpufreq_set_target()
253 target_vproc = max(inter_vproc, vproc); in mtk_cpufreq_set_target()
296 if (vproc < inter_vproc || vproc < pre_vproc) { in mtk_cpufreq_set_target()
297 ret = mtk_cpufreq_set_voltage(info, vproc); in mtk_cpufreq_set_target()