/linux-6.1.9/drivers/opp/ |
D | core.c | 43 static bool _find_opp_dev(const struct device *dev, struct opp_table *opp_table) in _find_opp_dev() argument 48 mutex_lock(&opp_table->lock); in _find_opp_dev() 49 list_for_each_entry(opp_dev, &opp_table->dev_list, node) in _find_opp_dev() 55 mutex_unlock(&opp_table->lock); in _find_opp_dev() 59 static struct opp_table *_find_opp_table_unlocked(struct device *dev) in _find_opp_table_unlocked() 61 struct opp_table *opp_table; in _find_opp_table_unlocked() local 63 list_for_each_entry(opp_table, &opp_tables, node) { in _find_opp_table_unlocked() 64 if (_find_opp_dev(dev, opp_table)) { in _find_opp_table_unlocked() 65 _get_opp_table_kref(opp_table); in _find_opp_table_unlocked() 66 return opp_table; in _find_opp_table_unlocked() [all …]
|
D | opp.h | 48 struct opp_table *opp_table; member 114 struct opp_table *opp_table; member 196 struct opp_table { struct 219 struct opp_table **required_opp_tables; argument 246 bool _opp_remove_all_static(struct opp_table *opp_table); argument 247 void _get_opp_table_kref(struct opp_table *opp_table); 248 int _get_opp_count(struct opp_table *opp_table); 249 struct opp_table *_find_opp_table(struct device *dev); 250 struct opp_device *_add_opp_dev(const struct device *dev, struct opp_table *opp_table); 251 struct dev_pm_opp *_opp_allocate(struct opp_table *opp_table); [all …]
|
D | of.c | 42 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 …]
|
D | debugfs.c | 55 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_clks() argument 84 if (opp_table->clk_count == 1) { in opp_debug_create_clks() 89 for (i = 0; i < opp_table->clk_count; i++) { in opp_debug_create_clks() 96 struct opp_table *opp_table, in opp_debug_create_supplies() argument 102 for (i = 0; i < opp_table->regulator_count; i++) { in opp_debug_create_supplies() 127 void opp_debug_create_one(struct dev_pm_opp *opp, struct opp_table *opp_table) in opp_debug_create_one() argument 129 struct dentry *pdentry = opp_table->dentry; in opp_debug_create_one() [all …]
|
D | cpu.c | 44 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.1.9/include/linux/ |
D | pm_opp.h | 22 struct opp_table; 64 typedef int (*config_clks_t)(struct device *dev, struct opp_table *opp_table, 97 struct opp_table *dev_pm_opp_get_opp_table(struct device *dev); 98 void dev_pm_opp_put_opp_table(struct opp_table *opp_table); 163 struct opp_table *opp_table, struct dev_pm_opp *opp, void *data, 166 struct dev_pm_opp *dev_pm_opp_xlate_required_opp(struct opp_table *src_table, struct opp_table *dst… 167 int dev_pm_opp_xlate_performance_state(struct opp_table *src_table, struct opp_table *dst_table, un… 176 static inline struct opp_table *dev_pm_opp_get_opp_table(struct device *dev) in dev_pm_opp_get_opp_table() 181 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() 186 static inline void dev_pm_opp_put_opp_table(struct opp_table *opp_table) {} in dev_pm_opp_put_opp_table() argument [all …]
|
D | pm_domain.h | 115 struct opp_table; 140 struct opp_table *opp_table; /* OPP table of the genpd */ member
|
D | devfreq.h | 186 struct opp_table *opp_table; member
|
/linux-6.1.9/drivers/devfreq/ |
D | governor_passive.c | 43 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 …]
|
D | governor.h | 69 struct opp_table *opp_table; member
|
D | devfreq.c | 762 if (devfreq->opp_table) in devfreq_dev_release() 763 dev_pm_opp_put_opp_table(devfreq->opp_table); in devfreq_dev_release() 859 devfreq->opp_table = dev_pm_opp_get_opp_table(dev); in devfreq_add_device() 860 if (IS_ERR(devfreq->opp_table)) in devfreq_add_device() 861 devfreq->opp_table = NULL; in devfreq_add_device()
|
D | tegra30-devfreq.c | 825 struct opp_table *opp_table, in tegra_devfreq_config_clks_nop() argument
|
/linux-6.1.9/drivers/soc/samsung/ |
D | exynos-asv.c | 81 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-6.1.9/Documentation/devicetree/bindings/cpufreq/ |
D | imx-cpufreq-dt.txt | 23 opp_table {
|
D | cpufreq-st.txt | 49 cpu0_opp_table: opp_table {
|
D | cpufreq-mediatek.txt | 36 cpu_opp_table: opp_table {
|
/linux-6.1.9/drivers/base/power/ |
D | domain.c | 312 return dev_pm_opp_xlate_performance_state(genpd->opp_table, in genpd_xlate_performance_state() 313 parent->opp_table, in genpd_xlate_performance_state() 2334 genpd->opp_table = dev_pm_opp_get_opp_table(&genpd->dev); in of_genpd_add_provider_simple() 2335 WARN_ON(IS_ERR(genpd->opp_table)); in of_genpd_add_provider_simple() 2341 dev_pm_opp_put_opp_table(genpd->opp_table); in of_genpd_add_provider_simple() 2396 genpd->opp_table = dev_pm_opp_get_opp_table(&genpd->dev); in of_genpd_add_provider_onecell() 2397 WARN_ON(IS_ERR(genpd->opp_table)); in of_genpd_add_provider_onecell() 2421 dev_pm_opp_put_opp_table(genpd->opp_table); in of_genpd_add_provider_onecell() 2455 dev_pm_opp_put_opp_table(gpd->opp_table); in of_genpd_del_provider()
|
/linux-6.1.9/Documentation/devicetree/bindings/clock/ |
D | nvidia,tegra20-car.yaml | 95 operating-points-v2 = <&opp_table>;
|
/linux-6.1.9/arch/arm/boot/dts/ |
D | stih418-b2264.dts | 45 cpu_opp_table: opp_table {
|
D | da850.dtsi | 28 operating-points-v2 = <&opp_table>; 32 opp_table: opp-table { label
|