Lines Matching refs:core_uV
145 int core_uV; in tegra20_core_rtc_update() local
179 core_uV = regulator_get_voltage_rdev(core_rdev); in tegra20_core_rtc_update()
180 if (core_uV < 0) in tegra20_core_rtc_update()
181 return core_uV; in tegra20_core_rtc_update()
187 if (cpu_uV + 120000 > core_uV) in tegra20_core_rtc_update()
189 core_uV, cpu_uV + 120000); in tegra20_core_rtc_update()
199 if (abs(core_uV - rtc_uV) > 170000) in tegra20_core_rtc_update()
201 core_uV, rtc_uV); in tegra20_core_rtc_update()
209 while (core_uV != core_min_uV || rtc_uV != rtc_min_uV) { in tegra20_core_rtc_update()
210 if (core_uV < core_min_uV) { in tegra20_core_rtc_update()
211 core_target_uV = min(core_uV + max_spread, core_min_uV); in tegra20_core_rtc_update()
214 core_target_uV = max(core_uV - max_spread, core_min_uV); in tegra20_core_rtc_update()
218 if (core_uV == core_target_uV) in tegra20_core_rtc_update()
228 core_uV = core_target_uV; in tegra20_core_rtc_update()
232 rtc_target_uV = min(core_uV + max_spread, rtc_target_uV); in tegra20_core_rtc_update()
235 rtc_target_uV = max(core_uV - max_spread, rtc_target_uV); in tegra20_core_rtc_update()