Lines Matching full:opp1
1929 struct dev_pm_opp *opp1, struct dev_pm_opp *opp2) in _opp_compare_rate() argument
1934 if (opp1->rates[i] != opp2->rates[i]) in _opp_compare_rate()
1935 return opp1->rates[i] < opp2->rates[i] ? -1 : 1; in _opp_compare_rate()
1942 static int _opp_compare_bw(struct opp_table *opp_table, struct dev_pm_opp *opp1, in _opp_compare_bw() argument
1948 if (opp1->bandwidth[i].peak != opp2->bandwidth[i].peak) in _opp_compare_bw()
1949 return opp1->bandwidth[i].peak < opp2->bandwidth[i].peak ? -1 : 1; in _opp_compare_bw()
1958 * 0: opp1 == opp2
1959 * 1: opp1 > opp2
1960 * -1: opp1 < opp2
1962 int _opp_compare_key(struct opp_table *opp_table, struct dev_pm_opp *opp1, in _opp_compare_key() argument
1967 ret = _opp_compare_rate(opp_table, opp1, opp2); in _opp_compare_key()
1971 ret = _opp_compare_bw(opp_table, opp1, opp2); in _opp_compare_key()
1975 if (opp1->level != opp2->level) in _opp_compare_key()
1976 return opp1->level < opp2->level ? -1 : 1; in _opp_compare_key()