Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/opp/
Dcore.c40 static bool _find_opp_dev(const struct device *dev, struct opp_table *opp_table) in _find_opp_dev() argument
45 mutex_lock(&opp_table->lock); in _find_opp_dev()
46 list_for_each_entry(opp_dev, &opp_table->dev_list, node) in _find_opp_dev()
52 mutex_unlock(&opp_table->lock); in _find_opp_dev()
56 static struct opp_table *_find_opp_table_unlocked(struct device *dev) in _find_opp_table_unlocked()
58 struct opp_table *opp_table; in _find_opp_table_unlocked() local
60 list_for_each_entry(opp_table, &opp_tables, node) { in _find_opp_table_unlocked()
61 if (_find_opp_dev(dev, opp_table)) { in _find_opp_table_unlocked()
62 _get_opp_table_kref(opp_table); in _find_opp_table_unlocked()
63 return opp_table; in _find_opp_table_unlocked()
[all …]
Dopp.h49 struct opp_table *opp_table; member
125 struct opp_table *opp_table; member
205 struct opp_table { struct
226 struct opp_table **required_opp_tables; argument
253 bool _opp_remove_all_static(struct opp_table *opp_table); argument
254 void _get_opp_table_kref(struct opp_table *opp_table);
255 int _get_opp_count(struct opp_table *opp_table);
256 struct opp_table *_find_opp_table(struct device *dev);
257 struct opp_device *_add_opp_dev(const struct device *dev, struct opp_table *opp_table);
258 struct dev_pm_opp *_opp_allocate(struct opp_table *opp_table);
[all …]
Dof.c45 struct opp_table *_managed_opp(struct device *dev, int index) in _managed_opp()
47 struct opp_table *opp_table, *managed_table = NULL; in _managed_opp() local
54 list_for_each_entry(opp_table, &opp_tables, node) { in _managed_opp()
55 if (opp_table->np == np) { in _managed_opp()
63 if (opp_table->shared_opp == OPP_TABLE_ACCESS_SHARED) { in _managed_opp()
64 _get_opp_table_kref(opp_table); in _managed_opp()
65 managed_table = opp_table; in _managed_opp()
78 static struct dev_pm_opp *_find_opp_of_np(struct opp_table *opp_table, in _find_opp_of_np() argument
83 mutex_lock(&opp_table->lock); in _find_opp_of_np()
85 list_for_each_entry(opp, &opp_table->opp_list, node) { in _find_opp_of_np()
[all …]
Ddebugfs.c57 struct opp_table *opp_table, in opp_debug_create_bw() argument
64 for (i = 0; i < opp_table->path_count; i++) { in opp_debug_create_bw()
70 debugfs_create_file("name", S_IRUGO, d, opp_table->paths[i], in opp_debug_create_bw()
80 struct opp_table *opp_table, in opp_debug_create_clks() argument
86 if (opp_table->clk_count == 1) { in opp_debug_create_clks()
91 for (i = 0; i < opp_table->clk_count; i++) { in opp_debug_create_clks()
98 struct opp_table *opp_table, in opp_debug_create_supplies() argument
104 for (i = 0; i < opp_table->regulator_count; i++) { in opp_debug_create_supplies()
129 void opp_debug_create_one(struct dev_pm_opp *opp, struct opp_table *opp_table) in opp_debug_create_one() argument
131 struct dentry *pdentry = opp_table->dentry; in opp_debug_create_one()
[all …]
Dcpu.c44 struct cpufreq_frequency_table **opp_table) in dev_pm_opp_init_cpufreq_table() argument
79 *opp_table = &freq_table[0]; in dev_pm_opp_init_cpufreq_table()
97 struct cpufreq_frequency_table **opp_table) in dev_pm_opp_free_cpufreq_table() argument
99 if (!opp_table) in dev_pm_opp_free_cpufreq_table()
102 kfree(*opp_table); in dev_pm_opp_free_cpufreq_table()
103 *opp_table = NULL; in dev_pm_opp_free_cpufreq_table()
159 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()
[all …]
/linux-6.12.1/include/linux/
Dpm_opp.h23 struct opp_table;
53 typedef int (*config_clks_t)(struct device *dev, struct opp_table *opp_table,
106 struct opp_table *dev_pm_opp_get_opp_table(struct device *dev);
107 void dev_pm_opp_put_opp_table(struct opp_table *opp_table);
187 struct opp_table *opp_table, struct dev_pm_opp *opp, void *data,
190 struct dev_pm_opp *dev_pm_opp_xlate_required_opp(struct opp_table *src_table, struct opp_table *dst…
191 int dev_pm_opp_xlate_performance_state(struct opp_table *src_table, struct opp_table *dst_table, un…
200 static inline struct opp_table *dev_pm_opp_get_opp_table(struct device *dev) in dev_pm_opp_get_opp_table()
205 static inline struct opp_table *dev_pm_opp_get_opp_table_indexed(struct device *dev, int index) in dev_pm_opp_get_opp_table_indexed()
210 static inline void dev_pm_opp_put_opp_table(struct opp_table *opp_table) {} in dev_pm_opp_put_opp_table() argument
[all …]
Ddevfreq.h187 struct opp_table *opp_table; member
Dpm_domain.h153 struct opp_table;
180 struct opp_table *opp_table; /* OPP table of the genpd */ member
/linux-6.12.1/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 …]
Dgovernor.h69 struct opp_table *opp_table; member
Ddevfreq.c783 if (devfreq->opp_table) in devfreq_dev_release()
784 dev_pm_opp_put_opp_table(devfreq->opp_table); in devfreq_dev_release()
881 devfreq->opp_table = dev_pm_opp_get_opp_table(dev); in devfreq_add_device()
882 if (IS_ERR(devfreq->opp_table)) in devfreq_add_device()
883 devfreq->opp_table = NULL; in devfreq_add_device()
Dtegra30-devfreq.c825 struct opp_table *opp_table, in tegra_devfreq_config_clks_nop() argument
/linux-6.12.1/drivers/soc/samsung/
Dexynos-asv.c82 struct opp_table *last_opp_table = NULL; in exynos_asv_update_opps()
87 struct opp_table *opp_table; in exynos_asv_update_opps() local
93 opp_table = dev_pm_opp_get_opp_table(cpu); in exynos_asv_update_opps()
94 if (IS_ERR(opp_table)) in exynos_asv_update_opps()
97 if (!last_opp_table || opp_table != last_opp_table) { in exynos_asv_update_opps()
98 last_opp_table = opp_table; in exynos_asv_update_opps()
113 dev_pm_opp_put_opp_table(opp_table); in exynos_asv_update_opps()
/linux-6.12.1/arch/arm64/boot/dts/qcom/
Dmsm8929.dtsi5 &opp_table {
Dmsm8939.dtsi1427 operating-points-v2 = <&opp_table>;
1433 opp_table: opp-table { label
/linux-6.12.1/Documentation/devicetree/bindings/cpufreq/
Dimx-cpufreq-dt.txt23 opp_table {
Dcpufreq-st.txt49 cpu0_opp_table: opp_table {
Dcpufreq-mediatek.txt36 cpu_opp_table: opp_table {
/linux-6.12.1/drivers/pmdomain/
Dcore.c365 return dev_pm_opp_xlate_performance_state(genpd->opp_table, in genpd_xlate_performance_state()
366 parent->opp_table, in genpd_xlate_performance_state()
2519 genpd->opp_table = dev_pm_opp_get_opp_table(&genpd->dev); in of_genpd_add_provider_simple()
2520 WARN_ON(IS_ERR(genpd->opp_table)); in of_genpd_add_provider_simple()
2526 dev_pm_opp_put_opp_table(genpd->opp_table); in of_genpd_add_provider_simple()
2581 genpd->opp_table = dev_pm_opp_get_opp_table(&genpd->dev); in of_genpd_add_provider_onecell()
2582 WARN_ON(IS_ERR(genpd->opp_table)); in of_genpd_add_provider_onecell()
2606 dev_pm_opp_put_opp_table(genpd->opp_table); in of_genpd_add_provider_onecell()
2640 dev_pm_opp_put_opp_table(gpd->opp_table); in of_genpd_del_provider()
/linux-6.12.1/drivers/cpufreq/
Dtegra194-cpufreq.c425 struct cpufreq_frequency_table **opp_table) in tegra_cpufreq_init_cpufreq_table() argument
493 *opp_table = &freq_table[0]; in tegra_cpufreq_init_cpufreq_table()
/linux-6.12.1/include/ufs/
Dufshcd.h1327 int ufshcd_opp_config_clks(struct device *dev, struct opp_table *opp_table,
/linux-6.12.1/arch/arm/boot/dts/ti/davinci/
Dda850.dtsi28 operating-points-v2 = <&opp_table>;
32 opp_table: opp-table { label
/linux-6.12.1/drivers/ufs/core/
Dufshcd.c1115 int ufshcd_opp_config_clks(struct device *dev, struct opp_table *opp_table, in ufshcd_opp_config_clks() argument