| /linux-6.15/drivers/gpu/drm/i915/display/ |
| H A D | intel_display.c | 581 if (old_crtc_state->double_wide) in intel_disable_transcoder() 943 ((old_crtc_state)->feature && \ 958 if (!old_crtc_state->hw.active) in planes_disabling() 1008 if (!old_crtc_state->hw.active) in intel_crtc_vrr_disabling() 1012 (old_crtc_state->vrr.enable && in intel_crtc_vrr_disabling() 1031 if (!old_crtc_state->hw.active) in audio_disabling() 1035 (old_crtc_state->has_audio && in audio_disabling() 1770 ilk_pfit_disable(old_crtc_state); in ilk_crtc_disable() 6669 if (old_crtc_state->inherited || in intel_pre_update_crtc() 6752 old_crtc_state->inherited) in intel_update_crtc() [all …]
|
| H A D | g4x_hdmi.c | 256 const struct intel_crtc_state *old_crtc_state, in g4x_hdmi_audio_disable() argument 262 if (!old_crtc_state->has_audio) in g4x_hdmi_audio_disable() 382 const struct intel_crtc_state *old_crtc_state, in intel_disable_hdmi() argument 434 old_crtc_state, old_conn_state); in intel_disable_hdmi() 441 const struct intel_crtc_state *old_crtc_state, in g4x_disable_hdmi() argument 449 const struct intel_crtc_state *old_crtc_state, in pch_disable_hdmi() argument 456 const struct intel_crtc_state *old_crtc_state, in pch_post_disable_hdmi() argument 525 chv_phy_post_pll_disable(encoder, old_crtc_state); in chv_hdmi_post_pll_disable() 530 const struct intel_crtc_state *old_crtc_state, in vlv_hdmi_post_disable() argument 534 vlv_phy_reset_lanes(encoder, old_crtc_state); in vlv_hdmi_post_disable() [all …]
|
| H A D | hsw_ips.c | 100 const struct intel_crtc_state *old_crtc_state = in hsw_ips_need_disable() local 105 if (!old_crtc_state->ips_enabled) in hsw_ips_need_disable() 128 const struct intel_crtc_state *old_crtc_state = in hsw_ips_pre_update() local 134 return hsw_ips_disable(old_crtc_state); in hsw_ips_pre_update() 141 const struct intel_crtc_state *old_crtc_state = in hsw_ips_need_enable() local 167 if (intel_crtc_needs_fastset(new_crtc_state) && old_crtc_state->inherited) in hsw_ips_need_enable() 170 return !old_crtc_state->ips_enabled; in hsw_ips_need_enable()
|
| H A D | g4x_dp.c | 416 const struct intel_crtc_state *old_crtc_state) in intel_dp_link_down() argument 478 vlv_pps_port_disable(encoder, old_crtc_state); in intel_dp_link_down() 499 const struct intel_crtc_state *old_crtc_state, in g4x_dp_audio_disable() argument 505 if (!old_crtc_state->has_audio) in g4x_dp_audio_disable() 552 const struct intel_crtc_state *old_crtc_state, in g4x_post_disable_dp() argument 564 intel_dp_link_down(encoder, old_crtc_state); in g4x_post_disable_dp() 568 ilk_edp_pll_off(intel_dp, old_crtc_state); in g4x_post_disable_dp() 573 const struct intel_crtc_state *old_crtc_state, in vlv_post_disable_dp() argument 576 intel_dp_link_down(encoder, old_crtc_state); in vlv_post_disable_dp() 581 const struct intel_crtc_state *old_crtc_state, in chv_post_disable_dp() argument [all …]
|
| H A D | intel_atomic_plane.c | 284 const struct intel_crtc_state *old_crtc_state; in intel_plane_calc_min_cdclk() local 305 old_crtc_state->min_cdclk[plane->id]) in intel_plane_calc_min_cdclk() 566 bool was_crtc_enabled = old_crtc_state->hw.active; in intel_plane_atomic_calc_changes() 733 const struct intel_crtc_state *old_crtc_state = in intel_plane_atomic_check() local 902 struct intel_crtc_state *old_crtc_state = in skl_crtc_planes_update_arm() local 911 memcpy(ddb, old_crtc_state->wm.skl.plane_ddb, in skl_crtc_planes_update_arm() 912 sizeof(old_crtc_state->wm.skl.plane_ddb)); in skl_crtc_planes_update_arm() 913 memcpy(ddb_y, old_crtc_state->wm.skl.plane_ddb_y, in skl_crtc_planes_update_arm() 914 sizeof(old_crtc_state->wm.skl.plane_ddb_y)); in skl_crtc_planes_update_arm() 1424 const struct intel_crtc_state *old_crtc_state = in intel_atomic_add_affected_planes() local [all …]
|
| H A D | intel_crt.c | 227 const struct intel_crtc_state *old_crtc_state, in intel_disable_crt() argument 235 const struct intel_crtc_state *old_crtc_state, in pch_disable_crt() argument 242 const struct intel_crtc_state *old_crtc_state, in pch_post_disable_crt() argument 250 const struct intel_crtc_state *old_crtc_state, in hsw_disable_crt() argument 255 drm_WARN_ON(display->drm, !old_crtc_state->has_pch_encoder); in hsw_disable_crt() 262 const struct intel_crtc_state *old_crtc_state, in hsw_post_disable_crt() argument 268 intel_crtc_vblank_off(old_crtc_state); in hsw_post_disable_crt() 270 intel_disable_transcoder(old_crtc_state); in hsw_post_disable_crt() 272 intel_ddi_disable_transcoder_func(old_crtc_state); in hsw_post_disable_crt() 274 ilk_pfit_disable(old_crtc_state); in hsw_post_disable_crt() [all …]
|
| H A D | intel_dpio_phy.h | 63 const struct intel_crtc_state *old_crtc_state); 74 const struct intel_crtc_state *old_crtc_state); 153 const struct intel_crtc_state *old_crtc_state) in chv_phy_post_pll_disable() argument 172 const struct intel_crtc_state *old_crtc_state) in vlv_phy_reset_lanes() argument
|
| H A D | intel_pfit.h | 15 void ilk_pfit_disable(const struct intel_crtc_state *old_crtc_state); 18 void i9xx_pfit_disable(const struct intel_crtc_state *old_crtc_state);
|
| H A D | intel_vrr.c | 67 struct intel_crtc_state *old_crtc_state, *new_crtc_state; in intel_vrr_check_modeset() local 70 for_each_oldnew_intel_crtc_in_state(state, crtc, old_crtc_state, in intel_vrr_check_modeset() 73 old_crtc_state->uapi.vrr_enabled) in intel_vrr_check_modeset() 485 void intel_vrr_disable(const struct intel_crtc_state *old_crtc_state) in intel_vrr_disable() argument 487 struct intel_display *display = to_intel_display(old_crtc_state); in intel_vrr_disable() 488 enum transcoder cpu_transcoder = old_crtc_state->cpu_transcoder; in intel_vrr_disable() 490 if (!old_crtc_state->vrr.enable) in intel_vrr_disable() 494 trans_vrr_ctl(old_crtc_state)); in intel_vrr_disable()
|
| H A D | intel_audio.c | 74 const struct intel_crtc_state *old_crtc_state, 287 const struct intel_crtc_state *old_crtc_state, in g4x_audio_codec_disable() argument 401 const struct intel_crtc_state *old_crtc_state, in hsw_audio_codec_disable() argument 406 enum transcoder cpu_transcoder = old_crtc_state->cpu_transcoder; in hsw_audio_codec_disable() 416 (intel_crtc_has_dp_encoder(old_crtc_state) ? in hsw_audio_codec_disable() 611 const struct intel_crtc_state *old_crtc_state, in ibx_audio_codec_disable() argument 633 (intel_crtc_has_dp_encoder(old_crtc_state) ? in ibx_audio_codec_disable() 793 const struct intel_crtc_state *old_crtc_state, in intel_audio_codec_disable() argument 804 if (!old_crtc_state->has_audio) in intel_audio_codec_disable() 815 old_crtc_state, in intel_audio_codec_disable() [all …]
|
| H A D | intel_drrs.c | 184 void intel_drrs_deactivate(const struct intel_crtc_state *old_crtc_state) in intel_drrs_deactivate() argument 186 struct intel_crtc *crtc = to_intel_crtc(old_crtc_state->uapi.crtc); in intel_drrs_deactivate() 188 if (!old_crtc_state->has_drrs) in intel_drrs_deactivate() 191 if (!old_crtc_state->hw.active) in intel_drrs_deactivate() 194 if (intel_crtc_is_joiner_secondary(old_crtc_state)) in intel_drrs_deactivate()
|
| H A D | intel_dp_mst.c | 1016 const struct intel_crtc_state *old_crtc_state, in mst_stream_post_disable() argument 1040 !intel_dp_mst_is_master_trans(old_crtc_state)); in mst_stream_post_disable() 1049 intel_disable_transcoder(old_crtc_state); in mst_stream_post_disable() 1053 intel_ddi_clear_act_sent(encoder, old_crtc_state); in mst_stream_post_disable() 1059 intel_ddi_wait_for_act_sent(encoder, old_crtc_state); in mst_stream_post_disable() 1065 intel_ddi_disable_transcoder_func(old_crtc_state); in mst_stream_post_disable() 1099 intel_ddi_disable_transcoder_clock(old_crtc_state); in mst_stream_post_disable() 1105 old_crtc_state, NULL); in mst_stream_post_disable() 1113 const struct intel_crtc_state *old_crtc_state, in mst_stream_post_pll_disable() argument 2056 const struct intel_crtc_state *old_crtc_state; in intel_dp_mst_crtc_needs_modeset() local [all …]
|
| H A D | intel_pfit.c | 590 void ilk_pfit_disable(const struct intel_crtc_state *old_crtc_state) in ilk_pfit_disable() argument 592 struct intel_display *display = to_intel_display(old_crtc_state); in ilk_pfit_disable() 593 struct intel_crtc *crtc = to_intel_crtc(old_crtc_state->uapi.crtc); in ilk_pfit_disable() 600 if (!old_crtc_state->pch_pfit.enabled) in ilk_pfit_disable() 671 void i9xx_pfit_disable(const struct intel_crtc_state *old_crtc_state) in i9xx_pfit_disable() argument 673 struct intel_display *display = to_intel_display(old_crtc_state); in i9xx_pfit_disable() 675 if (!old_crtc_state->gmch_pfit.control) in i9xx_pfit_disable() 678 assert_transcoder_disabled(display, old_crtc_state->cpu_transcoder); in i9xx_pfit_disable()
|
| H A D | intel_vblank.c | 619 pre_commit_crtc_state(const struct intel_crtc_state *old_crtc_state, in pre_commit_crtc_state() argument 629 return old_crtc_state; in pre_commit_crtc_state() 636 const struct intel_crtc_state *old_crtc_state = in intel_pre_commit_crtc_state() local 641 return pre_commit_crtc_state(old_crtc_state, new_crtc_state); in intel_pre_commit_crtc_state() 644 void intel_vblank_evade_init(const struct intel_crtc_state *old_crtc_state, in intel_vblank_evade_init() argument 661 crtc_state = pre_commit_crtc_state(old_crtc_state, new_crtc_state); in intel_vblank_evade_init()
|
| H A D | intel_dp_tunnel.c | 404 const struct intel_crtc_state *old_crtc_state; in check_inherited_tunnel_state() local 421 old_crtc_state = intel_atomic_get_old_crtc_state(state, old_crtc); in check_inherited_tunnel_state() 423 if (!old_crtc_state->hw.active || in check_inherited_tunnel_state() 424 old_crtc_state->dp_tunnel_ref.tunnel == intel_dp->tunnel) in check_inherited_tunnel_state() 678 const struct intel_crtc_state *old_crtc_state; in atomic_decrease_bw() local 682 for_each_oldnew_intel_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in atomic_decrease_bw() 693 tunnel = old_crtc_state->dp_tunnel_ref.tunnel; in atomic_decrease_bw()
|
| H A D | intel_display.h | 314 #define for_each_old_intel_crtc_in_state(__state, crtc, old_crtc_state, __i) \ argument 318 (old_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].old_state), 1); \ 355 #define for_each_oldnew_intel_crtc_in_state(__state, crtc, old_crtc_state, new_crtc_state, __i) \ argument 359 (old_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].old_state), \ 364 #define for_each_oldnew_intel_crtc_in_state_reverse(__state, crtc, old_crtc_state, new_crtc_state, … argument 368 (old_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].old_state), \ 452 void intel_disable_transcoder(const struct intel_crtc_state *old_crtc_state);
|
| H A D | intel_ddi.c | 3125 bool is_mst = intel_crtc_has_type(old_crtc_state, in intel_ddi_post_disable_dp() 3130 old_crtc_state, old_conn_state); in intel_ddi_post_disable_dp() 3139 if (is_mst || intel_dp_is_uhbr(old_crtc_state)) { in intel_ddi_post_disable_dp() 3152 intel_ddi_buf_disable(encoder, old_crtc_state); in intel_ddi_post_disable_dp() 3186 const struct intel_crtc_state *old_crtc_state, in intel_ddi_post_disable_hdmi() argument 3196 old_crtc_state, old_conn_state); in intel_ddi_post_disable_hdmi() 3201 intel_ddi_buf_disable(encoder, old_crtc_state); in intel_ddi_post_disable_hdmi() 3236 intel_disable_transcoder(old_crtc_state); in intel_ddi_post_disable_hdmi_or_sst() 3252 intel_ddi_disable_transcoder_func(old_crtc_state); in intel_ddi_post_disable_hdmi_or_sst() 3572 intel_psr_disable(intel_dp, old_crtc_state); in intel_ddi_disable_dp() [all …]
|
| /linux-6.15/drivers/gpu/drm/msm/dp/ |
| H A D | dp_drm.c | 144 struct drm_crtc_state *old_crtc_state; in msm_edp_bridge_atomic_enable() local 159 old_crtc_state = drm_atomic_get_old_crtc_state(state, crtc); in msm_edp_bridge_atomic_enable() 161 if (old_crtc_state && old_crtc_state->self_refresh_active) { in msm_edp_bridge_atomic_enable() 173 struct drm_crtc_state *new_crtc_state = NULL, *old_crtc_state = NULL; in msm_edp_bridge_atomic_disable() local 186 old_crtc_state = drm_atomic_get_old_crtc_state(atomic_state, crtc); in msm_edp_bridge_atomic_disable() 187 if (!old_crtc_state) in msm_edp_bridge_atomic_disable() 204 } else if (old_crtc_state->self_refresh_active) { in msm_edp_bridge_atomic_disable()
|
| /linux-6.15/drivers/gpu/drm/ |
| H A D | drm_atomic_helper.c | 1504 struct drm_crtc_state *old_crtc_state; in drm_atomic_helper_commit_modeset_enables() local 2439 struct drm_crtc_state *old_crtc_state; in drm_atomic_helper_wait_for_dependencies() local 2546 if (old_crtc_state->commit) in drm_atomic_helper_commit_hw_done() 2577 struct drm_crtc_state *old_crtc_state; in drm_atomic_helper_commit_cleanup_done() local 2582 commit = old_crtc_state->commit; in drm_atomic_helper_commit_cleanup_done() 2895 struct drm_crtc *crtc = old_crtc_state->crtc; in drm_atomic_helper_commit_planes_on_crtc() 2902 plane_mask = old_crtc_state->plane_mask; in drm_atomic_helper_commit_planes_on_crtc() 3078 commit = old_crtc_state->commit; in drm_atomic_helper_swap_state() 3122 WARN_ON(crtc->state != old_crtc_state); in drm_atomic_helper_swap_state() 3124 old_crtc_state->state = state; in drm_atomic_helper_swap_state() [all …]
|
| H A D | drm_self_refresh_helper.c | 150 struct drm_crtc_state *old_crtc_state; in drm_self_refresh_helper_update_avg_times() local 153 for_each_old_crtc_in_state(state, crtc, old_crtc_state, i) { in drm_self_refresh_helper_update_avg_times() 158 if (old_crtc_state->self_refresh_active == in drm_self_refresh_helper_update_avg_times()
|
| /linux-6.15/drivers/gpu/drm/imx/dcss/ |
| H A D | dcss-crtc.c | 83 struct drm_crtc_state *old_crtc_state = drm_atomic_get_old_crtc_state(state, in dcss_crtc_atomic_enable() local 89 struct drm_display_mode *old_mode = &old_crtc_state->adjusted_mode; in dcss_crtc_atomic_enable() 101 if (!drm_mode_equal(mode, old_mode) || !old_crtc_state->active) { in dcss_crtc_atomic_enable() 119 struct drm_crtc_state *old_crtc_state = drm_atomic_get_old_crtc_state(state, in dcss_crtc_atomic_disable() local 125 struct drm_display_mode *old_mode = &old_crtc_state->adjusted_mode; in dcss_crtc_atomic_disable() 127 drm_atomic_helper_disable_planes_on_crtc(old_crtc_state, false); in dcss_crtc_atomic_disable()
|
| /linux-6.15/drivers/gpu/drm/bridge/ |
| H A D | panel.c | 117 struct drm_crtc_state *old_crtc_state; in panel_bridge_atomic_pre_enable() local 123 old_crtc_state = drm_atomic_get_old_crtc_state(atomic_state, crtc); in panel_bridge_atomic_pre_enable() 124 if (old_crtc_state && old_crtc_state->self_refresh_active) in panel_bridge_atomic_pre_enable() 136 struct drm_crtc_state *old_crtc_state; in panel_bridge_atomic_enable() local 142 old_crtc_state = drm_atomic_get_old_crtc_state(atomic_state, crtc); in panel_bridge_atomic_enable() 143 if (old_crtc_state && old_crtc_state->self_refresh_active) in panel_bridge_atomic_enable()
|
| /linux-6.15/drivers/gpu/drm/vc4/ |
| H A D | vc4_kms.c | 584 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in vc4_ctm_atomic_check() local 590 if (!new_crtc_state->ctm && old_crtc_state->ctm) { in vc4_ctm_atomic_check() 599 if (new_crtc_state->ctm == old_crtc_state->ctm) in vc4_ctm_atomic_check() 924 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in vc4_pv_muxing_atomic_check() local 935 if (!old_crtc_state) in vc4_pv_muxing_atomic_check() 937 old_vc4_crtc_state = to_vc4_crtc_state(old_crtc_state); in vc4_pv_muxing_atomic_check() 947 if (old_crtc_state->enable == new_crtc_state->enable) { in vc4_pv_muxing_atomic_check() 1001 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in vc4_core_clock_atomic_check() local 1020 old_crtc_state, in vc4_core_clock_atomic_check() 1023 if (old_crtc_state->active) { in vc4_core_clock_atomic_check() [all …]
|
| /linux-6.15/drivers/gpu/drm/msm/ |
| H A D | msm_atomic.c | 188 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in msm_atomic_check() local 196 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, in msm_atomic_check() 198 if ((old_crtc_state->ctm && !new_crtc_state->ctm) || in msm_atomic_check() 199 (!old_crtc_state->ctm && new_crtc_state->ctm)) { in msm_atomic_check()
|
| /linux-6.15/drivers/gpu/drm/vkms/ |
| H A D | vkms_drv.c | 60 struct drm_crtc_state *old_crtc_state; in vkms_atomic_commit_tail() local 75 for_each_old_crtc_in_state(old_state, crtc, old_crtc_state, i) { in vkms_atomic_commit_tail() 76 struct vkms_crtc_state *vkms_state = to_vkms_crtc_state(old_crtc_state); in vkms_atomic_commit_tail()
|