Lines Matching refs:old_crtc_state
1085 intel_wait_for_pipe_off(const struct intel_crtc_state *old_crtc_state) in intel_wait_for_pipe_off() argument
1087 struct intel_crtc *crtc = to_intel_crtc(old_crtc_state->base.crtc); in intel_wait_for_pipe_off()
1091 enum transcoder cpu_transcoder = old_crtc_state->cpu_transcoder; in intel_wait_for_pipe_off()
1875 static void intel_disable_pipe(const struct intel_crtc_state *old_crtc_state) in intel_disable_pipe() argument
1877 struct intel_crtc *crtc = to_intel_crtc(old_crtc_state->base.crtc); in intel_disable_pipe()
1879 enum transcoder cpu_transcoder = old_crtc_state->cpu_transcoder; in intel_disable_pipe()
1901 if (old_crtc_state->double_wide) in intel_disable_pipe()
1910 intel_wait_for_pipe_off(old_crtc_state); in intel_disable_pipe()
3829 static void intel_update_pipe_config(const struct intel_crtc_state *old_crtc_state, in intel_update_pipe_config() argument
3860 else if (old_crtc_state->pch_pfit.enabled) in intel_update_pipe_config()
5182 static bool hsw_pre_update_disable_ips(const struct intel_crtc_state *old_crtc_state, in hsw_pre_update_disable_ips() argument
5185 if (!old_crtc_state->ips_enabled) in hsw_pre_update_disable_ips()
5194 static bool hsw_post_update_enable_ips(const struct intel_crtc_state *old_crtc_state, in hsw_post_update_enable_ips() argument
5208 old_crtc_state->base.adjusted_mode.private_flags & I915_MODE_FLAG_INHERITED) in hsw_post_update_enable_ips()
5211 return !old_crtc_state->ips_enabled; in hsw_post_update_enable_ips()
5230 static void intel_post_plane_update(struct intel_crtc_state *old_crtc_state) in intel_post_plane_update() argument
5232 struct intel_crtc *crtc = to_intel_crtc(old_crtc_state->base.crtc); in intel_post_plane_update()
5235 struct drm_atomic_state *old_state = old_crtc_state->base.state; in intel_post_plane_update()
5248 if (hsw_post_update_enable_ips(old_crtc_state, pipe_config)) in intel_post_plane_update()
5264 if (needs_nv12_wa(dev_priv, old_crtc_state) && in intel_post_plane_update()
5271 static void intel_pre_plane_update(struct intel_crtc_state *old_crtc_state, in intel_pre_plane_update() argument
5274 struct intel_crtc *crtc = to_intel_crtc(old_crtc_state->base.crtc); in intel_pre_plane_update()
5277 struct drm_atomic_state *old_state = old_crtc_state->base.state; in intel_pre_plane_update()
5285 if (hsw_pre_update_disable_ips(old_crtc_state, pipe_config)) in intel_pre_plane_update()
5286 hsw_disable_ips(old_crtc_state); in intel_pre_plane_update()
5304 if (!needs_nv12_wa(dev_priv, old_crtc_state) && in intel_pre_plane_update()
5319 if (HAS_GMCH_DISPLAY(dev_priv) && old_crtc_state->base.active && in intel_pre_plane_update()
5442 struct intel_crtc_state *old_crtc_state, in intel_encoders_disable() argument
5457 encoder->disable(encoder, old_crtc_state, old_conn_state); in intel_encoders_disable()
5462 struct intel_crtc_state *old_crtc_state, in intel_encoders_post_disable() argument
5477 encoder->post_disable(encoder, old_crtc_state, old_conn_state); in intel_encoders_post_disable()
5482 struct intel_crtc_state *old_crtc_state, in intel_encoders_post_pll_disable() argument
5497 encoder->post_pll_disable(encoder, old_crtc_state, old_conn_state); in intel_encoders_post_pll_disable()
5765 static void ironlake_crtc_disable(struct intel_crtc_state *old_crtc_state, in ironlake_crtc_disable() argument
5768 struct drm_crtc *crtc = old_crtc_state->base.crtc; in ironlake_crtc_disable()
5782 intel_encoders_disable(crtc, old_crtc_state, old_state); in ironlake_crtc_disable()
5787 intel_disable_pipe(old_crtc_state); in ironlake_crtc_disable()
5794 intel_encoders_post_disable(crtc, old_crtc_state, old_state); in ironlake_crtc_disable()
5824 static void haswell_crtc_disable(struct intel_crtc_state *old_crtc_state, in haswell_crtc_disable() argument
5827 struct drm_crtc *crtc = old_crtc_state->base.crtc; in haswell_crtc_disable()
5830 enum transcoder cpu_transcoder = old_crtc_state->cpu_transcoder; in haswell_crtc_disable()
5832 intel_encoders_disable(crtc, old_crtc_state, old_state); in haswell_crtc_disable()
5839 intel_disable_pipe(old_crtc_state); in haswell_crtc_disable()
5841 if (intel_crtc_has_type(old_crtc_state, INTEL_OUTPUT_DP_MST)) in haswell_crtc_disable()
5842 intel_ddi_set_vc_payload_alloc(old_crtc_state, false); in haswell_crtc_disable()
5845 intel_ddi_disable_transcoder_func(old_crtc_state); in haswell_crtc_disable()
5852 intel_encoders_post_disable(crtc, old_crtc_state, old_state); in haswell_crtc_disable()
5855 icl_unmap_plls_to_ports(crtc, old_crtc_state, old_state); in haswell_crtc_disable()
6117 static void i9xx_crtc_disable(struct intel_crtc_state *old_crtc_state, in i9xx_crtc_disable() argument
6120 struct drm_crtc *crtc = old_crtc_state->base.crtc; in i9xx_crtc_disable()
6133 intel_encoders_disable(crtc, old_crtc_state, old_state); in i9xx_crtc_disable()
6138 intel_disable_pipe(old_crtc_state); in i9xx_crtc_disable()
6142 intel_encoders_post_disable(crtc, old_crtc_state, old_state); in i9xx_crtc_disable()
6153 intel_encoders_post_pll_disable(crtc, old_crtc_state, old_state); in i9xx_crtc_disable()
10511 int intel_plane_atomic_calc_changes(const struct intel_crtc_state *old_crtc_state, in intel_plane_atomic_calc_changes() argument
10523 bool was_crtc_enabled = old_crtc_state->base.active; in intel_plane_atomic_calc_changes()
11819 struct drm_crtc_state *old_crtc_state, in verify_crtc_state() argument
11830 old_state = old_crtc_state->state; in verify_crtc_state()
11831 __drm_atomic_helper_crtc_destroy_state(old_crtc_state); in verify_crtc_state()
11832 pipe_config = to_intel_crtc_state(old_crtc_state); in verify_crtc_state()
11956 struct drm_crtc_state *old_crtc_state, in verify_shared_dpll_state() argument
11960 struct intel_crtc_state *old_state = to_intel_crtc_state(old_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()
12076 to_intel_crtc_state(old_crtc_state)->shared_dpll; 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()
12228 if (old_crtc_state->active != new_crtc_state->active) in intel_modeset_checks()
12310 struct drm_crtc_state *old_crtc_state, *crtc_state; in intel_atomic_check() local
12315 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, in intel_atomic_check()
12318 old_crtc_state->mode.private_flags) in intel_atomic_check()
12326 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, crtc_state, i) { in intel_atomic_check()
12347 to_intel_crtc_state(old_crtc_state), in intel_atomic_check()
12396 struct drm_crtc_state *old_crtc_state, in intel_update_crtc() argument
12415 intel_pre_plane_update(to_intel_crtc_state(old_crtc_state), in intel_update_crtc()
12422 drm_atomic_helper_commit_planes_on_crtc(old_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()
12435 intel_update_crtc(crtc, state, old_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()
12460 entries[i] = &to_intel_crtc_state(old_crtc_state)->wm.skl.ddb; in skl_update_crtcs()
12475 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in skl_update_crtcs()
12502 &to_intel_crtc_state(old_crtc_state)->wm.skl.ddb) && in skl_update_crtcs()
12507 intel_update_crtc(crtc, state, old_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()
12609 intel_pre_plane_update(to_intel_crtc_state(old_crtc_state), in intel_atomic_commit_tail()
12612 if (old_crtc_state->active) { in intel_atomic_commit_tail()
12613 intel_crtc_disable_planes(crtc, old_crtc_state->plane_mask); in intel_atomic_commit_tail()
12621 dev_priv->display.crtc_disable(to_intel_crtc_state(old_crtc_state), 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()
12710 intel_post_plane_update(to_intel_crtc_state(old_crtc_state)); in intel_atomic_commit_tail()
12715 intel_modeset_verify_crtc(crtc, state, old_crtc_state, new_crtc_state); in intel_atomic_commit_tail()
13249 struct drm_crtc_state *old_crtc_state) in intel_begin_crtc_commit() argument
13255 to_intel_crtc_state(old_crtc_state); in intel_begin_crtc_commit()
13257 to_intel_atomic_state(old_crtc_state->state); in intel_begin_crtc_commit()
13303 struct drm_crtc_state *old_crtc_state) in intel_finish_crtc_commit() argument
13307 to_intel_atomic_state(old_crtc_state->state); in intel_finish_crtc_commit()
13315 old_crtc_state->mode.private_flags & I915_MODE_FLAG_INHERITED) in intel_finish_crtc_commit()