Home
last modified time | relevance | path

Searched refs:old_plane_state (Results 1 – 25 of 28) sorted by relevance

12

/Linux-v5.15/drivers/gpu/drm/
Ddrm_atomic_helper.c77 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()
888 struct drm_plane_state *new_plane_state, *old_plane_state; in drm_atomic_helper_check_planes() local
891 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { in drm_atomic_helper_check_planes()
898 drm_atomic_helper_plane_changed(state, old_plane_state, new_plane_state, plane); in drm_atomic_helper_check_planes()
1707 struct drm_plane_state *old_plane_state = NULL; in drm_atomic_helper_async_check() local
1717 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) in drm_atomic_helper_async_check()
1725 old_plane_state->crtc != new_plane_state->crtc) in drm_atomic_helper_async_check()
1740 if (old_plane_state->commit && in drm_atomic_helper_async_check()
[all …]
Ddrm_blend.c517 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()
Ddrm_atomic.c557 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-v5.15/drivers/gpu/drm/i915/display/
Dintel_cursor.c622 struct intel_plane_state *old_plane_state = in intel_legacy_cursor_update() local
649 if (old_plane_state->uapi.commit && in intel_legacy_cursor_update()
650 !try_wait_for_completion(&old_plane_state->uapi.commit->hw_done)) in intel_legacy_cursor_update()
658 if (old_plane_state->uapi.crtc != &crtc->base || in intel_legacy_cursor_update()
659 old_plane_state->uapi.src_w != src_w || in intel_legacy_cursor_update()
660 old_plane_state->uapi.src_h != src_h || in intel_legacy_cursor_update()
661 old_plane_state->uapi.crtc_w != crtc_w || in intel_legacy_cursor_update()
662 old_plane_state->uapi.crtc_h != crtc_h || in intel_legacy_cursor_update()
663 !old_plane_state->uapi.fb != !fb) in intel_legacy_cursor_update()
690 old_plane_state, new_plane_state); in intel_legacy_cursor_update()
[all …]
Dintel_atomic_plane.h49 const struct intel_plane_state *old_plane_state,
55 const struct intel_plane_state *old_plane_state,
Dintel_atomic_plane.c330 const struct intel_plane_state *old_plane_state, in intel_plane_atomic_check_with_state() argument
340 if (!new_plane_state->hw.crtc && !old_plane_state->hw.crtc) in intel_plane_atomic_check_with_state()
362 if (new_plane_state->uapi.visible || old_plane_state->uapi.visible) in intel_plane_atomic_check_with_state()
369 old_plane_state, new_plane_state); in intel_plane_atomic_check_with_state()
392 const struct intel_plane_state *old_plane_state = in intel_plane_atomic_check() local
422 old_plane_state, in intel_plane_atomic_check()
Dintel_display.h448 #define for_each_old_intel_plane_in_state(__state, plane, old_plane_state, __i) \ argument
452 (old_plane_state) = to_intel_plane_state((__state)->base.planes[__i].old_state), 1); \
472 #define for_each_oldnew_intel_plane_in_state(__state, plane, old_plane_state, new_plane_state, __i)… argument
476 (old_plane_state) = to_intel_plane_state((__state)->base.planes[__i].old_state), \
628 void intel_plane_unpin_fb(struct intel_plane_state *old_plane_state);
Dintel_psr.c1605 struct intel_plane_state *new_plane_state, *old_plane_state; in intel_psr2_sel_fetch_update() local
1623 for_each_oldnew_intel_plane_in_state(state, plane, old_plane_state, in intel_psr2_sel_fetch_update()
1633 !old_plane_state->uapi.visible) in intel_psr2_sel_fetch_update()
1654 if (new_plane_state->uapi.visible != old_plane_state->uapi.visible || in intel_psr2_sel_fetch_update()
1656 &old_plane_state->uapi.dst)) { in intel_psr2_sel_fetch_update()
1657 if (old_plane_state->uapi.visible) { in intel_psr2_sel_fetch_update()
1658 damaged_area.y1 = old_plane_state->uapi.dst.y1; in intel_psr2_sel_fetch_update()
1659 damaged_area.y2 = old_plane_state->uapi.dst.y2; in intel_psr2_sel_fetch_update()
1669 } else if (new_plane_state->uapi.alpha != old_plane_state->uapi.alpha || in intel_psr2_sel_fetch_update()
1671 new_plane_state->uapi.fb != old_plane_state->uapi.fb)) { in intel_psr2_sel_fetch_update()
[all …]
Dintel_display.c2933 const struct intel_plane_state *old_plane_state; in intel_crtc_async_flip_disable_wa() local
2938 for_each_old_intel_plane_in_state(state, plane, old_plane_state, i) { in intel_crtc_async_flip_disable_wa()
2947 old_plane_state, false); in intel_crtc_async_flip_disable_wa()
3057 const struct intel_plane_state *old_plane_state; in intel_crtc_disable_planes() local
3064 for_each_old_intel_plane_in_state(state, plane, old_plane_state, i) { in intel_crtc_disable_planes()
3071 if (old_plane_state->uapi.visible) in intel_crtc_disable_planes()
6989 const struct intel_plane_state *old_plane_state, in intel_plane_atomic_calc_changes() argument
7007 was_visible = old_plane_state->uapi.visible; in intel_plane_atomic_calc_changes()
7055 } else if (intel_wm_need_update(old_plane_state, plane_state)) { in intel_plane_atomic_calc_changes()
7102 (turn_on || (!needs_scaling(old_plane_state) && in intel_plane_atomic_calc_changes()
[all …]
/Linux-v5.15/drivers/gpu/drm/xen/
Dxen_drm_front_kms.c178 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-v5.15/drivers/gpu/drm/imx/
Dimx-drm-core.c81 struct drm_plane_state *old_plane_state, *new_plane_state; in imx_drm_atomic_commit_tail() local
94 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { in imx_drm_atomic_commit_tail()
95 if (drm_atomic_plane_disabling(old_plane_state, new_plane_state)) in imx_drm_atomic_commit_tail()
109 for_each_old_plane_in_state(state, plane, old_plane_state, i) in imx_drm_atomic_commit_tail()
/Linux-v5.15/include/drm/
Ddrm_atomic.h866 #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))
Ddrm_atomic_helper.h212 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()
Ddrm_simple_kms_helper.h110 struct drm_plane_state *old_plane_state);
/Linux-v5.15/drivers/gpu/drm/rcar-du/
Drcar_du_plane.c144 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-v5.15/drivers/gpu/drm/vc4/
Dvc4_kms.c547 struct drm_plane_state *old_plane_state, *new_plane_state; in vc4_load_tracker_atomic_check() local
563 for_each_oldnew_plane_in_state(state, plane, old_plane_state, in vc4_load_tracker_atomic_check()
567 if (old_plane_state->fb && old_plane_state->crtc) { in vc4_load_tracker_atomic_check()
568 vc4_plane_state = to_vc4_plane_state(old_plane_state); in vc4_load_tracker_atomic_check()
/Linux-v5.15/drivers/gpu/drm/ingenic/
Dingenic-drm-drv.c367 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()
Dingenic-ipu.c528 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-v5.15/drivers/gpu/drm/gud/
Dgud_pipe.c443 struct drm_plane_state *old_plane_state = pipe->plane.state; in gud_pipe_check() local
446 struct drm_framebuffer *old_fb = old_plane_state->fb; in gud_pipe_check()
459 if (old_plane_state->rotation != new_plane_state->rotation) in gud_pipe_check()
/Linux-v5.15/drivers/gpu/drm/udl/
Dudl_modeset.c414 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-v5.15/drivers/gpu/drm/kmb/
Dkmb_plane.c351 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-v5.15/drivers/gpu/drm/rockchip/
Drockchip_drm_vop.c1485 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-v5.15/drivers/gpu/drm/tiny/
Dsimpledrm.c675 struct drm_plane_state *old_plane_state) in simpledrm_simple_display_pipe_update() argument
689 if (!drm_atomic_helper_damage_merged(old_plane_state, plane_state, &clip)) in simpledrm_simple_display_pipe_update()
/Linux-v5.15/drivers/gpu/drm/xlnx/
Dzynqmp_disp.c1481 struct drm_plane_state *old_plane_state; in zynqmp_disp_crtc_atomic_disable() local
1488 old_plane_state = drm_atomic_get_old_plane_state(state, crtc->primary); in zynqmp_disp_crtc_atomic_disable()
1489 if (old_plane_state) in zynqmp_disp_crtc_atomic_disable()
/Linux-v5.15/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm.c213 struct drm_plane_state *old_plane_state);
8209 struct drm_plane_state *old_plane_state) in handle_cursor_update() argument
8213 struct drm_crtc *crtc = afb ? plane->state->crtc : old_plane_state->crtc; in handle_cursor_update()
8221 if (!plane->state->fb && !old_plane_state->fb) in handle_cursor_update()
8468 struct drm_plane_state *old_plane_state; in amdgpu_dm_commit_cursors() local
8475 for_each_old_plane_in_state(state, plane, old_plane_state, i) in amdgpu_dm_commit_cursors()
8477 handle_cursor_update(plane, old_plane_state); in amdgpu_dm_commit_cursors()
8490 struct drm_plane_state *old_plane_state, *new_plane_state; in amdgpu_dm_commit_planes() local
8528 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { in amdgpu_dm_commit_planes()
8563 plane_needs_flip = old_plane_state->fb && new_plane_state->fb; in amdgpu_dm_commit_planes()
[all …]

12