Home
last modified time | relevance | path

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

/linux/drivers/opp/
H A Dof.c722 static int _read_rate(struct dev_pm_opp *new_opp, struct opp_table *opp_table, in _read_rate() argument
754 new_opp->rates[i] = (unsigned long)rates[i]; in _read_rate()
757 WARN_ON(new_opp->rates[i] != rates[i]); in _read_rate()
766 static int _read_bw(struct dev_pm_opp *new_opp, struct opp_table *opp_table, in _read_bw() argument
797 new_opp->bandwidth[i].peak = kBps_to_icc(bw[i]); in _read_bw()
799 new_opp->bandwidth[i].avg = kBps_to_icc(bw[i]); in _read_bw()
807 static int _read_opp_key(struct dev_pm_opp *new_opp, in _read_opp_key() argument
813 ret = _read_rate(new_opp, opp_table, np); in _read_opp_key()
824 ret = _read_bw(new_opp, opp_table, np, true); in _read_opp_key()
827 ret = _read_bw(new_opp, opp_table, np, false); in _read_opp_key()
[all …]
H A Dcore.c1121 struct dev_pm_opp *old_opp, struct dev_pm_opp *new_opp, in _opp_config_regulator_single() argument
1133 ret = _set_opp_voltage(dev, reg, new_opp->supplies); in _opp_config_regulator_single()
1141 if (unlikely(!new_opp->opp_table->enabled)) { in _opp_config_regulator_single()
2008 static int _opp_is_duplicate(struct device *dev, struct dev_pm_opp *new_opp, in _opp_is_duplicate() argument
2024 opp_cmp = _opp_compare_key(opp_table, new_opp, opp); in _opp_is_duplicate()
2036 opp->available, new_opp->rates[0], in _opp_is_duplicate()
2037 new_opp->supplies[0].u_volt, new_opp->available); in _opp_is_duplicate()
2041 new_opp->supplies[0].u_volt == opp->supplies[0].u_volt ? -EBUSY : -EEXIST; in _opp_is_duplicate()
2072 int _opp_add(struct device *dev, struct dev_pm_opp *new_opp, in _opp_add() argument
2081 ret = _opp_is_duplicate(dev, new_opp, opp_table, &head); in _opp_add()
[all …]
H A Dti-opp-supply.c275 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 Dopp.h260 int _opp_add(struct device *dev, struct dev_pm_opp *new_opp, struct opp_table *opp_table);
/linux/drivers/devfreq/
H A Dimx-bus.c25 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 Dimx8m-ddrc.c233 struct dev_pm_opp *new_opp; in imx8m_ddrc_target() local
237 new_opp = devfreq_recommended_opp(dev, freq, flags); in imx8m_ddrc_target()
238 if (IS_ERR(new_opp)) { in imx8m_ddrc_target()
239 ret = PTR_ERR(new_opp); in imx8m_ddrc_target()
243 dev_pm_opp_put(new_opp); in imx8m_ddrc_target()
/linux/rust/kernel/
H A Dopp.rs543 new_opp: *mut bindings::dev_pm_opp, in config_regulators()
554 // SAFETY: 'new_opp' is guaranteed by the C code to be valid. in config_regulators()
555 unsafe { OPP::from_raw_opp(new_opp)? }, in config_regulators()