Lines Matching defs:vsram
68 int old_vproc, old_vsram, new_vsram, vsram, vproc, ret;
99 vsram = min(new_vsram, old_vproc + MAX_VOLT_SHIFT);
101 if (vsram + VOLT_TOL >= MAX_VOLT_LIMIT) {
102 vsram = MAX_VOLT_LIMIT;
108 ret = regulator_set_voltage(sram_reg, vsram,
109 vsram);
112 vsram - VOLT_TOL,
113 vsram);
117 ret = regulator_set_voltage(sram_reg, vsram,
118 vsram + VOLT_TOL);
120 vproc = vsram - MIN_VOLT_SHIFT;
132 } while (vproc < new_vproc || vsram < new_vsram);
161 vsram = new_vsram;
163 vsram = max(new_vsram, vproc + MIN_VOLT_SHIFT);
165 if (vsram + VOLT_TOL >= MAX_VOLT_LIMIT) {
166 vsram = MAX_VOLT_LIMIT;
172 ret = regulator_set_voltage(sram_reg, vsram,
173 vsram);
176 vsram - VOLT_TOL,
177 vsram);
179 ret = regulator_set_voltage(sram_reg, vsram,
180 vsram + VOLT_TOL);
189 vsram > new_vsram + VOLT_TOL);