/linux/drivers/gpu/drm/i915/display/ |
A D | intel_fb_pin.c | 254 void intel_plane_unpin_fb(struct intel_plane_state *old_plane_state) in intel_plane_unpin_fb() argument 256 struct drm_framebuffer *fb = old_plane_state->hw.fb; in intel_plane_unpin_fb() 260 vma = fetch_and_zero(&old_plane_state->ggtt_vma); in intel_plane_unpin_fb() 262 intel_unpin_fb_vma(vma, old_plane_state->flags); in intel_plane_unpin_fb() 266 vma = fetch_and_zero(&old_plane_state->dpt_vma); in intel_plane_unpin_fb() 268 intel_unpin_fb_vma(vma, old_plane_state->flags); in intel_plane_unpin_fb() 270 vma = fetch_and_zero(&old_plane_state->ggtt_vma); in intel_plane_unpin_fb()
|
A D | intel_atomic_plane.c | 332 const struct intel_plane_state *old_plane_state, in intel_plane_atomic_check_with_state() argument 342 if (!new_plane_state->hw.crtc && !old_plane_state->hw.crtc) in intel_plane_atomic_check_with_state() 364 if (new_plane_state->uapi.visible || old_plane_state->uapi.visible) in intel_plane_atomic_check_with_state() 371 old_plane_state, new_plane_state); in intel_plane_atomic_check_with_state() 394 const struct intel_plane_state *old_plane_state = in intel_plane_atomic_check() local 424 old_plane_state, in intel_plane_atomic_check() 687 const struct intel_plane_state *old_plane_state = in intel_prepare_plane_fb() local 696 to_intel_crtc(old_plane_state->hw.crtc)); in intel_prepare_plane_fb() 794 struct intel_plane_state *old_plane_state = in intel_cleanup_plane_fb() local 797 to_intel_atomic_state(old_plane_state->uapi.state); in intel_cleanup_plane_fb() [all …]
|
A D | intel_cursor.c | 624 struct intel_plane_state *old_plane_state = in intel_legacy_cursor_update() local 650 if (old_plane_state->uapi.commit && in intel_legacy_cursor_update() 659 if (old_plane_state->uapi.crtc != &crtc->base || in intel_legacy_cursor_update() 660 old_plane_state->uapi.src_w != src_w || in intel_legacy_cursor_update() 661 old_plane_state->uapi.src_h != src_h || in intel_legacy_cursor_update() 662 old_plane_state->uapi.crtc_w != crtc_w || in intel_legacy_cursor_update() 663 old_plane_state->uapi.crtc_h != crtc_h || in intel_legacy_cursor_update() 664 !old_plane_state->uapi.fb != !fb) in intel_legacy_cursor_update() 691 old_plane_state, new_plane_state); in intel_legacy_cursor_update() 725 intel_plane_unpin_fb(old_plane_state); in intel_legacy_cursor_update() [all …]
|
A D | intel_atomic_plane.h | 49 const struct intel_plane_state *old_plane_state, 55 const struct intel_plane_state *old_plane_state,
|
A D | intel_fb_pin.h | 26 void intel_plane_unpin_fb(struct intel_plane_state *old_plane_state);
|
A D | intel_psr.c | 1600 struct intel_plane_state *new_plane_state, *old_plane_state; in intel_psr2_sel_fetch_update() local 1619 for_each_oldnew_intel_plane_in_state(state, plane, old_plane_state, in intel_psr2_sel_fetch_update() 1629 !old_plane_state->uapi.visible) in intel_psr2_sel_fetch_update() 1642 if (new_plane_state->uapi.visible != old_plane_state->uapi.visible || in intel_psr2_sel_fetch_update() 1644 &old_plane_state->uapi.dst)) { in intel_psr2_sel_fetch_update() 1645 if (old_plane_state->uapi.visible) { in intel_psr2_sel_fetch_update() 1646 damaged_area.y1 = old_plane_state->uapi.dst.y1; in intel_psr2_sel_fetch_update() 1647 damaged_area.y2 = old_plane_state->uapi.dst.y2; in intel_psr2_sel_fetch_update() 1657 } else if (new_plane_state->uapi.alpha != old_plane_state->uapi.alpha) { in intel_psr2_sel_fetch_update() 1668 &old_plane_state->uapi, in intel_psr2_sel_fetch_update() [all …]
|
A D | intel_display.h | 449 #define for_each_old_intel_plane_in_state(__state, plane, old_plane_state, __i) \ argument 453 (old_plane_state) = to_intel_plane_state((__state)->base.planes[__i].old_state), 1); \ 473 #define for_each_oldnew_intel_plane_in_state(__state, plane, old_plane_state, new_plane_state, __i)… argument 477 (old_plane_state) = to_intel_plane_state((__state)->base.planes[__i].old_state), \
|
A D | intel_display.c | 2024 const struct intel_plane_state *old_plane_state; in intel_crtc_async_flip_disable_wa() local 2038 old_plane_state, false); in intel_crtc_async_flip_disable_wa() 2156 const struct intel_plane_state *old_plane_state; in intel_crtc_disable_planes() local 2170 if (old_plane_state->uapi.visible) in intel_crtc_disable_planes() 6015 was_visible = old_plane_state->uapi.visible; in intel_plane_atomic_calc_changes() 6110 (turn_on || (!needs_scaling(old_plane_state) && in intel_plane_atomic_calc_changes() 8629 struct intel_plane_state *old_plane_state; in intel_atomic_check_planes() local 8929 if (old_plane_state->hw.fb->modifier != in intel_atomic_check_async() 8936 if (old_plane_state->hw.fb->format != in intel_atomic_check_async() 8943 if (old_plane_state->hw.rotation != in intel_atomic_check_async() [all …]
|
/linux/drivers/gpu/drm/ |
A D | drm_atomic_helper.c | 77 struct drm_plane_state *old_plane_state, in drm_atomic_helper_plane_changed() argument 83 if (old_plane_state->crtc) { in drm_atomic_helper_plane_changed() 85 old_plane_state->crtc); in drm_atomic_helper_plane_changed() 1740 if (old_plane_state->commit && in drm_atomic_helper_async_check() 2212 struct drm_plane_state *old_plane_state; in drm_atomic_helper_wait_for_dependencies() local 2608 struct drm_plane_state *old_plane_state = in drm_atomic_helper_commit_planes_on_crtc() local 2616 if (!old_plane_state || !plane_funcs) in drm_atomic_helper_commit_planes_on_crtc() 2707 if (old_plane_state == plane->state) in drm_atomic_helper_cleanup_planes() 2710 plane_state = old_plane_state; in drm_atomic_helper_cleanup_planes() 2802 commit = old_plane_state->commit; in drm_atomic_helper_swap_state() [all …]
|
A D | drm_blend.c | 517 struct drm_plane_state *old_plane_state, *new_plane_state; in drm_atomic_normalize_zpos() local 520 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { in drm_atomic_normalize_zpos() 524 if (old_plane_state->zpos != new_plane_state->zpos) { in drm_atomic_normalize_zpos()
|
A D | drm_atomic.c | 557 plane_switching_crtc(const struct drm_plane_state *old_plane_state, in plane_switching_crtc() argument 560 if (!old_plane_state->crtc || !new_plane_state->crtc) in plane_switching_crtc() 563 if (old_plane_state->crtc == new_plane_state->crtc) in plane_switching_crtc() 584 static int drm_atomic_plane_check(const struct drm_plane_state *old_plane_state, in drm_atomic_plane_check() argument 683 if (plane_switching_crtc(old_plane_state, new_plane_state)) { in drm_atomic_plane_check() 1300 struct drm_plane_state *old_plane_state; in drm_atomic_check_only() local 1316 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { in drm_atomic_check_only() 1317 ret = drm_atomic_plane_check(old_plane_state, new_plane_state); in drm_atomic_check_only()
|
/linux/drivers/gpu/drm/xen/ |
A D | xen_drm_front_kms.c | 178 struct drm_plane_state *old_plane_state) in display_send_page_flip() argument 181 drm_atomic_get_new_plane_state(old_plane_state->state, in display_send_page_flip() 192 if (old_plane_state->fb && plane_state->fb) { in display_send_page_flip() 243 struct drm_plane_state *old_plane_state) in display_update() argument 278 if (!display_send_page_flip(pipe, old_plane_state)) in display_update()
|
/linux/drivers/gpu/drm/imx/ |
A D | imx-drm-core.c | 81 struct drm_plane_state *old_plane_state, *new_plane_state; in imx_drm_atomic_commit_tail() local 93 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { in imx_drm_atomic_commit_tail() 94 if (drm_atomic_plane_disabling(old_plane_state, new_plane_state)) in imx_drm_atomic_commit_tail() 108 for_each_old_plane_in_state(state, plane, old_plane_state, i) in imx_drm_atomic_commit_tail()
|
/linux/include/drm/ |
A D | drm_atomic.h | 866 #define for_each_oldnew_plane_in_state(__state, plane, old_plane_state, new_plane_state, __i) \ argument 873 (old_plane_state) = (__state)->planes[__i].old_state,\ 889 #define for_each_oldnew_plane_in_state_reverse(__state, plane, old_plane_state, new_plane_state, __… argument 895 (old_plane_state) = (__state)->planes[__i].old_state,\ 925 #define for_each_old_plane_in_state(__state, plane, old_plane_state, __i) \ argument 931 (old_plane_state) = (__state)->planes[__i].old_state, 1))
|
A D | drm_atomic_helper.h | 212 drm_atomic_plane_disabling(struct drm_plane_state *old_plane_state, in drm_atomic_plane_disabling() argument 223 return old_plane_state->crtc && !new_plane_state->crtc; in drm_atomic_plane_disabling()
|
A D | drm_simple_kms_helper.h | 110 struct drm_plane_state *old_plane_state);
|
/linux/drivers/gpu/drm/rcar-du/ |
A D | rcar_du_plane.c | 144 struct rcar_du_plane_state *old_plane_state; in rcar_du_atomic_check_planes() local 150 old_plane_state = to_rcar_plane_state(old_drm_plane_state); in rcar_du_atomic_check_planes() 174 if (rcar_du_plane_needs_realloc(old_plane_state, new_plane_state)) { in rcar_du_atomic_check_planes() 253 struct rcar_du_plane_state *old_plane_state; in rcar_du_atomic_check_planes() local 261 old_plane_state = to_rcar_plane_state(old_drm_plane_state); in rcar_du_atomic_check_planes() 272 !rcar_du_plane_needs_realloc(old_plane_state, new_plane_state)) in rcar_du_atomic_check_planes()
|
/linux/drivers/gpu/drm/vc4/ |
A D | vc4_kms.c | 549 struct drm_plane_state *old_plane_state, *new_plane_state; in vc4_load_tracker_atomic_check() local 565 for_each_oldnew_plane_in_state(state, plane, old_plane_state, in vc4_load_tracker_atomic_check() 569 if (old_plane_state->fb && old_plane_state->crtc) { in vc4_load_tracker_atomic_check() 570 vc4_plane_state = to_vc4_plane_state(old_plane_state); in vc4_load_tracker_atomic_check()
|
/linux/drivers/gpu/drm/ingenic/ |
A D | ingenic-drm-drv.c | 367 struct drm_plane_state *old_plane_state = drm_atomic_get_old_plane_state(state, in ingenic_drm_plane_atomic_check() local 373 struct drm_crtc *crtc = new_plane_state->crtc ?: old_plane_state->crtc; in ingenic_drm_plane_atomic_check() 407 (!old_plane_state->fb || !new_plane_state->fb || in ingenic_drm_plane_atomic_check() 408 old_plane_state->crtc_x != new_plane_state->crtc_x || in ingenic_drm_plane_atomic_check() 409 old_plane_state->crtc_y != new_plane_state->crtc_y || in ingenic_drm_plane_atomic_check() 410 old_plane_state->crtc_w != new_plane_state->crtc_w || in ingenic_drm_plane_atomic_check() 411 old_plane_state->crtc_h != new_plane_state->crtc_h || in ingenic_drm_plane_atomic_check() 412 old_plane_state->fb->format->format != new_plane_state->fb->format->format)) in ingenic_drm_plane_atomic_check()
|
A D | ingenic-ipu.c | 528 struct drm_plane_state *old_plane_state = drm_atomic_get_old_plane_state(state, in ingenic_ipu_plane_atomic_check() local 534 struct drm_crtc *crtc = new_plane_state->crtc ?: old_plane_state->crtc; in ingenic_ipu_plane_atomic_check() 545 if (!old_plane_state->crtc ^ !new_plane_state->crtc) in ingenic_ipu_plane_atomic_check() 566 if (!osd_changed(new_plane_state, old_plane_state)) in ingenic_ipu_plane_atomic_check()
|
/linux/drivers/gpu/drm/gud/ |
A D | gud_pipe.c | 449 struct drm_plane_state *old_plane_state = pipe->plane.state; in gud_pipe_check() local 452 struct drm_framebuffer *old_fb = old_plane_state->fb; in gud_pipe_check() 465 if (old_plane_state->rotation != new_plane_state->rotation) in gud_pipe_check()
|
/linux/drivers/gpu/drm/udl/ |
A D | udl_modeset.c | 414 struct drm_plane_state *old_plane_state) in udl_simple_display_pipe_update() argument 424 if (drm_atomic_helper_damage_merged(old_plane_state, state, &rect)) in udl_simple_display_pipe_update()
|
/linux/drivers/gpu/drm/kmb/ |
A D | kmb_plane.c | 351 struct drm_plane_state *old_plane_state = drm_atomic_get_old_plane_state(state, in kmb_plane_atomic_update() local 369 if (!plane || !new_plane_state || !old_plane_state) in kmb_plane_atomic_update()
|
/linux/drivers/gpu/drm/rockchip/ |
A D | rockchip_drm_vop.c | 1485 struct drm_plane_state *old_plane_state, *new_plane_state; in vop_crtc_atomic_flush() local 1520 for_each_oldnew_plane_in_state(old_state, plane, old_plane_state, in vop_crtc_atomic_flush() 1522 if (!old_plane_state->fb) in vop_crtc_atomic_flush() 1525 if (old_plane_state->fb == new_plane_state->fb) in vop_crtc_atomic_flush() 1528 drm_framebuffer_get(old_plane_state->fb); in vop_crtc_atomic_flush() 1530 drm_flip_work_queue(&vop->fb_unref_work, old_plane_state->fb); in vop_crtc_atomic_flush()
|
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
A D | amdgpu_dm.c | 215 struct drm_plane_state *old_plane_state); 8712 struct drm_plane_state *old_plane_state) in handle_cursor_update() argument 8724 if (!plane->state->fb && !old_plane_state->fb) in handle_cursor_update() 8971 struct drm_plane_state *old_plane_state; in amdgpu_dm_commit_cursors() local 8980 handle_cursor_update(plane, old_plane_state); in amdgpu_dm_commit_cursors() 10334 struct drm_plane_state *old_plane_state, in should_reset_plane() argument 10500 struct drm_plane_state *old_plane_state, in dm_update_plane_state() argument 10517 old_plane_crtc = old_plane_state->crtc; in dm_update_plane_state() 10870 old_plane_state->crtc == crtc) { in amdgpu_dm_atomic_check() 10896 old_plane_state, in amdgpu_dm_atomic_check() [all …]
|