Lines Matching refs:new_crtc_state

1819 static void intel_enable_pipe(const struct intel_crtc_state *new_crtc_state)  in intel_enable_pipe()  argument
1821 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->base.crtc); in intel_enable_pipe()
1823 enum transcoder cpu_transcoder = new_crtc_state->cpu_transcoder; in intel_enable_pipe()
1838 if (intel_crtc_has_type(new_crtc_state, INTEL_OUTPUT_DSI)) in intel_enable_pipe()
1843 if (new_crtc_state->has_pch_encoder) { in intel_enable_pipe()
3830 const struct intel_crtc_state *new_crtc_state) in intel_update_pipe_config() argument
3832 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->base.crtc); in intel_update_pipe_config()
3836 crtc->base.mode = new_crtc_state->base.mode; in intel_update_pipe_config()
3848 ((new_crtc_state->pipe_src_w - 1) << 16) | in intel_update_pipe_config()
3849 (new_crtc_state->pipe_src_h - 1)); in intel_update_pipe_config()
3855 if (new_crtc_state->pch_pfit.enabled) in intel_update_pipe_config()
3858 if (new_crtc_state->pch_pfit.enabled) in intel_update_pipe_config()
5128 const struct intel_crtc_state *new_crtc_state) in intel_post_enable_primary() argument
5183 const struct intel_crtc_state *new_crtc_state) in hsw_pre_update_disable_ips() argument
5188 if (needs_modeset(&new_crtc_state->base)) in hsw_pre_update_disable_ips()
5191 return !new_crtc_state->ips_enabled; in hsw_pre_update_disable_ips()
5195 const struct intel_crtc_state *new_crtc_state) in hsw_post_update_enable_ips() argument
5197 if (!new_crtc_state->ips_enabled) in hsw_post_update_enable_ips()
5200 if (needs_modeset(&new_crtc_state->base)) in hsw_post_update_enable_ips()
5207 if (new_crtc_state->update_pipe && in hsw_post_update_enable_ips()
11820 struct drm_crtc_state *new_crtc_state) in verify_crtc_state() argument
11843 active = new_crtc_state->active; in verify_crtc_state()
11845 I915_STATE_WARN(new_crtc_state->active != active, in verify_crtc_state()
11847 "(expected %i, found %i)\n", new_crtc_state->active, active); in verify_crtc_state()
11849 I915_STATE_WARN(intel_crtc->active != new_crtc_state->active, in verify_crtc_state()
11851 "(expected %i, found %i)\n", new_crtc_state->active, intel_crtc->active); in verify_crtc_state()
11857 I915_STATE_WARN(active != new_crtc_state->active, in verify_crtc_state()
11859 encoder->base.base.id, active, new_crtc_state->active); in verify_crtc_state()
11871 if (!new_crtc_state->active) in verify_crtc_state()
11876 sw_config = to_intel_crtc_state(new_crtc_state); in verify_crtc_state()
11957 struct drm_crtc_state *new_crtc_state) in verify_shared_dpll_state() argument
11961 struct intel_crtc_state *new_state = to_intel_crtc_state(new_crtc_state); in verify_shared_dpll_state()
11964 verify_single_dpll_state(dev_priv, new_state->shared_dpll, crtc, new_crtc_state); in verify_shared_dpll_state()
12067 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in intel_modeset_clear_plls() local
12073 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in intel_modeset_clear_plls()
12078 if (!needs_modeset(new_crtc_state)) in intel_modeset_clear_plls()
12081 to_intel_crtc_state(new_crtc_state)->shared_dpll = NULL; in intel_modeset_clear_plls()
12209 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in intel_modeset_checks() local
12222 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in intel_modeset_checks()
12223 if (new_crtc_state->active) in intel_modeset_checks()
12228 if (old_crtc_state->active != new_crtc_state->active) in intel_modeset_checks()
12397 struct drm_crtc_state *new_crtc_state) in intel_update_crtc() argument
12402 struct intel_crtc_state *pipe_config = to_intel_crtc_state(new_crtc_state); in intel_update_crtc()
12403 bool modeset = needs_modeset(new_crtc_state); in intel_update_crtc()
12428 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in intel_update_crtcs() local
12431 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in intel_update_crtcs()
12432 if (!new_crtc_state->active) in intel_update_crtcs()
12436 new_crtc_state); in intel_update_crtcs()
12446 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in skl_update_crtcs() local
12457 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) in skl_update_crtcs()
12459 if (new_crtc_state->active) in skl_update_crtcs()
12475 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in skl_update_crtcs()
12480 cstate = to_intel_crtc_state(new_crtc_state); in skl_update_crtcs()
12503 !new_crtc_state->active_changed && in skl_update_crtcs()
12508 new_crtc_state); in skl_update_crtcs()
12582 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in intel_atomic_commit_tail() local
12595 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in intel_atomic_commit_tail()
12598 if (needs_modeset(new_crtc_state) || in intel_atomic_commit_tail()
12599 to_intel_crtc_state(new_crtc_state)->update_pipe) { in intel_atomic_commit_tail()
12603 to_intel_crtc_state(new_crtc_state)); in intel_atomic_commit_tail()
12606 if (!needs_modeset(new_crtc_state)) in intel_atomic_commit_tail()
12610 to_intel_crtc_state(new_crtc_state)); in intel_atomic_commit_tail()
12633 if (!new_crtc_state->active) { in intel_atomic_commit_tail()
12642 to_intel_crtc_state(new_crtc_state)); in intel_atomic_commit_tail()
12648 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) in intel_atomic_commit_tail()
12649 to_intel_crtc(crtc)->config = to_intel_crtc_state(new_crtc_state); in intel_atomic_commit_tail()
12667 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in intel_atomic_commit_tail()
12668 bool modeset = needs_modeset(new_crtc_state); in intel_atomic_commit_tail()
12671 if (modeset && !new_crtc_state->active && new_crtc_state->event) { in intel_atomic_commit_tail()
12673 drm_crtc_send_vblank_event(crtc, new_crtc_state->event); in intel_atomic_commit_tail()
12676 new_crtc_state->event = NULL; in intel_atomic_commit_tail()
12701 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in intel_atomic_commit_tail()
12702 intel_cstate = to_intel_crtc_state(new_crtc_state); in intel_atomic_commit_tail()
12709 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in intel_atomic_commit_tail()
12715 intel_modeset_verify_crtc(crtc, state, old_crtc_state, new_crtc_state); in intel_atomic_commit_tail()
12836 struct intel_crtc_state *new_crtc_state; in intel_atomic_commit() local
12840 for_each_new_intel_crtc_in_state(intel_state, crtc, new_crtc_state, i) in intel_atomic_commit()
12841 if (new_crtc_state->wm.need_postvbl_update || in intel_atomic_commit()
12842 new_crtc_state->update_wm_post) in intel_atomic_commit()
13308 struct intel_crtc_state *new_crtc_state = in intel_finish_crtc_commit() local
13311 intel_pipe_update_end(new_crtc_state); in intel_finish_crtc_commit()
13313 if (new_crtc_state->update_pipe && in intel_finish_crtc_commit()
13314 !needs_modeset(&new_crtc_state->base) && in intel_finish_crtc_commit()
13316 intel_crtc_arm_fifo_underrun(intel_crtc, new_crtc_state); in intel_finish_crtc_commit()