Lines Matching refs:pre_vproc

51 	int pre_vproc;  member
84 int pre_vproc, pre_vsram, new_vsram, vsram, vproc, ret; in mtk_cpufreq_voltage_tracking() local
87 pre_vproc = regulator_get_voltage(proc_reg); in mtk_cpufreq_voltage_tracking()
88 if (pre_vproc < 0) { in mtk_cpufreq_voltage_tracking()
90 "invalid Vproc value: %d\n", pre_vproc); in mtk_cpufreq_voltage_tracking()
91 return pre_vproc; in mtk_cpufreq_voltage_tracking()
104 if (pre_vproc <= new_vproc) { in mtk_cpufreq_voltage_tracking()
105 vsram = clamp(pre_vproc + soc_data->max_volt_shift, in mtk_cpufreq_voltage_tracking()
126 } else if (pre_vproc > new_vproc) { in mtk_cpufreq_voltage_tracking()
143 regulator_set_voltage(proc_reg, pre_vproc, in mtk_cpufreq_voltage_tracking()
149 pre_vproc = vproc; in mtk_cpufreq_voltage_tracking()
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
218 if (unlikely(info->pre_vproc <= 0)) in mtk_cpufreq_set_target()
219 pre_vproc = regulator_get_voltage(info->proc_reg); in mtk_cpufreq_set_target()
221 pre_vproc = info->pre_vproc; in mtk_cpufreq_set_target()
223 if (pre_vproc < 0) { in mtk_cpufreq_set_target()
224 dev_err(cpu_dev, "invalid Vproc value: %d\n", pre_vproc); in mtk_cpufreq_set_target()
225 ret = pre_vproc; in mtk_cpufreq_set_target()
254 if (pre_vproc <= target_vproc) { in mtk_cpufreq_set_target()
259 mtk_cpufreq_set_voltage(info, pre_vproc); in mtk_cpufreq_set_target()
269 mtk_cpufreq_set_voltage(info, pre_vproc); in mtk_cpufreq_set_target()
279 mtk_cpufreq_set_voltage(info, pre_vproc); in mtk_cpufreq_set_target()
296 if (vproc < inter_vproc || vproc < pre_vproc) { in mtk_cpufreq_set_target()