Lines Matching refs:src_table
2716 struct dev_pm_opp *dev_pm_opp_xlate_required_opp(struct opp_table *src_table, in dev_pm_opp_xlate_required_opp() argument
2723 if (!src_table || !dst_table || !src_opp || in dev_pm_opp_xlate_required_opp()
2724 !src_table->required_opp_tables) in dev_pm_opp_xlate_required_opp()
2728 if (lazy_linking_pending(src_table)) in dev_pm_opp_xlate_required_opp()
2731 for (i = 0; i < src_table->required_opp_count; i++) { in dev_pm_opp_xlate_required_opp()
2732 if (src_table->required_opp_tables[i] == dst_table) { in dev_pm_opp_xlate_required_opp()
2733 mutex_lock(&src_table->lock); in dev_pm_opp_xlate_required_opp()
2735 list_for_each_entry(opp, &src_table->opp_list, node) { in dev_pm_opp_xlate_required_opp()
2743 mutex_unlock(&src_table->lock); in dev_pm_opp_xlate_required_opp()
2750 src_table, dst_table); in dev_pm_opp_xlate_required_opp()
2770 int dev_pm_opp_xlate_performance_state(struct opp_table *src_table, in dev_pm_opp_xlate_performance_state() argument
2785 if (!src_table || !src_table->required_opp_count) in dev_pm_opp_xlate_performance_state()
2789 if (unlikely(!src_table->is_genpd || !dst_table->is_genpd)) { in dev_pm_opp_xlate_performance_state()
2795 if (lazy_linking_pending(src_table)) in dev_pm_opp_xlate_performance_state()
2798 for (i = 0; i < src_table->required_opp_count; i++) { in dev_pm_opp_xlate_performance_state()
2799 if (src_table->required_opp_tables[i]->np == dst_table->np) in dev_pm_opp_xlate_performance_state()
2803 if (unlikely(i == src_table->required_opp_count)) { in dev_pm_opp_xlate_performance_state()
2805 __func__, src_table, dst_table); in dev_pm_opp_xlate_performance_state()
2809 mutex_lock(&src_table->lock); in dev_pm_opp_xlate_performance_state()
2811 list_for_each_entry(opp, &src_table->opp_list, node) { in dev_pm_opp_xlate_performance_state()
2818 pr_err("%s: Couldn't find matching OPP (%p: %p)\n", __func__, src_table, in dev_pm_opp_xlate_performance_state()
2822 mutex_unlock(&src_table->lock); in dev_pm_opp_xlate_performance_state()