Home
last modified time | relevance | path

Searched refs:opp_table (Results 1 – 6 of 6) sorted by relevance

/drivers/base/power/opp/
Dcore.c44 struct opp_table *opp_table) in _find_opp_dev() argument
48 list_for_each_entry(opp_dev, &opp_table->dev_list, node) in _find_opp_dev()
71 struct opp_table *_find_opp_table(struct device *dev) in _find_opp_table()
73 struct opp_table *opp_table; in _find_opp_table() local
82 list_for_each_entry_rcu(opp_table, &opp_tables, node) in _find_opp_table()
83 if (_find_opp_dev(dev, opp_table)) in _find_opp_table()
84 return opp_table; in _find_opp_table()
197 struct opp_table *opp_table; in dev_pm_opp_get_max_clock_latency() local
202 opp_table = _find_opp_table(dev); in dev_pm_opp_get_max_clock_latency()
203 if (IS_ERR(opp_table)) in dev_pm_opp_get_max_clock_latency()
[all …]
Dopp.h92 struct opp_table *opp_table; member
161 struct opp_table { struct
191 struct opp_table *_find_opp_table(struct device *dev); argument
192 struct opp_device *_add_opp_dev(const struct device *dev, struct opp_table *opp_table);
195 struct dev_pm_opp *_allocate_opp(struct device *dev, struct opp_table **opp_table);
196 int _opp_add(struct device *dev, struct dev_pm_opp *new_opp, struct opp_table *opp_table);
197 void _opp_remove(struct opp_table *opp_table, struct dev_pm_opp *opp, bool notify);
202 void _of_init_opp_table(struct opp_table *opp_table, struct device *dev);
204 static inline void _of_init_opp_table(struct opp_table *opp_table, struct device *dev) {} in _of_init_opp_table() argument
209 int opp_debug_create_one(struct dev_pm_opp *opp, struct opp_table *opp_table);
[all …]
Dof.c24 static struct opp_table *_managed_opp(const struct device_node *np) in _managed_opp()
26 struct opp_table *opp_table; in _managed_opp() local
28 list_for_each_entry_rcu(opp_table, &opp_tables, node) { in _managed_opp()
29 if (opp_table->np == np) { in _managed_opp()
37 if (opp_table->shared_opp == OPP_TABLE_ACCESS_SHARED) in _managed_opp()
38 return opp_table; in _managed_opp()
47 void _of_init_opp_table(struct opp_table *opp_table, struct device *dev) in _of_init_opp_table() argument
60 opp_table->clock_latency_ns_max = val; in _of_init_opp_table()
62 &opp_table->voltage_tolerance_v1); in _of_init_opp_table()
67 static bool _opp_is_supported(struct device *dev, struct opp_table *opp_table, in _opp_is_supported() argument
[all …]
Ddebugfs.c37 int opp_debug_create_one(struct dev_pm_opp *opp, struct opp_table *opp_table) in opp_debug_create_one() argument
39 struct dentry *pdentry = opp_table->dentry; in opp_debug_create_one()
87 struct opp_table *opp_table) in opp_list_debug_create_dir() argument
92 opp_set_dev_name(dev, opp_table->dentry_name); in opp_list_debug_create_dir()
95 d = debugfs_create_dir(opp_table->dentry_name, rootdir); in opp_list_debug_create_dir()
102 opp_table->dentry = d; in opp_list_debug_create_dir()
108 struct opp_table *opp_table) in opp_list_debug_create_link() argument
117 d = debugfs_create_symlink(name, rootdir, opp_table->dentry_name); in opp_list_debug_create_link()
139 int opp_debug_register(struct opp_device *opp_dev, struct opp_table *opp_table) in opp_debug_register() argument
146 if (opp_table->dentry) in opp_debug_register()
[all …]
Dcpu.c183 struct opp_table *opp_table; in dev_pm_opp_set_sharing_cpus() local
189 opp_table = _find_opp_table(cpu_dev); in dev_pm_opp_set_sharing_cpus()
190 if (IS_ERR(opp_table)) { in dev_pm_opp_set_sharing_cpus()
191 ret = PTR_ERR(opp_table); in dev_pm_opp_set_sharing_cpus()
206 opp_dev = _add_opp_dev(dev, opp_table); in dev_pm_opp_set_sharing_cpus()
214 opp_table->shared_opp = OPP_TABLE_ACCESS_SHARED; in dev_pm_opp_set_sharing_cpus()
242 struct opp_table *opp_table; in dev_pm_opp_get_sharing_cpus() local
247 opp_table = _find_opp_table(cpu_dev); in dev_pm_opp_get_sharing_cpus()
248 if (IS_ERR(opp_table)) { in dev_pm_opp_get_sharing_cpus()
249 ret = PTR_ERR(opp_table); in dev_pm_opp_get_sharing_cpus()
[all …]
/drivers/cpufreq/
Dcpufreq-dt.c31 struct opp_table *opp_table; member
147 struct opp_table *opp_table = NULL; in cpufreq_init() local
191 opp_table = dev_pm_opp_set_regulator(cpu_dev, name); in cpufreq_init()
192 if (IS_ERR(opp_table)) { in cpufreq_init()
193 ret = PTR_ERR(opp_table); in cpufreq_init()
243 priv->opp_table = opp_table; in cpufreq_init()
299 dev_pm_opp_put_regulator(opp_table); in cpufreq_init()
314 dev_pm_opp_put_regulator(priv->opp_table); in cpufreq_exit()