Lines Matching full:opp1
1869 struct dev_pm_opp *opp1, struct dev_pm_opp *opp2) in _opp_compare_rate() argument
1874 if (opp1->rates[i] != opp2->rates[i]) in _opp_compare_rate()
1875 return opp1->rates[i] < opp2->rates[i] ? -1 : 1; in _opp_compare_rate()
1882 static int _opp_compare_bw(struct opp_table *opp_table, struct dev_pm_opp *opp1, in _opp_compare_bw() argument
1888 if (opp1->bandwidth[i].peak != opp2->bandwidth[i].peak) in _opp_compare_bw()
1889 return opp1->bandwidth[i].peak < opp2->bandwidth[i].peak ? -1 : 1; in _opp_compare_bw()
1898 * 0: opp1 == opp2
1899 * 1: opp1 > opp2
1900 * -1: opp1 < opp2
1902 int _opp_compare_key(struct opp_table *opp_table, struct dev_pm_opp *opp1, in _opp_compare_key() argument
1907 ret = _opp_compare_rate(opp_table, opp1, opp2); in _opp_compare_key()
1911 ret = _opp_compare_bw(opp_table, opp1, opp2); in _opp_compare_key()
1915 if (opp1->level != opp2->level) in _opp_compare_key()
1916 return opp1->level < opp2->level ? -1 : 1; in _opp_compare_key()