Home
last modified time | relevance | path

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

/openbmc/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
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
83 struct opp_table *opp_table; _find_opp_table() local
104 assert_single_clk(struct opp_table * opp_table) assert_single_clk() argument
278 struct opp_table *opp_table; dev_pm_opp_get_max_clock_latency() local
301 struct opp_table *opp_table; dev_pm_opp_get_max_volt_latency() local
387 struct opp_table *opp_table; dev_pm_opp_get_suspend_opp_freq() local
403 _get_opp_count(struct opp_table * opp_table) _get_opp_count() argument
429 struct opp_table *opp_table; dev_pm_opp_get_opp_count() local
497 _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)) _opp_table_find_key() argument
502 _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)) _opp_table_find_key() argument
535 _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)) _find_key() argument
537 struct opp_table *opp_table; _find_key() local
558 _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)) _find_key_exact() argument
568 _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)) _opp_table_find_key_ceil() argument
571 _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)) _opp_table_find_key_ceil() argument
580 _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)) _find_key_ceil() argument
589 _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)) _find_key_floor() argument
654 _find_freq_ceil(struct opp_table * opp_table,unsigned long * freq) _find_freq_ceil() argument
904 _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
937 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
996 _set_opp_bw(const struct opp_table * opp_table,struct dev_pm_opp * opp,struct device * dev) _set_opp_bw() argument
1043 _opp_set_required_opps_generic(struct device * dev,struct opp_table * opp_table,struct dev_pm_opp * opp,bool scaling_down) _opp_set_required_opps_generic() argument
1050 _opp_set_required_opps_genpd(struct device * dev,struct opp_table * opp_table,struct dev_pm_opp * opp,bool scaling_down) _opp_set_required_opps_genpd() argument
1083 _set_required_opps(struct device * dev,struct opp_table * opp_table,struct dev_pm_opp * opp,bool up) _set_required_opps() argument
1097 _update_set_required_opps(struct opp_table * opp_table) _update_set_required_opps() argument
1110 _find_current_opp(struct device * dev,struct opp_table * opp_table) _find_current_opp() argument
1135 _disable_opp_table(struct device * dev,struct opp_table * opp_table) _disable_opp_table() argument
1163 _set_opp(struct device * dev,struct opp_table * opp_table,struct dev_pm_opp * opp,void * clk_data,bool forced) _set_opp() argument
1274 struct opp_table *opp_table; dev_pm_opp_set_rate() local
1351 struct opp_table *opp_table; dev_pm_opp_set_opp() local
1369 _remove_opp_dev(struct opp_device * opp_dev,struct opp_table * opp_table) _remove_opp_dev() argument
1377 _add_opp_dev(const struct device * dev,struct opp_table * opp_table) _add_opp_dev() argument
1400 struct opp_table *opp_table; _allocate_opp_table() local
1456 _get_opp_table_kref(struct opp_table * opp_table) _get_opp_table_kref() argument
1462 _update_opp_table_clk(struct device * dev,struct opp_table * opp_table,bool getclk) _update_opp_table_clk() argument
1528 struct opp_table *opp_table; _add_opp_table_indexed() local
1589 struct opp_table *opp_table = container_of(kref, struct opp_table, kref); _opp_table_kref_release() local
1622 dev_pm_opp_put_opp_table(struct opp_table * opp_table) dev_pm_opp_put_opp_table() argument
1637 struct opp_table *opp_table = opp->opp_table; _opp_kref_release() local
1673 struct opp_table *opp_table; dev_pm_opp_remove() local
1709 _opp_get_next(struct opp_table * opp_table,bool dynamic) _opp_get_next() argument
1735 _opp_remove_all(struct opp_table * opp_table,bool dynamic) _opp_remove_all() argument
1749 _opp_remove_all_static(struct opp_table * opp_table) _opp_remove_all_static() argument
1777 struct opp_table *opp_table; dev_pm_opp_remove_all_dynamic() local
1790 _opp_allocate(struct opp_table * opp_table) _opp_allocate() argument
1821 _opp_supported_by_regulators(struct dev_pm_opp * opp,struct opp_table * opp_table) _opp_supported_by_regulators() argument
1845 _opp_compare_rate(struct opp_table * opp_table,struct dev_pm_opp * opp1,struct dev_pm_opp * opp2) _opp_compare_rate() argument
1859 _opp_compare_bw(struct opp_table * opp_table,struct dev_pm_opp * opp1,struct dev_pm_opp * opp2) _opp_compare_bw() argument
1879 _opp_compare_key(struct opp_table * opp_table,struct dev_pm_opp * opp1,struct dev_pm_opp * opp2) _opp_compare_key() argument
1900 _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
1964 _opp_add(struct device * dev,struct dev_pm_opp * new_opp,struct opp_table * opp_table) _opp_add() argument
2023 _opp_add_v1(struct opp_table * opp_table,struct device * dev,unsigned long freq,long u_volt,bool dynamic) _opp_add_v1() argument
2078 _opp_set_supported_hw(struct opp_table * opp_table,const u32 * versions,unsigned int count) _opp_set_supported_hw() argument
2103 _opp_put_supported_hw(struct opp_table * opp_table) _opp_put_supported_hw() argument
2122 _opp_set_prop_name(struct opp_table * opp_table,const char * name) _opp_set_prop_name() argument
2142 _opp_put_prop_name(struct opp_table * opp_table) _opp_put_prop_name() argument
2162 _opp_set_regulators(struct opp_table * opp_table,struct device * dev,const char * const names[]) _opp_set_regulators() argument
2221 _opp_put_regulators(struct opp_table * opp_table) _opp_put_regulators() argument
2241 _put_clks(struct opp_table * opp_table,int count) _put_clks() argument
2265 _opp_set_clknames(struct opp_table * opp_table,struct device * dev,const char * const names[],config_clks_t config_clks) _opp_set_clknames() argument
2344 _opp_put_clknames(struct opp_table * opp_table) _opp_put_clknames() argument
2364 _opp_set_config_regulators_helper(struct opp_table * opp_table,struct device * dev,config_regulators_t config_regulators) _opp_set_config_regulators_helper() argument
2381 _opp_put_config_regulators_helper(struct opp_table * opp_table) _opp_put_config_regulators_helper() argument
2387 _detach_genpd(struct opp_table * opp_table) _detach_genpd() argument
2428 _opp_attach_genpd(struct opp_table * opp_table,struct device * dev,const char * const * names,struct device *** virt_devs) _opp_attach_genpd() argument
2494 _opp_detach_genpd(struct opp_table * opp_table) _opp_detach_genpd() argument
2543 struct opp_table *opp_table; dev_pm_opp_set_config() local
2846 struct opp_table *opp_table; dev_pm_opp_add() local
2880 struct opp_table *opp_table; _opp_set_availability() local
2956 struct opp_table *opp_table; dev_pm_opp_adjust_voltage() local
3062 struct opp_table *opp_table; dev_pm_opp_register_notifier() local
3087 struct opp_table *opp_table; dev_pm_opp_unregister_notifier() local
3111 struct opp_table *opp_table; dev_pm_opp_remove_table() local
3148 struct opp_table *opp_table; dev_pm_opp_sync_regulators() local
[all...]
H A Dopp.h48 struct opp_table *opp_table; member
112 struct opp_table *opp_table; member
194 struct opp_table { struct
217 struct opp_table **required_opp_tables; argument
235 struct opp_table *opp_table, struct dev_pm_opp *opp, bool scaling_down); argument
245 bool _opp_remove_all_static(struct opp_table *opp_table); argument
246 void _get_opp_table_kref(struct opp_table *opp_table);
247 int _get_opp_count(struct opp_table *opp_table);
248 struct opp_table *_find_opp_table(struct device *dev);
249 struct opp_device *_add_opp_dev(const struct device *dev, struct opp_table *opp_table);
[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 _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
107 struct opp_table *opp_table; _find_table_of_opp_np() local
132 _opp_table_free_required_tables(struct opp_table * opp_table) _opp_table_free_required_tables() argument
161 _opp_table_alloc_required_tables(struct opp_table * opp_table,struct device * dev,struct device_node * opp_np) _opp_table_alloc_required_tables() argument
223 _of_init_opp_table(struct opp_table * opp_table,struct device * dev,int index) _of_init_opp_table() argument
262 _of_clear_opp_table(struct opp_table * opp_table) _of_clear_opp_table() argument
272 _of_opp_free_required_opps(struct opp_table * opp_table,struct dev_pm_opp * opp) _of_opp_free_required_opps() argument
293 _of_clear_opp(struct opp_table * opp_table,struct dev_pm_opp * opp) _of_clear_opp() argument
300 _of_opp_alloc_required_opps(struct opp_table * opp_table,struct dev_pm_opp * opp) _of_opp_alloc_required_opps() argument
350 lazy_link_required_opps(struct opp_table * opp_table,struct opp_table * new_table,int index) lazy_link_required_opps() argument
377 struct opp_table *opp_table, *temp, **required_opp_tables; lazy_link_required_opp_table() local
440 _bandwidth_supported(struct device * dev,struct opp_table * opp_table) _bandwidth_supported() argument
478 dev_pm_opp_of_find_icc_paths(struct device * dev,struct opp_table * opp_table) dev_pm_opp_of_find_icc_paths() argument
537 _opp_is_supported(struct device * dev,struct opp_table * opp_table,struct device_node * np) _opp_is_supported() argument
594 _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
657 opp_parse_microvolt(struct dev_pm_opp * opp,struct device * dev,struct opp_table * opp_table,bool * triplet) opp_parse_microvolt() argument
685 opp_parse_supplies(struct dev_pm_opp * opp,struct device * dev,struct opp_table * opp_table) opp_parse_supplies() argument
758 _read_rate(struct dev_pm_opp * new_opp,struct opp_table * opp_table,struct device_node * np) _read_rate() argument
802 _read_bw(struct dev_pm_opp * new_opp,struct opp_table * opp_table,struct device_node * np,bool peak) _read_bw() argument
844 _read_opp_key(struct dev_pm_opp * new_opp,struct opp_table * opp_table,struct device_node * np) _read_opp_key() argument
903 _opp_add_static_v2(struct opp_table * opp_table,struct device * dev,struct device_node * np) _opp_add_static_v2() argument
992 _of_add_opp_table_v2(struct device * dev,struct opp_table * opp_table) _of_add_opp_table_v2() argument
1041 _of_add_opp_table_v1(struct device * dev,struct opp_table * opp_table) _of_add_opp_table_v1() argument
1102 struct opp_table *opp_table; _of_add_table_indexed() local
1374 struct opp_table *opp_table; of_get_required_opp_performance_state() 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
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
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 …]
/openbmc/linux/include/linux/
H A Dpm_opp.h22 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);
175 struct opp_table *opp_table, struct dev_pm_opp *opp, void *data,
178 struct dev_pm_opp *dev_pm_opp_xlate_required_opp(struct opp_table *src_table, struct opp_table *dst…
179 int dev_pm_opp_xlate_performance_state(struct opp_table *src_table, struct opp_table *dst_table, un…
188 static inline struct opp_table *dev_pm_opp_get_opp_table(struct device *dev) in dev_pm_opp_get_opp_table()
193 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()
198 static inline void dev_pm_opp_put_opp_table(struct opp_table *opp_table) {} in dev_pm_opp_put_opp_table() argument
[all …]
H A Dpm_domain.h117 struct opp_table;
143 struct opp_table *opp_table; /* OPP table of the genpd */ member
H A Ddevfreq.h187 struct opp_table *opp_table; member
/openbmc/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()
142 devfreq->opp_table, freq); in get_target_freq_with_devfreq()
[all …]
H A Dgovernor.h69 struct opp_table *opp_table; member
H A 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()
H A Dtegra30-devfreq.c825 struct opp_table *opp_table, in tegra_devfreq_config_clks_nop() argument
/openbmc/linux/drivers/soc/samsung/
H A Dexynos-asv.c81 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()
/openbmc/linux/Documentation/devicetree/bindings/cpufreq/
H A Dimx-cpufreq-dt.txt23 opp_table {
H A Dcpufreq-st.txt49 cpu0_opp_table: opp_table {
H A Dcpufreq-mediatek.txt36 cpu_opp_table: opp_table {
/openbmc/linux/drivers/base/power/
H A Ddomain.c309 return dev_pm_opp_xlate_performance_state(genpd->opp_table, in genpd_xlate_performance_state()
310 parent->opp_table, in genpd_xlate_performance_state()
2341 genpd->opp_table = dev_pm_opp_get_opp_table(&genpd->dev); in of_genpd_add_provider_simple()
2342 WARN_ON(IS_ERR(genpd->opp_table)); in of_genpd_add_provider_simple()
2348 dev_pm_opp_put_opp_table(genpd->opp_table); in of_genpd_add_provider_simple()
2403 genpd->opp_table = dev_pm_opp_get_opp_table(&genpd->dev); in of_genpd_add_provider_onecell()
2404 WARN_ON(IS_ERR(genpd->opp_table)); in of_genpd_add_provider_onecell()
2428 dev_pm_opp_put_opp_table(genpd->opp_table); in of_genpd_add_provider_onecell()
2462 dev_pm_opp_put_opp_table(gpd->opp_table); in of_genpd_del_provider()
/openbmc/linux/drivers/cpufreq/
H A Dtegra194-cpufreq.c399 struct cpufreq_frequency_table **opp_table) in tegra_cpufreq_init_cpufreq_table() argument
467 *opp_table = &freq_table[0]; in tegra_cpufreq_init_cpufreq_table()
/openbmc/linux/arch/arm/boot/dts/ti/davinci/
H A Dda850.dtsi28 operating-points-v2 = <&opp_table>;
32 opp_table: opp-table { label
/openbmc/linux/arch/arm64/boot/dts/qcom/
H A Dmsm8939.dtsi1419 operating-points-v2 = <&opp_table>;
1422 opp_table: opp-table { label