/linux-6.3-rc2/drivers/gpu/drm/i915/display/ |
A D | intel_atomic_plane.c | 257 struct intel_crtc_state *new_crtc_state; in intel_plane_calc_min_cdclk() local 265 new_crtc_state->min_cdclk[plane->id] = in intel_plane_calc_min_cdclk() 416 if (!new_crtc_state->uapi.async_flip) in intel_plane_do_async_flip() 543 new_crtc_state->disable_cxsr = true; in intel_plane_atomic_calc_changes() 583 new_crtc_state->disable_lp_wm = true; in intel_plane_atomic_calc_changes() 586 new_crtc_state->do_async_flip = true; in intel_plane_atomic_calc_changes() 687 if (new_crtc_state && intel_crtc_is_bigjoiner_slave(new_crtc_state)) { in intel_plane_atomic_check() 689 intel_master_crtc(new_crtc_state); in intel_plane_atomic_check() 704 if (!new_crtc_state) in intel_plane_atomic_check() 708 new_crtc_state, in intel_plane_atomic_check() [all …]
|
A D | intel_modeset_verify.c | 159 struct intel_crtc_state *new_crtc_state) in verify_crtc_state() argument 190 new_crtc_state->hw.active, crtc->active); in verify_crtc_state() 192 master_crtc = intel_master_crtc(new_crtc_state); in verify_crtc_state() 202 new_crtc_state->hw.active); in verify_crtc_state() 212 if (!new_crtc_state->hw.active) in verify_crtc_state() 217 if (!intel_pipe_config_compare(new_crtc_state, in verify_crtc_state() 228 struct intel_crtc_state *new_crtc_state) in intel_modeset_verify_crtc() argument 230 if (!intel_crtc_needs_modeset(new_crtc_state) && in intel_modeset_verify_crtc() 231 !intel_crtc_needs_fastset(new_crtc_state)) in intel_modeset_verify_crtc() 234 intel_wm_state_verify(crtc, new_crtc_state); in intel_modeset_verify_crtc() [all …]
|
A D | hsw_ips.c | 91 const struct intel_crtc_state *new_crtc_state = in hsw_ips_need_disable() local 97 if (intel_crtc_needs_modeset(new_crtc_state)) in hsw_ips_need_disable() 107 intel_crtc_needs_color_update(new_crtc_state) && in hsw_ips_need_disable() 108 new_crtc_state->gamma_mode == GAMMA_MODE_MODE_SPLIT) in hsw_ips_need_disable() 111 return !new_crtc_state->ips_enabled; in hsw_ips_need_disable() 132 const struct intel_crtc_state *new_crtc_state = in hsw_ips_need_enable() local 135 if (!new_crtc_state->ips_enabled) in hsw_ips_need_enable() 138 if (intel_crtc_needs_modeset(new_crtc_state)) in hsw_ips_need_enable() 148 intel_crtc_needs_color_update(new_crtc_state) && in hsw_ips_need_enable() 165 const struct intel_crtc_state *new_crtc_state = in hsw_ips_post_update() local [all …]
|
A D | intel_crtc.c | 488 intel_psr_lock(new_crtc_state); in intel_pipe_update_start() 490 if (new_crtc_state->do_async_flip) in intel_pipe_update_start() 496 if (new_crtc_state->vrr.enable) { in intel_pipe_update_start() 497 if (intel_vrr_is_push_sent(new_crtc_state)) in intel_pipe_update_start() 635 intel_psr_unlock(new_crtc_state); in intel_pipe_update_end() 637 if (new_crtc_state->do_async_flip) in intel_pipe_update_end() 648 icl_dsi_frame_update(new_crtc_state); in intel_pipe_update_end() 658 } else if (new_crtc_state->uapi.event) { in intel_pipe_update_end() 664 new_crtc_state->uapi.event); in intel_pipe_update_end() 667 new_crtc_state->uapi.event = NULL; in intel_pipe_update_end() [all …]
|
A D | intel_display.c | 1177 (!new_crtc_state->active_planes || intel_crtc_needs_modeset(new_crtc_state)); in planes_disabling() 1192 if (new_crtc_state->update_wm_post && new_crtc_state->hw.active) in intel_post_plane_update() 6227 new_crtc_state, i) { in intel_atomic_check_planes() 6709 new_crtc_state, i) { in intel_atomic_check() 6735 new_crtc_state, i) { in intel_atomic_check() 6766 new_crtc_state, i) { in intel_atomic_check() 6791 if (!new_crtc_state->hw.enable || intel_crtc_needs_modeset(new_crtc_state)) in intel_atomic_check() 6824 new_crtc_state, i) { in intel_atomic_check() 6882 new_crtc_state, i) { in intel_atomic_check() 6914 new_crtc_state, i) in intel_atomic_check() [all …]
|
A D | intel_crtc.h | 29 void intel_pipe_update_start(struct intel_crtc_state *new_crtc_state); 30 void intel_pipe_update_end(struct intel_crtc_state *new_crtc_state);
|
A D | intel_vrr.c | 49 struct intel_crtc_state *old_crtc_state, *new_crtc_state; in intel_vrr_check_modeset() local 53 new_crtc_state, i) { in intel_vrr_check_modeset() 54 if (new_crtc_state->uapi.vrr_enabled != in intel_vrr_check_modeset() 56 new_crtc_state->uapi.mode_changed = true; in intel_vrr_check_modeset()
|
A D | intel_display.h | 346 #define for_each_new_intel_crtc_in_state(__state, crtc, new_crtc_state, __i) \ argument 350 (new_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].new_state), 1); \ 363 #define for_each_oldnew_intel_crtc_in_state(__state, crtc, old_crtc_state, new_crtc_state, __i) \ argument 368 (new_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].new_state), 1); \ 372 #define for_each_oldnew_intel_crtc_in_state_reverse(__state, crtc, old_crtc_state, new_crtc_state, … argument 377 (new_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].new_state), 1); \ 426 void intel_enable_transcoder(const struct intel_crtc_state *new_crtc_state);
|
A D | skl_watermark.c | 434 struct intel_crtc_state *new_crtc_state; in intel_compute_sagv_mask() local 440 new_crtc_state, i) { in intel_compute_sagv_mask() 477 new_crtc_state, i) { in intel_compute_sagv_mask() 2431 struct intel_crtc_state *new_crtc_state; in skl_compute_ddb() local 2519 new_crtc_state, i) { in skl_compute_ddb() 2525 new_crtc_state); in skl_compute_ddb() 2552 new_crtc_state, i) { in skl_print_wm_changes() 2731 struct intel_crtc_state *new_crtc_state = in skl_wm_add_affected_planes() local 2750 &new_crtc_state->wm.skl.optimal)) in skl_wm_add_affected_planes() 2767 struct intel_crtc_state *new_crtc_state; in skl_compute_wm() local [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/ |
A D | drm_atomic_helper.c | 425 drm_mode_copy(&new_crtc_state->adjusted_mode, &new_crtc_state->mode); in mode_fixup() 438 new_crtc_state = in mode_fixup() 450 new_crtc_state, in mode_fixup() 481 if (!new_crtc_state->enable) in mode_fixup() 1140 new_crtc_state = NULL; in disable_outputs() 1311 if (new_crtc_state->enable) in drm_atomic_helper_calc_timestamping_constants() 1355 mode = &new_crtc_state->mode; in crtc_set_mode() 1458 if (!new_crtc_state->active) in drm_atomic_helper_commit_modeset_enables() 1463 if (new_crtc_state->enable) { in drm_atomic_helper_commit_modeset_enables() 1598 if (!new_crtc_state->active) in drm_atomic_helper_wait_for_vblanks() [all …]
|
A D | drm_blend.c | 514 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in drm_atomic_normalize_zpos() local 524 new_crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in drm_atomic_normalize_zpos() 525 new_crtc_state->zpos_changed = true; in drm_atomic_normalize_zpos() 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() 531 new_crtc_state->zpos_changed) { in drm_atomic_normalize_zpos() 533 new_crtc_state); in drm_atomic_normalize_zpos()
|
A D | drm_atomic.c | 373 struct drm_crtc *crtc = new_crtc_state->crtc; in drm_atomic_crtc_check() 383 if (new_crtc_state->active && !new_crtc_state->enable) { in drm_atomic_crtc_check() 395 WARN_ON(new_crtc_state->enable && !new_crtc_state->mode_blob)) { in drm_atomic_crtc_check() 403 WARN_ON(!new_crtc_state->enable && new_crtc_state->mode_blob)) { in drm_atomic_crtc_check() 420 if (new_crtc_state->event && in drm_atomic_crtc_check() 1326 struct drm_crtc_state *new_crtc_state; in drm_atomic_check_only() local 1336 if (new_crtc_state->enable) in drm_atomic_check_only() 1388 if (new_crtc_state->enable) in drm_atomic_check_only() 1505 struct drm_crtc_state *new_crtc_state; in update_output_state() local 1555 if (!new_crtc_state->connector_mask) { in update_output_state() [all …]
|
A D | drm_plane_helper.c | 311 struct drm_crtc_state *new_crtc_state = NULL; in drm_plane_helper_atomic_check() local 314 new_crtc_state = drm_atomic_get_new_crtc_state(state, new_crtc); in drm_plane_helper_atomic_check() 316 return drm_atomic_helper_check_plane_state(new_plane_state, new_crtc_state, in drm_plane_helper_atomic_check()
|
/linux-6.3-rc2/drivers/gpu/drm/vc4/ |
A D | vc4_kms.c | 334 struct drm_crtc_state *new_crtc_state; in vc4_atomic_commit_tail() local 352 if (!new_crtc_state->commit) in vc4_atomic_commit_tail() 541 if (new_crtc_state->ctm) { in vc4_ctm_atomic_check() 543 to_vc4_crtc_state(new_crtc_state); in vc4_ctm_atomic_check() 560 ctm = new_crtc_state->ctm->data; in vc4_ctm_atomic_check() 872 if (!new_crtc_state) in vc4_pv_muxing_atomic_check() 880 if (new_crtc_state->enable) in vc4_pv_muxing_atomic_check() 893 if (!new_crtc_state->enable) { in vc4_pv_muxing_atomic_check() 953 new_crtc_state, in vc4_core_clock_atomic_check() 963 if (new_crtc_state->active) { in vc4_core_clock_atomic_check() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/amdgpu_dm/ |
A D | amdgpu_dm.c | 7554 if (new_crtc_state) in is_content_protection_different() 7573 if (new_crtc_state && new_crtc_state->mode_changed) { in is_content_protection_different() 7627 if (new_crtc_state && new_crtc_state->mode_changed) { in is_content_protection_different() 8283 if (!new_crtc_state) in amdgpu_dm_commit_audio() 8308 if (!new_crtc_state) in amdgpu_dm_commit_audio() 8570 if (new_crtc_state) in amdgpu_dm_atomic_commit_tail() 8630 if (new_crtc_state && new_crtc_state->mode_changed && in amdgpu_dm_atomic_commit_tail() 9384 new_crtc_state = in should_reset_plane() 9387 if (!new_crtc_state) in should_reset_plane() 9653 new_crtc_state); in dm_update_plane_state() [all …]
|
A D | amdgpu_dm_crtc.c | 315 static int count_crtc_active_planes(struct drm_crtc_state *new_crtc_state) in count_crtc_active_planes() argument 317 struct drm_atomic_state *state = new_crtc_state->state; in count_crtc_active_planes() 321 drm_for_each_plane_mask(plane, state->dev, new_crtc_state->plane_mask) { in count_crtc_active_planes() 348 struct drm_crtc_state *new_crtc_state) in dm_update_crtc_active_planes() argument 351 to_dm_crtc_state(new_crtc_state); in dm_update_crtc_active_planes() 359 count_crtc_active_planes(new_crtc_state); in dm_update_crtc_active_planes()
|
A D | amdgpu_dm_mst_types.c | 1076 struct drm_crtc_state *new_crtc_state; in is_dsc_need_re_compute() local 1104 new_crtc_state = drm_atomic_get_new_crtc_state(state, new_conn_state->crtc); in is_dsc_need_re_compute() 1105 if (!new_crtc_state) in is_dsc_need_re_compute() 1108 if (IS_ERR(new_crtc_state)) in is_dsc_need_re_compute() 1111 if (new_crtc_state->enable && new_crtc_state->active) { in is_dsc_need_re_compute() 1112 if (new_crtc_state->mode_changed || new_crtc_state->active_changed || in is_dsc_need_re_compute() 1113 new_crtc_state->connectors_changed) in is_dsc_need_re_compute() 1294 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in is_dsc_precompute_needed() local 1297 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in is_dsc_precompute_needed() 1298 struct dm_crtc_state *dm_crtc_state = to_dm_crtc_state(new_crtc_state); in is_dsc_precompute_needed()
|
/linux-6.3-rc2/drivers/gpu/drm/mgag200/ |
A D | mgag200_mode.c | 465 struct drm_crtc_state *new_crtc_state = NULL; in mgag200_primary_plane_helper_atomic_check() local 470 new_crtc_state = drm_atomic_get_new_crtc_state(new_state, new_crtc); in mgag200_primary_plane_helper_atomic_check() 472 ret = drm_atomic_helper_check_plane_state(new_plane_state, new_crtc_state, in mgag200_primary_plane_helper_atomic_check() 485 new_crtc_state->mode_changed = true; /* update PLL settings */ in mgag200_primary_plane_helper_atomic_check() 487 new_mgag200_crtc_state = to_mgag200_crtc_state(new_crtc_state); in mgag200_primary_plane_helper_atomic_check() 578 struct drm_crtc_state *new_crtc_state = drm_atomic_get_new_crtc_state(new_state, crtc); in mgag200_crtc_helper_atomic_check() local 579 struct drm_property_blob *new_gamma_lut = new_crtc_state->gamma_lut; in mgag200_crtc_helper_atomic_check() 582 if (!new_crtc_state->enable) in mgag200_crtc_helper_atomic_check() 585 ret = drm_atomic_helper_check_crtc_primary_plane(new_crtc_state); in mgag200_crtc_helper_atomic_check() 589 if (new_crtc_state->mode_changed) { in mgag200_crtc_helper_atomic_check() [all …]
|
A D | mgag200_g200eh3.c | 24 struct drm_crtc_state *new_crtc_state = drm_atomic_get_new_crtc_state(new_state, crtc); in mgag200_g200eh3_pixpllc_atomic_check() local 25 struct mgag200_crtc_state *new_mgag200_crtc_state = to_mgag200_crtc_state(new_crtc_state); in mgag200_g200eh3_pixpllc_atomic_check() 26 long clock = new_crtc_state->mode.clock; in mgag200_g200eh3_pixpllc_atomic_check()
|
A D | mgag200_g200se.c | 121 struct drm_crtc_state *new_crtc_state = drm_atomic_get_new_crtc_state(new_state, crtc); in mgag200_g200se_00_pixpllc_atomic_check() local 122 struct mgag200_crtc_state *new_mgag200_crtc_state = to_mgag200_crtc_state(new_crtc_state); in mgag200_g200se_00_pixpllc_atomic_check() 123 long clock = new_crtc_state->mode.clock; in mgag200_g200se_00_pixpllc_atomic_check() 205 struct drm_crtc_state *new_crtc_state = drm_atomic_get_new_crtc_state(new_state, crtc); in mgag200_g200se_04_pixpllc_atomic_check() local 206 struct mgag200_crtc_state *new_mgag200_crtc_state = to_mgag200_crtc_state(new_crtc_state); in mgag200_g200se_04_pixpllc_atomic_check() 207 long clock = new_crtc_state->mode.clock; in mgag200_g200se_04_pixpllc_atomic_check()
|
A D | mgag200_g200ew3.c | 31 struct drm_crtc_state *new_crtc_state = drm_atomic_get_new_crtc_state(new_state, crtc); in mgag200_g200ew3_pixpllc_atomic_check() local 32 struct mgag200_crtc_state *new_mgag200_crtc_state = to_mgag200_crtc_state(new_crtc_state); in mgag200_g200ew3_pixpllc_atomic_check() 33 long clock = new_crtc_state->mode.clock; in mgag200_g200ew3_pixpllc_atomic_check()
|
/linux-6.3-rc2/drivers/gpu/drm/nouveau/dispnv50/ |
A D | crc.c | 272 struct drm_crtc_state *new_crtc_state; in nv50_crc_atomic_init_notifier_contexts() local 276 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in nv50_crc_atomic_init_notifier_contexts() 278 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_crc_atomic_init_notifier_contexts() 296 struct drm_crtc_state *new_crtc_state; in nv50_crc_atomic_release_notifier_contexts() local 300 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in nv50_crc_atomic_release_notifier_contexts() 302 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_crc_atomic_release_notifier_contexts() 382 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in nv50_crc_atomic_check_outp() local 389 new_crtc_state, i) { in nv50_crc_atomic_check_outp() 391 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_crc_atomic_check_outp()
|
A D | disp.c | 2082 if (new_crtc_state->active) { in nv50_disp_atomic_commit_tail() 2087 if (new_crtc_state->event) in nv50_disp_atomic_commit_tail() 2174 if (new_crtc_state->event) { in nv50_disp_atomic_commit_tail() 2177 if (new_crtc_state->active) in nv50_disp_atomic_commit_tail() 2183 new_crtc_state->event = NULL; in nv50_disp_atomic_commit_tail() 2184 if (new_crtc_state->active) in nv50_disp_atomic_commit_tail() 2328 struct drm_crtc_state *new_crtc_state; in nv50_disp_outp_atomic_check_set() local 2336 if (new_crtc_state->active && drm_atomic_crtc_needs_modeset(new_crtc_state)) { in nv50_disp_outp_atomic_check_set() 2355 struct drm_crtc_state *new_crtc_state; in nv50_disp_atomic_check() local 2365 if (IS_ERR(new_crtc_state)) in nv50_disp_atomic_check() [all …]
|
/linux-6.3-rc2/include/drm/ |
A D | drm_atomic.h | 820 #define for_each_oldnew_crtc_in_state(__state, crtc, old_crtc_state, new_crtc_state, __i) \ argument 829 (new_crtc_state) = (__state)->crtcs[__i].new_state, \ 830 (void)(new_crtc_state) /* Only to avoid unused-but-set-variable warning */, 1)) 863 #define for_each_new_crtc_in_state(__state, crtc, new_crtc_state, __i) \ argument 870 (new_crtc_state) = (__state)->crtcs[__i].new_state, \ 871 (void)(new_crtc_state) /* Only to avoid unused-but-set-variable warning */, 1))
|
/linux-6.3-rc2/drivers/gpu/drm/gud/ |
A D | gud_pipe.c | 445 struct drm_crtc_state *new_crtc_state) in gud_pipe_check() argument 449 const struct drm_display_mode *mode = &new_crtc_state->mode; in gud_pipe_check() 465 new_crtc_state->mode_changed = true; in gud_pipe_check() 468 new_crtc_state->mode_changed = true; in gud_pipe_check() 470 if (!new_crtc_state->mode_changed && !new_crtc_state->connectors_changed) in gud_pipe_check() 474 if (hweight32(new_crtc_state->connector_mask) != 1) in gud_pipe_check()
|