old_plane_state 144 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c struct drm_plane_state *old_plane_state); old_plane_state 5416 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c struct drm_plane_state *old_plane_state) old_plane_state 5420 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c struct drm_crtc *crtc = afb ? plane->state->crtc : old_plane_state->crtc; old_plane_state 5428 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (!plane->state->fb && !old_plane_state->fb) old_plane_state 5655 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c struct drm_plane_state *old_plane_state, *new_plane_state; old_plane_state 5662 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c for_each_oldnew_plane_in_state(state, plane, old_plane_state, old_plane_state 5665 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c handle_cursor_update(plane, old_plane_state); old_plane_state 5678 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c struct drm_plane_state *old_plane_state, *new_plane_state; old_plane_state 5717 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { old_plane_state 5750 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c plane_needs_flip = old_plane_state->fb && new_plane_state->fb; old_plane_state 6850 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c struct drm_plane_state *old_plane_state, old_plane_state 6867 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (old_plane_state->crtc != new_plane_state->crtc) old_plane_state 6918 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c struct drm_plane_state *old_plane_state, old_plane_state 6935 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c old_plane_crtc = old_plane_state->crtc; old_plane_state 6937 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c dm_old_plane_state = to_dm_plane_state(old_plane_state); old_plane_state 6957 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c needs_reset = should_reset_plane(state, plane, old_plane_state, old_plane_state 7080 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c struct drm_plane_state *old_plane_state, *new_plane_state; old_plane_state 7120 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, j) { old_plane_state 7128 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c old_plane_crtc = old_plane_state->crtc; old_plane_state 7130 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c old_dm_plane_state = to_dm_plane_state(old_plane_state); old_plane_state 7266 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c struct drm_plane_state *old_plane_state, *new_plane_state; old_plane_state 7308 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { old_plane_state 7313 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c old_plane_state->crtc == crtc) { old_plane_state 7337 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c for_each_oldnew_plane_in_state_reverse(state, plane, old_plane_state, new_plane_state, i) { old_plane_state 7339 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c old_plane_state, old_plane_state 7370 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c for_each_oldnew_plane_in_state_reverse(state, plane, old_plane_state, new_plane_state, i) { old_plane_state 7372 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c old_plane_state, old_plane_state 511 drivers/gpu/drm/drm_atomic.c plane_switching_crtc(const struct drm_plane_state *old_plane_state, old_plane_state 514 drivers/gpu/drm/drm_atomic.c if (!old_plane_state->crtc || !new_plane_state->crtc) old_plane_state 517 drivers/gpu/drm/drm_atomic.c if (old_plane_state->crtc == new_plane_state->crtc) old_plane_state 538 drivers/gpu/drm/drm_atomic.c static int drm_atomic_plane_check(const struct drm_plane_state *old_plane_state, old_plane_state 640 drivers/gpu/drm/drm_atomic.c if (plane_switching_crtc(old_plane_state, new_plane_state)) { old_plane_state 1138 drivers/gpu/drm/drm_atomic.c struct drm_plane_state *old_plane_state; old_plane_state 1149 drivers/gpu/drm/drm_atomic.c for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { old_plane_state 1150 drivers/gpu/drm/drm_atomic.c ret = drm_atomic_plane_check(old_plane_state, new_plane_state); old_plane_state 74 drivers/gpu/drm/drm_atomic_helper.c struct drm_plane_state *old_plane_state, old_plane_state 80 drivers/gpu/drm/drm_atomic_helper.c if (old_plane_state->crtc) { old_plane_state 82 drivers/gpu/drm/drm_atomic_helper.c old_plane_state->crtc); old_plane_state 865 drivers/gpu/drm/drm_atomic_helper.c struct drm_plane_state *new_plane_state, *old_plane_state; old_plane_state 868 drivers/gpu/drm/drm_atomic_helper.c for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { old_plane_state 875 drivers/gpu/drm/drm_atomic_helper.c drm_atomic_helper_plane_changed(state, old_plane_state, new_plane_state, plane); old_plane_state 1660 drivers/gpu/drm/drm_atomic_helper.c struct drm_plane_state *old_plane_state = NULL; old_plane_state 1670 drivers/gpu/drm/drm_atomic_helper.c for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) old_plane_state 1678 drivers/gpu/drm/drm_atomic_helper.c old_plane_state->crtc != new_plane_state->crtc) old_plane_state 1693 drivers/gpu/drm/drm_atomic_helper.c if (old_plane_state->commit && old_plane_state 1694 drivers/gpu/drm/drm_atomic_helper.c !try_wait_for_completion(&old_plane_state->commit->hw_done)) old_plane_state 2021 drivers/gpu/drm/drm_atomic_helper.c struct drm_plane_state *old_plane_state, *new_plane_state; old_plane_state 2086 drivers/gpu/drm/drm_atomic_helper.c for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { old_plane_state 2089 drivers/gpu/drm/drm_atomic_helper.c if (nonblock && old_plane_state->commit && old_plane_state 2090 drivers/gpu/drm/drm_atomic_helper.c !try_wait_for_completion(&old_plane_state->commit->flip_done)) old_plane_state 2094 drivers/gpu/drm/drm_atomic_helper.c commit = crtc_or_fake_commit(state, new_plane_state->crtc ?: old_plane_state->crtc); old_plane_state 2122 drivers/gpu/drm/drm_atomic_helper.c struct drm_plane_state *old_plane_state; old_plane_state 2171 drivers/gpu/drm/drm_atomic_helper.c for_each_old_plane_in_state(old_state, plane, old_plane_state, i) { old_plane_state 2172 drivers/gpu/drm/drm_atomic_helper.c commit = old_plane_state->commit; old_plane_state 2435 drivers/gpu/drm/drm_atomic_helper.c struct drm_plane_state *old_plane_state, *new_plane_state; old_plane_state 2454 drivers/gpu/drm/drm_atomic_helper.c for_each_oldnew_plane_in_state(old_state, plane, old_plane_state, new_plane_state, i) { old_plane_state 2463 drivers/gpu/drm/drm_atomic_helper.c disabling = drm_atomic_plane_disabling(old_plane_state, old_plane_state 2476 drivers/gpu/drm/drm_atomic_helper.c if (disabling && !plane_crtc_active(old_plane_state)) old_plane_state 2486 drivers/gpu/drm/drm_atomic_helper.c crtc_state = old_plane_state->crtc->state; old_plane_state 2492 drivers/gpu/drm/drm_atomic_helper.c funcs->atomic_disable(plane, old_plane_state); old_plane_state 2494 drivers/gpu/drm/drm_atomic_helper.c funcs->atomic_update(plane, old_plane_state); old_plane_state 2550 drivers/gpu/drm/drm_atomic_helper.c struct drm_plane_state *old_plane_state = old_plane_state 2558 drivers/gpu/drm/drm_atomic_helper.c if (!old_plane_state || !plane_funcs) old_plane_state 2564 drivers/gpu/drm/drm_atomic_helper.c if (drm_atomic_plane_disabling(old_plane_state, new_plane_state) && old_plane_state 2566 drivers/gpu/drm/drm_atomic_helper.c plane_funcs->atomic_disable(plane, old_plane_state); old_plane_state 2568 drivers/gpu/drm/drm_atomic_helper.c drm_atomic_plane_disabling(old_plane_state, new_plane_state)) old_plane_state 2569 drivers/gpu/drm/drm_atomic_helper.c plane_funcs->atomic_update(plane, old_plane_state); old_plane_state 2638 drivers/gpu/drm/drm_atomic_helper.c struct drm_plane_state *old_plane_state, *new_plane_state; old_plane_state 2641 drivers/gpu/drm/drm_atomic_helper.c for_each_oldnew_plane_in_state(old_state, plane, old_plane_state, new_plane_state, i) { old_plane_state 2649 drivers/gpu/drm/drm_atomic_helper.c if (old_plane_state == plane->state) old_plane_state 2652 drivers/gpu/drm/drm_atomic_helper.c plane_state = old_plane_state; old_plane_state 2706 drivers/gpu/drm/drm_atomic_helper.c struct drm_plane_state *old_plane_state, *new_plane_state; old_plane_state 2743 drivers/gpu/drm/drm_atomic_helper.c for_each_old_plane_in_state(state, plane, old_plane_state, i) { old_plane_state 2744 drivers/gpu/drm/drm_atomic_helper.c commit = old_plane_state->commit; old_plane_state 2784 drivers/gpu/drm/drm_atomic_helper.c for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { old_plane_state 2785 drivers/gpu/drm/drm_atomic_helper.c WARN_ON(plane->state != old_plane_state); old_plane_state 2787 drivers/gpu/drm/drm_atomic_helper.c old_plane_state->state = state; old_plane_state 2790 drivers/gpu/drm/drm_atomic_helper.c state->planes[i].state = old_plane_state; old_plane_state 497 drivers/gpu/drm/drm_blend.c struct drm_plane_state *old_plane_state, *new_plane_state; old_plane_state 500 drivers/gpu/drm/drm_blend.c for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { old_plane_state 504 drivers/gpu/drm/drm_blend.c if (old_plane_state->zpos != new_plane_state->zpos) { old_plane_state 143 drivers/gpu/drm/i915/display/intel_atomic_plane.c const struct intel_plane_state *old_plane_state, old_plane_state 155 drivers/gpu/drm/i915/display/intel_atomic_plane.c if (!new_plane_state->base.crtc && !old_plane_state->base.crtc) old_plane_state 174 drivers/gpu/drm/i915/display/intel_atomic_plane.c if (new_plane_state->base.visible || old_plane_state->base.visible) old_plane_state 181 drivers/gpu/drm/i915/display/intel_atomic_plane.c old_plane_state, new_plane_state); old_plane_state 185 drivers/gpu/drm/i915/display/intel_atomic_plane.c get_crtc_from_states(const struct intel_plane_state *old_plane_state, old_plane_state 191 drivers/gpu/drm/i915/display/intel_atomic_plane.c if (old_plane_state->base.crtc) old_plane_state 192 drivers/gpu/drm/i915/display/intel_atomic_plane.c return to_intel_crtc(old_plane_state->base.crtc); old_plane_state 205 drivers/gpu/drm/i915/display/intel_atomic_plane.c const struct intel_plane_state *old_plane_state = old_plane_state 208 drivers/gpu/drm/i915/display/intel_atomic_plane.c get_crtc_from_states(old_plane_state, new_plane_state); old_plane_state 221 drivers/gpu/drm/i915/display/intel_atomic_plane.c old_plane_state, old_plane_state 42 drivers/gpu/drm/i915/display/intel_atomic_plane.h const struct intel_plane_state *old_plane_state, old_plane_state 46 drivers/gpu/drm/i915/display/intel_atomic_plane.h const struct intel_plane_state *old_plane_state, old_plane_state 6042 drivers/gpu/drm/i915/display/intel_display.c const struct intel_plane_state *old_plane_state; old_plane_state 6049 drivers/gpu/drm/i915/display/intel_display.c for_each_old_intel_plane_in_state(state, plane, old_plane_state, i) { old_plane_state 6056 drivers/gpu/drm/i915/display/intel_display.c if (old_plane_state->base.visible) old_plane_state 11503 drivers/gpu/drm/i915/display/intel_display.c const struct intel_plane_state *old_plane_state, old_plane_state 11522 drivers/gpu/drm/i915/display/intel_display.c was_visible = old_plane_state->base.visible; old_plane_state 11547 drivers/gpu/drm/i915/display/intel_display.c if (fb != old_plane_state->base.fb) old_plane_state 11577 drivers/gpu/drm/i915/display/intel_display.c } else if (intel_wm_need_update(old_plane_state, plane_state)) { old_plane_state 11624 drivers/gpu/drm/i915/display/intel_display.c (turn_on || (!needs_scaling(old_plane_state) && old_plane_state 14140 drivers/gpu/drm/i915/display/intel_display.c struct intel_plane_state *old_plane_state, *new_plane_state; old_plane_state 14144 drivers/gpu/drm/i915/display/intel_display.c for_each_oldnew_intel_plane_in_state(state, plane, old_plane_state, old_plane_state 14146 drivers/gpu/drm/i915/display/intel_display.c intel_frontbuffer_track(to_intel_frontbuffer(old_plane_state->base.fb), old_plane_state 14332 drivers/gpu/drm/i915/display/intel_display.c static void intel_plane_unpin_fb(struct intel_plane_state *old_plane_state) old_plane_state 14336 drivers/gpu/drm/i915/display/intel_display.c vma = fetch_and_zero(&old_plane_state->vma); old_plane_state 14338 drivers/gpu/drm/i915/display/intel_display.c intel_unpin_fb_vma(vma, old_plane_state->flags); old_plane_state 14695 drivers/gpu/drm/i915/display/intel_display.c struct drm_plane_state *old_plane_state, *new_plane_state; old_plane_state 14710 drivers/gpu/drm/i915/display/intel_display.c old_plane_state = plane->state; old_plane_state 14716 drivers/gpu/drm/i915/display/intel_display.c if (old_plane_state->commit && old_plane_state 14717 drivers/gpu/drm/i915/display/intel_display.c !try_wait_for_completion(&old_plane_state->commit->hw_done)) old_plane_state 14725 drivers/gpu/drm/i915/display/intel_display.c if (old_plane_state->crtc != crtc || old_plane_state 14726 drivers/gpu/drm/i915/display/intel_display.c old_plane_state->src_w != src_w || old_plane_state 14727 drivers/gpu/drm/i915/display/intel_display.c old_plane_state->src_h != src_h || old_plane_state 14728 drivers/gpu/drm/i915/display/intel_display.c old_plane_state->crtc_w != crtc_w || old_plane_state 14729 drivers/gpu/drm/i915/display/intel_display.c old_plane_state->crtc_h != crtc_h || old_plane_state 14730 drivers/gpu/drm/i915/display/intel_display.c !old_plane_state->fb != !fb) old_plane_state 14755 drivers/gpu/drm/i915/display/intel_display.c to_intel_plane_state(old_plane_state), old_plane_state 14769 drivers/gpu/drm/i915/display/intel_display.c intel_frontbuffer_track(to_intel_frontbuffer(old_plane_state->fb), old_plane_state 14794 drivers/gpu/drm/i915/display/intel_display.c intel_plane_unpin_fb(to_intel_plane_state(old_plane_state)); old_plane_state 14804 drivers/gpu/drm/i915/display/intel_display.c intel_plane_destroy_state(plane, old_plane_state); old_plane_state 372 drivers/gpu/drm/i915/display/intel_display.h #define for_each_old_intel_plane_in_state(__state, plane, old_plane_state, __i) \ old_plane_state 376 drivers/gpu/drm/i915/display/intel_display.h (old_plane_state) = to_intel_plane_state((__state)->base.planes[__i].old_state), 1); \ old_plane_state 396 drivers/gpu/drm/i915/display/intel_display.h #define for_each_oldnew_intel_plane_in_state(__state, plane, old_plane_state, new_plane_state, __i) \ old_plane_state 400 drivers/gpu/drm/i915/display/intel_display.h (old_plane_state) = to_intel_plane_state((__state)->base.planes[__i].old_state), \ old_plane_state 1341 drivers/gpu/drm/i915/intel_pm.c const struct intel_plane_state *old_plane_state; old_plane_state 1349 drivers/gpu/drm/i915/intel_pm.c old_plane_state, old_plane_state 1352 drivers/gpu/drm/i915/intel_pm.c old_plane_state->base.crtc != &crtc->base) old_plane_state 1862 drivers/gpu/drm/i915/intel_pm.c const struct intel_plane_state *old_plane_state; old_plane_state 1870 drivers/gpu/drm/i915/intel_pm.c old_plane_state, old_plane_state 1873 drivers/gpu/drm/i915/intel_pm.c old_plane_state->base.crtc != &crtc->base) old_plane_state 86 drivers/gpu/drm/imx/imx-drm-core.c struct drm_plane_state *old_plane_state, *new_plane_state; old_plane_state 98 drivers/gpu/drm/imx/imx-drm-core.c for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { old_plane_state 99 drivers/gpu/drm/imx/imx-drm-core.c if (drm_atomic_plane_disabling(old_plane_state, new_plane_state)) old_plane_state 113 drivers/gpu/drm/imx/imx-drm-core.c for_each_old_plane_in_state(state, plane, old_plane_state, i) old_plane_state 144 drivers/gpu/drm/rcar-du/rcar_du_plane.c struct rcar_du_plane_state *old_plane_state; old_plane_state 150 drivers/gpu/drm/rcar-du/rcar_du_plane.c old_plane_state = to_rcar_plane_state(old_drm_plane_state); old_plane_state 174 drivers/gpu/drm/rcar-du/rcar_du_plane.c if (rcar_du_plane_needs_realloc(old_plane_state, new_plane_state)) { old_plane_state 253 drivers/gpu/drm/rcar-du/rcar_du_plane.c struct rcar_du_plane_state *old_plane_state; old_plane_state 261 drivers/gpu/drm/rcar-du/rcar_du_plane.c old_plane_state = to_rcar_plane_state(old_drm_plane_state); old_plane_state 272 drivers/gpu/drm/rcar-du/rcar_du_plane.c !rcar_du_plane_needs_realloc(old_plane_state, new_plane_state)) old_plane_state 1229 drivers/gpu/drm/rockchip/rockchip_drm_vop.c struct drm_plane_state *old_plane_state, *new_plane_state; old_plane_state 1260 drivers/gpu/drm/rockchip/rockchip_drm_vop.c for_each_oldnew_plane_in_state(old_state, plane, old_plane_state, old_plane_state 1262 drivers/gpu/drm/rockchip/rockchip_drm_vop.c if (!old_plane_state->fb) old_plane_state 1265 drivers/gpu/drm/rockchip/rockchip_drm_vop.c if (old_plane_state->fb == new_plane_state->fb) old_plane_state 1268 drivers/gpu/drm/rockchip/rockchip_drm_vop.c drm_framebuffer_get(old_plane_state->fb); old_plane_state 1270 drivers/gpu/drm/rockchip/rockchip_drm_vop.c drm_flip_work_queue(&vop->fb_unref_work, old_plane_state->fb); old_plane_state 411 drivers/gpu/drm/vc4/vc4_kms.c struct drm_plane_state *old_plane_state, *new_plane_state; old_plane_state 424 drivers/gpu/drm/vc4/vc4_kms.c for_each_oldnew_plane_in_state(state, plane, old_plane_state, old_plane_state 428 drivers/gpu/drm/vc4/vc4_kms.c if (old_plane_state->fb && old_plane_state->crtc) { old_plane_state 429 drivers/gpu/drm/vc4/vc4_kms.c vc4_plane_state = to_vc4_plane_state(old_plane_state); old_plane_state 184 drivers/gpu/drm/xen/xen_drm_front_kms.c struct drm_plane_state *old_plane_state) old_plane_state 187 drivers/gpu/drm/xen/xen_drm_front_kms.c drm_atomic_get_new_plane_state(old_plane_state->state, old_plane_state 198 drivers/gpu/drm/xen/xen_drm_front_kms.c if (old_plane_state->fb && plane_state->fb) { old_plane_state 231 drivers/gpu/drm/xen/xen_drm_front_kms.c struct drm_plane_state *old_plane_state) old_plane_state 266 drivers/gpu/drm/xen/xen_drm_front_kms.c if (!display_send_page_flip(pipe, old_plane_state)) old_plane_state 810 include/drm/drm_atomic.h #define for_each_oldnew_plane_in_state(__state, plane, old_plane_state, new_plane_state, __i) \ old_plane_state 816 include/drm/drm_atomic.h (old_plane_state) = (__state)->planes[__i].old_state,\ old_plane_state 832 include/drm/drm_atomic.h #define for_each_oldnew_plane_in_state_reverse(__state, plane, old_plane_state, new_plane_state, __i) \ old_plane_state 838 include/drm/drm_atomic.h (old_plane_state) = (__state)->planes[__i].old_state,\ old_plane_state 852 include/drm/drm_atomic.h #define for_each_old_plane_in_state(__state, plane, old_plane_state, __i) \ old_plane_state 858 include/drm/drm_atomic.h (old_plane_state) = (__state)->planes[__i].old_state, 1)) old_plane_state 213 include/drm/drm_atomic_helper.h drm_atomic_plane_disabling(struct drm_plane_state *old_plane_state, old_plane_state 224 include/drm/drm_atomic_helper.h return old_plane_state->crtc && !new_plane_state->crtc; old_plane_state 107 include/drm/drm_simple_kms_helper.h struct drm_plane_state *old_plane_state);