Lines Matching refs:new_plane_state

1022 	struct drm_plane_state *new_plane_state, *old_plane_state;  in drm_atomic_helper_check_planes()  local
1025 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { in drm_atomic_helper_check_planes()
1032 drm_atomic_helper_plane_changed(state, old_plane_state, new_plane_state, plane); in drm_atomic_helper_check_planes()
1034 drm_atomic_helper_check_plane_damage(state, new_plane_state); in drm_atomic_helper_check_planes()
1408 struct drm_plane_state *new_plane_state; in drm_atomic_helper_update_legacy_modeset_state() local
1413 new_plane_state = in drm_atomic_helper_update_legacy_modeset_state()
1416 if (new_plane_state && new_plane_state->crtc == crtc) { in drm_atomic_helper_update_legacy_modeset_state()
1417 crtc->x = new_plane_state->src_x >> 16; in drm_atomic_helper_update_legacy_modeset_state()
1418 crtc->y = new_plane_state->src_y >> 16; in drm_atomic_helper_update_legacy_modeset_state()
1698 struct drm_plane_state *new_plane_state; in set_fence_deadline() local
1722 for_each_new_plane_in_state (state, plane, new_plane_state, i) { in set_fence_deadline()
1723 if (!new_plane_state->fence) in set_fence_deadline()
1725 dma_fence_set_deadline(new_plane_state->fence, vbltime); in set_fence_deadline()
1755 struct drm_plane_state *new_plane_state; in drm_atomic_helper_wait_for_fences() local
1760 for_each_new_plane_in_state(state, plane, new_plane_state, i) { in drm_atomic_helper_wait_for_fences()
1761 if (!new_plane_state->fence) in drm_atomic_helper_wait_for_fences()
1764 WARN_ON(!new_plane_state->fb); in drm_atomic_helper_wait_for_fences()
1771 ret = dma_fence_wait(new_plane_state->fence, pre_swap); in drm_atomic_helper_wait_for_fences()
1775 dma_fence_put(new_plane_state->fence); in drm_atomic_helper_wait_for_fences()
1776 new_plane_state->fence = NULL; in drm_atomic_helper_wait_for_fences()
2029 struct drm_plane_state *new_plane_state = NULL; in drm_atomic_helper_async_check() local
2038 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) in drm_atomic_helper_async_check()
2048 if (!new_plane_state->crtc || in drm_atomic_helper_async_check()
2049 old_plane_state->crtc != new_plane_state->crtc) { in drm_atomic_helper_async_check()
2064 if (new_plane_state->fence) { in drm_atomic_helper_async_check()
2433 struct drm_plane_state *old_plane_state, *new_plane_state; in drm_atomic_helper_setup_commit() local
2510 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { in drm_atomic_helper_setup_commit()
2525 commit = crtc_or_fake_commit(state, new_plane_state->crtc ?: old_plane_state->crtc); in drm_atomic_helper_setup_commit()
2529 new_plane_state->commit = drm_crtc_commit_get(commit); in drm_atomic_helper_setup_commit()
2735 struct drm_plane_state *new_plane_state; in drm_atomic_helper_prepare_planes() local
2747 for_each_new_plane_in_state(state, plane, new_plane_state, i) { in drm_atomic_helper_prepare_planes()
2753 ret = funcs->prepare_fb(plane, new_plane_state); in drm_atomic_helper_prepare_planes()
2762 ret = drm_gem_plane_helper_prepare_fb(plane, new_plane_state); in drm_atomic_helper_prepare_planes()
2768 for_each_new_plane_in_state(state, plane, new_plane_state, i) { in drm_atomic_helper_prepare_planes()
2772 ret = funcs->begin_fb_access(plane, new_plane_state); in drm_atomic_helper_prepare_planes()
2781 for_each_new_plane_in_state(state, plane, new_plane_state, j) { in drm_atomic_helper_prepare_planes()
2788 funcs->end_fb_access(plane, new_plane_state); in drm_atomic_helper_prepare_planes()
2792 for_each_new_plane_in_state(state, plane, new_plane_state, j) { in drm_atomic_helper_prepare_planes()
2801 funcs->cleanup_fb(plane, new_plane_state); in drm_atomic_helper_prepare_planes()
2822 struct drm_plane_state *new_plane_state; in drm_atomic_helper_unprepare_planes() local
2825 for_each_new_plane_in_state(state, plane, new_plane_state, i) { in drm_atomic_helper_unprepare_planes()
2829 funcs->end_fb_access(plane, new_plane_state); in drm_atomic_helper_unprepare_planes()
2832 for_each_new_plane_in_state(state, plane, new_plane_state, i) { in drm_atomic_helper_unprepare_planes()
2836 funcs->cleanup_fb(plane, new_plane_state); in drm_atomic_helper_unprepare_planes()
2894 struct drm_plane_state *old_plane_state, *new_plane_state; in drm_atomic_helper_commit_planes() local
2913 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { in drm_atomic_helper_commit_planes()
2923 new_plane_state); in drm_atomic_helper_commit_planes()
2933 if (!disabling && !plane_crtc_active(new_plane_state)) in drm_atomic_helper_commit_planes()
2952 } else if (new_plane_state->crtc || disabling) { in drm_atomic_helper_commit_planes()
2956 if (drm_atomic_plane_enabling(old_plane_state, new_plane_state)) in drm_atomic_helper_commit_planes()
3027 struct drm_plane_state *new_plane_state = in drm_atomic_helper_commit_planes_on_crtc() local
3037 WARN_ON(new_plane_state->crtc && in drm_atomic_helper_commit_planes_on_crtc()
3038 new_plane_state->crtc != crtc); in drm_atomic_helper_commit_planes_on_crtc()
3040 disabling = drm_atomic_plane_disabling(old_plane_state, new_plane_state); in drm_atomic_helper_commit_planes_on_crtc()
3044 } else if (new_plane_state->crtc || disabling) { in drm_atomic_helper_commit_planes_on_crtc()
3048 if (drm_atomic_plane_enabling(old_plane_state, new_plane_state)) in drm_atomic_helper_commit_planes_on_crtc()
3177 struct drm_plane_state *old_plane_state, *new_plane_state; in drm_atomic_helper_swap_state() local
3256 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { in drm_atomic_helper_swap_state()
3260 new_plane_state->state = NULL; in drm_atomic_helper_swap_state()
3263 plane->state = new_plane_state; in drm_atomic_helper_swap_state()
3761 struct drm_plane_state *new_plane_state; in drm_atomic_helper_commit_duplicated_state() local
3769 for_each_new_plane_in_state(state, plane, new_plane_state, i) in drm_atomic_helper_commit_duplicated_state()