Lines Matching refs:new_opp
551 struct dev_pm_opp *new_opp; in _opp_add_static_v2() local
557 new_opp = _opp_allocate(opp_table); in _opp_add_static_v2()
558 if (!new_opp) in _opp_add_static_v2()
576 new_opp->rate = (unsigned long)rate; in _opp_add_static_v2()
579 of_property_read_u32(np, "opp-level", &new_opp->level); in _opp_add_static_v2()
587 new_opp->turbo = of_property_read_bool(np, "turbo-mode"); in _opp_add_static_v2()
589 new_opp->np = np; in _opp_add_static_v2()
590 new_opp->dynamic = false; in _opp_add_static_v2()
591 new_opp->available = true; in _opp_add_static_v2()
593 ret = _of_opp_alloc_required_opps(opp_table, new_opp); in _opp_add_static_v2()
598 new_opp->clock_latency_ns = val; in _opp_add_static_v2()
600 ret = opp_parse_supplies(new_opp, dev, opp_table); in _opp_add_static_v2()
605 new_opp->pstate = pm_genpd_opp_to_performance_state(dev, new_opp); in _opp_add_static_v2()
607 ret = _opp_add(dev, new_opp, opp_table, rate_not_available); in _opp_add_static_v2()
619 if (new_opp->rate > opp_table->suspend_opp->rate) { in _opp_add_static_v2()
621 new_opp->suspend = true; in _opp_add_static_v2()
622 opp_table->suspend_opp = new_opp; in _opp_add_static_v2()
625 new_opp->suspend = true; in _opp_add_static_v2()
626 opp_table->suspend_opp = new_opp; in _opp_add_static_v2()
630 if (new_opp->clock_latency_ns > opp_table->clock_latency_ns_max) in _opp_add_static_v2()
631 opp_table->clock_latency_ns_max = new_opp->clock_latency_ns; in _opp_add_static_v2()
634 __func__, new_opp->turbo, new_opp->rate, in _opp_add_static_v2()
635 new_opp->supplies[0].u_volt, new_opp->supplies[0].u_volt_min, in _opp_add_static_v2()
636 new_opp->supplies[0].u_volt_max, new_opp->clock_latency_ns); in _opp_add_static_v2()
642 blocking_notifier_call_chain(&opp_table->head, OPP_EVENT_ADD, new_opp); in _opp_add_static_v2()
643 return new_opp; in _opp_add_static_v2()
646 _of_opp_free_required_opps(opp_table, new_opp); in _opp_add_static_v2()
648 _opp_free(new_opp); in _opp_add_static_v2()