| /linux/drivers/gpu/drm/loongson/ |
| H A D | lsdc_plane.c | 54 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, plane); in lsdc_primary_atomic_check() local 55 struct drm_crtc *crtc = new_plane_state->crtc; in lsdc_primary_atomic_check() 63 return drm_atomic_helper_check_plane_state(new_plane_state, in lsdc_primary_atomic_check() 76 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, plane); in lsdc_primary_atomic_update() local 77 struct drm_framebuffer *new_fb = new_plane_state->fb; in lsdc_primary_atomic_update() 81 fb_addr += lsdc_get_fb_offset(new_fb, new_plane_state); in lsdc_primary_atomic_update() 274 struct drm_plane_state *new_plane_state; in ls7a1000_cursor_plane_atomic_check() local 278 new_plane_state = drm_atomic_get_new_plane_state(state, plane); in ls7a1000_cursor_plane_atomic_check() 280 crtc = new_plane_state->crtc; in ls7a1000_cursor_plane_atomic_check() 286 if (new_plane_state->crtc_w != 32 || new_plane_state->crtc_h != 32) { in ls7a1000_cursor_plane_atomic_check() [all …]
|
| /linux/drivers/gpu/drm/verisilicon/ |
| H A D | vs_cursor_plane.c | 46 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in vs_cursor_plane_atomic_check() local 48 struct drm_crtc *crtc = new_plane_state->crtc; in vs_cursor_plane_atomic_check() 49 struct drm_framebuffer *fb = new_plane_state->fb; in vs_cursor_plane_atomic_check() 58 ret = drm_atomic_helper_check_plane_state(new_plane_state, in vs_cursor_plane_atomic_check() 66 if (!new_plane_state->visible) in vs_cursor_plane_atomic_check() 73 if (!is_power_of_2(new_plane_state->crtc_w) || in vs_cursor_plane_atomic_check() 74 new_plane_state->crtc_w < VSDC_MIN_CURSOR_SIZE || in vs_cursor_plane_atomic_check() 75 new_plane_state->crtc_w > dc->identity.max_cursor_size) in vs_cursor_plane_atomic_check() 78 if (new_plane_state->crtc_w != new_plane_state->crtc_h) in vs_cursor_plane_atomic_check() 82 if (!vs_cursor_plane_check_coord(new_plane_state->crtc_x) || in vs_cursor_plane_atomic_check() [all …]
|
| H A D | vs_primary_plane.c | 26 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in vs_primary_plane_atomic_check() local 28 struct vs_plane_state *new_vs_plane_state = to_vs_plane_state(new_plane_state); in vs_primary_plane_atomic_check() 29 struct drm_framebuffer *fb = new_plane_state->fb; in vs_primary_plane_atomic_check() 30 struct drm_crtc *crtc = new_plane_state->crtc; in vs_primary_plane_atomic_check() 37 ret = drm_atomic_helper_check_plane_state(new_plane_state, in vs_primary_plane_atomic_check() 45 if (!new_plane_state->visible) in vs_primary_plane_atomic_check()
|
| /linux/drivers/gpu/drm/i915/display/ |
| H A D | intel_cursor.c | 817 struct intel_plane_state *new_plane_state; in intel_legacy_cursor_update() local 861 new_plane_state = to_intel_plane_state(intel_plane_duplicate_state(&plane->base)); in intel_legacy_cursor_update() 862 if (!new_plane_state) in intel_legacy_cursor_update() 871 drm_atomic_set_fb_for_plane(&new_plane_state->uapi, fb); in intel_legacy_cursor_update() 873 new_plane_state->uapi.src_x = src_x; in intel_legacy_cursor_update() 874 new_plane_state->uapi.src_y = src_y; in intel_legacy_cursor_update() 875 new_plane_state->uapi.src_w = src_w; in intel_legacy_cursor_update() 876 new_plane_state->uapi.src_h = src_h; in intel_legacy_cursor_update() 877 new_plane_state->uapi.crtc_x = crtc_x; in intel_legacy_cursor_update() 878 new_plane_state->uapi.crtc_y = crtc_y; in intel_legacy_cursor_update() [all …]
|
| H A D | intel_psr.c | 2763 struct intel_plane_state *new_plane_state; in intel_psr2_sel_fetch_et_alignment() local 2770 for_each_new_intel_plane_in_state(state, plane, new_plane_state, i) { in intel_psr2_sel_fetch_et_alignment() 2773 if (new_plane_state->hw.crtc != crtc_state->uapi.crtc) in intel_psr2_sel_fetch_et_alignment() 2779 if (!new_plane_state->uapi.visible) in intel_psr2_sel_fetch_et_alignment() 2783 if (!drm_rect_intersect(&inter, &new_plane_state->uapi.dst)) in intel_psr2_sel_fetch_et_alignment() 2786 clip_area_update(&crtc_state->psr2_su_area, &new_plane_state->uapi.dst, in intel_psr2_sel_fetch_et_alignment() 2889 struct intel_plane_state *new_plane_state, *old_plane_state; in intel_psr2_sel_fetch_update() local 2933 new_plane_state, i) { in intel_psr2_sel_fetch_update() 2937 if (new_plane_state->hw.crtc != crtc_state->uapi.crtc) in intel_psr2_sel_fetch_update() 2940 if (!new_plane_state->uapi.visible && in intel_psr2_sel_fetch_update() [all …]
|
| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| H A D | amdgpu_dm.c | 1522 struct drm_plane_state *new_plane_state; in dm_destroy_cached_state() 1554 for_each_new_plane_in_state(dm->cached_state, plane, new_plane_state, i) { in dm_destroy_cached_state() 1555 dm_new_plane_state = to_dm_plane_state(new_plane_state); in dm_destroy_cached_state() 3147 * @new_plane_state: New state of @plane 3169 struct drm_plane_state *new_plane_state, in fill_dc_dirty_rects() 3191 if (new_plane_state->rotation != DRM_MODE_ROTATE_0) in fill_dc_dirty_rects() 3194 if (!new_plane_state->ignore_damage_clips) { in fill_dc_dirty_rects() 3195 num_clips = drm_plane_get_damage_clips_count(new_plane_state); in fill_dc_dirty_rects() 3196 clips = drm_plane_get_damage_clips(new_plane_state); in fill_dc_dirty_rects() 3208 fill_dc_dirty_rect(new_plane_state in fill_dc_dirty_rects() 1520 struct drm_plane_state *new_plane_state; dm_destroy_cached_state() local 3162 fill_dc_dirty_rects(struct drm_plane * plane,struct drm_plane_state * old_plane_state,struct drm_plane_state * new_plane_state,struct drm_crtc_state * crtc_state,struct dc_flip_addrs * flip_addrs,bool is_psr_su,bool * dirty_regions_changed) fill_dc_dirty_rects() argument 3795 struct drm_plane_state *old_plane_state, *new_plane_state; amdgpu_dm_commit_planes() local 5644 should_reset_plane(struct drm_atomic_commit * state,struct drm_plane * plane,struct drm_plane_state * old_plane_state,struct drm_plane_state * new_plane_state) should_reset_plane() argument 5809 dm_update_plane_state(struct dc * dc,struct drm_atomic_commit * state,struct drm_plane * plane,struct drm_plane_state * old_plane_state,struct drm_plane_state * new_plane_state,bool enable,bool * lock_and_validation_needed,bool * is_top_most_overlay) dm_update_plane_state() argument 5990 struct drm_plane_state *new_plane_state; amdgpu_dm_get_next_zpos() local 6057 struct drm_plane_state *new_plane_state, *old_plane_state; amdgpu_dm_crtc_mem_type_changed() local 6110 struct drm_plane_state *old_plane_state, *new_plane_state, *new_cursor_state; amdgpu_dm_atomic_check() local [all...] |
| H A D | amdgpu_dm_crtc.c | 602 struct drm_plane_state *new_plane_state; in amdgpu_dm_crtc_count_crtc_active_planes() local 608 new_plane_state = drm_atomic_get_new_plane_state(state, plane); in amdgpu_dm_crtc_count_crtc_active_planes() 610 if (!new_plane_state) { in amdgpu_dm_crtc_count_crtc_active_planes() 621 num_active += (new_plane_state->fb != NULL); in amdgpu_dm_crtc_count_crtc_active_planes()
|
| H A D | amdgpu_dm_plane.c | 1512 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in amdgpu_dm_plane_fill_dc_scaling_info() 1521 trace_amdgpu_dm_plane_atomic_check(new_plane_state); in amdgpu_dm_plane_fill_dc_scaling_info() 1523 dm_plane_state = to_dm_plane_state(new_plane_state); in amdgpu_dm_plane_fill_dc_scaling_info() 1530 new_plane_state->crtc); in amdgpu_dm_plane_atomic_check() local 1534 ret = amdgpu_dm_plane_helper_check_state(new_plane_state, new_crtc_state); in amdgpu_dm_plane_atomic_check() 1539 if (new_plane_state->color_pipeline && new_crtc_state->degamma_lut) { in amdgpu_dm_plane_atomic_check() 1546 ret = amdgpu_dm_plane_fill_dc_scaling_info(adev, new_plane_state, &scaling_info); in amdgpu_dm_plane_atomic_check() 1561 struct drm_plane_state *new_plane_state; in amdgpu_dm_plane_atomic_check() 1571 new_plane_state = drm_atomic_get_new_plane_state(state, plane); in amdgpu_dm_plane_atomic_check() 1572 new_crtc_state = drm_atomic_get_new_crtc_state(state, new_plane_state in amdgpu_dm_plane_atomic_check() 1579 struct drm_plane_state *new_plane_state; amdgpu_dm_plane_atomic_async_check() local [all...] |
| H A D | amdgpu_dm.h | 1162 #define for_each_oldnew_plane_in_descending_zpos(__state, plane, old_plane_state, new_plane_state) \ argument 1168 (new_plane_state) = __i->new_state, 1))
|
| /linux/drivers/gpu/drm/ast/ |
| H A D | ast_cursor.c | 170 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, plane); in ast_cursor_plane_helper_atomic_check() local 171 struct drm_framebuffer *new_fb = new_plane_state->fb; in ast_cursor_plane_helper_atomic_check() 175 if (new_plane_state->crtc) in ast_cursor_plane_helper_atomic_check() 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() 182 if (ret || !new_plane_state->visible) in ast_cursor_plane_helper_atomic_check()
|
| /linux/drivers/gpu/drm/tegra/ |
| H A D | dc.c | 720 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in tegra_plane_atomic_check() local 722 struct tegra_plane_state *plane_state = to_tegra_plane_state(new_plane_state); in tegra_plane_atomic_check() 726 unsigned int rotation = new_plane_state->rotation; in tegra_plane_atomic_check() 729 struct tegra_dc *dc = to_tegra_dc(new_plane_state->crtc); in tegra_plane_atomic_check() 736 if (!new_plane_state->crtc) { in tegra_plane_atomic_check() 741 err = tegra_plane_format(new_plane_state->fb->format->format, in tegra_plane_atomic_check() 759 err = tegra_fb_get_tiling(new_plane_state->fb, tiling); in tegra_plane_atomic_check() 775 if (tegra_fb_is_bottom_up(new_plane_state->fb)) in tegra_plane_atomic_check() 795 if (new_plane_state->fb->format->num_planes > 2) { in tegra_plane_atomic_check() 796 if (new_plane_state->fb->pitches[2] != new_plane_state->fb->pitches[1]) { in tegra_plane_atomic_check() [all …]
|
| H A D | hub.c | 429 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in tegra_shared_plane_atomic_check() local 431 struct tegra_plane_state *plane_state = to_tegra_plane_state(new_plane_state); in tegra_shared_plane_atomic_check() 434 struct tegra_dc *dc = to_tegra_dc(new_plane_state->crtc); in tegra_shared_plane_atomic_check() 438 if (!new_plane_state->crtc || !new_plane_state->fb) in tegra_shared_plane_atomic_check() 441 err = tegra_plane_format(new_plane_state->fb->format->format, in tegra_shared_plane_atomic_check() 447 err = tegra_fb_get_tiling(new_plane_state->fb, tiling); in tegra_shared_plane_atomic_check() 468 if (new_plane_state->fb->format->num_planes > 2) { in tegra_shared_plane_atomic_check() 469 if (new_plane_state->fb->pitches[2] != new_plane_state->fb->pitches[1]) { in tegra_shared_plane_atomic_check() 477 err = tegra_plane_state_add(&tegra->base, new_plane_state); in tegra_shared_plane_atomic_check()
|
| /linux/drivers/gpu/drm/tiny/ |
| H A D | appletbdrm.c | 319 struct drm_plane_state *new_plane_state) in appletbdrm_primary_plane_helper_begin_fb_access() argument 321 struct appletbdrm_plane_state *appletbdrm_state = to_appletbdrm_plane_state(new_plane_state); in appletbdrm_primary_plane_helper_begin_fb_access() 327 drm_atomic_helper_damage_iter_init(&iter, plane->state, new_plane_state); in appletbdrm_primary_plane_helper_begin_fb_access() 352 return drm_gem_begin_shadow_fb_access(plane, new_plane_state); in appletbdrm_primary_plane_helper_begin_fb_access() 358 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, plane); in appletbdrm_primary_plane_helper_atomic_check() local 359 struct drm_crtc *new_crtc = new_plane_state->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() 372 else if (!new_plane_state->visible) in appletbdrm_primary_plane_helper_atomic_check()
|
| H A D | cirrus-qemu.c | 301 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, plane); in cirrus_primary_plane_helper_atomic_check() local 302 struct drm_framebuffer *fb = new_plane_state->fb; in cirrus_primary_plane_helper_atomic_check() 303 struct drm_crtc *new_crtc = new_plane_state->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() 316 else if (!new_plane_state->visible) in cirrus_primary_plane_helper_atomic_check()
|
| /linux/drivers/gpu/drm/gud/ |
| H A D | gud_pipe.c | 458 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, plane); in gud_plane_atomic_check() local 459 struct drm_crtc *crtc = new_plane_state->crtc; in gud_plane_atomic_check() 464 struct drm_framebuffer *fb = new_plane_state->fb; in gud_plane_atomic_check() 475 ret = drm_atomic_helper_check_plane_state(new_plane_state, crtc_state, in gud_plane_atomic_check() 482 if (!new_plane_state->visible) in gud_plane_atomic_check() 486 new_plane_state->ignore_damage_clips = true; in gud_plane_atomic_check() 488 if (old_plane_state->rotation != new_plane_state->rotation) in gud_plane_atomic_check() 561 val = new_plane_state->rotation; in gud_plane_atomic_check()
|
| /linux/drivers/gpu/drm/virtio/ |
| H A D | virtgpu_plane.c | 103 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in virtio_gpu_plane_atomic_check() local 111 if (!new_plane_state->fb || WARN_ON(!new_plane_state->crtc)) in virtio_gpu_plane_atomic_check() 119 if (old_plane_state->fb != new_plane_state->fb) in virtio_gpu_plane_atomic_check() 120 new_plane_state->ignore_damage_clips = true; in virtio_gpu_plane_atomic_check() 123 new_plane_state->crtc); in virtio_gpu_plane_atomic_check() 127 ret = drm_atomic_helper_check_plane_state(new_plane_state, crtc_state, in virtio_gpu_plane_atomic_check()
|
| /linux/drivers/gpu/drm/sysfb/ |
| H A D | vesadrm.c | 254 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(new_state, plane); in vesadrm_primary_plane_helper_atomic_check() local 255 struct drm_framebuffer *new_fb = new_plane_state->fb; in vesadrm_primary_plane_helper_atomic_check() 263 else if (!new_plane_state->visible) in vesadrm_primary_plane_helper_atomic_check() 272 new_crtc_state = drm_atomic_get_new_crtc_state(new_state, new_plane_state->crtc); in vesadrm_primary_plane_helper_atomic_check()
|
| /linux/drivers/gpu/drm/vc4/ |
| H A D | vc4_kms.c | 658 struct drm_plane_state *old_plane_state, *new_plane_state; in vc4_load_tracker_atomic_check() local 672 new_plane_state, i) { in vc4_load_tracker_atomic_check() 681 if (new_plane_state->fb && new_plane_state->crtc) { in vc4_load_tracker_atomic_check() 682 vc4_plane_state = to_vc4_plane_state(new_plane_state); in vc4_load_tracker_atomic_check()
|
| /linux/drivers/gpu/drm/qxl/ |
| H A D | qxl_display.c | 501 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in qxl_primary_atomic_check() local 506 if (!new_plane_state->crtc || !new_plane_state->fb) in qxl_primary_atomic_check() 509 bo = gem_to_qxl_bo(new_plane_state->fb->obj[0]); in qxl_primary_atomic_check()
|