Home
last modified time | relevance | path

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

12

/linux-5.19.10/drivers/opp/
Dcore.c39 static bool _find_opp_dev(const struct device *dev, struct opp_table *opp_table) in _find_opp_dev() argument
44 mutex_lock(&opp_table->lock); in _find_opp_dev()
45 list_for_each_entry(opp_dev, &opp_table->dev_list, node) in _find_opp_dev()
51 mutex_unlock(&opp_table->lock); in _find_opp_dev()
55 static struct opp_table *_find_opp_table_unlocked(struct device *dev) in _find_opp_table_unlocked()
57 struct opp_table *opp_table; in _find_opp_table_unlocked() local
59 list_for_each_entry(opp_table, &opp_tables, node) { in _find_opp_table_unlocked()
60 if (_find_opp_dev(dev, opp_table)) { in _find_opp_table_unlocked()
61 _get_opp_table_kref(opp_table); in _find_opp_table_unlocked()
62 return opp_table; in _find_opp_table_unlocked()
[all …]
Dopp.h93 struct opp_table *opp_table; member
174 struct opp_table { struct
197 struct opp_table **required_opp_tables; argument
224 bool _opp_remove_all_static(struct opp_table *opp_table); argument
225 void _get_opp_table_kref(struct opp_table *opp_table);
226 int _get_opp_count(struct opp_table *opp_table);
227 struct opp_table *_find_opp_table(struct device *dev);
228 struct opp_device *_add_opp_dev(const struct device *dev, struct opp_table *opp_table);
229 struct dev_pm_opp *_opp_allocate(struct opp_table *opp_table);
232 int _opp_add(struct device *dev, struct dev_pm_opp *new_opp, struct opp_table *opp_table, bool rate…
[all …]
Dof.c42 struct opp_table *_managed_opp(struct device *dev, int index) in _managed_opp()
44 struct opp_table *opp_table, *managed_table = NULL; in _managed_opp() local
51 list_for_each_entry(opp_table, &opp_tables, node) { in _managed_opp()
52 if (opp_table->np == np) { in _managed_opp()
60 if (opp_table->shared_opp == OPP_TABLE_ACCESS_SHARED) { in _managed_opp()
61 _get_opp_table_kref(opp_table); in _managed_opp()
62 managed_table = opp_table; in _managed_opp()
75 static struct dev_pm_opp *_find_opp_of_np(struct opp_table *opp_table, in _find_opp_of_np() argument
80 mutex_lock(&opp_table->lock); in _find_opp_of_np()
82 list_for_each_entry(opp, &opp_table->opp_list, node) { in _find_opp_of_np()
[all …]
Ddebugfs.c55 struct opp_table *opp_table, in opp_debug_create_bw() argument
62 for (i = 0; i < opp_table->path_count; i++) { in opp_debug_create_bw()
68 debugfs_create_file("name", S_IRUGO, d, opp_table->paths[i], in opp_debug_create_bw()
78 struct opp_table *opp_table, in opp_debug_create_supplies() argument
84 for (i = 0; i < opp_table->regulator_count; i++) { in opp_debug_create_supplies()
109 void opp_debug_create_one(struct dev_pm_opp *opp, struct opp_table *opp_table) in opp_debug_create_one() argument
111 struct dentry *pdentry = opp_table->dentry; in opp_debug_create_one()
125 id = _get_opp_count(opp_table); in opp_debug_create_one()
145 opp_debug_create_supplies(opp, opp_table, d); in opp_debug_create_one()
146 opp_debug_create_bw(opp, opp_table, d); in opp_debug_create_one()
[all …]
Dcpu.c159 struct opp_table *opp_table; in dev_pm_opp_set_sharing_cpus() local
163 opp_table = _find_opp_table(cpu_dev); in dev_pm_opp_set_sharing_cpus()
164 if (IS_ERR(opp_table)) in dev_pm_opp_set_sharing_cpus()
165 return PTR_ERR(opp_table); in dev_pm_opp_set_sharing_cpus()
178 opp_dev = _add_opp_dev(dev, opp_table); in dev_pm_opp_set_sharing_cpus()
186 opp_table->shared_opp = OPP_TABLE_ACCESS_SHARED; in dev_pm_opp_set_sharing_cpus()
189 dev_pm_opp_put_opp_table(opp_table); in dev_pm_opp_set_sharing_cpus()
208 struct opp_table *opp_table; in dev_pm_opp_get_sharing_cpus() local
211 opp_table = _find_opp_table(cpu_dev); in dev_pm_opp_get_sharing_cpus()
212 if (IS_ERR(opp_table)) in dev_pm_opp_get_sharing_cpus()
[all …]
/linux-5.19.10/include/linux/
Dpm_opp.h22 struct opp_table;
95 struct opp_table *dev_pm_opp_get_opp_table(struct device *dev);
96 void dev_pm_opp_put_opp_table(struct opp_table *opp_table);
157 struct opp_table *dev_pm_opp_set_supported_hw(struct device *dev, const u32 *versions, unsigned int…
158 void dev_pm_opp_put_supported_hw(struct opp_table *opp_table);
160 struct opp_table *dev_pm_opp_set_prop_name(struct device *dev, const char *name);
161 void dev_pm_opp_put_prop_name(struct opp_table *opp_table);
162 struct opp_table *dev_pm_opp_set_regulators(struct device *dev, const char * const names[], unsigne…
163 void dev_pm_opp_put_regulators(struct opp_table *opp_table);
165 struct opp_table *dev_pm_opp_set_clkname(struct device *dev, const char *name);
[all …]
Dpm_domain.h115 struct opp_table;
140 struct opp_table *opp_table; /* OPP table of the genpd */ member
Ddevfreq.h186 struct opp_table *opp_table; member
/linux-5.19.10/drivers/cpufreq/
Dtegra20-cpufreq.c35 static void tegra20_cpufreq_put_supported_hw(void *opp_table) in tegra20_cpufreq_put_supported_hw() argument
37 dev_pm_opp_put_supported_hw(opp_table); in tegra20_cpufreq_put_supported_hw()
48 struct opp_table *opp_table; in tegra20_cpufreq_probe() local
74 opp_table = dev_pm_opp_set_supported_hw(cpu_dev, versions, 2); in tegra20_cpufreq_probe()
75 err = PTR_ERR_OR_ZERO(opp_table); in tegra20_cpufreq_probe()
83 opp_table); in tegra20_cpufreq_probe()
Dsti-cpufreq.c161 struct opp_table *opp_table; in sti_cpufreq_set_opp_info() local
213 opp_table = dev_pm_opp_set_prop_name(dev, name); in sti_cpufreq_set_opp_info()
214 if (IS_ERR(opp_table)) { in sti_cpufreq_set_opp_info()
216 return PTR_ERR(opp_table); in sti_cpufreq_set_opp_info()
223 opp_table = dev_pm_opp_set_supported_hw(dev, version, VERSION_ELEMENTS); in sti_cpufreq_set_opp_info()
224 if (IS_ERR(opp_table)) { in sti_cpufreq_set_opp_info()
226 ret = PTR_ERR(opp_table); in sti_cpufreq_set_opp_info()
238 dev_pm_opp_put_prop_name(opp_table); in sti_cpufreq_set_opp_info()
Dcpufreq-dt.c32 struct opp_table *opp_table; member
223 priv->opp_table = dev_pm_opp_set_regulators(cpu_dev, &reg_name, in dt_cpufreq_early_init()
225 if (IS_ERR(priv->opp_table)) { in dt_cpufreq_early_init()
226 ret = PTR_ERR(priv->opp_table); in dt_cpufreq_early_init()
298 dev_pm_opp_put_regulators(priv->opp_table); in dt_cpufreq_early_init()
312 dev_pm_opp_put_regulators(priv->opp_table); in dt_cpufreq_release()
Dti-cpufreq.c63 struct opp_table *opp_table; member
327 struct opp_table *ti_opp_table; in ti_cpufreq_probe()
382 opp_data->opp_table = ti_opp_table; in ti_cpufreq_probe()
393 dev_pm_opp_put_supported_hw(opp_data->opp_table); in ti_cpufreq_probe()
Dsun50i-cpufreq-nvmem.c89 struct opp_table **opp_tables; in sun50i_cpufreq_nvmem_probe()
147 struct opp_table **opp_tables = platform_get_drvdata(pdev); in sun50i_cpufreq_nvmem_remove()
Dqcom-cpufreq-nvmem.c58 struct opp_table **names_opp_tables;
59 struct opp_table **hw_opp_tables;
60 struct opp_table **genpd_opp_tables;
Dimx-cpufreq-dt.c34 static struct opp_table *cpufreq_opp_table;
/linux-5.19.10/drivers/devfreq/
Dgovernor_passive.c43 if (parent_cpu_data->opp_table) in delete_parent_cpu_data()
44 dev_pm_opp_put_opp_table(parent_cpu_data->opp_table); in delete_parent_cpu_data()
51 struct opp_table *p_opp_table, in get_target_freq_by_required_opp()
52 struct opp_table *opp_table, in get_target_freq_by_required_opp() argument
58 if (!p_dev || !p_opp_table || !opp_table || !freq) in get_target_freq_by_required_opp()
65 opp = dev_pm_opp_xlate_required_opp(p_opp_table, opp_table, p_opp); in get_target_freq_by_required_opp()
105 parent_cpu_data->opp_table, in get_target_freq_with_cpufreq()
106 devfreq->opp_table, &cpu_cur); in get_target_freq_with_cpufreq()
141 parent_devfreq->opp_table, in get_target_freq_with_devfreq()
142 devfreq->opp_table, freq); in get_target_freq_with_devfreq()
[all …]
Dexynos-bus.c36 struct opp_table *opp_table; member
164 dev_pm_opp_put_regulators(bus->opp_table); in exynos_bus_exit()
165 bus->opp_table = NULL; in exynos_bus_exit()
182 struct opp_table *opp_table; in exynos_bus_parent_parse_of() local
186 opp_table = dev_pm_opp_set_regulators(dev, &vdd, 1); in exynos_bus_parent_parse_of()
187 if (IS_ERR(opp_table)) { in exynos_bus_parent_parse_of()
188 ret = PTR_ERR(opp_table); in exynos_bus_parent_parse_of()
193 bus->opp_table = opp_table; in exynos_bus_parent_parse_of()
239 dev_pm_opp_put_regulators(bus->opp_table); in exynos_bus_parent_parse_of()
240 bus->opp_table = NULL; in exynos_bus_parent_parse_of()
[all …]
Dgovernor.h69 struct opp_table *opp_table; member
Ddevfreq.c758 if (devfreq->opp_table) in devfreq_dev_release()
759 dev_pm_opp_put_opp_table(devfreq->opp_table); in devfreq_dev_release()
856 devfreq->opp_table = dev_pm_opp_get_opp_table(dev); in devfreq_add_device()
857 if (IS_ERR(devfreq->opp_table)) in devfreq_add_device()
858 devfreq->opp_table = NULL; in devfreq_add_device()
/linux-5.19.10/drivers/soc/samsung/
Dexynos-asv.c81 struct opp_table *last_opp_table = NULL; in exynos_asv_update_opps()
86 struct opp_table *opp_table; in exynos_asv_update_opps() local
92 opp_table = dev_pm_opp_get_opp_table(cpu); in exynos_asv_update_opps()
93 if (IS_ERR(opp_table)) in exynos_asv_update_opps()
96 if (!last_opp_table || opp_table != last_opp_table) { in exynos_asv_update_opps()
97 last_opp_table = opp_table; in exynos_asv_update_opps()
105 dev_pm_opp_put_opp_table(opp_table); in exynos_asv_update_opps()
/linux-5.19.10/Documentation/devicetree/bindings/cpufreq/
Dimx-cpufreq-dt.txt23 opp_table {
Dcpufreq-st.txt49 cpu0_opp_table: opp_table {
/linux-5.19.10/drivers/base/power/
Ddomain.c312 return dev_pm_opp_xlate_performance_state(genpd->opp_table, in genpd_xlate_performance_state()
313 parent->opp_table, in genpd_xlate_performance_state()
2332 genpd->opp_table = dev_pm_opp_get_opp_table(&genpd->dev); in of_genpd_add_provider_simple()
2333 WARN_ON(IS_ERR(genpd->opp_table)); in of_genpd_add_provider_simple()
2339 dev_pm_opp_put_opp_table(genpd->opp_table); in of_genpd_add_provider_simple()
2394 genpd->opp_table = dev_pm_opp_get_opp_table(&genpd->dev); in of_genpd_add_provider_onecell()
2395 WARN_ON(IS_ERR(genpd->opp_table)); in of_genpd_add_provider_onecell()
2419 dev_pm_opp_put_opp_table(genpd->opp_table); in of_genpd_add_provider_onecell()
2453 dev_pm_opp_put_opp_table(gpd->opp_table); in of_genpd_del_provider()
/linux-5.19.10/arch/arm/boot/dts/
Dstih418-b2264.dts45 cpu_opp_table: opp_table {
/linux-5.19.10/Documentation/devicetree/bindings/clock/
Dnvidia,tegra20-car.yaml95 operating-points-v2 = <&opp_table>;

12