Lines Matching refs:opp_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()
178 opp_dev = _add_opp_dev(dev, opp_table); in dev_pm_opp_set_sharing_cpus()
186 opp_table->shared_opp = OPP_TABLE_ACCESS_SHARED; in dev_pm_opp_set_sharing_cpus()
189 dev_pm_opp_put_opp_table(opp_table); in dev_pm_opp_set_sharing_cpus()
208 struct opp_table *opp_table; in dev_pm_opp_get_sharing_cpus() local
211 opp_table = _find_opp_table(cpu_dev); in dev_pm_opp_get_sharing_cpus()
212 if (IS_ERR(opp_table)) in dev_pm_opp_get_sharing_cpus()
213 return PTR_ERR(opp_table); in dev_pm_opp_get_sharing_cpus()
215 if (opp_table->shared_opp == OPP_TABLE_ACCESS_UNKNOWN) { in dev_pm_opp_get_sharing_cpus()
222 if (opp_table->shared_opp == OPP_TABLE_ACCESS_SHARED) { in dev_pm_opp_get_sharing_cpus()
223 mutex_lock(&opp_table->lock); in dev_pm_opp_get_sharing_cpus()
224 list_for_each_entry(opp_dev, &opp_table->dev_list, node) in dev_pm_opp_get_sharing_cpus()
226 mutex_unlock(&opp_table->lock); in dev_pm_opp_get_sharing_cpus()
232 dev_pm_opp_put_opp_table(opp_table); in dev_pm_opp_get_sharing_cpus()