/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
D | intel_atomic_plane.c | 191 struct intel_crtc_state *new_crtc_state; in intel_plane_calc_min_cdclk() local 197 new_crtc_state = intel_atomic_get_new_crtc_state(state, crtc); in intel_plane_calc_min_cdclk() 199 new_crtc_state->min_cdclk[plane->id] = in intel_plane_calc_min_cdclk() 200 plane->min_cdclk(new_crtc_state, plane_state); in intel_plane_calc_min_cdclk() 210 if (new_crtc_state->min_cdclk[plane->id] <= in intel_plane_calc_min_cdclk() 226 if (new_crtc_state->min_cdclk[plane->id] <= in intel_plane_calc_min_cdclk() 233 new_crtc_state->min_cdclk[plane->id], in intel_plane_calc_min_cdclk() 282 struct intel_crtc_state *new_crtc_state, in intel_plane_atomic_check_with_state() argument 290 intel_plane_set_invisible(new_crtc_state, new_plane_state); in intel_plane_atomic_check_with_state() 295 ret = plane->check_plane(new_crtc_state, new_plane_state); in intel_plane_atomic_check_with_state() [all …]
|
D | intel_display.c | 1846 void intel_enable_pipe(const struct intel_crtc_state *new_crtc_state) in intel_enable_pipe() argument 1848 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in intel_enable_pipe() 1850 enum transcoder cpu_transcoder = new_crtc_state->cpu_transcoder; in intel_enable_pipe() 1865 if (intel_crtc_has_type(new_crtc_state, INTEL_OUTPUT_DSI)) in intel_enable_pipe() 1870 if (new_crtc_state->has_pch_encoder) { in intel_enable_pipe() 1900 if (intel_crtc_max_vblank_count(new_crtc_state) == 0) in intel_enable_pipe() 6434 const struct intel_crtc_state *new_crtc_state) in hsw_pre_update_disable_ips() argument 6436 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in hsw_pre_update_disable_ips() 6442 if (needs_modeset(new_crtc_state)) in hsw_pre_update_disable_ips() 6452 (new_crtc_state->uapi.color_mgmt_changed || in hsw_pre_update_disable_ips() [all …]
|
D | intel_sprite.h | 26 void intel_pipe_update_start(const struct intel_crtc_state *new_crtc_state); 27 void intel_pipe_update_end(struct intel_crtc_state *new_crtc_state);
|
D | intel_color.c | 1116 static bool intel_can_preload_luts(const struct intel_crtc_state *new_crtc_state) in intel_can_preload_luts() argument 1118 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in intel_can_preload_luts() 1120 to_intel_atomic_state(new_crtc_state->uapi.state); in intel_can_preload_luts() 1128 static bool chv_can_preload_luts(const struct intel_crtc_state *new_crtc_state) in chv_can_preload_luts() argument 1130 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in chv_can_preload_luts() 1132 to_intel_atomic_state(new_crtc_state->uapi.state); in chv_can_preload_luts() 1141 if (old_crtc_state->cgm_mode || new_crtc_state->cgm_mode) in chv_can_preload_luts() 1147 static bool glk_can_preload_luts(const struct intel_crtc_state *new_crtc_state) in glk_can_preload_luts() argument 1149 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in glk_can_preload_luts() 1151 to_intel_atomic_state(new_crtc_state->uapi.state); in glk_can_preload_luts() [all …]
|
D | intel_display.h | 434 #define for_each_new_intel_crtc_in_state(__state, crtc, new_crtc_state, __i) \ argument 438 (new_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].new_state), 1); \ 451 #define for_each_oldnew_intel_crtc_in_state(__state, crtc, old_crtc_state, new_crtc_state, __i) \ argument 456 (new_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].new_state), 1); \ 460 #define for_each_oldnew_intel_crtc_in_state_reverse(__state, crtc, old_crtc_state, new_crtc_state, … argument 465 (new_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].new_state), 1); \ 504 void intel_enable_pipe(const struct intel_crtc_state *new_crtc_state);
|
D | intel_bw.c | 569 struct intel_crtc_state *new_crtc_state, *old_crtc_state; in intel_bw_atomic_check() local 586 new_crtc_state, i) { in intel_bw_atomic_check() 590 intel_bw_crtc_data_rate(new_crtc_state); in intel_bw_atomic_check() 594 intel_bw_crtc_num_active_planes(new_crtc_state); in intel_bw_atomic_check()
|
D | intel_psr.h | 41 int intel_psr_wait_for_idle(const struct intel_crtc_state *new_crtc_state,
|
D | intel_sprite.c | 83 void intel_pipe_update_start(const struct intel_crtc_state *new_crtc_state) in intel_pipe_update_start() argument 85 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in intel_pipe_update_start() 87 const struct drm_display_mode *adjusted_mode = &new_crtc_state->hw.adjusted_mode; in intel_pipe_update_start() 92 intel_crtc_has_type(new_crtc_state, INTEL_OUTPUT_DSI); in intel_pipe_update_start() 116 if (intel_psr_wait_for_idle(new_crtc_state, &psr_status)) in intel_pipe_update_start() 194 void intel_pipe_update_end(struct intel_crtc_state *new_crtc_state) in intel_pipe_update_end() argument 196 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in intel_pipe_update_end() 209 if (new_crtc_state->uapi.event) { in intel_pipe_update_end() 215 new_crtc_state->uapi.event); in intel_pipe_update_end() 218 new_crtc_state->uapi.event = NULL; in intel_pipe_update_end()
|
D | intel_psr.c | 1265 int intel_psr_wait_for_idle(const struct intel_crtc_state *new_crtc_state, in intel_psr_wait_for_idle() argument 1268 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in intel_psr_wait_for_idle() 1271 if (!dev_priv->psr.enabled || !new_crtc_state->has_psr) in intel_psr_wait_for_idle()
|
D | intel_tv.c | 1838 struct drm_crtc_state *new_crtc_state; in intel_tv_atomic_check() local 1846 new_crtc_state = drm_atomic_get_new_crtc_state(state, new_state->crtc); in intel_tv_atomic_check() 1855 new_crtc_state->connectors_changed = true; in intel_tv_atomic_check()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
D | drm_atomic_helper.c | 406 struct drm_crtc_state *new_crtc_state; in mode_fixup() local 412 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in mode_fixup() 413 if (!new_crtc_state->mode_changed && in mode_fixup() 414 !new_crtc_state->connectors_changed) in mode_fixup() 417 drm_mode_copy(&new_crtc_state->adjusted_mode, &new_crtc_state->mode); in mode_fixup() 430 new_crtc_state = in mode_fixup() 442 new_crtc_state, in mode_fixup() 450 ret = funcs->atomic_check(encoder, new_crtc_state, in mode_fixup() 458 ret = funcs->mode_fixup(encoder, &new_crtc_state->mode, in mode_fixup() 459 &new_crtc_state->adjusted_mode); in mode_fixup() [all …]
|
D | drm_blend.c | 508 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in drm_atomic_normalize_zpos() local 518 new_crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in drm_atomic_normalize_zpos() 519 new_crtc_state->zpos_changed = true; in drm_atomic_normalize_zpos() 523 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in drm_atomic_normalize_zpos() 524 if (old_crtc_state->plane_mask != new_crtc_state->plane_mask || in drm_atomic_normalize_zpos() 525 new_crtc_state->zpos_changed) { in drm_atomic_normalize_zpos() 527 new_crtc_state); in drm_atomic_normalize_zpos()
|
D | drm_atomic.c | 334 const struct drm_crtc_state *new_crtc_state) in drm_atomic_crtc_check() argument 336 struct drm_crtc *crtc = new_crtc_state->crtc; in drm_atomic_crtc_check() 346 if (new_crtc_state->active && !new_crtc_state->enable) { in drm_atomic_crtc_check() 356 WARN_ON(new_crtc_state->enable && !new_crtc_state->mode_blob)) { in drm_atomic_crtc_check() 363 WARN_ON(!new_crtc_state->enable && new_crtc_state->mode_blob)) { in drm_atomic_crtc_check() 379 if (new_crtc_state->event && in drm_atomic_crtc_check() 380 !new_crtc_state->active && !old_crtc_state->active) { in drm_atomic_crtc_check() 1271 struct drm_crtc_state *new_crtc_state; in drm_atomic_check_only() local 1287 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in drm_atomic_check_only() 1288 ret = drm_atomic_crtc_check(old_crtc_state, new_crtc_state); in drm_atomic_check_only() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/vc4/ |
D | vc4_kms.c | 311 struct drm_crtc_state *new_crtc_state; in vc4_atomic_complete_commit() local 315 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in vc4_atomic_complete_commit() 318 if (!new_crtc_state->commit) in vc4_atomic_complete_commit() 321 vc4_crtc_state = to_vc4_crtc_state(new_crtc_state); in vc4_atomic_complete_commit() 524 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in vc4_ctm_atomic_check() local 528 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in vc4_ctm_atomic_check() 530 if (!new_crtc_state->ctm && old_crtc_state->ctm) { in vc4_ctm_atomic_check() 538 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in vc4_ctm_atomic_check() 539 if (new_crtc_state->ctm == old_crtc_state->ctm) in vc4_ctm_atomic_check() 549 if (new_crtc_state->ctm) { in vc4_ctm_atomic_check() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm.c | 1978 struct drm_crtc_state *new_crtc_state; in dm_resume() local 2083 for_each_new_crtc_in_state(dm->cached_state, crtc, new_crtc_state, i) in dm_resume() 2084 new_crtc_state->active_changed = true; in dm_resume() 2091 for_each_new_crtc_in_state(dm->cached_state, crtc, new_crtc_state, i) { in dm_resume() 2092 dm_new_crtc_state = to_dm_crtc_state(new_crtc_state); in dm_resume() 5540 struct drm_crtc_state *new_crtc_state; in amdgpu_dm_connector_atomic_check() local 5553 new_crtc_state = drm_atomic_get_crtc_state(state, crtc); in amdgpu_dm_connector_atomic_check() 5554 if (IS_ERR(new_crtc_state)) in amdgpu_dm_connector_atomic_check() 5555 return PTR_ERR(new_crtc_state); in amdgpu_dm_connector_atomic_check() 5568 new_crtc_state->mode_changed = in amdgpu_dm_connector_atomic_check() [all …]
|
D | amdgpu_dm_mst_types.c | 298 struct drm_crtc_state *new_crtc_state; in dm_dp_mst_atomic_check() local 309 new_crtc_state = drm_atomic_get_new_crtc_state(state, new_conn_state->crtc); in dm_dp_mst_atomic_check() 310 if (!new_crtc_state || in dm_dp_mst_atomic_check() 311 !drm_atomic_crtc_needs_modeset(new_crtc_state) || in dm_dp_mst_atomic_check() 312 new_crtc_state->enable) in dm_dp_mst_atomic_check()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/dispnv50/ |
D | crc.c | 268 struct drm_crtc_state *new_crtc_state; in nv50_crc_atomic_init_notifier_contexts() local 272 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in nv50_crc_atomic_init_notifier_contexts() 274 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_crc_atomic_init_notifier_contexts() 292 struct drm_crtc_state *new_crtc_state; in nv50_crc_atomic_release_notifier_contexts() local 296 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in nv50_crc_atomic_release_notifier_contexts() 298 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_crc_atomic_release_notifier_contexts() 403 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in nv50_crc_atomic_check_outp() local 410 new_crtc_state, i) { in nv50_crc_atomic_check_outp() 412 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_crc_atomic_check_outp()
|
D | disp.c | 2053 struct drm_crtc_state *new_crtc_state, *old_crtc_state; in nv50_disp_atomic_commit_tail() local 2077 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in nv50_disp_atomic_commit_tail() 2078 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_disp_atomic_commit_tail() 2084 if (old_crtc_state->active && !new_crtc_state->active) { in nv50_disp_atomic_commit_tail() 2168 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in nv50_disp_atomic_commit_tail() 2169 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_disp_atomic_commit_tail() 2180 if (new_crtc_state->active) { in nv50_disp_atomic_commit_tail() 2185 if (new_crtc_state->event) in nv50_disp_atomic_commit_tail() 2219 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in nv50_disp_atomic_commit_tail() 2220 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_disp_atomic_commit_tail() [all …]
|
/kernel/linux/linux-5.10/include/drm/ |
D | drm_atomic.h | 767 #define for_each_oldnew_crtc_in_state(__state, crtc, old_crtc_state, new_crtc_state, __i) \ argument 776 (new_crtc_state) = (__state)->crtcs[__i].new_state, 1)) 808 #define for_each_new_crtc_in_state(__state, crtc, new_crtc_state, __i) \ argument 815 (new_crtc_state) = (__state)->crtcs[__i].new_state, \ 816 (void)(new_crtc_state) /* Only to avoid unused-but-set-variable warning */, 1))
|
/kernel/linux/linux-5.10/drivers/gpu/drm/rockchip/ |
D | analogix_dp-rockchip.c | 213 struct drm_crtc_state *new_crtc_state = NULL; in rockchip_dp_drm_encoder_disable() local 221 new_crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in rockchip_dp_drm_encoder_disable() 223 if (!new_crtc_state || !new_crtc_state->self_refresh_active) in rockchip_dp_drm_encoder_disable()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/ |
D | intel_pm.c | 1451 static int g4x_compute_intermediate_wm(struct intel_crtc_state *new_crtc_state) in g4x_compute_intermediate_wm() argument 1453 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in g4x_compute_intermediate_wm() 1455 struct g4x_wm_state *intermediate = &new_crtc_state->wm.g4x.intermediate; in g4x_compute_intermediate_wm() 1456 const struct g4x_wm_state *optimal = &new_crtc_state->wm.g4x.optimal; in g4x_compute_intermediate_wm() 1458 to_intel_atomic_state(new_crtc_state->uapi.state); in g4x_compute_intermediate_wm() 1464 if (!new_crtc_state->hw.active || drm_atomic_crtc_needs_modeset(&new_crtc_state->uapi)) { in g4x_compute_intermediate_wm() 1473 !new_crtc_state->disable_cxsr; in g4x_compute_intermediate_wm() 1475 !new_crtc_state->disable_cxsr; in g4x_compute_intermediate_wm() 1527 new_crtc_state->wm.need_postvbl_update = true; in g4x_compute_intermediate_wm() 2095 static int vlv_compute_intermediate_wm(struct intel_crtc_state *new_crtc_state) in vlv_compute_intermediate_wm() argument [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/mdp5/ |
D | mdp5_crtc.c | 580 struct drm_crtc_state *new_crtc_state, in mdp5_crtc_setup_pipeline() argument 584 to_mdp5_crtc_state(new_crtc_state); in mdp5_crtc_setup_pipeline() 605 ret = mdp5_mixer_assign(new_crtc_state->state, crtc, caps, in mdp5_crtc_setup_pipeline() 611 ret = mdp5_mixer_release(new_crtc_state->state, old_mixer); in mdp5_crtc_setup_pipeline() 616 ret = mdp5_mixer_release(new_crtc_state->state, old_r_mixer); in mdp5_crtc_setup_pipeline() 668 struct drm_crtc_state *new_crtc_state, in get_start_stage() argument 672 to_mdp5_crtc_state(new_crtc_state); in get_start_stage() 684 if (!is_fullscreen(new_crtc_state, bpstate)) in get_start_stage()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/bridge/analogix/ |
D | analogix_dp_core.c | 1472 struct drm_crtc_state *new_crtc_state = NULL; in analogix_dp_bridge_atomic_disable() local 1479 new_crtc_state = drm_atomic_get_new_crtc_state(old_state, new_crtc); in analogix_dp_bridge_atomic_disable() 1480 if (!new_crtc_state) in analogix_dp_bridge_atomic_disable() 1484 if (new_crtc_state->self_refresh_active) in analogix_dp_bridge_atomic_disable() 1511 struct drm_crtc_state *new_crtc_state; in analogix_dp_bridge_atomic_post_disable() local 1518 new_crtc_state = drm_atomic_get_new_crtc_state(old_state, crtc); in analogix_dp_bridge_atomic_post_disable() 1519 if (!new_crtc_state || !new_crtc_state->self_refresh_active) in analogix_dp_bridge_atomic_post_disable()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/ |
D | omap_drv.c | 50 struct drm_crtc_state *new_crtc_state; in omap_atomic_wait_for_completion() local 55 for_each_new_crtc_in_state(old_state, crtc, new_crtc_state, i) { in omap_atomic_wait_for_completion() 56 if (!new_crtc_state->active) in omap_atomic_wait_for_completion()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_kms.c | 1597 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in vmw_kms_check_topology() local 1638 new_crtc_state, i) { in vmw_kms_check_topology() 1644 if (!du->pref_active && new_crtc_state->enable) { in vmw_kms_check_topology()
|