Home
last modified time | relevance | path

Searched full:opp_table (Results 1 – 14 of 14) 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
428 _get_opp_count(struct opp_table * opp_table) _get_opp_count() argument
541 _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
546 _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
572 _opp_table_find_opp_key(struct opp_table * opp_table,struct dev_pm_opp_key * key,bool available,unsigned long (* read)(struct dev_pm_opp * opp,int index,struct dev_pm_opp_key * key),bool (* compare)(struct dev_pm_opp ** opp,struct dev_pm_opp * temp_opp,struct dev_pm_opp_key * opp_key,struct dev_pm_opp_key * key),bool (* assert)(struct opp_table * opp_table,unsigned int index)) _opp_table_find_opp_key() argument
578 _opp_table_find_opp_key(struct opp_table * opp_table,struct dev_pm_opp_key * key,bool available,unsigned long (* read)(struct dev_pm_opp * opp,int index,struct dev_pm_opp_key * key),bool (* compare)(struct dev_pm_opp ** opp,struct dev_pm_opp * temp_opp,struct dev_pm_opp_key * opp_key,struct dev_pm_opp_key * key),bool (* assert)(struct opp_table * opp_table,unsigned int index)) _opp_table_find_opp_key() argument
608 _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
626 _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
636 _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
639 _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
648 _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
657 _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
765 _find_freq_ceil(struct opp_table * opp_table,unsigned long * freq) _find_freq_ceil() argument
1058 _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
1091 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
1150 _set_opp_bw(const struct opp_table * opp_table,struct dev_pm_opp * opp,struct device * dev) _set_opp_bw() argument
1200 _set_required_opps(struct device * dev,struct opp_table * opp_table,struct dev_pm_opp * opp,bool up) _set_required_opps() argument
1240 _find_current_opp(struct device * dev,struct opp_table * opp_table) _find_current_opp() argument
1264 _disable_opp_table(struct device * dev,struct opp_table * opp_table) _disable_opp_table() argument
1297 _set_opp(struct device * dev,struct opp_table * opp_table,struct dev_pm_opp * opp,void * clk_data,bool forced) _set_opp() argument
1496 _remove_opp_dev(struct opp_device * opp_dev,struct opp_table * opp_table) _remove_opp_dev() argument
1504 _add_opp_dev(const struct device * dev,struct opp_table * opp_table) _add_opp_dev() argument
1526 struct opp_table *opp_table; _allocate_opp_table() local
1581 _update_opp_table_clk(struct device * dev,struct opp_table * opp_table,bool getclk) _update_opp_table_clk() argument
1641 struct opp_table *opp_table; _add_opp_table_indexed() local
1702 struct opp_table *opp_table = container_of(kref, struct opp_table, kref); _opp_table_kref_release() local
1734 dev_pm_opp_get_opp_table_ref(struct opp_table * opp_table) dev_pm_opp_get_opp_table_ref() argument
1741 dev_pm_opp_put_opp_table(struct opp_table * opp_table) dev_pm_opp_put_opp_table() argument
1756 struct opp_table *opp_table = opp->opp_table; _opp_kref_release() local
1825 _opp_get_next(struct opp_table * opp_table,bool dynamic) _opp_get_next() argument
1849 _opp_remove_all(struct opp_table * opp_table,bool dynamic) _opp_remove_all() argument
1863 _opp_remove_all_static(struct opp_table * opp_table) _opp_remove_all_static() argument
1895 _opp_allocate(struct opp_table * opp_table) _opp_allocate() argument
1928 _opp_supported_by_regulators(struct dev_pm_opp * opp,struct opp_table * opp_table) _opp_supported_by_regulators() argument
1952 _opp_compare_rate(struct opp_table * opp_table,struct dev_pm_opp * opp1,struct dev_pm_opp * opp2) _opp_compare_rate() argument
1966 _opp_compare_bw(struct opp_table * opp_table,struct dev_pm_opp * opp1,struct dev_pm_opp * opp2) _opp_compare_bw() argument
1986 _opp_compare_key(struct opp_table * opp_table,struct dev_pm_opp * opp1,struct dev_pm_opp * opp2) _opp_compare_key() argument
2007 _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
2071 _opp_add(struct device * dev,struct dev_pm_opp * new_opp,struct opp_table * opp_table) _opp_add() argument
2126 _opp_add_v1(struct opp_table * opp_table,struct device * dev,struct dev_pm_opp_data * data,bool dynamic) _opp_add_v1() argument
2178 _opp_set_supported_hw(struct opp_table * opp_table,const u32 * versions,unsigned int count) _opp_set_supported_hw() argument
2195 _opp_put_supported_hw(struct opp_table * opp_table) _opp_put_supported_hw() argument
2210 _opp_set_prop_name(struct opp_table * opp_table,const char * name) _opp_set_prop_name() argument
2222 _opp_put_prop_name(struct opp_table * opp_table) _opp_put_prop_name() argument
2237 _opp_set_regulators(struct opp_table * opp_table,struct device * dev,const char * const names[]) _opp_set_regulators() argument
2290 _opp_put_regulators(struct opp_table * opp_table) _opp_put_regulators() argument
2310 _put_clks(struct opp_table * opp_table,int count) _put_clks() argument
2330 _opp_set_clknames(struct opp_table * opp_table,struct device * dev,const char * const names[],config_clks_t config_clks) _opp_set_clknames() argument
2404 _opp_put_clknames(struct opp_table * opp_table) _opp_put_clknames() argument
2420 _opp_set_config_regulators_helper(struct opp_table * opp_table,struct device * dev,config_regulators_t config_regulators) _opp_set_config_regulators_helper() argument
2430 _opp_put_config_regulators_helper(struct opp_table * opp_table) _opp_put_config_regulators_helper() argument
2436 _opp_set_required_dev(struct opp_table * opp_table,struct device * dev,struct device * required_dev,unsigned int index) _opp_set_required_dev() argument
2492 _opp_put_required_dev(struct opp_table * opp_table,unsigned int index) _opp_put_required_dev() argument
2537 struct opp_table *opp_table; dev_pm_opp_set_config() local
2832 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'.
161 * struct opp_table - Device opp structure
206 struct opp_table { struct
227 struct opp_table **required_opp_tables; 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()
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()
[all …]
/linux/drivers/devfreq/
H A Dgovernor_passive.c25 * @opp_table: reference to cpu opp table.
39 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()
[all …]
/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/rust/kernel/
H A Dopp.rs517 opp_table: *mut bindings::opp_table, in config_clks() argument
527 // SAFETY: 'opp_table' is guaranteed by the C code to be valid. in config_clks()
528 &unsafe { Table::from_raw_table(opp_table, &dev) }, in config_clks()
566 /// Rust abstraction for the C `struct opp_table`.
589 /// let mut opp_table = Table::from_of_cpumask(dev, mask)?;
591 /// if opp_table.opp_count()? == 0 {
595 /// pr_info!("Max transition latency is: {} ns\n", opp_table.max_transition_latency_ns());
596 /// pr_info!("Suspend frequency is: {:?}\n", opp_table.suspend_freq());
598 /// opp_table
625 from_raw_table(ptr: *mut bindings::opp_table, dev: &ARef<Device>) -> Self from_raw_table() argument
[all...]
/linux/arch/arm64/boot/dts/qcom/
H A Dmsm8929.dtsi5 &opp_table {
/linux/include/linux/
H A Ddevfreq.h151 * @opp_table: Reference to OPP table of dev.parent, if one exists.
191 struct opp_table *opp_table; member
/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/cpufreq/
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()
/linux/drivers/pmdomain/
H A Dcore.c402 return dev_pm_opp_xlate_performance_state(genpd->opp_table, in genpd_xlate_performance_state()
403 parent->opp_table, in genpd_xlate_performance_state()
2418 genpd->opp_table = NULL; in pm_genpd_init()
2721 genpd->opp_table = dev_pm_opp_get_opp_table(&genpd->dev); in of_genpd_add_provider_simple()
2722 WARN_ON(IS_ERR(genpd->opp_table)); in of_genpd_add_provider_simple()
2735 if (genpd->opp_table) { in of_genpd_add_provider_simple()
2736 dev_pm_opp_put_opp_table(genpd->opp_table); in of_genpd_add_provider_simple()
2813 genpd->opp_table = dev_pm_opp_get_opp_table(&genpd->dev); in of_genpd_add_provider_onecell()
2814 WARN_ON(IS_ERR(genpd->opp_table)); in of_genpd_add_provider_onecell()
2837 if (genpd->opp_table) { in of_genpd_add_provider_onecell()
[all …]
/linux/arch/arm/boot/dts/ti/davinci/
H A Dda850.dtsi28 operating-points-v2 = <&opp_table>;
32 opp_table: opp-table { label
/linux/drivers/ufs/core/
H A Dufshcd.c1131 int ufshcd_opp_config_clks(struct device *dev, struct opp_table *opp_table, in ufshcd_opp_config_clks() argument