Lines Matching refs:vsram
76 int old_vproc, old_vsram, new_vsram, vsram, vproc, ret; in mtk_cpufreq_voltage_tracking() local
107 vsram = min(new_vsram, old_vproc + MAX_VOLT_SHIFT); in mtk_cpufreq_voltage_tracking()
109 if (vsram + VOLT_TOL >= MAX_VOLT_LIMIT) { in mtk_cpufreq_voltage_tracking()
110 vsram = MAX_VOLT_LIMIT; in mtk_cpufreq_voltage_tracking()
116 ret = regulator_set_voltage(sram_reg, vsram, in mtk_cpufreq_voltage_tracking()
117 vsram); in mtk_cpufreq_voltage_tracking()
120 vsram - VOLT_TOL, in mtk_cpufreq_voltage_tracking()
121 vsram); in mtk_cpufreq_voltage_tracking()
125 ret = regulator_set_voltage(sram_reg, vsram, in mtk_cpufreq_voltage_tracking()
126 vsram + VOLT_TOL); in mtk_cpufreq_voltage_tracking()
128 vproc = vsram - MIN_VOLT_SHIFT; in mtk_cpufreq_voltage_tracking()
140 } while (vproc < new_vproc || vsram < new_vsram); in mtk_cpufreq_voltage_tracking()
169 vsram = new_vsram; in mtk_cpufreq_voltage_tracking()
171 vsram = max(new_vsram, vproc + MIN_VOLT_SHIFT); in mtk_cpufreq_voltage_tracking()
173 if (vsram + VOLT_TOL >= MAX_VOLT_LIMIT) { in mtk_cpufreq_voltage_tracking()
174 vsram = MAX_VOLT_LIMIT; in mtk_cpufreq_voltage_tracking()
180 ret = regulator_set_voltage(sram_reg, vsram, in mtk_cpufreq_voltage_tracking()
181 vsram); in mtk_cpufreq_voltage_tracking()
184 vsram - VOLT_TOL, in mtk_cpufreq_voltage_tracking()
185 vsram); in mtk_cpufreq_voltage_tracking()
187 ret = regulator_set_voltage(sram_reg, vsram, in mtk_cpufreq_voltage_tracking()
188 vsram + VOLT_TOL); in mtk_cpufreq_voltage_tracking()
197 vsram > new_vsram + VOLT_TOL); in mtk_cpufreq_voltage_tracking()