Lines Matching full:opp2
1875 struct dev_pm_opp *opp1, struct dev_pm_opp *opp2) in _opp_compare_rate() argument
1880 if (opp1->rates[i] != opp2->rates[i]) in _opp_compare_rate()
1881 return opp1->rates[i] < opp2->rates[i] ? -1 : 1; in _opp_compare_rate()
1889 struct dev_pm_opp *opp2) in _opp_compare_bw() argument
1894 if (opp1->bandwidth[i].peak != opp2->bandwidth[i].peak) in _opp_compare_bw()
1895 return opp1->bandwidth[i].peak < opp2->bandwidth[i].peak ? -1 : 1; in _opp_compare_bw()
1904 * 0: opp1 == opp2
1905 * 1: opp1 > opp2
1906 * -1: opp1 < opp2
1909 struct dev_pm_opp *opp2) in _opp_compare_key() argument
1913 ret = _opp_compare_rate(opp_table, opp1, opp2); in _opp_compare_key()
1917 ret = _opp_compare_bw(opp_table, opp1, opp2); in _opp_compare_key()
1921 if (opp1->level != opp2->level) in _opp_compare_key()
1922 return opp1->level < opp2->level ? -1 : 1; in _opp_compare_key()