Home
last modified time | relevance | path

Searched refs:old_crtc_state (Results 1 – 25 of 70) sorted by relevance

123

/drivers/gpu/drm/i915/display/
Dintel_modeset_verify.c160 struct intel_crtc_state *old_crtc_state, in verify_crtc_state() argument
166 struct intel_crtc_state *pipe_config = old_crtc_state; in verify_crtc_state()
167 struct drm_atomic_state *state = old_crtc_state->uapi.state; in verify_crtc_state()
170 __drm_atomic_helper_crtc_destroy_state(&old_crtc_state->uapi); in verify_crtc_state()
171 intel_crtc_free_hw_state(old_crtc_state); in verify_crtc_state()
172 intel_crtc_state_reset(old_crtc_state, crtc); in verify_crtc_state()
173 old_crtc_state->uapi.state = state; in verify_crtc_state()
230 struct intel_crtc_state *old_crtc_state, in intel_modeset_verify_crtc() argument
239 verify_crtc_state(crtc, old_crtc_state, new_crtc_state); in intel_modeset_verify_crtc()
240 intel_shared_dpll_state_verify(crtc, old_crtc_state, new_crtc_state); in intel_modeset_verify_crtc()
Dintel_display.c286 intel_wait_for_pipe_off(const struct intel_crtc_state *old_crtc_state) in intel_wait_for_pipe_off() argument
288 struct intel_crtc *crtc = to_intel_crtc(old_crtc_state->uapi.crtc); in intel_wait_for_pipe_off()
292 enum transcoder cpu_transcoder = old_crtc_state->cpu_transcoder; in intel_wait_for_pipe_off()
453 void intel_disable_transcoder(const struct intel_crtc_state *old_crtc_state) in intel_disable_transcoder() argument
455 struct intel_crtc *crtc = to_intel_crtc(old_crtc_state->uapi.crtc); in intel_disable_transcoder()
457 enum transcoder cpu_transcoder = old_crtc_state->cpu_transcoder; in intel_disable_transcoder()
479 if (old_crtc_state->double_wide) in intel_disable_transcoder()
495 intel_wait_for_pipe_off(old_crtc_state); in intel_disable_transcoder()
897 #define is_enabling(feature, old_crtc_state, new_crtc_state) \ argument
898 ((!(old_crtc_state)->feature || intel_crtc_needs_modeset(new_crtc_state)) && \
[all …]
Dg4x_hdmi.c370 const struct intel_crtc_state *old_crtc_state, in intel_disable_hdmi() argument
378 struct intel_crtc *crtc = to_intel_crtc(old_crtc_state->uapi.crtc); in intel_disable_hdmi()
422 old_crtc_state, old_conn_state); in intel_disable_hdmi()
429 const struct intel_crtc_state *old_crtc_state, in g4x_disable_hdmi() argument
432 intel_audio_codec_disable(encoder, old_crtc_state, old_conn_state); in g4x_disable_hdmi()
434 intel_disable_hdmi(state, encoder, old_crtc_state, old_conn_state); in g4x_disable_hdmi()
439 const struct intel_crtc_state *old_crtc_state, in pch_disable_hdmi() argument
442 intel_audio_codec_disable(encoder, old_crtc_state, old_conn_state); in pch_disable_hdmi()
447 const struct intel_crtc_state *old_crtc_state, in pch_post_disable_hdmi() argument
450 intel_disable_hdmi(state, encoder, old_crtc_state, old_conn_state); in pch_post_disable_hdmi()
[all …]
Dintel_vrr.c49 struct intel_crtc_state *old_crtc_state, *new_crtc_state; in intel_vrr_check_modeset() local
52 for_each_oldnew_intel_crtc_in_state(state, crtc, old_crtc_state, in intel_vrr_check_modeset()
55 old_crtc_state->uapi.vrr_enabled) in intel_vrr_check_modeset()
239 void intel_vrr_disable(const struct intel_crtc_state *old_crtc_state) in intel_vrr_disable() argument
241 struct intel_crtc *crtc = to_intel_crtc(old_crtc_state->uapi.crtc); in intel_vrr_disable()
243 enum transcoder cpu_transcoder = old_crtc_state->cpu_transcoder; in intel_vrr_disable()
245 if (!old_crtc_state->vrr.enable) in intel_vrr_disable()
249 trans_vrr_ctl(old_crtc_state)); in intel_vrr_disable()
Dhsw_ips.c95 const struct intel_crtc_state *old_crtc_state = in hsw_ips_need_disable() local
100 if (!old_crtc_state->ips_enabled) in hsw_ips_need_disable()
123 const struct intel_crtc_state *old_crtc_state = in hsw_ips_pre_update() local
129 return hsw_ips_disable(old_crtc_state); in hsw_ips_pre_update()
136 const struct intel_crtc_state *old_crtc_state = in hsw_ips_need_enable() local
162 if (intel_crtc_needs_fastset(new_crtc_state) && old_crtc_state->inherited) in hsw_ips_need_enable()
165 return !old_crtc_state->ips_enabled; in hsw_ips_need_enable()
Dg4x_dp.c231 const struct intel_crtc_state *old_crtc_state) in ilk_edp_pll_off() argument
233 struct intel_crtc *crtc = to_intel_crtc(old_crtc_state->uapi.crtc); in ilk_edp_pll_off()
236 assert_transcoder_disabled(dev_priv, old_crtc_state->cpu_transcoder); in ilk_edp_pll_off()
410 const struct intel_crtc_state *old_crtc_state) in intel_dp_link_down() argument
414 struct intel_crtc *crtc = to_intel_crtc(old_crtc_state->uapi.crtc); in intel_dp_link_down()
480 const struct intel_crtc_state *old_crtc_state, in intel_disable_dp() argument
487 intel_audio_codec_disable(encoder, old_crtc_state, old_conn_state); in intel_disable_dp()
501 const struct intel_crtc_state *old_crtc_state, in g4x_disable_dp() argument
504 intel_disable_dp(state, encoder, old_crtc_state, old_conn_state); in g4x_disable_dp()
509 const struct intel_crtc_state *old_crtc_state, in vlv_disable_dp() argument
[all …]
Dintel_crt.c217 const struct intel_crtc_state *old_crtc_state, in intel_disable_crt() argument
220 intel_crt_set_dpms(encoder, old_crtc_state, DRM_MODE_DPMS_OFF); in intel_disable_crt()
225 const struct intel_crtc_state *old_crtc_state, in pch_disable_crt() argument
232 const struct intel_crtc_state *old_crtc_state, in pch_post_disable_crt() argument
235 intel_disable_crt(state, encoder, old_crtc_state, old_conn_state); in pch_post_disable_crt()
240 const struct intel_crtc_state *old_crtc_state, in hsw_disable_crt() argument
245 drm_WARN_ON(&dev_priv->drm, !old_crtc_state->has_pch_encoder); in hsw_disable_crt()
252 const struct intel_crtc_state *old_crtc_state, in hsw_post_disable_crt() argument
255 struct intel_crtc *crtc = to_intel_crtc(old_crtc_state->uapi.crtc); in hsw_post_disable_crt()
258 intel_crtc_vblank_off(old_crtc_state); in hsw_post_disable_crt()
[all …]
Dintel_atomic_plane.c261 const struct intel_crtc_state *old_crtc_state; in intel_plane_calc_min_cdclk() local
267 old_crtc_state = intel_atomic_get_old_crtc_state(state, crtc); in intel_plane_calc_min_cdclk()
282 old_crtc_state->min_cdclk[plane->id]) in intel_plane_calc_min_cdclk()
414 const struct intel_crtc_state *old_crtc_state, in intel_plane_do_async_flip() argument
432 return DISPLAY_VER(i915) < 13 || old_crtc_state->uapi.async_flip; in intel_plane_do_async_flip()
476 static int intel_plane_atomic_calc_changes(const struct intel_crtc_state *old_crtc_state, in intel_plane_atomic_calc_changes() argument
485 bool was_crtc_enabled = old_crtc_state->hw.active; in intel_plane_atomic_calc_changes()
591 if (intel_plane_do_async_flip(plane, old_crtc_state, new_crtc_state)) { in intel_plane_atomic_calc_changes()
599 int intel_plane_atomic_check_with_state(const struct intel_crtc_state *old_crtc_state, in intel_plane_atomic_check_with_state() argument
662 return intel_plane_atomic_calc_changes(old_crtc_state, new_crtc_state, in intel_plane_atomic_check_with_state()
[all …]
Dintel_dp_mst.c551 const struct intel_crtc_state *old_crtc_state, in intel_mst_disable_dp() argument
577 intel_audio_codec_disable(encoder, old_crtc_state, old_conn_state); in intel_mst_disable_dp()
582 const struct intel_crtc_state *old_crtc_state, in intel_mst_post_disable_dp() argument
597 !intel_dp_mst_is_master_trans(old_crtc_state)); in intel_mst_post_disable_dp()
599 intel_crtc_vblank_off(old_crtc_state); in intel_mst_post_disable_dp()
601 intel_disable_transcoder(old_crtc_state); in intel_mst_post_disable_dp()
603 clear_act_sent(encoder, old_crtc_state); in intel_mst_post_disable_dp()
605 intel_de_rmw(dev_priv, TRANS_DDI_FUNC_CTL(old_crtc_state->cpu_transcoder), in intel_mst_post_disable_dp()
608 wait_for_act_sent(encoder, old_crtc_state); in intel_mst_post_disable_dp()
610 intel_ddi_disable_transcoder_func(old_crtc_state); in intel_mst_post_disable_dp()
[all …]
Dintel_audio.c72 const struct intel_crtc_state *old_crtc_state,
274 const struct intel_crtc_state *old_crtc_state, in g4x_audio_codec_disable() argument
278 struct intel_crtc *crtc = to_intel_crtc(old_crtc_state->uapi.crtc); in g4x_audio_codec_disable()
388 const struct intel_crtc_state *old_crtc_state, in hsw_audio_codec_disable() argument
392 struct intel_crtc *crtc = to_intel_crtc(old_crtc_state->uapi.crtc); in hsw_audio_codec_disable()
393 enum transcoder cpu_transcoder = old_crtc_state->cpu_transcoder; in hsw_audio_codec_disable()
403 (intel_crtc_has_dp_encoder(old_crtc_state) ? in hsw_audio_codec_disable()
590 const struct intel_crtc_state *old_crtc_state, in ibx_audio_codec_disable() argument
594 struct intel_crtc *crtc = to_intel_crtc(old_crtc_state->uapi.crtc); in ibx_audio_codec_disable()
612 (intel_crtc_has_dp_encoder(old_crtc_state) ? in ibx_audio_codec_disable()
[all …]
Dintel_drrs.c172 void intel_drrs_deactivate(const struct intel_crtc_state *old_crtc_state) in intel_drrs_deactivate() argument
174 struct intel_crtc *crtc = to_intel_crtc(old_crtc_state->uapi.crtc); in intel_drrs_deactivate()
176 if (!old_crtc_state->has_drrs) in intel_drrs_deactivate()
179 if (!old_crtc_state->hw.active) in intel_drrs_deactivate()
182 if (intel_crtc_is_bigjoiner_slave(old_crtc_state)) in intel_drrs_deactivate()
Dintel_display.h326 #define for_each_old_intel_crtc_in_state(__state, crtc, old_crtc_state, __i) \ argument
330 (old_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].old_state), 1); \
359 #define for_each_oldnew_intel_crtc_in_state(__state, crtc, old_crtc_state, new_crtc_state, __i) \ argument
363 (old_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].old_state), \
368 #define for_each_oldnew_intel_crtc_in_state_reverse(__state, crtc, old_crtc_state, new_crtc_state, … argument
372 (old_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].old_state), \
427 void intel_disable_transcoder(const struct intel_crtc_state *old_crtc_state);
499 void ilk_pfit_disable(const struct intel_crtc_state *old_crtc_state);
Dintel_dpio_phy.h61 const struct intel_crtc_state *old_crtc_state);
72 const struct intel_crtc_state *old_crtc_state);
Dintel_ddi.c2893 const struct intel_crtc_state *old_crtc_state, in intel_ddi_post_disable_dp() argument
2900 bool is_mst = intel_crtc_has_type(old_crtc_state, in intel_ddi_post_disable_dp()
2905 old_crtc_state, old_conn_state); in intel_ddi_post_disable_dp()
2915 enum transcoder cpu_transcoder = old_crtc_state->cpu_transcoder; in intel_ddi_post_disable_dp()
2923 intel_ddi_disable_transcoder_clock(old_crtc_state); in intel_ddi_post_disable_dp()
2926 intel_disable_ddi_buf(encoder, old_crtc_state); in intel_ddi_post_disable_dp()
2934 intel_ddi_disable_transcoder_clock(old_crtc_state); in intel_ddi_post_disable_dp()
2956 const struct intel_crtc_state *old_crtc_state, in intel_ddi_post_disable_hdmi() argument
2965 old_crtc_state, old_conn_state); in intel_ddi_post_disable_hdmi()
2968 intel_ddi_disable_transcoder_clock(old_crtc_state); in intel_ddi_post_disable_hdmi()
[all …]
/drivers/gpu/drm/msm/dp/
Ddp_drm.c136 struct drm_crtc_state *old_crtc_state; in edp_bridge_atomic_enable() local
151 old_crtc_state = drm_atomic_get_old_crtc_state(atomic_state, crtc); in edp_bridge_atomic_enable()
153 if (old_crtc_state && old_crtc_state->self_refresh_active) { in edp_bridge_atomic_enable()
166 struct drm_crtc_state *new_crtc_state = NULL, *old_crtc_state = NULL; in edp_bridge_atomic_disable() local
179 old_crtc_state = drm_atomic_get_old_crtc_state(atomic_state, crtc); in edp_bridge_atomic_disable()
180 if (!old_crtc_state) in edp_bridge_atomic_disable()
197 } else if (old_crtc_state->self_refresh_active) { in edp_bridge_atomic_disable()
/drivers/gpu/drm/
Ddrm_atomic_helper.c624 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in drm_atomic_helper_check_modeset() local
633 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in drm_atomic_helper_check_modeset()
639 if (!drm_mode_equal(&old_crtc_state->mode, &new_crtc_state->mode)) { in drm_atomic_helper_check_modeset()
645 if (old_crtc_state->enable != new_crtc_state->enable) { in drm_atomic_helper_check_modeset()
661 if (old_crtc_state->active != new_crtc_state->active) { in drm_atomic_helper_check_modeset()
730 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in drm_atomic_helper_check_modeset()
1127 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in disable_outputs() local
1142 old_crtc_state = drm_atomic_get_old_crtc_state(old_state, old_conn_state->crtc); in disable_outputs()
1151 if (!crtc_needs_disable(old_crtc_state, new_crtc_state) || in disable_outputs()
1190 for_each_oldnew_crtc_in_state(old_state, crtc, old_crtc_state, new_crtc_state, i) { in disable_outputs()
[all …]
Ddrm_self_refresh_helper.c150 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()
Ddrm_blend.c514 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in drm_atomic_normalize_zpos() local
529 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in drm_atomic_normalize_zpos()
530 if (old_crtc_state->plane_mask != new_crtc_state->plane_mask || in drm_atomic_normalize_zpos()
/drivers/gpu/drm/bridge/
Dpanel.c121 struct drm_crtc_state *old_crtc_state; in panel_bridge_atomic_pre_enable() local
127 old_crtc_state = drm_atomic_get_old_crtc_state(atomic_state, crtc); in panel_bridge_atomic_pre_enable()
128 if (old_crtc_state && old_crtc_state->self_refresh_active) in panel_bridge_atomic_pre_enable()
141 struct drm_crtc_state *old_crtc_state; in panel_bridge_atomic_enable() local
147 old_crtc_state = drm_atomic_get_old_crtc_state(atomic_state, crtc); in panel_bridge_atomic_enable()
148 if (old_crtc_state && old_crtc_state->self_refresh_active) in panel_bridge_atomic_enable()
/drivers/gpu/drm/imx/dcss/
Ddcss-crtc.c83 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()
/drivers/gpu/drm/vc4/
Dvc4_kms.c510 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in vc4_ctm_atomic_check() local
514 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in vc4_ctm_atomic_check()
516 if (!new_crtc_state->ctm && old_crtc_state->ctm) { in vc4_ctm_atomic_check()
524 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in vc4_ctm_atomic_check()
525 if (new_crtc_state->ctm == old_crtc_state->ctm) in vc4_ctm_atomic_check()
850 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in vc4_pv_muxing_atomic_check() local
860 old_crtc_state = drm_atomic_get_old_crtc_state(state, crtc); in vc4_pv_muxing_atomic_check()
861 if (!old_crtc_state) in vc4_pv_muxing_atomic_check()
863 old_vc4_crtc_state = to_vc4_crtc_state(old_crtc_state); in vc4_pv_muxing_atomic_check()
873 if (old_crtc_state->enable == new_crtc_state->enable) { in vc4_pv_muxing_atomic_check()
[all …]
/drivers/gpu/drm/msm/
Dmsm_atomic.c186 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in msm_atomic_check() local
190 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, in msm_atomic_check()
192 if ((old_crtc_state->ctm && !new_crtc_state->ctm) || in msm_atomic_check()
193 (!old_crtc_state->ctm && new_crtc_state->ctm)) { in msm_atomic_check()
/drivers/gpu/drm/vkms/
Dvkms_drv.c68 struct drm_crtc_state *old_crtc_state; in vkms_atomic_commit_tail() local
83 for_each_old_crtc_in_state(old_state, crtc, old_crtc_state, i) { in vkms_atomic_commit_tail()
85 to_vkms_crtc_state(old_crtc_state); in vkms_atomic_commit_tail()
/drivers/gpu/drm/bridge/analogix/
Danalogix_dp_core.c1315 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()
/drivers/gpu/drm/rockchip/
Danalogix_dp-rockchip.c182 struct drm_crtc_state *old_crtc_state; in rockchip_dp_drm_encoder_enable() local
190 old_crtc_state = drm_atomic_get_old_crtc_state(state, crtc); in rockchip_dp_drm_encoder_enable()
192 if (old_crtc_state && old_crtc_state->self_refresh_active) in rockchip_dp_drm_encoder_enable()

123