Lines Matching refs:new_pmdemand_state
306 struct intel_pmdemand_state *new_pmdemand_state; in intel_pmdemand_atomic_check() local
314 new_pmdemand_state = intel_atomic_get_pmdemand_state(state); in intel_pmdemand_atomic_check()
315 if (IS_ERR(new_pmdemand_state)) in intel_pmdemand_atomic_check()
316 return PTR_ERR(new_pmdemand_state); in intel_pmdemand_atomic_check()
323 new_pmdemand_state->params.qclk_gv_index = 0; in intel_pmdemand_atomic_check()
324 new_pmdemand_state->params.qclk_gv_bw = new_bw_state->qgv_point_peakbw; in intel_pmdemand_atomic_check()
330 new_pmdemand_state->params.active_pipes = in intel_pmdemand_atomic_check()
332 new_pmdemand_state->params.active_dbufs = in intel_pmdemand_atomic_check()
339 new_pmdemand_state->params.voltage_index = in intel_pmdemand_atomic_check()
341 new_pmdemand_state->params.cdclk_freq_mhz = in intel_pmdemand_atomic_check()
344 intel_pmdemand_update_max_ddiclk(i915, state, new_pmdemand_state); in intel_pmdemand_atomic_check()
346 intel_pmdemand_update_active_non_tc_phys(i915, state, new_pmdemand_state); in intel_pmdemand_atomic_check()
352 new_pmdemand_state->params.plls = in intel_pmdemand_atomic_check()
353 min_t(u16, new_pmdemand_state->params.active_phys + 1, 7); in intel_pmdemand_atomic_check()
359 new_pmdemand_state->params.scalers = 7; in intel_pmdemand_atomic_check()
362 return intel_atomic_serialize_global_state(&new_pmdemand_state->base); in intel_pmdemand_atomic_check()
364 return intel_atomic_lock_global_state(&new_pmdemand_state->base); in intel_pmdemand_atomic_check()
574 const struct intel_pmdemand_state *new_pmdemand_state = in intel_pmdemand_pre_plane_update() local
582 if (!new_pmdemand_state || in intel_pmdemand_pre_plane_update()
583 !intel_pmdemand_state_changed(new_pmdemand_state, in intel_pmdemand_pre_plane_update()
587 WARN_ON(!new_pmdemand_state->base.changed); in intel_pmdemand_pre_plane_update()
589 intel_pmdemand_program_params(i915, new_pmdemand_state, in intel_pmdemand_pre_plane_update()
597 const struct intel_pmdemand_state *new_pmdemand_state = in intel_pmdemand_post_plane_update() local
605 if (!new_pmdemand_state || in intel_pmdemand_post_plane_update()
606 !intel_pmdemand_state_changed(new_pmdemand_state, in intel_pmdemand_post_plane_update()
610 WARN_ON(!new_pmdemand_state->base.changed); in intel_pmdemand_post_plane_update()
612 intel_pmdemand_program_params(i915, new_pmdemand_state, NULL, in intel_pmdemand_post_plane_update()