/Linux-v6.1/drivers/gpu/drm/i915/display/ |
D | intel_modeset_verify.c | 158 struct intel_crtc_state *old_crtc_state, in verify_crtc_state() argument 164 struct intel_crtc_state *pipe_config = old_crtc_state; in verify_crtc_state() 165 struct drm_atomic_state *state = old_crtc_state->uapi.state; in verify_crtc_state() 168 __drm_atomic_helper_crtc_destroy_state(&old_crtc_state->uapi); in verify_crtc_state() 169 intel_crtc_free_hw_state(old_crtc_state); in verify_crtc_state() 170 intel_crtc_state_reset(old_crtc_state, crtc); in verify_crtc_state() 171 old_crtc_state->uapi.state = state; in verify_crtc_state() 227 struct intel_crtc_state *old_crtc_state, in intel_modeset_verify_crtc() argument 235 verify_crtc_state(crtc, old_crtc_state, new_crtc_state); in intel_modeset_verify_crtc() 236 intel_shared_dpll_state_verify(crtc, old_crtc_state, new_crtc_state); in intel_modeset_verify_crtc()
|
D | hsw_ips.c | 89 const struct intel_crtc_state *old_crtc_state = in hsw_ips_need_disable() local 94 if (!old_crtc_state->ips_enabled) in hsw_ips_need_disable() 118 const struct intel_crtc_state *old_crtc_state = in hsw_ips_pre_update() local 124 return hsw_ips_disable(old_crtc_state); in hsw_ips_pre_update() 131 const struct intel_crtc_state *old_crtc_state = in hsw_ips_need_enable() local 158 if (new_crtc_state->update_pipe && old_crtc_state->inherited) in hsw_ips_need_enable() 161 return !old_crtc_state->ips_enabled; in hsw_ips_need_enable()
|
D | g4x_hdmi.c | 288 const struct intel_crtc_state *old_crtc_state, in intel_disable_hdmi() argument 296 struct intel_crtc *crtc = to_intel_crtc(old_crtc_state->uapi.crtc); in intel_disable_hdmi() 340 old_crtc_state, old_conn_state); in intel_disable_hdmi() 347 const struct intel_crtc_state *old_crtc_state, in g4x_disable_hdmi() argument 350 intel_audio_codec_disable(encoder, old_crtc_state, old_conn_state); in g4x_disable_hdmi() 352 intel_disable_hdmi(state, encoder, old_crtc_state, old_conn_state); in g4x_disable_hdmi() 357 const struct intel_crtc_state *old_crtc_state, in pch_disable_hdmi() argument 360 intel_audio_codec_disable(encoder, old_crtc_state, old_conn_state); in pch_disable_hdmi() 365 const struct intel_crtc_state *old_crtc_state, in pch_post_disable_hdmi() argument 368 intel_disable_hdmi(state, encoder, old_crtc_state, old_conn_state); in pch_post_disable_hdmi() [all …]
|
D | intel_vrr.c | 48 struct intel_crtc_state *old_crtc_state, *new_crtc_state; in intel_vrr_check_modeset() local 51 for_each_oldnew_intel_crtc_in_state(state, crtc, old_crtc_state, in intel_vrr_check_modeset() 54 old_crtc_state->uapi.vrr_enabled) in intel_vrr_check_modeset() 224 void intel_vrr_disable(const struct intel_crtc_state *old_crtc_state) in intel_vrr_disable() argument 226 struct intel_crtc *crtc = to_intel_crtc(old_crtc_state->uapi.crtc); in intel_vrr_disable() 228 enum transcoder cpu_transcoder = old_crtc_state->cpu_transcoder; in intel_vrr_disable() 230 if (!old_crtc_state->vrr.enable) in intel_vrr_disable()
|
D | g4x_dp.c | 233 const struct intel_crtc_state *old_crtc_state) in ilk_edp_pll_off() argument 235 struct intel_crtc *crtc = to_intel_crtc(old_crtc_state->uapi.crtc); in ilk_edp_pll_off() 238 assert_transcoder_disabled(dev_priv, old_crtc_state->cpu_transcoder); in ilk_edp_pll_off() 404 const struct intel_crtc_state *old_crtc_state) in intel_dp_link_down() argument 408 struct intel_crtc *crtc = to_intel_crtc(old_crtc_state->uapi.crtc); in intel_dp_link_down() 474 const struct intel_crtc_state *old_crtc_state, in intel_disable_dp() argument 481 intel_audio_codec_disable(encoder, old_crtc_state, old_conn_state); in intel_disable_dp() 495 const struct intel_crtc_state *old_crtc_state, in g4x_disable_dp() argument 498 intel_disable_dp(state, encoder, old_crtc_state, old_conn_state); in g4x_disable_dp() 503 const struct intel_crtc_state *old_crtc_state, in vlv_disable_dp() argument [all …]
|
D | intel_crt.c | 212 const struct intel_crtc_state *old_crtc_state, in intel_disable_crt() argument 215 intel_crt_set_dpms(encoder, old_crtc_state, DRM_MODE_DPMS_OFF); in intel_disable_crt() 220 const struct intel_crtc_state *old_crtc_state, in pch_disable_crt() argument 227 const struct intel_crtc_state *old_crtc_state, in pch_post_disable_crt() argument 230 intel_disable_crt(state, encoder, old_crtc_state, old_conn_state); in pch_post_disable_crt() 235 const struct intel_crtc_state *old_crtc_state, in hsw_disable_crt() argument 240 drm_WARN_ON(&dev_priv->drm, !old_crtc_state->has_pch_encoder); in hsw_disable_crt() 247 const struct intel_crtc_state *old_crtc_state, in hsw_post_disable_crt() argument 250 struct intel_crtc *crtc = to_intel_crtc(old_crtc_state->uapi.crtc); in hsw_post_disable_crt() 253 intel_crtc_vblank_off(old_crtc_state); in hsw_post_disable_crt() [all …]
|
D | intel_atomic_plane.c | 255 const struct intel_crtc_state *old_crtc_state; in intel_plane_calc_min_cdclk() local 261 old_crtc_state = intel_atomic_get_old_crtc_state(state, crtc); in intel_plane_calc_min_cdclk() 276 old_crtc_state->min_cdclk[plane->id]) in intel_plane_calc_min_cdclk() 407 const struct intel_crtc_state *old_crtc_state, in intel_plane_do_async_flip() argument 425 return DISPLAY_VER(i915) < 13 || old_crtc_state->uapi.async_flip; in intel_plane_do_async_flip() 428 static int intel_plane_atomic_calc_changes(const struct intel_crtc_state *old_crtc_state, in intel_plane_atomic_calc_changes() argument 437 bool was_crtc_enabled = old_crtc_state->hw.active; in intel_plane_atomic_calc_changes() 547 if (intel_plane_do_async_flip(plane, old_crtc_state, new_crtc_state)) in intel_plane_atomic_calc_changes() 553 int intel_plane_atomic_check_with_state(const struct intel_crtc_state *old_crtc_state, in intel_plane_atomic_check_with_state() argument 616 return intel_plane_atomic_calc_changes(old_crtc_state, new_crtc_state, in intel_plane_atomic_check_with_state() [all …]
|
D | intel_drrs.c | 175 void intel_drrs_deactivate(const struct intel_crtc_state *old_crtc_state) in intel_drrs_deactivate() argument 177 struct intel_crtc *crtc = to_intel_crtc(old_crtc_state->uapi.crtc); in intel_drrs_deactivate() 179 if (!old_crtc_state->has_drrs) in intel_drrs_deactivate() 182 if (!old_crtc_state->hw.active) in intel_drrs_deactivate() 185 if (intel_crtc_is_bigjoiner_slave(old_crtc_state)) in intel_drrs_deactivate()
|
D | intel_display.c | 424 intel_wait_for_pipe_off(const struct intel_crtc_state *old_crtc_state) in intel_wait_for_pipe_off() argument 426 struct intel_crtc *crtc = to_intel_crtc(old_crtc_state->uapi.crtc); in intel_wait_for_pipe_off() 430 enum transcoder cpu_transcoder = old_crtc_state->cpu_transcoder; in intel_wait_for_pipe_off() 590 void intel_disable_transcoder(const struct intel_crtc_state *old_crtc_state) in intel_disable_transcoder() argument 592 struct intel_crtc *crtc = to_intel_crtc(old_crtc_state->uapi.crtc); in intel_disable_transcoder() 594 enum transcoder cpu_transcoder = old_crtc_state->cpu_transcoder; in intel_disable_transcoder() 616 if (old_crtc_state->double_wide) in intel_disable_transcoder() 632 intel_wait_for_pipe_off(old_crtc_state); in intel_disable_transcoder() 1208 static bool planes_enabling(const struct intel_crtc_state *old_crtc_state, in planes_enabling() argument 1211 return (!old_crtc_state->active_planes || intel_crtc_needs_modeset(new_crtc_state)) && in planes_enabling() [all …]
|
D | intel_dp_mst.c | 359 const struct intel_crtc_state *old_crtc_state, in intel_mst_disable_dp() argument 379 intel_audio_codec_disable(encoder, old_crtc_state, old_conn_state); in intel_mst_disable_dp() 384 const struct intel_crtc_state *old_crtc_state, in intel_mst_post_disable_dp() argument 399 !intel_dp_mst_is_master_trans(old_crtc_state)); in intel_mst_post_disable_dp() 401 intel_crtc_vblank_off(old_crtc_state); in intel_mst_post_disable_dp() 403 intel_disable_transcoder(old_crtc_state); in intel_mst_post_disable_dp() 405 clear_act_sent(encoder, old_crtc_state); in intel_mst_post_disable_dp() 407 intel_de_rmw(dev_priv, TRANS_DDI_FUNC_CTL(old_crtc_state->cpu_transcoder), in intel_mst_post_disable_dp() 410 wait_for_act_sent(encoder, old_crtc_state); in intel_mst_post_disable_dp() 412 intel_ddi_disable_transcoder_func(old_crtc_state); in intel_mst_post_disable_dp() [all …]
|
D | intel_dpio_phy.h | 46 const struct intel_crtc_state *old_crtc_state); 57 const struct intel_crtc_state *old_crtc_state);
|
D | intel_audio.c | 72 const struct intel_crtc_state *old_crtc_state, 335 const struct intel_crtc_state *old_crtc_state, in g4x_audio_codec_disable() argument 492 const struct intel_crtc_state *old_crtc_state, in hsw_audio_codec_disable() argument 496 enum transcoder cpu_transcoder = old_crtc_state->cpu_transcoder; in hsw_audio_codec_disable() 507 if (intel_crtc_has_dp_encoder(old_crtc_state)) in hsw_audio_codec_disable() 684 const struct intel_crtc_state *old_crtc_state, in ilk_audio_codec_disable() argument 688 struct intel_crtc *crtc = to_intel_crtc(old_crtc_state->uapi.crtc); in ilk_audio_codec_disable() 714 if (intel_crtc_has_dp_encoder(old_crtc_state)) in ilk_audio_codec_disable() 877 const struct intel_crtc_state *old_crtc_state, in intel_audio_codec_disable() argument 882 struct intel_crtc *crtc = to_intel_crtc(old_crtc_state->uapi.crtc); in intel_audio_codec_disable() [all …]
|
D | intel_ddi.c | 2593 const struct intel_crtc_state *old_crtc_state, in intel_ddi_post_disable_dp() argument 2599 bool is_mst = intel_crtc_has_type(old_crtc_state, in intel_ddi_post_disable_dp() 2604 old_crtc_state, old_conn_state); in intel_ddi_post_disable_dp() 2614 enum transcoder cpu_transcoder = old_crtc_state->cpu_transcoder; in intel_ddi_post_disable_dp() 2627 intel_ddi_disable_pipe_clock(old_crtc_state); in intel_ddi_post_disable_dp() 2630 intel_disable_ddi_buf(encoder, old_crtc_state); in intel_ddi_post_disable_dp() 2638 intel_ddi_disable_pipe_clock(old_crtc_state); in intel_ddi_post_disable_dp() 2653 const struct intel_crtc_state *old_crtc_state, in intel_ddi_post_disable_hdmi() argument 2661 old_crtc_state, old_conn_state); in intel_ddi_post_disable_hdmi() 2664 intel_ddi_disable_pipe_clock(old_crtc_state); in intel_ddi_post_disable_hdmi() [all …]
|
D | intel_display.h | 509 #define for_each_oldnew_intel_crtc_in_state(__state, crtc, old_crtc_state, new_crtc_state, __i) \ argument 513 (old_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].old_state), \ 518 #define for_each_oldnew_intel_crtc_in_state_reverse(__state, crtc, old_crtc_state, new_crtc_state, … argument 522 (old_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].old_state), \ 573 void intel_disable_transcoder(const struct intel_crtc_state *old_crtc_state); 654 void ilk_pfit_disable(const struct intel_crtc_state *old_crtc_state);
|
D | intel_modeset_verify.h | 16 struct intel_crtc_state *old_crtc_state,
|
/Linux-v6.1/drivers/gpu/drm/ |
D | drm_atomic_helper.c | 619 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in drm_atomic_helper_check_modeset() local 625 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in drm_atomic_helper_check_modeset() 631 if (!drm_mode_equal(&old_crtc_state->mode, &new_crtc_state->mode)) { in drm_atomic_helper_check_modeset() 637 if (old_crtc_state->enable != new_crtc_state->enable) { in drm_atomic_helper_check_modeset() 653 if (old_crtc_state->active != new_crtc_state->active) { in drm_atomic_helper_check_modeset() 721 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in drm_atomic_helper_check_modeset() 1142 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in disable_outputs() local 1157 old_crtc_state = drm_atomic_get_old_crtc_state(old_state, old_conn_state->crtc); in disable_outputs() 1166 if (!crtc_needs_disable(old_crtc_state, new_crtc_state) || in disable_outputs() 1205 for_each_oldnew_crtc_in_state(old_state, crtc, old_crtc_state, new_crtc_state, i) { in disable_outputs() [all …]
|
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()
|
D | drm_blend.c | 515 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in drm_atomic_normalize_zpos() local 530 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in drm_atomic_normalize_zpos() 531 if (old_crtc_state->plane_mask != new_crtc_state->plane_mask || in drm_atomic_normalize_zpos()
|
/Linux-v6.1/drivers/gpu/drm/imx/dcss/ |
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-v6.1/drivers/gpu/drm/vc4/ |
D | vc4_kms.c | 531 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in vc4_ctm_atomic_check() local 535 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in vc4_ctm_atomic_check() 537 if (!new_crtc_state->ctm && old_crtc_state->ctm) { in vc4_ctm_atomic_check() 545 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in vc4_ctm_atomic_check() 546 if (new_crtc_state->ctm == old_crtc_state->ctm) in vc4_ctm_atomic_check() 810 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in vc4_pv_muxing_atomic_check() local 823 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in vc4_pv_muxing_atomic_check() 825 to_vc4_crtc_state(old_crtc_state); in vc4_pv_muxing_atomic_check() 835 if (old_crtc_state->enable == new_crtc_state->enable) { in vc4_pv_muxing_atomic_check() 906 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in vc4_core_clock_atomic_check() local [all …]
|
/Linux-v6.1/drivers/gpu/drm/vkms/ |
D | vkms_drv.c | 67 struct drm_crtc_state *old_crtc_state; in vkms_atomic_commit_tail() local 82 for_each_old_crtc_in_state(old_state, crtc, old_crtc_state, i) { in vkms_atomic_commit_tail() 84 to_vkms_crtc_state(old_crtc_state); in vkms_atomic_commit_tail()
|
/Linux-v6.1/include/drm/ |
D | drm_atomic.h | 820 #define for_each_oldnew_crtc_in_state(__state, crtc, old_crtc_state, new_crtc_state, __i) \ argument 827 (old_crtc_state) = (__state)->crtcs[__i].old_state, \ 828 (void)(old_crtc_state) /* Only to avoid unused-but-set-variable warning */, \ 843 #define for_each_old_crtc_in_state(__state, crtc, old_crtc_state, __i) \ argument 850 (old_crtc_state) = (__state)->crtcs[__i].old_state, 1))
|
/Linux-v6.1/drivers/gpu/drm/rockchip/ |
D | analogix_dp-rockchip.c | 181 struct drm_crtc_state *old_crtc_state; in rockchip_dp_drm_encoder_enable() local 189 old_crtc_state = drm_atomic_get_old_crtc_state(state, crtc); in rockchip_dp_drm_encoder_enable() 191 if (old_crtc_state && old_crtc_state->self_refresh_active) in rockchip_dp_drm_encoder_enable()
|
/Linux-v6.1/drivers/gpu/drm/bridge/analogix/ |
D | analogix_dp_core.c | 1315 struct drm_crtc_state *old_crtc_state; in analogix_dp_bridge_atomic_pre_enable() local 1322 old_crtc_state = drm_atomic_get_old_crtc_state(old_state, crtc); in analogix_dp_bridge_atomic_pre_enable() 1324 if (old_crtc_state && old_crtc_state->self_refresh_active) in analogix_dp_bridge_atomic_pre_enable() 1394 struct drm_crtc_state *old_crtc_state; in analogix_dp_bridge_atomic_enable() local 1402 old_crtc_state = drm_atomic_get_old_crtc_state(old_state, crtc); in analogix_dp_bridge_atomic_enable() 1404 if (old_crtc_state && old_crtc_state->self_refresh_active) { in analogix_dp_bridge_atomic_enable() 1470 struct drm_crtc_state *old_crtc_state = NULL; in analogix_dp_bridge_atomic_disable() local 1489 old_crtc_state = drm_atomic_get_old_crtc_state(old_state, in analogix_dp_bridge_atomic_disable() 1493 if (old_crtc_state && old_crtc_state->self_refresh_active) { in analogix_dp_bridge_atomic_disable()
|
/Linux-v6.1/drivers/gpu/drm/imx/ |
D | ipuv3-crtc.c | 62 struct drm_crtc_state *old_crtc_state) in ipu_crtc_disable_planes() argument 68 drm_atomic_crtc_state_for_each_plane(plane, old_crtc_state) { in ipu_crtc_disable_planes() 84 struct drm_crtc_state *old_crtc_state = drm_atomic_get_old_crtc_state(state, in ipu_crtc_atomic_disable() local 96 ipu_crtc_disable_planes(ipu_crtc, old_crtc_state); in ipu_crtc_atomic_disable()
|