Lines Matching full:vsram
43 int pre_voltage, pre_vsram, new_vsram, vsram, voltage, ret; in mtk_ccifreq_set_voltage() local
60 dev_err(dev, "invalid vsram value: %d\n", pre_vsram); in mtk_ccifreq_set_voltage()
69 vsram = clamp(pre_voltage + soc_data->max_volt_shift, in mtk_ccifreq_set_voltage()
71 ret = regulator_set_voltage(drv->sram_reg, vsram, in mtk_ccifreq_set_voltage()
76 if (vsram == soc_data->sram_max_volt || in mtk_ccifreq_set_voltage()
80 voltage = vsram - soc_data->min_volt_shift; in mtk_ccifreq_set_voltage()
98 vsram = new_vsram; in mtk_ccifreq_set_voltage()
100 vsram = max(new_vsram, in mtk_ccifreq_set_voltage()
103 ret = regulator_set_voltage(drv->sram_reg, vsram, in mtk_ccifreq_set_voltage()
113 pre_vsram = vsram; in mtk_ccifreq_set_voltage()
120 } while (voltage != new_voltage || vsram != new_vsram); in mtk_ccifreq_set_voltage()