Home
last modified time | relevance | path

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

12

/linux/drivers/opp/
H A Dcore.c40 static bool _find_opp_dev(const struct device *dev, struct opp_table *opp_table) in _find_opp_dev() argument
44 guard(mutex)(&opp_table->lock); in _find_opp_dev()
46 list_for_each_entry(opp_dev, &opp_table->dev_list, node) in _find_opp_dev()
53 static struct opp_table *_find_opp_table_unlocked(struct device *dev) in _find_opp_table_unlocked()
55 struct opp_table *opp_table; in _find_opp_table_unlocked() local
57 list_for_each_entry(opp_table, &opp_tables, node) { in _find_opp_table_unlocked()
58 if (_find_opp_dev(dev, opp_table)) in _find_opp_table_unlocked()
59 return dev_pm_opp_get_opp_table_ref(opp_table); in _find_opp_table_unlocked()
76 struct opp_table *_find_opp_table(struct device *dev) in _find_opp_table()
94 static bool assert_single_clk(struct opp_table *opp_table, in assert_single_clk() argument
[all …]
H A Dopp.h49 struct opp_table *opp_table; member
126 struct opp_table *opp_table; member
206 struct opp_table { struct
227 struct opp_table **required_opp_tables; argument
253 bool _opp_remove_all_static(struct opp_table *opp_table); argument
254 int _get_opp_count(struct opp_table *opp_table);
255 struct opp_table *_find_opp_table(struct device *dev);
256 struct opp_device *_add_opp_dev(const struct device *dev, struct opp_table *opp_table);
257 struct dev_pm_opp *_opp_allocate(struct opp_table *opp_table);
259 int _opp_compare_key(struct opp_table *opp_table, struct dev_pm_opp *opp1, struct dev_pm_opp *opp2);
[all …]
H A 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
55 list_for_each_entry(opp_table, &opp_tables, node) { in _managed_opp()
56 if (opp_table->np == np) { in _managed_opp()
64 if (opp_table->shared_opp == OPP_TABLE_ACCESS_SHARED) in _managed_opp()
65 managed_table = dev_pm_opp_get_opp_table_ref(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 guard(mutex)(&opp_table->lock); in _find_opp_of_np()
82 list_for_each_entry(opp, &opp_table->opp_list, node) { in _find_opp_of_np()
97 static struct opp_table *_find_table_of_opp_np(struct device_node *opp_np) in _find_table_of_opp_np()
[all …]
H A 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 …]
H A Dcpu.c44 struct cpufreq_frequency_table **opp_table) in dev_pm_opp_init_cpufreq_table() argument
78 *opp_table = &freq_table[0]; in dev_pm_opp_init_cpufreq_table()
96 struct cpufreq_frequency_table **opp_table) in dev_pm_opp_free_cpufreq_table() argument
98 if (!opp_table) in dev_pm_opp_free_cpufreq_table()
101 kfree(*opp_table); in dev_pm_opp_free_cpufreq_table()
102 *opp_table = NULL; in dev_pm_opp_free_cpufreq_table()
161 struct opp_table *opp_table __free(put_opp_table) = 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()
[all …]
/linux/include/linux/
H A Dpm_opp.h24 struct opp_table;
54 typedef int (*config_clks_t)(struct device *dev, struct opp_table *opp_table,
122 struct opp_table *dev_pm_opp_get_opp_table(struct device *dev);
123 struct opp_table *dev_pm_opp_get_opp_table_ref(struct opp_table *opp_table);
124 void dev_pm_opp_put_opp_table(struct opp_table *opp_table);
211 struct opp_table *opp_table, struct dev_pm_opp *opp, void *data,
214 struct dev_pm_opp *dev_pm_opp_xlate_required_opp(struct opp_table *src_table, struct opp_table *dst…
215 int dev_pm_opp_xlate_performance_state(struct opp_table *src_table, struct opp_table *dst_table, un…
225 static inline struct opp_table *dev_pm_opp_get_opp_table(struct device *dev) in dev_pm_opp_get_opp_table()
230 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()
[all …]
H A Ddevfreq.h191 struct opp_table *opp_table; member
H A Dpm_domain.h192 struct opp_table;
221 struct opp_table *opp_table; /* OPP table of the genpd */ member
/linux/drivers/devfreq/
H A Dgovernor_passive.c39 struct opp_table *opp_table; member
68 if (parent_cpu_data->opp_table) in delete_parent_cpu_data()
69 dev_pm_opp_put_opp_table(parent_cpu_data->opp_table); in delete_parent_cpu_data()
76 struct opp_table *p_opp_table, in get_target_freq_by_required_opp()
77 struct opp_table *opp_table, in get_target_freq_by_required_opp() argument
83 if (!p_dev || !p_opp_table || !opp_table || !freq) in get_target_freq_by_required_opp()
90 opp = dev_pm_opp_xlate_required_opp(p_opp_table, opp_table, p_opp); in get_target_freq_by_required_opp()
130 parent_cpu_data->opp_table, in get_target_freq_with_cpufreq()
131 devfreq->opp_table, &cpu_cur); in get_target_freq_with_cpufreq()
166 parent_devfreq->opp_table, in get_target_freq_with_devfreq()
[all …]
H A Ddevfreq.c780 if (devfreq->opp_table) in devfreq_dev_release()
781 dev_pm_opp_put_opp_table(devfreq->opp_table); in devfreq_dev_release()
876 devfreq->opp_table = dev_pm_opp_get_opp_table(dev); in devfreq_add_device()
877 if (IS_ERR(devfreq->opp_table)) in devfreq_add_device()
878 devfreq->opp_table = NULL; in devfreq_add_device()
H A Dtegra30-devfreq.c820 struct opp_table *opp_table, in tegra_devfreq_config_clks_nop() argument
/linux/drivers/soc/samsung/
H A Dexynos-asv.c83 struct opp_table *last_opp_table = NULL; in exynos_asv_update_opps()
88 struct opp_table *opp_table; in exynos_asv_update_opps() local
94 opp_table = dev_pm_opp_get_opp_table(cpu); in exynos_asv_update_opps()
95 if (IS_ERR(opp_table)) in exynos_asv_update_opps()
98 if (!last_opp_table || opp_table != last_opp_table) { in exynos_asv_update_opps()
99 last_opp_table = opp_table; in exynos_asv_update_opps()
114 dev_pm_opp_put_opp_table(opp_table); in exynos_asv_update_opps()
/linux/drivers/cpufreq/
H A Drcpufreq_dt.rs39 opp_table: opp::Table, field
98 let mut opp_table = match opp::Table::from_of_cpumask(dev, &mut mask) { in init() localVariable
111 opp_table.opp_count()?; in init()
116 opp_table.set_sharing_cpus(&mut mask)?; in init()
119 let mut transition_latency = opp_table.max_transition_latency_ns() as u32; in init()
126 .set_suspend_freq(opp_table.suspend_freq()) in init()
129 let freq_table = opp_table.cpufreq_table()?; in init()
140 opp_table, in init()
179 data.opp_table.set_rate(freq) in target_index()
H A Dairoha-cpufreq.c23 struct opp_table *opp_table, in airoha_cpufreq_config_clks_nop() argument
H A Dtegra186-cpufreq.c98 struct cpufreq_frequency_table **opp_table) in tegra_cpufreq_init_cpufreq_table() argument
164 *opp_table = &freq_table[0]; in tegra_cpufreq_init_cpufreq_table()
H A 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/rust/kernel/
H A Dopp.rs517 opp_table: *mut bindings::opp_table, in config_clks() argument
528 &unsafe { Table::from_raw_table(opp_table, &dev) }, in config_clks()
603 ptr: *mut bindings::opp_table,
625 unsafe fn from_raw_table(ptr: *mut bindings::opp_table, dev: &ARef<Device>) -> Self { in from_raw_table() argument
/linux/arch/arm64/boot/dts/qcom/
H A Dmsm8929.dtsi5 &opp_table {
H A Dmsm8939.dtsi1599 operating-points-v2 = <&opp_table>;
1605 opp_table: opp-table { label
/linux/drivers/pmdomain/
H A Dcore.c407 return dev_pm_opp_xlate_performance_state(genpd->opp_table, in genpd_xlate_performance_state()
408 parent->opp_table, in genpd_xlate_performance_state()
2417 genpd->opp_table = NULL; in pm_genpd_init()
2715 genpd->opp_table = dev_pm_opp_get_opp_table(&genpd->dev); in of_genpd_add_provider_simple()
2716 WARN_ON(IS_ERR(genpd->opp_table)); in of_genpd_add_provider_simple()
2729 if (genpd->opp_table) { in of_genpd_add_provider_simple()
2730 dev_pm_opp_put_opp_table(genpd->opp_table); in of_genpd_add_provider_simple()
2806 genpd->opp_table = dev_pm_opp_get_opp_table(&genpd->dev); in of_genpd_add_provider_onecell()
2807 WARN_ON(IS_ERR(genpd->opp_table)); in of_genpd_add_provider_onecell()
2830 if (genpd->opp_table) { in of_genpd_add_provider_onecell()
[all …]
/linux/Documentation/devicetree/bindings/cpufreq/
H A Dimx-cpufreq-dt.txt23 opp_table {
H A Dcpufreq-st.txt49 cpu0_opp_table: opp_table {
/linux/drivers/gpu/drm/panthor/
H A Dpanthor_devfreq.c145 struct opp_table *table; in panthor_devfreq_init()
/linux/include/ufs/
H A Dufshcd.h1323 int ufshcd_opp_config_clks(struct device *dev, struct opp_table *opp_table,
/linux/arch/arm/boot/dts/ti/davinci/
H A Dda850.dtsi28 operating-points-v2 = <&opp_table>;
32 opp_table: opp-table { label

12