Home
last modified time | relevance | path

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

/drivers/opp/
Dof.c727 static int _read_bw(struct dev_pm_opp *new_opp, struct opp_table *table, in _read_bw() argument
758 new_opp->bandwidth[i].peak = kBps_to_icc(bw[i]); in _read_bw()
760 new_opp->bandwidth[i].avg = kBps_to_icc(bw[i]); in _read_bw()
768 static int _read_opp_key(struct dev_pm_opp *new_opp, struct opp_table *table, in _read_opp_key() argument
782 new_opp->rate = (unsigned long)rate; in _read_opp_key()
792 ret = _read_bw(new_opp, table, np, true); in _read_opp_key()
795 ret = _read_bw(new_opp, table, np, false); in _read_opp_key()
802 if (!of_property_read_u32(np, "opp-level", &new_opp->level)) in _read_opp_key()
838 struct dev_pm_opp *new_opp; in _opp_add_static_v2() local
843 new_opp = _opp_allocate(opp_table); in _opp_add_static_v2()
[all …]
Dcore.c851 memcpy(data->new_opp.supplies, opp->supplies, size); in _set_opp_custom()
861 data->new_opp.rate = freq; in _set_opp_custom()
1644 static int _opp_is_duplicate(struct device *dev, struct dev_pm_opp *new_opp, in _opp_is_duplicate() argument
1660 opp_cmp = _opp_compare_key(new_opp, opp); in _opp_is_duplicate()
1672 opp->available, new_opp->rate, in _opp_is_duplicate()
1673 new_opp->supplies[0].u_volt, new_opp->available); in _opp_is_duplicate()
1677 new_opp->supplies[0].u_volt == opp->supplies[0].u_volt ? -EBUSY : -EEXIST; in _opp_is_duplicate()
1708 int _opp_add(struct device *dev, struct dev_pm_opp *new_opp, in _opp_add() argument
1717 ret = _opp_is_duplicate(dev, new_opp, opp_table, &head); in _opp_add()
1723 list_add(&new_opp->node, head); in _opp_add()
[all …]
Dti-opp-supply.c280 struct dev_pm_opp_supply *new_supply_vdd = &data->new_opp.supplies[0]; in ti_opp_supply_set_opp()
281 struct dev_pm_opp_supply *new_supply_vbb = &data->new_opp.supplies[1]; in ti_opp_supply_set_opp()
283 unsigned long old_freq = data->old_opp.rate, freq = data->new_opp.rate; in ti_opp_supply_set_opp()
Dopp.h232 int _opp_add(struct device *dev, struct dev_pm_opp *new_opp, struct opp_table *opp_table, bool rate…
/drivers/devfreq/
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()
Dimx8m-ddrc.c234 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()
Dexynos-bus.c96 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()