| /Linux-v6.1/drivers/gpu/drm/i915/display/ |
| D | intel_atomic_plane.c | 256 struct intel_crtc_state *new_crtc_state; in intel_plane_calc_min_cdclk() local 262 new_crtc_state = intel_atomic_get_new_crtc_state(state, crtc); in intel_plane_calc_min_cdclk() 264 new_crtc_state->min_cdclk[plane->id] = in intel_plane_calc_min_cdclk() 265 plane->min_cdclk(new_crtc_state, plane_state); in intel_plane_calc_min_cdclk() 275 if (new_crtc_state->min_cdclk[plane->id] <= in intel_plane_calc_min_cdclk() 291 if (new_crtc_state->min_cdclk[plane->id] <= in intel_plane_calc_min_cdclk() 298 new_crtc_state->min_cdclk[plane->id], in intel_plane_calc_min_cdclk() 408 const struct intel_crtc_state *new_crtc_state) in intel_plane_do_async_flip() argument 415 if (!new_crtc_state->uapi.async_flip) in intel_plane_do_async_flip() 429 struct intel_crtc_state *new_crtc_state, in intel_plane_atomic_calc_changes() argument [all …]
|
| D | intel_modeset_verify.c | 159 struct intel_crtc_state *new_crtc_state) in verify_crtc_state() argument 176 pipe_config->hw.enable = new_crtc_state->hw.enable; in verify_crtc_state() 182 pipe_config->hw.active = new_crtc_state->hw.active; in verify_crtc_state() 184 I915_STATE_WARN(new_crtc_state->hw.active != pipe_config->hw.active, in verify_crtc_state() 186 new_crtc_state->hw.active, pipe_config->hw.active); in verify_crtc_state() 188 I915_STATE_WARN(crtc->active != new_crtc_state->hw.active, in verify_crtc_state() 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() 199 I915_STATE_WARN(active != new_crtc_state->hw.active, in verify_crtc_state() 202 new_crtc_state->hw.active); in verify_crtc_state() [all …]
|
| 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 (new_crtc_state->uapi.color_mgmt_changed || in hsw_ips_need_disable() 108 new_crtc_state->update_pipe) && in hsw_ips_need_disable() 109 new_crtc_state->gamma_mode == GAMMA_MODE_MODE_SPLIT) in hsw_ips_need_disable() 112 return !new_crtc_state->ips_enabled; in hsw_ips_need_disable() 133 const struct intel_crtc_state *new_crtc_state = in hsw_ips_need_enable() local 136 if (!new_crtc_state->ips_enabled) in hsw_ips_need_enable() 139 if (intel_crtc_needs_modeset(new_crtc_state)) in hsw_ips_need_enable() 149 (new_crtc_state->uapi.color_mgmt_changed || in hsw_ips_need_enable() [all …]
|
| D | intel_crtc.c | 477 void intel_pipe_update_start(struct intel_crtc_state *new_crtc_state) in intel_pipe_update_start() argument 479 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in intel_pipe_update_start() 481 const struct drm_display_mode *adjusted_mode = &new_crtc_state->hw.adjusted_mode; in intel_pipe_update_start() 486 intel_crtc_has_type(new_crtc_state, INTEL_OUTPUT_DSI); in intel_pipe_update_start() 489 intel_psr_lock(new_crtc_state); in intel_pipe_update_start() 491 if (new_crtc_state->do_async_flip) in intel_pipe_update_start() 494 if (intel_crtc_needs_vblank_work(new_crtc_state)) in intel_pipe_update_start() 495 intel_crtc_vblank_work_init(new_crtc_state); in intel_pipe_update_start() 497 if (new_crtc_state->vrr.enable) { in intel_pipe_update_start() 498 if (intel_vrr_is_push_sent(new_crtc_state)) in intel_pipe_update_start() [all …]
|
| D | intel_display.c | 529 void intel_enable_transcoder(const struct intel_crtc_state *new_crtc_state) in intel_enable_transcoder() argument 531 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in intel_enable_transcoder() 533 enum transcoder cpu_transcoder = new_crtc_state->cpu_transcoder; in intel_enable_transcoder() 548 if (intel_crtc_has_type(new_crtc_state, INTEL_OUTPUT_DSI)) in intel_enable_transcoder() 553 if (new_crtc_state->has_pch_encoder) { in intel_enable_transcoder() 586 if (intel_crtc_max_vblank_count(new_crtc_state) == 0) in intel_enable_transcoder() 1209 const struct intel_crtc_state *new_crtc_state) in planes_enabling() argument 1211 return (!old_crtc_state->active_planes || intel_crtc_needs_modeset(new_crtc_state)) && in planes_enabling() 1212 new_crtc_state->active_planes; in planes_enabling() 1216 const struct intel_crtc_state *new_crtc_state) in planes_disabling() argument [all …]
|
| 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);
|
| D | intel_vrr.c | 48 struct intel_crtc_state *old_crtc_state, *new_crtc_state; in intel_vrr_check_modeset() local 52 new_crtc_state, i) { in intel_vrr_check_modeset() 53 if (new_crtc_state->uapi.vrr_enabled != in intel_vrr_check_modeset() 55 new_crtc_state->uapi.mode_changed = true; in intel_vrr_check_modeset()
|
| D | skl_watermark.c | 435 struct intel_crtc_state *new_crtc_state; in intel_compute_sagv_mask() local 441 new_crtc_state, i) { in intel_compute_sagv_mask() 448 if (intel_crtc_can_enable_sagv(new_crtc_state)) in intel_compute_sagv_mask() 478 new_crtc_state, i) { in intel_compute_sagv_mask() 479 struct skl_pipe_wm *pipe_wm = &new_crtc_state->wm.skl.optimal; in intel_compute_sagv_mask() 2395 struct intel_crtc_state *new_crtc_state) in skl_ddb_add_affected_planes() argument 2397 struct intel_atomic_state *state = to_intel_atomic_state(new_crtc_state->uapi.state); in skl_ddb_add_affected_planes() 2398 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in skl_ddb_add_affected_planes() 2407 &new_crtc_state->wm.skl.plane_ddb[plane_id]) && in skl_ddb_add_affected_planes() 2409 &new_crtc_state->wm.skl.plane_ddb_y[plane_id])) in skl_ddb_add_affected_planes() [all …]
|
| D | intel_display.h | 492 #define for_each_new_intel_crtc_in_state(__state, crtc, new_crtc_state, __i) \ argument 496 (new_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].new_state), 1); \ 509 #define for_each_oldnew_intel_crtc_in_state(__state, crtc, old_crtc_state, new_crtc_state, __i) \ argument 514 (new_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].new_state), 1); \ 518 #define for_each_oldnew_intel_crtc_in_state_reverse(__state, crtc, old_crtc_state, new_crtc_state, … argument 523 (new_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].new_state), 1); \ 572 void intel_enable_transcoder(const struct intel_crtc_state *new_crtc_state);
|
| D | intel_color.c | 1189 static bool intel_can_preload_luts(const struct intel_crtc_state *new_crtc_state) in intel_can_preload_luts() argument 1191 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in intel_can_preload_luts() 1193 to_intel_atomic_state(new_crtc_state->uapi.state); in intel_can_preload_luts() 1201 static bool chv_can_preload_luts(const struct intel_crtc_state *new_crtc_state) in chv_can_preload_luts() argument 1203 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in chv_can_preload_luts() 1205 to_intel_atomic_state(new_crtc_state->uapi.state); in chv_can_preload_luts() 1214 if (old_crtc_state->cgm_mode || new_crtc_state->cgm_mode) in chv_can_preload_luts() 1220 static bool glk_can_preload_luts(const struct intel_crtc_state *new_crtc_state) in glk_can_preload_luts() argument 1222 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in glk_can_preload_luts() 1224 to_intel_atomic_state(new_crtc_state->uapi.state); in glk_can_preload_luts() [all …]
|
| /Linux-v6.1/drivers/gpu/drm/ |
| D | drm_atomic_helper.c | 414 struct drm_crtc_state *new_crtc_state; in mode_fixup() local 420 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in mode_fixup() 421 if (!new_crtc_state->mode_changed && in mode_fixup() 422 !new_crtc_state->connectors_changed) in mode_fixup() 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() 458 ret = funcs->atomic_check(encoder, new_crtc_state, in mode_fixup() 467 ret = funcs->mode_fixup(encoder, &new_crtc_state->mode, in mode_fixup() 468 &new_crtc_state->adjusted_mode); in mode_fixup() [all …]
|
| D | drm_blend.c | 515 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in drm_atomic_normalize_zpos() local 525 new_crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in drm_atomic_normalize_zpos() 526 new_crtc_state->zpos_changed = true; in drm_atomic_normalize_zpos() 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() 532 new_crtc_state->zpos_changed) { in drm_atomic_normalize_zpos() 534 new_crtc_state); in drm_atomic_normalize_zpos()
|
| D | drm_atomic.c | 371 const struct drm_crtc_state *new_crtc_state) in drm_atomic_crtc_check() argument 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() 421 !new_crtc_state->active && !old_crtc_state->active) { in drm_atomic_crtc_check() 1325 struct drm_crtc_state *new_crtc_state; in drm_atomic_check_only() local 1334 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in drm_atomic_check_only() 1335 if (new_crtc_state->enable) in drm_atomic_check_only() [all …]
|
| D | drm_plane_helper.c | 310 struct drm_crtc_state *new_crtc_state = NULL; in drm_plane_helper_atomic_check() local 313 new_crtc_state = drm_atomic_get_new_crtc_state(state, new_crtc); in drm_plane_helper_atomic_check() 315 return drm_atomic_helper_check_plane_state(new_plane_state, new_crtc_state, in drm_plane_helper_atomic_check()
|
| /Linux-v6.1/drivers/gpu/drm/vc4/ |
| D | vc4_kms.c | 352 struct drm_crtc_state *new_crtc_state; in vc4_atomic_commit_tail() local 367 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in vc4_atomic_commit_tail() 370 if (!new_crtc_state->commit) in vc4_atomic_commit_tail() 373 vc4_crtc_state = to_vc4_crtc_state(new_crtc_state); in vc4_atomic_commit_tail() 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() 556 if (new_crtc_state->ctm) { in vc4_ctm_atomic_check() [all …]
|
| /Linux-v6.1/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| D | amdgpu_dm.c | 240 struct drm_crtc_state *new_crtc_state); 2642 struct drm_crtc_state *new_crtc_state; in dm_resume() local 2776 for_each_new_crtc_in_state(dm->cached_state, crtc, new_crtc_state, i) in dm_resume() 2777 new_crtc_state->active_changed = true; in dm_resume() 2784 for_each_new_crtc_in_state(dm->cached_state, crtc, new_crtc_state, i) { in dm_resume() 2785 dm_new_crtc_state = to_dm_crtc_state(new_crtc_state); in dm_resume() 6362 struct drm_crtc_state *new_crtc_state; in amdgpu_dm_connector_atomic_check() local 6384 new_crtc_state = drm_atomic_get_crtc_state(state, crtc); in amdgpu_dm_connector_atomic_check() 6385 if (IS_ERR(new_crtc_state)) in amdgpu_dm_connector_atomic_check() 6386 return PTR_ERR(new_crtc_state); in amdgpu_dm_connector_atomic_check() [all …]
|
| D | amdgpu_dm_crtc.c | 306 static int count_crtc_active_planes(struct drm_crtc_state *new_crtc_state) in count_crtc_active_planes() argument 308 struct drm_atomic_state *state = new_crtc_state->state; in count_crtc_active_planes() 312 drm_for_each_plane_mask(plane, state->dev, new_crtc_state->plane_mask) { in count_crtc_active_planes() 339 struct drm_crtc_state *new_crtc_state) in dm_update_crtc_active_planes() argument 342 to_dm_crtc_state(new_crtc_state); in dm_update_crtc_active_planes() 350 count_crtc_active_planes(new_crtc_state); in dm_update_crtc_active_planes()
|
| /Linux-v6.1/drivers/gpu/drm/mgag200/ |
| 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 ret = drm_atomic_helper_check_crtc_state(new_crtc_state, false); in mgag200_crtc_helper_atomic_check() 586 if (!new_crtc_state->enable) in mgag200_crtc_helper_atomic_check() 589 if (new_crtc_state->mode_changed) { in mgag200_crtc_helper_atomic_check() [all …]
|
| 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()
|
| 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()
|
| 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-v6.1/drivers/gpu/drm/nouveau/dispnv50/ |
| 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()
|
| D | disp.c | 2100 struct drm_crtc_state *new_crtc_state, *old_crtc_state; in nv50_disp_atomic_commit_tail() local 2125 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in nv50_disp_atomic_commit_tail() 2126 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_disp_atomic_commit_tail() 2132 if (old_crtc_state->active && !new_crtc_state->active) { in nv50_disp_atomic_commit_tail() 2216 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in nv50_disp_atomic_commit_tail() 2217 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_disp_atomic_commit_tail() 2228 if (new_crtc_state->active) { in nv50_disp_atomic_commit_tail() 2233 if (new_crtc_state->event) in nv50_disp_atomic_commit_tail() 2267 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in nv50_disp_atomic_commit_tail() 2268 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_disp_atomic_commit_tail() [all …]
|
| /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 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-v6.1/drivers/gpu/drm/gud/ |
| D | gud_pipe.c | 454 struct drm_crtc_state *new_crtc_state) in gud_pipe_check() argument 458 const struct drm_display_mode *mode = &new_crtc_state->mode; in gud_pipe_check() 474 new_crtc_state->mode_changed = true; in gud_pipe_check() 477 new_crtc_state->mode_changed = true; in gud_pipe_check() 479 if (!new_crtc_state->mode_changed && !new_crtc_state->connectors_changed) in gud_pipe_check() 483 if (hweight32(new_crtc_state->connector_mask) != 1) in gud_pipe_check()
|