Home
last modified time | relevance | path

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

/linux/drivers/opp/
H A Dcore.c26 * The root of the list of all opp-tables. All opp_table structures branch off
27 * from here, with each opp_table containing the list of opps it supports in
40 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, in _find_opp_table_unlocked()
94 assert_single_clk(struct opp_table * opp_table,unsigned int __always_unused index) assert_single_clk() argument
103 assert_clk_index(struct opp_table * opp_table,unsigned int index) assert_clk_index() argument
112 assert_bandwidth_index(struct opp_table * opp_table,unsigned int index) assert_bandwidth_index() argument
426 _get_opp_count(struct opp_table * opp_table) _get_opp_count() argument
513 _opp_table_find_key(struct opp_table * opp_table,unsigned long * key,int index,bool available,unsigned long (* read)(struct dev_pm_opp * opp,int index),bool (* compare)(struct dev_pm_opp ** opp,struct dev_pm_opp * temp_opp,unsigned long opp_key,unsigned long key),bool (* assert)(struct opp_table * opp_table,unsigned int index)) _opp_table_find_key() argument
518 _opp_table_find_key(struct opp_table * opp_table,unsigned long * key,int index,bool available,unsigned long (* read)(struct dev_pm_opp * opp,int index),bool (* compare)(struct dev_pm_opp ** opp,struct dev_pm_opp * temp_opp,unsigned long opp_key,unsigned long key),bool (* assert)(struct opp_table * opp_table,unsigned int index)) _opp_table_find_key() argument
549 _find_key(struct device * dev,unsigned long * key,int index,bool available,unsigned long (* read)(struct dev_pm_opp * opp,int index),bool (* compare)(struct dev_pm_opp ** opp,struct dev_pm_opp * temp_opp,unsigned long opp_key,unsigned long key),bool (* assert)(struct opp_table * opp_table,unsigned int index)) _find_key() argument
567 _find_key_exact(struct device * dev,unsigned long key,int index,bool available,unsigned long (* read)(struct dev_pm_opp * opp,int index),bool (* assert)(struct opp_table * opp_table,unsigned int index)) _find_key_exact() argument
577 _opp_table_find_key_ceil(struct opp_table * opp_table,unsigned long * key,int index,bool available,unsigned long (* read)(struct dev_pm_opp * opp,int index),bool (* assert)(struct opp_table * opp_table,unsigned int index)) _opp_table_find_key_ceil() argument
580 _opp_table_find_key_ceil(struct opp_table * opp_table,unsigned long * key,int index,bool available,unsigned long (* read)(struct dev_pm_opp * opp,int index),bool (* assert)(struct opp_table * opp_table,unsigned int index)) _opp_table_find_key_ceil() argument
589 _find_key_ceil(struct device * dev,unsigned long * key,int index,bool available,unsigned long (* read)(struct dev_pm_opp * opp,int index),bool (* assert)(struct opp_table * opp_table,unsigned int index)) _find_key_ceil() argument
598 _find_key_floor(struct device * dev,unsigned long * key,int index,bool available,unsigned long (* read)(struct dev_pm_opp * opp,int index),bool (* assert)(struct opp_table * opp_table,unsigned int index)) _find_key_floor() argument
664 _find_freq_ceil(struct opp_table * opp_table,unsigned long * freq) _find_freq_ceil() argument
957 _opp_config_clk_single(struct device * dev,struct opp_table * opp_table,struct dev_pm_opp * opp,void * data,bool scaling_down) _opp_config_clk_single() argument
990 dev_pm_opp_config_clks_simple(struct device * dev,struct opp_table * opp_table,struct dev_pm_opp * opp,void * data,bool scaling_down) dev_pm_opp_config_clks_simple() argument
1049 _set_opp_bw(const struct opp_table * opp_table,struct dev_pm_opp * opp,struct device * dev) _set_opp_bw() argument
1099 _set_required_opps(struct device * dev,struct opp_table * opp_table,struct dev_pm_opp * opp,bool up) _set_required_opps() argument
1139 _find_current_opp(struct device * dev,struct opp_table * opp_table) _find_current_opp() argument
1163 _disable_opp_table(struct device * dev,struct opp_table * opp_table) _disable_opp_table() argument
1196 _set_opp(struct device * dev,struct opp_table * opp_table,struct dev_pm_opp * opp,void * clk_data,bool forced) _set_opp() argument
1395 _remove_opp_dev(struct opp_device * opp_dev,struct opp_table * opp_table) _remove_opp_dev() argument
1403 _add_opp_dev(const struct device * dev,struct opp_table * opp_table) _add_opp_dev() argument
1425 struct opp_table *opp_table; _allocate_opp_table() local
1480 _update_opp_table_clk(struct device * dev,struct opp_table * opp_table,bool getclk) _update_opp_table_clk() argument
1546 struct opp_table *opp_table; _add_opp_table_indexed() local
1607 struct opp_table *opp_table = container_of(kref, struct opp_table, kref); _opp_table_kref_release() local
1639 dev_pm_opp_get_opp_table_ref(struct opp_table * opp_table) dev_pm_opp_get_opp_table_ref() argument
1646 dev_pm_opp_put_opp_table(struct opp_table * opp_table) dev_pm_opp_put_opp_table() argument
1661 struct opp_table *opp_table = opp->opp_table; _opp_kref_release() local
1729 _opp_get_next(struct opp_table * opp_table,bool dynamic) _opp_get_next() argument
1753 _opp_remove_all(struct opp_table * opp_table,bool dynamic) _opp_remove_all() argument
1767 _opp_remove_all_static(struct opp_table * opp_table) _opp_remove_all_static() argument
1799 _opp_allocate(struct opp_table * opp_table) _opp_allocate() argument
1832 _opp_supported_by_regulators(struct dev_pm_opp * opp,struct opp_table * opp_table) _opp_supported_by_regulators() argument
1856 _opp_compare_rate(struct opp_table * opp_table,struct dev_pm_opp * opp1,struct dev_pm_opp * opp2) _opp_compare_rate() argument
1870 _opp_compare_bw(struct opp_table * opp_table,struct dev_pm_opp * opp1,struct dev_pm_opp * opp2) _opp_compare_bw() argument
1890 _opp_compare_key(struct opp_table * opp_table,struct dev_pm_opp * opp1,struct dev_pm_opp * opp2) _opp_compare_key() argument
1911 _opp_is_duplicate(struct device * dev,struct dev_pm_opp * new_opp,struct opp_table * opp_table,struct list_head ** head) _opp_is_duplicate() argument
1975 _opp_add(struct device * dev,struct dev_pm_opp * new_opp,struct opp_table * opp_table) _opp_add() argument
2031 _opp_add_v1(struct opp_table * opp_table,struct device * dev,struct dev_pm_opp_data * data,bool dynamic) _opp_add_v1() argument
2083 _opp_set_supported_hw(struct opp_table * opp_table,const u32 * versions,unsigned int count) _opp_set_supported_hw() argument
2100 _opp_put_supported_hw(struct opp_table * opp_table) _opp_put_supported_hw() argument
2115 _opp_set_prop_name(struct opp_table * opp_table,const char * name) _opp_set_prop_name() argument
2127 _opp_put_prop_name(struct opp_table * opp_table) _opp_put_prop_name() argument
2142 _opp_set_regulators(struct opp_table * opp_table,struct device * dev,const char * const names[]) _opp_set_regulators() argument
2197 _opp_put_regulators(struct opp_table * opp_table) _opp_put_regulators() argument
2217 _put_clks(struct opp_table * opp_table,int count) _put_clks() argument
2237 _opp_set_clknames(struct opp_table * opp_table,struct device * dev,const char * const names[],config_clks_t config_clks) _opp_set_clknames() argument
2312 _opp_put_clknames(struct opp_table * opp_table) _opp_put_clknames() argument
2328 _opp_set_config_regulators_helper(struct opp_table * opp_table,struct device * dev,config_regulators_t config_regulators) _opp_set_config_regulators_helper() argument
2338 _opp_put_config_regulators_helper(struct opp_table * opp_table) _opp_put_config_regulators_helper() argument
2344 _opp_set_required_dev(struct opp_table * opp_table,struct device * dev,struct device * required_dev,unsigned int index) _opp_set_required_dev() argument
2400 _opp_put_required_dev(struct opp_table * opp_table,unsigned int index) _opp_put_required_dev() argument
2445 struct opp_table *opp_table; dev_pm_opp_set_config() local
2740 struct opp_table *opp_table; dev_pm_opp_add_dynamic() local
[all...]
H A Dopp.h41 * @opp_table: OPP table
49 struct opp_table *opp_table; member
78 * device 1, 2.. are represented by opp_table structure while each opp
102 * @opp_table: points back to the opp_table struct this opp belongs to
126 struct opp_table *opp_table; member
137 * struct opp_device - devices managed by 'struct opp_table'
143 * by 'struct opp_table'
206 struct opp_table { global() struct
222 shared_oppopp_table global() argument
227 required_opp_tablesopp_table global() argument
228 required_devsopp_table global() argument
229 required_opp_countopp_table global() argument
253 dentry_nameopp_table global() argument
266 lazy_linking_pending(struct opp_table * opp_table) lazy_linking_pending() argument
277 _of_init_opp_table(struct opp_table * opp_table,struct device * dev,int index) _of_init_opp_table() argument
278 _of_clear_opp_table(struct opp_table * opp_table) _of_clear_opp_table() argument
280 _of_clear_opp(struct opp_table * opp_table,struct dev_pm_opp * opp) _of_clear_opp() argument
292 opp_debug_create_one(struct dev_pm_opp * opp,struct opp_table * opp_table) opp_debug_create_one() argument
295 opp_debug_register(struct opp_device * opp_dev,struct opp_table * opp_table) opp_debug_register() argument
298 opp_debug_unregister(struct opp_device * opp_dev,struct opp_table * opp_table) opp_debug_unregister() argument
[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
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 managed_table = dev_pm_opp_get_opp_table_ref(opp_table); in _managed_opp()
74 static struct dev_pm_opp *_find_opp_of_np(struct opp_table *opp_table, in _find_opp_of_np() argument
79 guard(mutex)(&opp_table in _find_opp_of_np()
99 struct opp_table *opp_table; _find_table_of_opp_np() local
116 _opp_table_free_required_tables(struct opp_table * opp_table) _opp_table_free_required_tables() argument
144 _opp_table_alloc_required_tables(struct opp_table * opp_table,struct device * dev,struct device_node * opp_np) _opp_table_alloc_required_tables() argument
199 _of_init_opp_table(struct opp_table * opp_table,struct device * dev,int index) _of_init_opp_table() argument
236 _of_clear_opp_table(struct opp_table * opp_table) _of_clear_opp_table() argument
246 _of_opp_free_required_opps(struct opp_table * opp_table,struct dev_pm_opp * opp) _of_opp_free_required_opps() argument
267 _of_clear_opp(struct opp_table * opp_table,struct dev_pm_opp * opp) _of_clear_opp() argument
293 _of_opp_alloc_required_opps(struct opp_table * opp_table,struct dev_pm_opp * opp) _of_opp_alloc_required_opps() argument
327 lazy_link_required_opps(struct opp_table * opp_table,struct opp_table * new_table,int index) lazy_link_required_opps() argument
345 struct opp_table *opp_table, *temp, **required_opp_tables; lazy_link_required_opp_table() local
402 _bandwidth_supported(struct device * dev,struct opp_table * opp_table) _bandwidth_supported() argument
439 dev_pm_opp_of_find_icc_paths(struct device * dev,struct opp_table * opp_table) dev_pm_opp_of_find_icc_paths() argument
496 _opp_is_supported(struct device * dev,struct opp_table * opp_table,struct device_node * np) _opp_is_supported() argument
553 _parse_named_prop(struct dev_pm_opp * opp,struct device * dev,struct opp_table * opp_table,const char * prop_type,bool * triplet) _parse_named_prop() argument
616 opp_parse_microvolt(struct dev_pm_opp * opp,struct device * dev,struct opp_table * opp_table,bool * triplet) opp_parse_microvolt() argument
644 opp_parse_supplies(struct dev_pm_opp * opp,struct device * dev,struct opp_table * opp_table) opp_parse_supplies() argument
717 _read_rate(struct dev_pm_opp * new_opp,struct opp_table * opp_table,struct device_node * np) _read_rate() argument
761 _read_bw(struct dev_pm_opp * new_opp,struct opp_table * opp_table,struct device_node * np,bool peak) _read_bw() argument
803 _read_opp_key(struct dev_pm_opp * new_opp,struct opp_table * opp_table,struct device_node * np) _read_opp_key() argument
862 _opp_add_static_v2(struct opp_table * opp_table,struct device * dev,struct device_node * np) _opp_add_static_v2() argument
953 _of_add_opp_table_v2(struct device * dev,struct opp_table * opp_table) _of_add_opp_table_v2() argument
1001 _of_add_opp_table_v1(struct device * dev,struct opp_table * opp_table) _of_add_opp_table_v1() argument
1065 struct opp_table *opp_table; _of_add_table_indexed() local
[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
129 opp_debug_create_one(struct dev_pm_opp * opp,struct opp_table * opp_table) opp_debug_create_one() argument
172 opp_list_debug_create_dir(struct opp_device * opp_dev,struct opp_table * opp_table) opp_list_debug_create_dir() argument
187 opp_list_debug_create_link(struct opp_device * opp_dev,struct opp_table * opp_table) opp_list_debug_create_link() argument
207 opp_debug_register(struct opp_device * opp_dev,struct opp_table * opp_table) opp_debug_register() argument
216 opp_migrate_dentry(struct opp_device * opp_dev,struct opp_table * opp_table) opp_migrate_dentry() argument
255 opp_debug_unregister(struct opp_device * opp_dev,struct opp_table * opp_table) opp_debug_unregister() argument
[all...]
H A Dcpu.c27 * @opp_table: Cpufreq table returned back to caller
44 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()
91 * @opp_table: table to free
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()
157 struct opp_table *opp_table __fre 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,
103 struct opp_table *dev_pm_opp_get_opp_table(struct device *dev);
104 struct opp_table *dev_pm_opp_get_opp_table_ref(struct opp_table *opp_table);
105 void dev_pm_opp_put_opp_table(struct opp_table *opp_table);
188 struct opp_table *opp_tabl
212 dev_pm_opp_get_opp_table_ref(struct opp_table * opp_table) dev_pm_opp_get_opp_table_ref() argument
217 dev_pm_opp_put_opp_table(struct opp_table * opp_table) dev_pm_opp_put_opp_table() argument
415 dev_pm_opp_config_clks_simple(struct device * dev,struct opp_table * opp_table,struct dev_pm_opp * opp,void * data,bool scaling_down) dev_pm_opp_config_clks_simple() argument
578 dev_pm_opp_of_find_icc_paths(struct device * dev,struct opp_table * opp_table) dev_pm_opp_of_find_icc_paths() argument
[all...]
H A Ddevfreq.h151 * @opp_table: Reference to OPP table of dev.parent, if one exists.
191 struct opp_table *opp_table; member
H A Dpm_domain.h184 struct opp_table;
213 struct opp_table *opp_table; /* OPP table of the genpd */ member
/linux/drivers/devfreq/
H A 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()
257 struct opp_table *opp_table = NULL; cpufreq_passive_register_notifier() local
[all...]
H A Dgovernor.h55 * @opp_table: reference to cpu opp table.
69 struct opp_table *opp_table; member
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.c825 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.rs44 opp_table: opp::Table, field
103 let mut opp_table = match opp::Table::from_of_cpumask(dev, &mut mask) { in init() localVariable
116 opp_table.opp_count()?; in init()
121 opp_table.set_sharing_cpus(&mut mask)?; in init()
124 let mut transition_latency = opp_table.max_transition_latency_ns() as u32; in init()
131 .set_suspend_freq(opp_table.suspend_freq()) in init()
134 let freq_table = opp_table.cpufreq_table()?; in init()
145 opp_table, in init()
184 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 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/arch/arm64/boot/dts/qcom/
H A Dmsm8929.dtsi5 &opp_table {
H A Dmsm8939.dtsi1458 operating-points-v2 = <&opp_table>;
1464 opp_table: opp-table { label
/linux/rust/kernel/
H A Dopp.rs515 opp_table: *mut bindings::opp_table, in config_clks() argument
525 // SAFETY: 'opp_table' is guaranteed by the C code to be valid. in config_clks()
526 &unsafe { Table::from_raw_table(opp_table, &dev) }, in config_clks()
564 /// Rust abstraction for the C `struct opp_table`.
587 /// let mut opp_table = Table::from_of_cpumask(dev, mask)?;
589 /// if opp_table.opp_count()? == 0 {
593 /// pr_info!("Max transition latency is: {} ns\n", opp_table.max_transition_latency_ns());
594 /// pr_info!("Suspend frequency is: {:?}\n", opp_table.suspend_freq());
596 /// opp_table
623 from_raw_table(ptr: *mut bindings::opp_table, dev: &ARef<Device>) -> Self from_raw_table() argument
[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/include/ufs/
H A Dufshcd.h1345 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