/linux-6.12.1/drivers/opp/ |
D | of.c | 785 static int _read_rate(struct dev_pm_opp *new_opp, struct opp_table *opp_table, in _read_rate() argument 817 new_opp->rates[i] = (unsigned long)rates[i]; in _read_rate() 820 WARN_ON(new_opp->rates[i] != rates[i]); in _read_rate() 829 static int _read_bw(struct dev_pm_opp *new_opp, struct opp_table *opp_table, in _read_bw() argument 860 new_opp->bandwidth[i].peak = kBps_to_icc(bw[i]); in _read_bw() 862 new_opp->bandwidth[i].avg = kBps_to_icc(bw[i]); in _read_bw() 870 static int _read_opp_key(struct dev_pm_opp *new_opp, in _read_opp_key() argument 876 ret = _read_rate(new_opp, opp_table, np); in _read_opp_key() 887 ret = _read_bw(new_opp, opp_table, np, true); in _read_opp_key() 890 ret = _read_bw(new_opp, opp_table, np, false); in _read_opp_key() [all …]
|
D | core.c | 1007 struct dev_pm_opp *old_opp, struct dev_pm_opp *new_opp, in _opp_config_regulator_single() argument 1019 ret = _set_opp_voltage(dev, reg, new_opp->supplies); in _opp_config_regulator_single() 1027 if (unlikely(!new_opp->opp_table->enabled)) { in _opp_config_regulator_single() 1927 static int _opp_is_duplicate(struct device *dev, struct dev_pm_opp *new_opp, in _opp_is_duplicate() argument 1943 opp_cmp = _opp_compare_key(opp_table, new_opp, opp); in _opp_is_duplicate() 1955 opp->available, new_opp->rates[0], in _opp_is_duplicate() 1956 new_opp->supplies[0].u_volt, new_opp->available); in _opp_is_duplicate() 1960 new_opp->supplies[0].u_volt == opp->supplies[0].u_volt ? -EBUSY : -EEXIST; in _opp_is_duplicate() 1991 int _opp_add(struct device *dev, struct dev_pm_opp *new_opp, in _opp_add() argument 2000 ret = _opp_is_duplicate(dev, new_opp, opp_table, &head); in _opp_add() [all …]
|
D | ti-opp-supply.c | 276 struct dev_pm_opp *old_opp, struct dev_pm_opp *new_opp, in ti_opp_config_regulators() argument 293 ret = dev_pm_opp_get_supplies(new_opp, opp_data.new_supplies); in ti_opp_config_regulators() 297 freq = dev_pm_opp_get_freq(new_opp); in ti_opp_config_regulators()
|
D | opp.h | 261 int _opp_add(struct device *dev, struct dev_pm_opp *new_opp, struct opp_table *opp_table);
|
/linux-6.12.1/drivers/devfreq/ |
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()
|
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()
|
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()
|
/linux-6.12.1/drivers/cpufreq/ |
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()
|
/linux-6.12.1/include/linux/ |
D | pm_opp.h | 50 struct dev_pm_opp *old_opp, struct dev_pm_opp *new_opp,
|