Lines Matching refs:new_plane_state
992 struct drm_plane_state *new_plane_state, *old_plane_state; in drm_atomic_helper_check_planes() local
995 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { in drm_atomic_helper_check_planes()
1002 drm_atomic_helper_plane_changed(state, old_plane_state, new_plane_state, plane); in drm_atomic_helper_check_planes()
1004 drm_atomic_helper_check_plane_damage(state, new_plane_state); in drm_atomic_helper_check_planes()
1302 struct drm_plane_state *new_plane_state; in drm_atomic_helper_update_legacy_modeset_state() local
1307 new_plane_state = in drm_atomic_helper_update_legacy_modeset_state()
1310 if (new_plane_state && new_plane_state->crtc == crtc) { in drm_atomic_helper_update_legacy_modeset_state()
1311 crtc->x = new_plane_state->src_x >> 16; in drm_atomic_helper_update_legacy_modeset_state()
1312 crtc->y = new_plane_state->src_y >> 16; in drm_atomic_helper_update_legacy_modeset_state()
1545 struct drm_plane_state *new_plane_state; in set_fence_deadline() local
1569 for_each_new_plane_in_state (state, plane, new_plane_state, i) { in set_fence_deadline()
1570 if (!new_plane_state->fence) in set_fence_deadline()
1572 dma_fence_set_deadline(new_plane_state->fence, vbltime); in set_fence_deadline()
1602 struct drm_plane_state *new_plane_state; in drm_atomic_helper_wait_for_fences() local
1607 for_each_new_plane_in_state(state, plane, new_plane_state, i) { in drm_atomic_helper_wait_for_fences()
1608 if (!new_plane_state->fence) in drm_atomic_helper_wait_for_fences()
1611 WARN_ON(!new_plane_state->fb); in drm_atomic_helper_wait_for_fences()
1618 ret = dma_fence_wait(new_plane_state->fence, pre_swap); in drm_atomic_helper_wait_for_fences()
1622 dma_fence_put(new_plane_state->fence); in drm_atomic_helper_wait_for_fences()
1623 new_plane_state->fence = NULL; in drm_atomic_helper_wait_for_fences()
1876 struct drm_plane_state *new_plane_state = NULL; in drm_atomic_helper_async_check() local
1885 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) in drm_atomic_helper_async_check()
1895 if (!new_plane_state->crtc || in drm_atomic_helper_async_check()
1896 old_plane_state->crtc != new_plane_state->crtc) { in drm_atomic_helper_async_check()
1911 if (new_plane_state->fence) { in drm_atomic_helper_async_check()
2280 struct drm_plane_state *old_plane_state, *new_plane_state; in drm_atomic_helper_setup_commit() local
2357 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { in drm_atomic_helper_setup_commit()
2372 commit = crtc_or_fake_commit(state, new_plane_state->crtc ?: old_plane_state->crtc); in drm_atomic_helper_setup_commit()
2376 new_plane_state->commit = drm_crtc_commit_get(commit); in drm_atomic_helper_setup_commit()
2582 struct drm_plane_state *new_plane_state; in drm_atomic_helper_prepare_planes() local
2594 for_each_new_plane_in_state(state, plane, new_plane_state, i) { in drm_atomic_helper_prepare_planes()
2600 ret = funcs->prepare_fb(plane, new_plane_state); in drm_atomic_helper_prepare_planes()
2609 ret = drm_gem_plane_helper_prepare_fb(plane, new_plane_state); in drm_atomic_helper_prepare_planes()
2615 for_each_new_plane_in_state(state, plane, new_plane_state, i) { in drm_atomic_helper_prepare_planes()
2619 ret = funcs->begin_fb_access(plane, new_plane_state); in drm_atomic_helper_prepare_planes()
2628 for_each_new_plane_in_state(state, plane, new_plane_state, j) { in drm_atomic_helper_prepare_planes()
2635 funcs->end_fb_access(plane, new_plane_state); in drm_atomic_helper_prepare_planes()
2639 for_each_new_plane_in_state(state, plane, new_plane_state, j) { in drm_atomic_helper_prepare_planes()
2648 funcs->cleanup_fb(plane, new_plane_state); in drm_atomic_helper_prepare_planes()
2669 struct drm_plane_state *new_plane_state; in drm_atomic_helper_unprepare_planes() local
2672 for_each_new_plane_in_state(state, plane, new_plane_state, i) { in drm_atomic_helper_unprepare_planes()
2676 funcs->end_fb_access(plane, new_plane_state); in drm_atomic_helper_unprepare_planes()
2679 for_each_new_plane_in_state(state, plane, new_plane_state, i) { in drm_atomic_helper_unprepare_planes()
2683 funcs->cleanup_fb(plane, new_plane_state); in drm_atomic_helper_unprepare_planes()
2741 struct drm_plane_state *old_plane_state, *new_plane_state; in drm_atomic_helper_commit_planes() local
2760 for_each_oldnew_plane_in_state(old_state, plane, old_plane_state, new_plane_state, i) { in drm_atomic_helper_commit_planes()
2770 new_plane_state); in drm_atomic_helper_commit_planes()
2780 if (!disabling && !plane_crtc_active(new_plane_state)) in drm_atomic_helper_commit_planes()
2799 } else if (new_plane_state->crtc || disabling) { in drm_atomic_helper_commit_planes()
2803 if (drm_atomic_plane_enabling(old_plane_state, new_plane_state)) in drm_atomic_helper_commit_planes()
2874 struct drm_plane_state *new_plane_state = in drm_atomic_helper_commit_planes_on_crtc() local
2884 WARN_ON(new_plane_state->crtc && in drm_atomic_helper_commit_planes_on_crtc()
2885 new_plane_state->crtc != crtc); in drm_atomic_helper_commit_planes_on_crtc()
2887 disabling = drm_atomic_plane_disabling(old_plane_state, new_plane_state); in drm_atomic_helper_commit_planes_on_crtc()
2891 } else if (new_plane_state->crtc || disabling) { in drm_atomic_helper_commit_planes_on_crtc()
2895 if (drm_atomic_plane_enabling(old_plane_state, new_plane_state)) in drm_atomic_helper_commit_planes_on_crtc()
3024 struct drm_plane_state *old_plane_state, *new_plane_state; in drm_atomic_helper_swap_state() local
3103 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { in drm_atomic_helper_swap_state()
3107 new_plane_state->state = NULL; in drm_atomic_helper_swap_state()
3110 plane->state = new_plane_state; in drm_atomic_helper_swap_state()
3560 struct drm_plane_state *new_plane_state; in drm_atomic_helper_commit_duplicated_state() local
3568 for_each_new_plane_in_state(state, plane, new_plane_state, i) in drm_atomic_helper_commit_duplicated_state()