/openbmc/linux/drivers/opp/ |
H A D | of.c | 758 static int _read_rate(struct dev_pm_opp *new_opp, struct opp_table *opp_table, in _read_rate() argument 790 new_opp->rates[i] = (unsigned long)rates[i]; in _read_rate() 793 WARN_ON(new_opp->rates[i] != rates[i]); in _read_rate() 802 static int _read_bw(struct dev_pm_opp *new_opp, struct opp_table *opp_table, in _read_bw() argument 833 new_opp->bandwidth[i].peak = kBps_to_icc(bw[i]); in _read_bw() 835 new_opp->bandwidth[i].avg = kBps_to_icc(bw[i]); in _read_bw() 843 static int _read_opp_key(struct dev_pm_opp *new_opp, in _read_opp_key() argument 849 ret = _read_rate(new_opp, opp_table, np); in _read_opp_key() 860 ret = _read_bw(new_opp, opp_table, np, true); in _read_opp_key() 863 ret = _read_bw(new_opp, opp_table, np, false); in _read_opp_key() [all …]
|
H A D | core.c | 990 struct dev_pm_opp *old_opp, struct dev_pm_opp *new_opp, in _opp_config_regulator_single() argument 1002 ret = _set_opp_voltage(dev, reg, new_opp->supplies); in _opp_config_regulator_single() 1010 if (unlikely(!new_opp->opp_table->enabled)) { in _opp_config_regulator_single() 1922 static int _opp_is_duplicate(struct device *dev, struct dev_pm_opp *new_opp, in _opp_is_duplicate() argument 1938 opp_cmp = _opp_compare_key(opp_table, new_opp, opp); in _opp_is_duplicate() 1950 opp->available, new_opp->rates[0], in _opp_is_duplicate() 1951 new_opp->supplies[0].u_volt, new_opp->available); in _opp_is_duplicate() 1955 new_opp->supplies[0].u_volt == opp->supplies[0].u_volt ? -EBUSY : -EEXIST; in _opp_is_duplicate() 1986 int _opp_add(struct device *dev, struct dev_pm_opp *new_opp, in _opp_add() argument 1995 ret = _opp_is_duplicate(dev, new_opp, opp_table, &head); in _opp_add() [all …]
|
H A D | ti-opp-supply.c | 275 struct dev_pm_opp *old_opp, struct dev_pm_opp *new_opp, in ti_opp_config_regulators() argument 292 ret = dev_pm_opp_get_supplies(new_opp, opp_data.new_supplies); in ti_opp_config_regulators() 296 freq = dev_pm_opp_get_freq(new_opp); in ti_opp_config_regulators()
|
H A D | opp.h | 253 int _opp_add(struct device *dev, struct dev_pm_opp *new_opp, struct opp_table *opp_table);
|
/openbmc/linux/drivers/devfreq/ |
H A D | imx-bus.c | 25 struct dev_pm_opp *new_opp; in imx_bus_target() local 28 new_opp = devfreq_recommended_opp(dev, freq, flags); in imx_bus_target() 29 if (IS_ERR(new_opp)) { in imx_bus_target() 30 ret = PTR_ERR(new_opp); in imx_bus_target() 34 dev_pm_opp_put(new_opp); in imx_bus_target()
|
H A D | imx8m-ddrc.c | 234 struct dev_pm_opp *new_opp; in imx8m_ddrc_target() local 238 new_opp = devfreq_recommended_opp(dev, freq, flags); in imx8m_ddrc_target() 239 if (IS_ERR(new_opp)) { in imx8m_ddrc_target() 240 ret = PTR_ERR(new_opp); in imx8m_ddrc_target() 244 dev_pm_opp_put(new_opp); in imx8m_ddrc_target()
|
H A D | exynos-bus.c | 96 struct dev_pm_opp *new_opp; in exynos_bus_target() local 100 new_opp = devfreq_recommended_opp(dev, freq, flags); in exynos_bus_target() 101 if (IS_ERR(new_opp)) { in exynos_bus_target() 103 return PTR_ERR(new_opp); in exynos_bus_target() 106 dev_pm_opp_put(new_opp); in exynos_bus_target()
|
/openbmc/linux/drivers/cpufreq/ |
H A D | mediatek-cpufreq.c | 320 struct dev_pm_opp *new_opp; in mtk_cpufreq_opp_notifier() local 346 new_opp = dev_pm_opp_find_freq_ceil(info->cpu_dev, in mtk_cpufreq_opp_notifier() 348 if (IS_ERR(new_opp)) { in mtk_cpufreq_opp_notifier() 351 ret = PTR_ERR(new_opp); in mtk_cpufreq_opp_notifier() 355 dev_pm_opp_put(new_opp); in mtk_cpufreq_opp_notifier()
|
/openbmc/linux/include/linux/ |
H A D | pm_opp.h | 61 struct dev_pm_opp *old_opp, struct dev_pm_opp *new_opp,
|