Lines Matching refs:opp_table
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()
157 struct opp_table *opp_table __free(put_opp_table); in dev_pm_opp_set_sharing_cpus()
162 opp_table = _find_opp_table(cpu_dev); in dev_pm_opp_set_sharing_cpus()
163 if (IS_ERR(opp_table)) in dev_pm_opp_set_sharing_cpus()
164 return PTR_ERR(opp_table); in dev_pm_opp_set_sharing_cpus()
177 opp_dev = _add_opp_dev(dev, opp_table); in dev_pm_opp_set_sharing_cpus()
185 opp_table->shared_opp = OPP_TABLE_ACCESS_SHARED; in dev_pm_opp_set_sharing_cpus()
204 struct opp_table *opp_table __free(put_opp_table); in dev_pm_opp_get_sharing_cpus()
207 opp_table = _find_opp_table(cpu_dev); in dev_pm_opp_get_sharing_cpus()
208 if (IS_ERR(opp_table)) in dev_pm_opp_get_sharing_cpus()
209 return PTR_ERR(opp_table); in dev_pm_opp_get_sharing_cpus()
211 if (opp_table->shared_opp == OPP_TABLE_ACCESS_UNKNOWN) in dev_pm_opp_get_sharing_cpus()
216 if (opp_table->shared_opp == OPP_TABLE_ACCESS_SHARED) { in dev_pm_opp_get_sharing_cpus()
217 guard(mutex)(&opp_table->lock); in dev_pm_opp_get_sharing_cpus()
218 list_for_each_entry(opp_dev, &opp_table->dev_list, node) in dev_pm_opp_get_sharing_cpus()