Lines Matching refs:new_opp
738 data->new_opp.rate = freq; in _set_opp_custom()
739 memcpy(data->new_opp.supplies, new_supply, size); in _set_opp_custom()
1285 static int _opp_is_duplicate(struct device *dev, struct dev_pm_opp *new_opp, in _opp_is_duplicate() argument
1300 if (new_opp->rate > opp->rate) { in _opp_is_duplicate()
1305 if (new_opp->rate < opp->rate) in _opp_is_duplicate()
1311 opp->available, new_opp->rate, in _opp_is_duplicate()
1312 new_opp->supplies[0].u_volt, new_opp->available); in _opp_is_duplicate()
1316 new_opp->supplies[0].u_volt == opp->supplies[0].u_volt ? -EBUSY : -EEXIST; in _opp_is_duplicate()
1332 int _opp_add(struct device *dev, struct dev_pm_opp *new_opp, in _opp_add() argument
1342 ret = _opp_is_duplicate(dev, new_opp, opp_table, &head); in _opp_add()
1349 list_add(&new_opp->node, head); in _opp_add()
1352 new_opp->opp_table = opp_table; in _opp_add()
1353 kref_init(&new_opp->kref); in _opp_add()
1355 opp_debug_create_one(new_opp, opp_table); in _opp_add()
1357 if (!_opp_supported_by_regulators(new_opp, opp_table)) { in _opp_add()
1358 new_opp->available = false; in _opp_add()
1360 __func__, new_opp->rate); in _opp_add()
1391 struct dev_pm_opp *new_opp; in _opp_add_v1() local
1395 new_opp = _opp_allocate(opp_table); in _opp_add_v1()
1396 if (!new_opp) in _opp_add_v1()
1400 new_opp->rate = freq; in _opp_add_v1()
1402 new_opp->supplies[0].u_volt = u_volt; in _opp_add_v1()
1403 new_opp->supplies[0].u_volt_min = u_volt - tol; in _opp_add_v1()
1404 new_opp->supplies[0].u_volt_max = u_volt + tol; in _opp_add_v1()
1405 new_opp->available = true; in _opp_add_v1()
1406 new_opp->dynamic = dynamic; in _opp_add_v1()
1408 ret = _opp_add(dev, new_opp, opp_table, false); in _opp_add_v1()
1420 blocking_notifier_call_chain(&opp_table->head, OPP_EVENT_ADD, new_opp); in _opp_add_v1()
1424 _opp_free(new_opp); in _opp_add_v1()
1564 data->new_opp.supplies = data->old_opp.supplies + count; in _allocate_set_opp_data()