Lines Matching refs:tegra
34 static int tegra30_core_limit(struct tegra_regulator_coupler *tegra, in tegra30_core_limit() argument
42 if (tegra->core_min_uV > 0) in tegra30_core_limit()
43 return tegra->core_min_uV; in tegra30_core_limit()
60 tegra->core_min_uV = core_max_uV; in tegra30_core_limit()
62 pr_info("core minimum voltage limited to %duV\n", tegra->core_min_uV); in tegra30_core_limit()
64 return tegra->core_min_uV; in tegra30_core_limit()
96 static int tegra30_voltage_update(struct tegra_regulator_coupler *tegra, in tegra30_voltage_update() argument
142 core_min_uV = tegra30_core_limit(tegra, core_rdev); in tegra30_voltage_update()
257 struct tegra_regulator_coupler *tegra = to_tegra_coupler(coupler); in tegra30_regulator_balance_voltage() local
258 struct regulator_dev *core_rdev = tegra->core_rdev; in tegra30_regulator_balance_voltage()
259 struct regulator_dev *cpu_rdev = tegra->cpu_rdev; in tegra30_regulator_balance_voltage()
266 return tegra30_voltage_update(tegra, cpu_rdev, core_rdev); in tegra30_regulator_balance_voltage()
272 struct tegra_regulator_coupler *tegra = to_tegra_coupler(coupler); in tegra30_regulator_attach() local
276 !tegra->core_rdev) { in tegra30_regulator_attach()
277 tegra->core_rdev = rdev; in tegra30_regulator_attach()
282 !tegra->cpu_rdev) { in tegra30_regulator_attach()
283 tegra->cpu_rdev = rdev; in tegra30_regulator_attach()
293 struct tegra_regulator_coupler *tegra = to_tegra_coupler(coupler); in tegra30_regulator_detach() local
295 if (tegra->core_rdev == rdev) { in tegra30_regulator_detach()
296 tegra->core_rdev = NULL; in tegra30_regulator_detach()
300 if (tegra->cpu_rdev == rdev) { in tegra30_regulator_detach()
301 tegra->cpu_rdev = NULL; in tegra30_regulator_detach()