Home
last modified time | relevance | path

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

/openbmc/linux/drivers/soc/tegra/
H A 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
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()
231 rtc_target_uV = min(rtc_uV + max_spread, rtc_min_uV); in tegra20_core_rtc_update()
232 rtc_target_uV = min(core_uV + max_spread, rtc_target_uV); in tegra20_core_rtc_update()
234 rtc_target_uV = max(rtc_uV - max_spread, rtc_min_uV); in tegra20_core_rtc_update()
[all …]
H A 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()
/openbmc/linux/drivers/soc/samsung/
H A 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()
/openbmc/linux/drivers/soc/mediatek/
H A Dmtk-regulator-coupler.c37 int max_spread = rdev->constraints->max_spread[0]; in mediatek_regulator_balance_voltage() local
81 vsram_target_min_uV = max(vsram_min_uV, min_uV + max_spread); in mediatek_regulator_balance_voltage()
82 vsram_target_max_uV = min(vsram_max_uV, vsram_target_min_uV + max_spread); in mediatek_regulator_balance_voltage()
/openbmc/linux/drivers/regulator/
H A 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()
H A Dcore.c3916 int i, ret, max_spread; in regulator_get_optimal_voltage() local
3970 max_spread = constraints->max_spread[0]; in regulator_get_optimal_voltage()
3977 target_uV = max(desired_min_uV, highest_min_uV - max_spread); in regulator_get_optimal_voltage()
4005 possible_uV = max(target_uV, max_current_uV - max_spread); in regulator_get_optimal_voltage()
4006 possible_uV = min(possible_uV, min_current_uV + max_spread); in regulator_get_optimal_voltage()
/openbmc/linux/include/linux/regulator/
H A Dmachine.h175 u32 *max_spread; member