/openbmc/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_atomic_plane.c | 262 struct intel_crtc_state *new_crtc_state; in intel_plane_calc_min_cdclk() local 268 new_crtc_state = intel_atomic_get_new_crtc_state(state, crtc); in intel_plane_calc_min_cdclk() 270 new_crtc_state->min_cdclk[plane->id] = in intel_plane_calc_min_cdclk() 271 plane->min_cdclk(new_crtc_state, plane_state); in intel_plane_calc_min_cdclk() 281 if (new_crtc_state->min_cdclk[plane->id] <= in intel_plane_calc_min_cdclk() 297 if (new_crtc_state->min_cdclk[plane->id] <= in intel_plane_calc_min_cdclk() 304 new_crtc_state->min_cdclk[plane->id], in intel_plane_calc_min_cdclk() 415 const struct intel_crtc_state *new_crtc_state) in intel_plane_do_async_flip() argument 422 if (!new_crtc_state->uapi.async_flip) in intel_plane_do_async_flip() 435 static bool i9xx_must_disable_cxsr(const struct intel_crtc_state *new_crtc_state, in i9xx_must_disable_cxsr() argument [all …]
|
H A D | intel_modeset_verify.c | 161 struct intel_crtc_state *new_crtc_state) in verify_crtc_state() argument 178 pipe_config->hw.enable = new_crtc_state->hw.enable; in verify_crtc_state() 184 pipe_config->hw.active = new_crtc_state->hw.active; in verify_crtc_state() 187 new_crtc_state->hw.active != pipe_config->hw.active, in verify_crtc_state() 189 new_crtc_state->hw.active, pipe_config->hw.active); in verify_crtc_state() 191 I915_STATE_WARN(dev_priv, crtc->active != new_crtc_state->hw.active, in verify_crtc_state() 193 new_crtc_state->hw.active, crtc->active); in verify_crtc_state() 195 master_crtc = intel_master_crtc(new_crtc_state); in verify_crtc_state() 202 I915_STATE_WARN(dev_priv, active != new_crtc_state->hw.active, in verify_crtc_state() 205 new_crtc_state->hw.active); in verify_crtc_state() [all …]
|
H A D | intel_display.c | 392 void intel_enable_transcoder(const struct intel_crtc_state *new_crtc_state) in intel_enable_transcoder() argument 394 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in intel_enable_transcoder() 396 enum transcoder cpu_transcoder = new_crtc_state->cpu_transcoder; in intel_enable_transcoder() 411 if (intel_crtc_has_type(new_crtc_state, INTEL_OUTPUT_DSI)) in intel_enable_transcoder() 416 if (new_crtc_state->has_pch_encoder) { in intel_enable_transcoder() 449 if (intel_crtc_max_vblank_count(new_crtc_state) == 0) in intel_enable_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)) && \ 899 (new_crtc_state)->feature) 900 #define is_disabling(feature, old_crtc_state, new_crtc_state) \ argument [all …]
|
H A D | hsw_ips.c | 97 const struct intel_crtc_state *new_crtc_state = in hsw_ips_need_disable() local 103 if (intel_crtc_needs_modeset(new_crtc_state)) in hsw_ips_need_disable() 113 intel_crtc_needs_color_update(new_crtc_state) && in hsw_ips_need_disable() 114 new_crtc_state->gamma_mode == GAMMA_MODE_MODE_SPLIT) in hsw_ips_need_disable() 117 return !new_crtc_state->ips_enabled; in hsw_ips_need_disable() 138 const struct intel_crtc_state *new_crtc_state = in hsw_ips_need_enable() local 141 if (!new_crtc_state->ips_enabled) in hsw_ips_need_enable() 144 if (intel_crtc_needs_modeset(new_crtc_state)) in hsw_ips_need_enable() 154 intel_crtc_needs_color_update(new_crtc_state) && in hsw_ips_need_enable() 155 new_crtc_state->gamma_mode == GAMMA_MODE_MODE_SPLIT) in hsw_ips_need_enable() [all …]
|
H A D | intel_crtc.c | 477 const struct intel_crtc_state *new_crtc_state = in intel_crtc_vblank_evade_scanlines() local 488 if (intel_crtc_needs_modeset(new_crtc_state)) in intel_crtc_vblank_evade_scanlines() 489 crtc_state = new_crtc_state; in intel_crtc_vblank_evade_scanlines() 513 if (new_crtc_state->update_m_n) in intel_crtc_vblank_evade_scanlines() 534 struct intel_crtc_state *new_crtc_state = in intel_pipe_update_start() local 540 intel_crtc_has_type(new_crtc_state, INTEL_OUTPUT_DSI); in intel_pipe_update_start() 543 intel_psr_lock(new_crtc_state); in intel_pipe_update_start() 545 if (new_crtc_state->do_async_flip) in intel_pipe_update_start() 548 if (intel_crtc_needs_vblank_work(new_crtc_state)) in intel_pipe_update_start() 549 intel_crtc_vblank_work_init(new_crtc_state); in intel_pipe_update_start() [all …]
|
H A D | skl_watermark.c | 439 struct intel_crtc_state *new_crtc_state; in intel_compute_sagv_mask() local 445 new_crtc_state, i) { in intel_compute_sagv_mask() 452 if (intel_crtc_can_enable_sagv(new_crtc_state)) in intel_compute_sagv_mask() 482 new_crtc_state, i) { in intel_compute_sagv_mask() 483 struct skl_pipe_wm *pipe_wm = &new_crtc_state->wm.skl.optimal; in intel_compute_sagv_mask() 2511 struct intel_crtc_state *new_crtc_state) in skl_ddb_add_affected_planes() argument 2513 struct intel_atomic_state *state = to_intel_atomic_state(new_crtc_state->uapi.state); in skl_ddb_add_affected_planes() 2514 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in skl_ddb_add_affected_planes() 2523 &new_crtc_state->wm.skl.plane_ddb[plane_id]) && in skl_ddb_add_affected_planes() 2525 &new_crtc_state->wm.skl.plane_ddb_y[plane_id])) in skl_ddb_add_affected_planes() [all …]
|
H 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()
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_atomic_helper.c | 419 struct drm_crtc_state *new_crtc_state; in mode_fixup() local 425 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in mode_fixup() 426 if (!new_crtc_state->mode_changed && in mode_fixup() 427 !new_crtc_state->connectors_changed) in mode_fixup() 430 drm_mode_copy(&new_crtc_state->adjusted_mode, &new_crtc_state->mode); in mode_fixup() 443 new_crtc_state = in mode_fixup() 455 new_crtc_state, in mode_fixup() 463 ret = funcs->atomic_check(encoder, new_crtc_state, in mode_fixup() 472 ret = funcs->mode_fixup(encoder, &new_crtc_state->mode, in mode_fixup() 473 &new_crtc_state->adjusted_mode); in mode_fixup() [all …]
|
H 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()
|
H A D | drm_atomic.c | 380 const struct drm_crtc_state *new_crtc_state) in drm_atomic_crtc_check() argument 382 struct drm_crtc *crtc = new_crtc_state->crtc; in drm_atomic_crtc_check() 392 if (new_crtc_state->active && !new_crtc_state->enable) { in drm_atomic_crtc_check() 404 WARN_ON(new_crtc_state->enable && !new_crtc_state->mode_blob)) { in drm_atomic_crtc_check() 412 WARN_ON(!new_crtc_state->enable && new_crtc_state->mode_blob)) { in drm_atomic_crtc_check() 429 if (new_crtc_state->event && in drm_atomic_crtc_check() 430 !new_crtc_state->active && !old_crtc_state->active) { in drm_atomic_crtc_check() 1396 struct drm_crtc_state *new_crtc_state; in drm_atomic_check_only() local 1405 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in drm_atomic_check_only() 1406 if (new_crtc_state->enable) in drm_atomic_check_only() [all …]
|
H A D | drm_plane_helper.c | 303 struct drm_crtc_state *new_crtc_state = NULL; in drm_plane_helper_atomic_check() local 306 new_crtc_state = drm_atomic_get_new_crtc_state(state, new_crtc); in drm_plane_helper_atomic_check() 308 return drm_atomic_helper_check_plane_state(new_plane_state, new_crtc_state, in drm_plane_helper_atomic_check()
|
/openbmc/linux/drivers/gpu/drm/vc4/ |
H A D | vc4_kms.c | 328 struct drm_crtc_state *new_crtc_state; in vc4_atomic_commit_tail() local 343 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in vc4_atomic_commit_tail() 346 if (!new_crtc_state->commit) in vc4_atomic_commit_tail() 349 vc4_crtc_state = to_vc4_crtc_state(new_crtc_state); in vc4_atomic_commit_tail() 510 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() 535 if (new_crtc_state->ctm) { in vc4_ctm_atomic_check() [all …]
|
/openbmc/linux/drivers/gpu/drm/msm/dp/ |
H A D | dp_drm.c | 166 struct drm_crtc_state *new_crtc_state = NULL, *old_crtc_state = NULL; in edp_bridge_atomic_disable() local 175 new_crtc_state = drm_atomic_get_new_crtc_state(atomic_state, crtc); in edp_bridge_atomic_disable() 176 if (!new_crtc_state) in edp_bridge_atomic_disable() 194 if (new_crtc_state->self_refresh_active) { in edp_bridge_atomic_disable() 211 struct drm_crtc_state *new_crtc_state = NULL; in edp_bridge_atomic_post_disable() local 218 new_crtc_state = drm_atomic_get_new_crtc_state(atomic_state, crtc); in edp_bridge_atomic_post_disable() 219 if (!new_crtc_state) in edp_bridge_atomic_post_disable() 225 if (new_crtc_state->self_refresh_active) in edp_bridge_atomic_post_disable()
|
/openbmc/linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
H A D | amdgpu_dm.c | 236 struct drm_crtc_state *new_crtc_state); 2820 struct drm_crtc_state *new_crtc_state; in dm_resume() local 2963 for_each_new_crtc_in_state(dm->cached_state, crtc, new_crtc_state, i) in dm_resume() 2964 new_crtc_state->active_changed = true; in dm_resume() 2971 for_each_new_crtc_in_state(dm->cached_state, crtc, new_crtc_state, i) { in dm_resume() 2972 dm_new_crtc_state = to_dm_crtc_state(new_crtc_state); in dm_resume() 6785 struct drm_crtc_state *new_crtc_state; in amdgpu_dm_connector_atomic_check() local 6801 new_crtc_state = drm_atomic_get_crtc_state(state, crtc); in amdgpu_dm_connector_atomic_check() 6802 if (IS_ERR(new_crtc_state)) in amdgpu_dm_connector_atomic_check() 6803 return PTR_ERR(new_crtc_state); in amdgpu_dm_connector_atomic_check() [all …]
|
H A D | amdgpu_dm_crtc.c | 316 static int count_crtc_active_planes(struct drm_crtc_state *new_crtc_state) in count_crtc_active_planes() argument 318 struct drm_atomic_state *state = new_crtc_state->state; in count_crtc_active_planes() 322 drm_for_each_plane_mask(plane, state->dev, new_crtc_state->plane_mask) { in count_crtc_active_planes() 349 struct drm_crtc_state *new_crtc_state) in dm_update_crtc_active_planes() argument 352 to_dm_crtc_state(new_crtc_state); in dm_update_crtc_active_planes() 360 count_crtc_active_planes(new_crtc_state); in dm_update_crtc_active_planes()
|
/openbmc/linux/drivers/gpu/drm/bridge/ |
H A D | panel.c | 161 struct drm_crtc_state *new_crtc_state; in panel_bridge_atomic_disable() local 167 new_crtc_state = drm_atomic_get_new_crtc_state(atomic_state, crtc); in panel_bridge_atomic_disable() 168 if (new_crtc_state && new_crtc_state->self_refresh_active) in panel_bridge_atomic_disable() 181 struct drm_crtc_state *new_crtc_state; in panel_bridge_atomic_post_disable() local 187 new_crtc_state = drm_atomic_get_new_crtc_state(atomic_state, crtc); in panel_bridge_atomic_post_disable() 188 if (new_crtc_state && new_crtc_state->self_refresh_active) in panel_bridge_atomic_post_disable()
|
/openbmc/linux/drivers/gpu/drm/vkms/ |
H A D | vkms_drv.c | 126 struct drm_crtc_state *new_crtc_state; in vkms_atomic_check() local 129 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in vkms_atomic_check() 130 if (!new_crtc_state->gamma_lut || !new_crtc_state->color_mgmt_changed) in vkms_atomic_check() 133 if (new_crtc_state->gamma_lut->length / sizeof(struct drm_color_lut *) in vkms_atomic_check()
|
/openbmc/linux/drivers/gpu/drm/mgag200/ |
H 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() 580 struct drm_crtc_state *new_crtc_state = drm_atomic_get_new_crtc_state(new_state, crtc); in mgag200_crtc_helper_atomic_check() local 581 struct drm_property_blob *new_gamma_lut = new_crtc_state->gamma_lut; in mgag200_crtc_helper_atomic_check() 584 if (!new_crtc_state->enable) in mgag200_crtc_helper_atomic_check() 587 ret = drm_atomic_helper_check_crtc_primary_plane(new_crtc_state); in mgag200_crtc_helper_atomic_check() 591 if (new_crtc_state->mode_changed) { in mgag200_crtc_helper_atomic_check() [all …]
|
H 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()
|
H 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()
|
/openbmc/linux/drivers/gpu/drm/msm/ |
H A D | msm_atomic.c | 186 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in msm_atomic_check() local 191 new_crtc_state, i) { 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() 194 new_crtc_state->mode_changed = true; in msm_atomic_check()
|
/openbmc/linux/drivers/gpu/drm/nouveau/dispnv50/ |
H 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()
|
H A D | disp.c | 1998 struct drm_crtc_state *new_crtc_state, *old_crtc_state; in nv50_disp_atomic_commit_tail() local 2023 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in nv50_disp_atomic_commit_tail() 2024 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_disp_atomic_commit_tail() 2030 if (old_crtc_state->active && !new_crtc_state->active) { in nv50_disp_atomic_commit_tail() 2114 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in nv50_disp_atomic_commit_tail() 2115 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_disp_atomic_commit_tail() 2126 if (new_crtc_state->active) { in nv50_disp_atomic_commit_tail() 2131 if (new_crtc_state->event) in nv50_disp_atomic_commit_tail() 2165 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in nv50_disp_atomic_commit_tail() 2166 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_disp_atomic_commit_tail() [all …]
|
/openbmc/linux/drivers/gpu/drm/loongson/ |
H A D | lsdc_plane.c | 55 struct drm_crtc_state *new_crtc_state; in lsdc_primary_atomic_check() local 60 new_crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in lsdc_primary_atomic_check() 63 new_crtc_state, in lsdc_primary_atomic_check() 273 struct drm_crtc_state *new_crtc_state; in ls7a1000_cursor_plane_atomic_check() local 290 new_crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in ls7a1000_cursor_plane_atomic_check() 293 new_crtc_state, in ls7a1000_cursor_plane_atomic_check() 346 struct drm_crtc_state *new_crtc_state; in ls7a2000_cursor_plane_atomic_check() local 369 new_crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in ls7a2000_cursor_plane_atomic_check() 372 new_crtc_state, in ls7a2000_cursor_plane_atomic_check()
|
/openbmc/linux/include/drm/ |
H A D | drm_atomic.h | 827 #define for_each_oldnew_crtc_in_state(__state, crtc, old_crtc_state, new_crtc_state, __i) \ argument 836 (new_crtc_state) = (__state)->crtcs[__i].new_state, \ 837 (void)(new_crtc_state) /* Only to avoid unused-but-set-variable warning */, 1)) 870 #define for_each_new_crtc_in_state(__state, crtc, new_crtc_state, __i) \ argument 877 (new_crtc_state) = (__state)->crtcs[__i].new_state, \ 878 (void)(new_crtc_state) /* Only to avoid unused-but-set-variable warning */, 1))
|