Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/opp/
Dcore.c37 struct opp_table *opp_table) in _find_opp_dev() argument
41 list_for_each_entry(opp_dev, &opp_table->dev_list, node) in _find_opp_dev()
48 static struct opp_table *_find_opp_table_unlocked(struct device *dev) in _find_opp_table_unlocked()
50 struct opp_table *opp_table; in _find_opp_table_unlocked() local
52 list_for_each_entry(opp_table, &opp_tables, node) { in _find_opp_table_unlocked()
53 if (_find_opp_dev(dev, opp_table)) { in _find_opp_table_unlocked()
54 _get_opp_table_kref(opp_table); in _find_opp_table_unlocked()
56 return opp_table; in _find_opp_table_unlocked()
74 struct opp_table *_find_opp_table(struct device *dev) in _find_opp_table()
76 struct opp_table *opp_table; in _find_opp_table() local
[all …]
Dopp.h87 struct opp_table *opp_table; member
152 struct opp_table { struct
189 void _get_opp_table_kref(struct opp_table *opp_table); argument
190 int _get_opp_count(struct opp_table *opp_table);
191 struct opp_table *_find_opp_table(struct device *dev);
192 struct opp_device *_add_opp_dev(const struct device *dev, struct opp_table *opp_table);
193 void _dev_pm_opp_remove_table(struct opp_table *opp_table, struct device *dev, bool remove_all);
195 struct dev_pm_opp *_opp_allocate(struct opp_table *opp_table);
197 int _opp_add(struct device *dev, struct dev_pm_opp *new_opp, struct opp_table *opp_table, bool rate…
198 int _opp_add_v1(struct opp_table *opp_table, struct device *dev, unsigned long freq, long u_volt, b…
[all …]
Dof.c26 static struct opp_table *_managed_opp(const struct device_node *np) in _managed_opp()
28 struct opp_table *opp_table, *managed_table = NULL; in _managed_opp() local
32 list_for_each_entry(opp_table, &opp_tables, node) { in _managed_opp()
33 if (opp_table->np == np) { in _managed_opp()
41 if (opp_table->shared_opp == OPP_TABLE_ACCESS_SHARED) { in _managed_opp()
42 _get_opp_table_kref(opp_table); in _managed_opp()
43 managed_table = opp_table; in _managed_opp()
55 void _of_init_opp_table(struct opp_table *opp_table, struct device *dev) in _of_init_opp_table() argument
68 opp_table->clock_latency_ns_max = val; in _of_init_opp_table()
70 &opp_table->voltage_tolerance_v1); in _of_init_opp_table()
[all …]
Ddebugfs.c39 struct opp_table *opp_table, in opp_debug_create_supplies() argument
45 for (i = 0; i < opp_table->regulator_count; i++) { in opp_debug_create_supplies()
76 int opp_debug_create_one(struct dev_pm_opp *opp, struct opp_table *opp_table) in opp_debug_create_one() argument
78 struct dentry *pdentry = opp_table->dentry; in opp_debug_create_one()
92 id = _get_opp_count(opp_table); in opp_debug_create_one()
119 if (!opp_debug_create_supplies(opp, opp_table, d)) in opp_debug_create_one()
131 struct opp_table *opp_table) in opp_list_debug_create_dir() argument
136 opp_set_dev_name(dev, opp_table->dentry_name); in opp_list_debug_create_dir()
139 d = debugfs_create_dir(opp_table->dentry_name, rootdir); in opp_list_debug_create_dir()
146 opp_table->dentry = d; in opp_list_debug_create_dir()
[all …]
Dcpu.c161 struct opp_table *opp_table; in dev_pm_opp_set_sharing_cpus() local
165 opp_table = _find_opp_table(cpu_dev); in dev_pm_opp_set_sharing_cpus()
166 if (IS_ERR(opp_table)) in dev_pm_opp_set_sharing_cpus()
167 return PTR_ERR(opp_table); in dev_pm_opp_set_sharing_cpus()
180 opp_dev = _add_opp_dev(dev, opp_table); in dev_pm_opp_set_sharing_cpus()
188 opp_table->shared_opp = OPP_TABLE_ACCESS_SHARED; in dev_pm_opp_set_sharing_cpus()
191 dev_pm_opp_put_opp_table(opp_table); in dev_pm_opp_set_sharing_cpus()
210 struct opp_table *opp_table; in dev_pm_opp_get_sharing_cpus() local
213 opp_table = _find_opp_table(cpu_dev); in dev_pm_opp_get_sharing_cpus()
214 if (IS_ERR(opp_table)) in dev_pm_opp_get_sharing_cpus()
[all …]
/Linux-v4.19/include/linux/
Dpm_opp.h24 struct opp_table;
81 struct opp_table *dev_pm_opp_get_opp_table(struct device *dev);
82 void dev_pm_opp_put_opp_table(struct opp_table *opp_table);
118 struct opp_table *dev_pm_opp_set_supported_hw(struct device *dev, const u32 *versions, unsigned int…
119 void dev_pm_opp_put_supported_hw(struct opp_table *opp_table);
120 struct opp_table *dev_pm_opp_set_prop_name(struct device *dev, const char *name);
121 void dev_pm_opp_put_prop_name(struct opp_table *opp_table);
122 struct opp_table *dev_pm_opp_set_regulators(struct device *dev, const char * const names[], unsigne…
123 void dev_pm_opp_put_regulators(struct opp_table *opp_table);
124 struct opp_table *dev_pm_opp_set_clkname(struct device *dev, const char * name);
[all …]
/Linux-v4.19/drivers/cpufreq/
Dcpufreq-dt.c31 struct opp_table *opp_table; member
155 struct opp_table *opp_table = NULL; in cpufreq_init() local
198 opp_table = dev_pm_opp_set_regulators(cpu_dev, &name, 1); in cpufreq_init()
199 if (IS_ERR(opp_table)) { in cpufreq_init()
200 ret = PTR_ERR(opp_table); in cpufreq_init()
250 priv->opp_table = opp_table; in cpufreq_init()
290 dev_pm_opp_put_regulators(opp_table); in cpufreq_init()
305 dev_pm_opp_put_regulators(priv->opp_table); in cpufreq_exit()
Dsti-cpufreq.c163 struct opp_table *opp_table; in sti_cpufreq_set_opp_info() local
215 opp_table = dev_pm_opp_set_prop_name(dev, name); in sti_cpufreq_set_opp_info()
216 if (IS_ERR(opp_table)) { in sti_cpufreq_set_opp_info()
218 return PTR_ERR(opp_table); in sti_cpufreq_set_opp_info()
225 opp_table = dev_pm_opp_set_supported_hw(dev, version, VERSION_ELEMENTS); in sti_cpufreq_set_opp_info()
226 if (IS_ERR(opp_table)) { in sti_cpufreq_set_opp_info()
228 return PTR_ERR(opp_table); in sti_cpufreq_set_opp_info()
Dti-cpufreq.c62 struct opp_table *opp_table; member
209 struct opp_table *ti_opp_table; in ti_cpufreq_probe()
266 opp_data->opp_table = ti_opp_table; in ti_cpufreq_probe()
273 dev_pm_opp_put_supported_hw(opp_data->opp_table); in ti_cpufreq_probe()
Dqcom-cpufreq-kryo.c78 struct opp_table *opp_tables[NR_CPUS] = {0}; in qcom_cpufreq_kryo_probe()
/Linux-v4.19/Documentation/devicetree/bindings/cpufreq/
Dcpufreq-st.txt51 cpu0_opp_table: opp_table {
Dcpufreq-mediatek.txt29 cpu_opp_table: opp_table {
/Linux-v4.19/Documentation/devicetree/bindings/opp/
Dopp.txt276 cpu_opp_table: opp_table {
481 opp_table {
/Linux-v4.19/arch/arm/boot/dts/
Drv1108.dtsi42 cpu_opp_table: opp_table {
/Linux-v4.19/arch/arm64/boot/dts/qcom/
Dmsm8916.dtsi260 gpu_opp_table: opp_table {