| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| H A D | amdgpu_dm.c | 1522 struct drm_crtc_state *new_crtc_state; in dm_destroy_cached_state() local 1531 for_each_new_crtc_in_state(dm->cached_state, crtc, new_crtc_state, i) { in dm_destroy_cached_state() 1532 new_crtc_state->active_changed = true; in dm_destroy_cached_state() 1533 dm_new_crtc_state = to_dm_crtc_state(new_crtc_state); in dm_destroy_cached_state() 1542 for_each_new_crtc_in_state(dm->cached_state, crtc, new_crtc_state, i) { in dm_destroy_cached_state() 1543 dm_new_crtc_state = to_dm_crtc_state(new_crtc_state); in dm_destroy_cached_state() 3469 is_content_protection_different(struct drm_crtc_state *new_crtc_state, in is_content_protection_different() argument 3492 if (new_crtc_state) in is_content_protection_different() 3494 new_crtc_state->enable, in is_content_protection_different() 3495 new_crtc_state->active, in is_content_protection_different() [all …]
|
| H A D | amdgpu_dm_crtc.c | 595 STATIC_IFN_KUNIT int amdgpu_dm_crtc_count_crtc_active_planes(struct drm_crtc_state *new_crtc_state) in amdgpu_dm_crtc_count_crtc_active_planes() argument 597 struct drm_atomic_commit *state = new_crtc_state->state; in amdgpu_dm_crtc_count_crtc_active_planes() 601 drm_for_each_plane_mask(plane, state->dev, new_crtc_state->plane_mask) { in amdgpu_dm_crtc_count_crtc_active_planes() 629 struct drm_crtc_state *new_crtc_state) in amdgpu_dm_crtc_update_crtc_active_planes() argument 632 to_dm_crtc_state(new_crtc_state); in amdgpu_dm_crtc_update_crtc_active_planes() 640 amdgpu_dm_crtc_count_crtc_active_planes(new_crtc_state); in amdgpu_dm_crtc_update_crtc_active_planes()
|
| H A D | amdgpu_dm_plane.c | 1389 struct drm_crtc_state *new_crtc_state) in amdgpu_dm_plane_helper_check_state() argument 1405 else if (state->crtc_x + state->crtc_w > new_crtc_state->mode.crtc_hdisplay) in amdgpu_dm_plane_helper_check_state() 1406 viewport_width = new_crtc_state->mode.crtc_hdisplay - state->crtc_x; in amdgpu_dm_plane_helper_check_state() 1410 else if (state->crtc_y + state->crtc_h > new_crtc_state->mode.crtc_vdisplay) in amdgpu_dm_plane_helper_check_state() 1411 viewport_height = new_crtc_state->mode.crtc_vdisplay - state->crtc_y; in amdgpu_dm_plane_helper_check_state() 1439 state, new_crtc_state, min_scale, max_scale, true, true); in amdgpu_dm_plane_helper_check_state() 1536 struct drm_crtc_state *new_crtc_state; in amdgpu_dm_plane_atomic_check() local 1546 new_crtc_state = in amdgpu_dm_plane_atomic_check() 1549 if (!new_crtc_state) in amdgpu_dm_plane_atomic_check() 1552 ret = amdgpu_dm_plane_helper_check_state(new_plane_state, new_crtc_state); in amdgpu_dm_plane_atomic_check() [all …]
|
| H A D | amdgpu_dm_connector.c | 2587 struct drm_crtc_state *new_crtc_state; in amdgpu_dm_connector_atomic_check() local 2607 new_crtc_state = drm_atomic_get_crtc_state(state, crtc); in amdgpu_dm_connector_atomic_check() 2608 if (IS_ERR(new_crtc_state)) in amdgpu_dm_connector_atomic_check() 2609 return PTR_ERR(new_crtc_state); in amdgpu_dm_connector_atomic_check() 2611 new_crtc_state->mode_changed = true; in amdgpu_dm_connector_atomic_check() 2615 new_crtc_state = drm_atomic_get_crtc_state(state, crtc); in amdgpu_dm_connector_atomic_check() 2616 if (IS_ERR(new_crtc_state)) in amdgpu_dm_connector_atomic_check() 2617 return PTR_ERR(new_crtc_state); in amdgpu_dm_connector_atomic_check() 2619 new_crtc_state->mode_changed = true; in amdgpu_dm_connector_atomic_check() 2623 new_crtc_state = drm_atomic_get_crtc_state(state, crtc); in amdgpu_dm_connector_atomic_check() [all …]
|
| H A D | amdgpu_dm.h | 1197 bool is_content_protection_different(struct drm_crtc_state *new_crtc_state,
|
| /linux/drivers/gpu/drm/vc4/ |
| H A D | vc4_kms.c | 405 struct drm_crtc_state *new_crtc_state; in vc4_atomic_commit_tail() local 409 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in vc4_atomic_commit_tail() 412 if (!new_crtc_state->commit) in vc4_atomic_commit_tail() 415 vc4_crtc_state = to_vc4_crtc_state(new_crtc_state); in vc4_atomic_commit_tail() 595 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in vc4_ctm_atomic_check() local 599 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in vc4_ctm_atomic_check() 601 if (!new_crtc_state->ctm && old_crtc_state->ctm) { in vc4_ctm_atomic_check() 609 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in vc4_ctm_atomic_check() 610 if (new_crtc_state->ctm == old_crtc_state->ctm) in vc4_ctm_atomic_check() 620 if (new_crtc_state->ctm) { in vc4_ctm_atomic_check() [all …]
|
| /linux/drivers/gpu/drm/msm/dp/ |
| H A D | dp_drm.c | 172 struct drm_crtc_state *new_crtc_state = NULL, *old_crtc_state = NULL; in msm_edp_bridge_atomic_disable() local 181 new_crtc_state = drm_atomic_get_new_crtc_state(atomic_state, crtc); in msm_edp_bridge_atomic_disable() 182 if (!new_crtc_state) in msm_edp_bridge_atomic_disable() 200 if (new_crtc_state->self_refresh_active) { in msm_edp_bridge_atomic_disable() 216 struct drm_crtc_state *new_crtc_state = NULL; in msm_edp_bridge_atomic_post_disable() local 223 new_crtc_state = drm_atomic_get_new_crtc_state(atomic_state, crtc); in msm_edp_bridge_atomic_post_disable() 224 if (!new_crtc_state) in msm_edp_bridge_atomic_post_disable() 230 if (new_crtc_state->self_refresh_active) in msm_edp_bridge_atomic_post_disable()
|
| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/tests/ |
| H A D | amdgpu_dm_plane_test.c | 620 struct drm_crtc_state *new_crtc_state; in dm_test_helper_check_state_viewport_reject() local 626 new_crtc_state = kunit_kzalloc(test, sizeof(*new_crtc_state), GFP_KERNEL); in dm_test_helper_check_state_viewport_reject() 631 KUNIT_ASSERT_NOT_NULL(test, new_crtc_state); in dm_test_helper_check_state_viewport_reject() 642 new_crtc_state->mode.crtc_hdisplay = 100; in dm_test_helper_check_state_viewport_reject() 643 new_crtc_state->mode.crtc_vdisplay = 100; in dm_test_helper_check_state_viewport_reject() 645 KUNIT_EXPECT_EQ(test, amdgpu_dm_plane_helper_check_state(state, new_crtc_state), -EINVAL); in dm_test_helper_check_state_viewport_reject() 2254 struct drm_crtc_state *new_crtc_state; in dm_test_helper_check_state_small_viewport_width() local 2260 new_crtc_state = kunit_kzalloc(test, sizeof(*new_crtc_state), GFP_KERNEL); in dm_test_helper_check_state_small_viewport_width() 2265 KUNIT_ASSERT_NOT_NULL(test, new_crtc_state); in dm_test_helper_check_state_small_viewport_width() 2276 new_crtc_state->mode.crtc_hdisplay = 1920; in dm_test_helper_check_state_small_viewport_width() [all …]
|
| /linux/drivers/gpu/drm/loongson/ |
| H A D | lsdc_plane.c | 56 struct drm_crtc_state *new_crtc_state; in lsdc_primary_atomic_check() local 61 new_crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in lsdc_primary_atomic_check() 64 new_crtc_state, in lsdc_primary_atomic_check() 275 struct drm_crtc_state *new_crtc_state; in ls7a1000_cursor_plane_atomic_check() local 292 new_crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in ls7a1000_cursor_plane_atomic_check() 295 new_crtc_state, in ls7a1000_cursor_plane_atomic_check() 348 struct drm_crtc_state *new_crtc_state; in ls7a2000_cursor_plane_atomic_check() local 371 new_crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in ls7a2000_cursor_plane_atomic_check() 374 new_crtc_state, in ls7a2000_cursor_plane_atomic_check()
|
| /linux/drivers/gpu/drm/sysfb/ |
| H A D | vesadrm.c | 256 struct drm_crtc_state *new_crtc_state; in vesadrm_primary_plane_helper_atomic_check() local 272 new_crtc_state = drm_atomic_get_new_crtc_state(new_state, new_plane_state->crtc); in vesadrm_primary_plane_helper_atomic_check() 273 new_sysfb_crtc_state = to_drm_sysfb_crtc_state(new_crtc_state); in vesadrm_primary_plane_helper_atomic_check() 284 new_crtc_state->color_mgmt_changed = true; in vesadrm_primary_plane_helper_atomic_check() 295 new_crtc_state->color_mgmt_changed = true; in vesadrm_primary_plane_helper_atomic_check()
|
| /linux/drivers/gpu/drm/rockchip/ |
| H A D | analogix_dp-rockchip.c | 266 struct drm_crtc_state *new_crtc_state = NULL; in rockchip_dp_drm_encoder_disable() local 274 new_crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in rockchip_dp_drm_encoder_disable() 276 if (!new_crtc_state || !new_crtc_state->self_refresh_active) in rockchip_dp_drm_encoder_disable()
|
| /linux/drivers/gpu/drm/ast/ |
| H A D | ast_cursor.c | 172 struct drm_crtc_state *new_crtc_state = NULL; in ast_cursor_plane_helper_atomic_check() local 176 new_crtc_state = drm_atomic_get_new_crtc_state(state, new_plane_state->crtc); in ast_cursor_plane_helper_atomic_check() 178 ret = drm_atomic_helper_check_plane_state(new_plane_state, new_crtc_state, in ast_cursor_plane_helper_atomic_check()
|
| /linux/drivers/gpu/drm/i915/display/ |
| H A D | intel_cursor.c | 817 struct intel_crtc_state *new_crtc_state; in intel_legacy_cursor_update() local 862 new_crtc_state = to_intel_crtc_state(intel_crtc_duplicate_state(&crtc->base)); in intel_legacy_cursor_update() 863 if (!new_crtc_state) { in intel_legacy_cursor_update() 881 ret = intel_plane_atomic_check_with_state(crtc_state, new_crtc_state, in intel_legacy_cursor_update() 909 crtc_state->active_planes = new_crtc_state->active_planes; in intel_legacy_cursor_update() 956 if (new_crtc_state) in intel_legacy_cursor_update() 957 intel_crtc_destroy_state(&crtc->base, &new_crtc_state->uapi); in intel_legacy_cursor_update()
|
| H A D | intel_vrr.c | 104 struct intel_crtc_state *old_crtc_state, *new_crtc_state; in intel_vrr_check_modeset() local 107 for_each_oldnew_intel_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state) { in intel_vrr_check_modeset() 108 if (new_crtc_state->uapi.vrr_enabled != in intel_vrr_check_modeset() 110 new_crtc_state->uapi.mode_changed = true; in intel_vrr_check_modeset()
|
| H A D | intel_dp_mst.c | 2136 const struct intel_crtc_state *new_crtc_state; in intel_dp_mst_crtc_needs_modeset() local 2146 new_crtc_state = intel_atomic_get_new_crtc_state(state, crtc_iter); in intel_dp_mst_crtc_needs_modeset() 2149 if (!intel_crtc_needs_modeset(new_crtc_state)) in intel_dp_mst_crtc_needs_modeset() 2153 new_crtc_state->dsc.compression_enable) in intel_dp_mst_crtc_needs_modeset()
|
| H A D | intel_cdclk.c | 3469 const struct intel_crtc_state *new_crtc_state; in intel_crtcs_calc_min_cdclk() local 3473 for_each_oldnew_intel_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state) { in intel_crtcs_calc_min_cdclk() 3476 new_crtc_state->min_cdclk, in intel_crtcs_calc_min_cdclk() 3483 new_crtc_state->min_voltage_level, in intel_crtcs_calc_min_cdclk()
|
| H A D | intel_dp.c | 3857 const struct intel_crtc_state *new_crtc_state) in intel_dp_sink_enable_decompression() argument 3861 if (!new_crtc_state->dsc.compression_enable) in intel_dp_sink_enable_decompression()
|
| /linux/drivers/gpu/drm/bridge/ |
| H A D | inno-hdmi.c | 762 struct drm_crtc_state *new_crtc_state; in inno_hdmi_setup() local 770 new_crtc_state = drm_atomic_get_new_crtc_state(state, new_conn_state->crtc); in inno_hdmi_setup() 771 if (WARN_ON(!new_crtc_state)) in inno_hdmi_setup() 783 inno_hdmi_config_video_timing(hdmi, &new_crtc_state->adjusted_mode); in inno_hdmi_setup() 785 inno_hdmi_config_video_csc(hdmi, connector, &new_crtc_state->adjusted_mode); in inno_hdmi_setup()
|
| /linux/drivers/gpu/drm/tiny/ |
| H A D | cirrus-qemu.c | 304 struct drm_crtc_state *new_crtc_state = NULL; in cirrus_primary_plane_helper_atomic_check() local 308 new_crtc_state = drm_atomic_get_new_crtc_state(state, new_crtc); in cirrus_primary_plane_helper_atomic_check() 310 ret = drm_atomic_helper_check_plane_state(new_plane_state, new_crtc_state, in cirrus_primary_plane_helper_atomic_check()
|
| H A D | appletbdrm.c | 360 struct drm_crtc_state *new_crtc_state = NULL; in appletbdrm_primary_plane_helper_atomic_check() local 364 new_crtc_state = drm_atomic_get_new_crtc_state(state, new_crtc); in appletbdrm_primary_plane_helper_atomic_check() 366 ret = drm_atomic_helper_check_plane_state(new_plane_state, new_crtc_state, in appletbdrm_primary_plane_helper_atomic_check()
|
| /linux/drivers/gpu/drm/gud/ |
| H A D | gud_connector.c | 291 struct drm_crtc_state *new_crtc_state; in gud_connector_atomic_check() local 299 new_crtc_state = drm_atomic_get_new_crtc_state(state, new_state->crtc); in gud_connector_atomic_check() 312 new_crtc_state->connectors_changed = true; in gud_connector_atomic_check()
|