Lines Matching refs:new_plane_state
818 struct drm_plane_state *new_plane_state, *old_plane_state; in drm_atomic_helper_check_planes() local
821 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { in drm_atomic_helper_check_planes()
828 drm_atomic_helper_plane_changed(state, old_plane_state, new_plane_state, plane); in drm_atomic_helper_check_planes()
833 ret = funcs->atomic_check(plane, new_plane_state); in drm_atomic_helper_check_planes()
1071 struct drm_plane_state *new_plane_state; in drm_atomic_helper_update_legacy_modeset_state() local
1076 new_plane_state = in drm_atomic_helper_update_legacy_modeset_state()
1079 if (new_plane_state && new_plane_state->crtc == crtc) { in drm_atomic_helper_update_legacy_modeset_state()
1080 crtc->x = new_plane_state->src_x >> 16; in drm_atomic_helper_update_legacy_modeset_state()
1081 crtc->y = new_plane_state->src_y >> 16; in drm_atomic_helper_update_legacy_modeset_state()
1307 struct drm_plane_state *new_plane_state; in drm_atomic_helper_wait_for_fences() local
1310 for_each_new_plane_in_state(state, plane, new_plane_state, i) { in drm_atomic_helper_wait_for_fences()
1311 if (!new_plane_state->fence) in drm_atomic_helper_wait_for_fences()
1314 WARN_ON(!new_plane_state->fb); in drm_atomic_helper_wait_for_fences()
1321 ret = dma_fence_wait(new_plane_state->fence, pre_swap); in drm_atomic_helper_wait_for_fences()
1325 dma_fence_put(new_plane_state->fence); in drm_atomic_helper_wait_for_fences()
1326 new_plane_state->fence = NULL; in drm_atomic_helper_wait_for_fences()
1544 struct drm_plane_state *new_plane_state = NULL; in drm_atomic_helper_async_check() local
1553 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) in drm_atomic_helper_async_check()
1560 if (!new_plane_state->crtc || in drm_atomic_helper_async_check()
1561 old_plane_state->crtc != new_plane_state->crtc) in drm_atomic_helper_async_check()
1568 if (new_plane_state->fence) in drm_atomic_helper_async_check()
1580 return funcs->atomic_async_check(plane, new_plane_state); in drm_atomic_helper_async_check()
1893 struct drm_plane_state *old_plane_state, *new_plane_state; in drm_atomic_helper_setup_commit() local
1958 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { in drm_atomic_helper_setup_commit()
1966 commit = crtc_or_fake_commit(state, new_plane_state->crtc ?: old_plane_state->crtc); in drm_atomic_helper_setup_commit()
1970 new_plane_state->commit = drm_crtc_commit_get(commit); in drm_atomic_helper_setup_commit()
2207 struct drm_plane_state *new_plane_state; in drm_atomic_helper_prepare_planes() local
2210 for_each_new_plane_in_state(state, plane, new_plane_state, i) { in drm_atomic_helper_prepare_planes()
2216 ret = funcs->prepare_fb(plane, new_plane_state); in drm_atomic_helper_prepare_planes()
2225 for_each_new_plane_in_state(state, plane, new_plane_state, j) { in drm_atomic_helper_prepare_planes()
2234 funcs->cleanup_fb(plane, new_plane_state); in drm_atomic_helper_prepare_planes()
2294 struct drm_plane_state *old_plane_state, *new_plane_state; in drm_atomic_helper_commit_planes() local
2313 for_each_oldnew_plane_in_state(old_state, plane, old_plane_state, new_plane_state, i) { in drm_atomic_helper_commit_planes()
2323 new_plane_state); in drm_atomic_helper_commit_planes()
2333 if (!disabling && !plane_crtc_active(new_plane_state)) in drm_atomic_helper_commit_planes()
2352 } else if (new_plane_state->crtc || disabling) { in drm_atomic_helper_commit_planes()
2411 struct drm_plane_state *new_plane_state = in drm_atomic_helper_commit_planes_on_crtc() local
2420 WARN_ON(new_plane_state->crtc && in drm_atomic_helper_commit_planes_on_crtc()
2421 new_plane_state->crtc != crtc); in drm_atomic_helper_commit_planes_on_crtc()
2423 if (drm_atomic_plane_disabling(old_plane_state, new_plane_state) && in drm_atomic_helper_commit_planes_on_crtc()
2426 else if (new_plane_state->crtc || in drm_atomic_helper_commit_planes_on_crtc()
2427 drm_atomic_plane_disabling(old_plane_state, new_plane_state)) in drm_atomic_helper_commit_planes_on_crtc()
2497 struct drm_plane_state *old_plane_state, *new_plane_state; in drm_atomic_helper_cleanup_planes() local
2500 for_each_oldnew_plane_in_state(old_state, plane, old_plane_state, new_plane_state, i) { in drm_atomic_helper_cleanup_planes()
2509 plane_state = new_plane_state; in drm_atomic_helper_cleanup_planes()
2565 struct drm_plane_state *old_plane_state, *new_plane_state; in drm_atomic_helper_swap_state() local
2643 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { in drm_atomic_helper_swap_state()
2647 new_plane_state->state = NULL; in drm_atomic_helper_swap_state()
2650 plane->state = new_plane_state; in drm_atomic_helper_swap_state()
3194 struct drm_plane_state *new_plane_state; in drm_atomic_helper_commit_duplicated_state() local
3202 for_each_new_plane_in_state(state, plane, new_plane_state, i) in drm_atomic_helper_commit_duplicated_state()