| /linux/drivers/opp/ |
| H A D | core.c | 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, &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 D | opp.h | 49 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 D | of.c | 45 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 D | cpu.c | 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() 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/drivers/devfreq/ |
| H A D | governor_passive.c | 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() 166 parent_devfreq->opp_table, in get_target_freq_with_devfreq() [all …]
|
| H A D | devfreq.c | 780 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()
|
| /linux/drivers/soc/samsung/ |
| H A D | exynos-asv.c | 83 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 D | opp.rs | 517 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 D | msm8929.dtsi | 5 &opp_table {
|
| /linux/include/linux/ |
| H A D | devfreq.h | 191 struct opp_table *opp_table; member
|
| /linux/Documentation/devicetree/bindings/cpufreq/ |
| H A D | imx-cpufreq-dt.txt | 23 opp_table {
|
| H A D | cpufreq-st.txt | 49 cpu0_opp_table: opp_table {
|
| /linux/drivers/pmdomain/ |
| H A D | core.c | 407 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/drivers/cpufreq/ |
| H A D | tegra186-cpufreq.c | 98 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 D | tegra194-cpufreq.c | 425 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/include/ufs/ |
| H A D | ufshcd.h | 1323 int ufshcd_opp_config_clks(struct device *dev, struct opp_table *opp_table,
|
| /linux/arch/arm/boot/dts/ti/davinci/ |
| H A D | da850.dtsi | 28 operating-points-v2 = <&opp_table>; 32 opp_table: opp-table { label
|
| /linux/drivers/ufs/core/ |
| H A D | ufshcd.c | 1154 int ufshcd_opp_config_clks(struct device *dev, struct opp_table *opp_table, in ufshcd_opp_config_clks() argument
|