Lines Matching full:opp1
1874 struct dev_pm_opp *opp1, struct dev_pm_opp *opp2) in _opp_compare_rate() argument
1879 if (opp1->rates[i] != opp2->rates[i]) in _opp_compare_rate()
1880 return opp1->rates[i] < opp2->rates[i] ? -1 : 1; in _opp_compare_rate()
1887 static int _opp_compare_bw(struct opp_table *opp_table, struct dev_pm_opp *opp1, in _opp_compare_bw() argument
1893 if (opp1->bandwidth[i].peak != opp2->bandwidth[i].peak) in _opp_compare_bw()
1894 return opp1->bandwidth[i].peak < opp2->bandwidth[i].peak ? -1 : 1; in _opp_compare_bw()
1903 * 0: opp1 == opp2
1904 * 1: opp1 > opp2
1905 * -1: opp1 < opp2
1907 int _opp_compare_key(struct opp_table *opp_table, struct dev_pm_opp *opp1, in _opp_compare_key() argument
1912 ret = _opp_compare_rate(opp_table, opp1, opp2); in _opp_compare_key()
1916 ret = _opp_compare_bw(opp_table, opp1, opp2); in _opp_compare_key()
1920 if (opp1->level != opp2->level) in _opp_compare_key()
1921 return opp1->level < opp2->level ? -1 : 1; in _opp_compare_key()