Home
last modified time | relevance | path

Searched refs:max_spread (Results 1 – 6 of 6) sorted by relevance

/linux-6.1.9/drivers/soc/tegra/
Dregulators-tegra20.c97 int max_spread; in tegra20_core_rtc_max_spread() local
101 max_spread = core_rdev->constraints->max_spread[i - 1]; in tegra20_core_rtc_max_spread()
104 if (rdev == rtc_rdev && max_spread) in tegra20_core_rtc_max_spread()
105 return max_spread; in tegra20_core_rtc_max_spread()
144 int max_spread; in tegra20_core_rtc_update() local
154 max_spread = tegra20_core_rtc_max_spread(core_rdev, rtc_rdev); in tegra20_core_rtc_update()
203 rtc_min_uV = max(cpu_min_uV + 125000, core_min_uV - max_spread); in tegra20_core_rtc_update()
211 core_target_uV = min(core_uV + max_spread, core_min_uV); in tegra20_core_rtc_update()
212 core_target_uV = min(rtc_uV + max_spread, core_target_uV); in tegra20_core_rtc_update()
214 core_target_uV = max(core_uV - max_spread, core_min_uV); in tegra20_core_rtc_update()
[all …]
Dregulators-tegra30.c178 int max_spread; in tegra30_voltage_update() local
188 max_spread = cpu_rdev->constraints->max_spread[0]; in tegra30_voltage_update()
192 if (!max_spread) { in tegra30_voltage_update()
194 max_spread = 300000; in tegra30_voltage_update()
230 cpu_min_uV = core_min_uV - max_spread; in tegra30_voltage_update()
297 cpu_target_uV = max(core_uV - max_spread, cpu_target_uV); in tegra30_voltage_update()
320 core_target_uV = min(core_target_uV, cpu_uV + max_spread); in tegra30_voltage_update()
/linux-6.1.9/drivers/soc/samsung/
Dexynos-regulator-coupler.c30 int i, ret, max_spread, n_coupled = c_desc->n_coupled; in regulator_get_optimal_voltage() local
68 max_spread = constraints->max_spread[0]; in regulator_get_optimal_voltage()
75 target_uV = max(desired_min_uV, highest_min_uV - max_spread); in regulator_get_optimal_voltage()
96 possible_uV = max(target_uV, max_current_uV - max_spread); in regulator_get_optimal_voltage()
97 possible_uV = min(possible_uV, min_current_uV + max_spread); in regulator_get_optimal_voltage()
/linux-6.1.9/drivers/regulator/
Dof_regulator.c229 constraints->max_spread = devm_kzalloc(dev, in of_get_regulation_constraints()
230 sizeof(*constraints->max_spread) * n_phandles, in of_get_regulation_constraints()
233 if (!constraints->max_spread) in of_get_regulation_constraints()
237 constraints->max_spread, n_phandles); in of_get_regulation_constraints()
626 int max_spread = rdev->constraints->max_spread[i]; in of_check_coupling_data() local
629 if (max_spread <= 0) { in of_check_coupling_data()
662 if (c_max_spread != max_spread) { in of_check_coupling_data()
Dcore.c3840 int i, ret, max_spread; in regulator_get_optimal_voltage() local
3894 max_spread = constraints->max_spread[0]; in regulator_get_optimal_voltage()
3901 target_uV = max(desired_min_uV, highest_min_uV - max_spread); in regulator_get_optimal_voltage()
3929 possible_uV = max(target_uV, max_current_uV - max_spread); in regulator_get_optimal_voltage()
3930 possible_uV = min(possible_uV, min_current_uV + max_spread); in regulator_get_optimal_voltage()
/linux-6.1.9/include/linux/regulator/
Dmachine.h175 u32 *max_spread; member