Home
last modified time | relevance | path

Searched refs:new_plane_state (Results 1 – 15 of 15) sorted by relevance

/Linux-v5.4/drivers/gpu/drm/i915/display/
Dintel_atomic_plane.c144 struct intel_plane_state *new_plane_state) in intel_plane_atomic_check_with_state() argument
146 struct intel_plane *plane = to_intel_plane(new_plane_state->base.plane); in intel_plane_atomic_check_with_state()
153 new_plane_state->base.visible = false; in intel_plane_atomic_check_with_state()
155 if (!new_plane_state->base.crtc && !old_plane_state->base.crtc) in intel_plane_atomic_check_with_state()
158 ret = plane->check_plane(new_crtc_state, new_plane_state); in intel_plane_atomic_check_with_state()
163 if (new_plane_state->base.visible) in intel_plane_atomic_check_with_state()
166 if (new_plane_state->base.visible && in intel_plane_atomic_check_with_state()
167 is_planar_yuv_format(new_plane_state->base.fb->format->format)) in intel_plane_atomic_check_with_state()
170 if (new_plane_state->base.visible && in intel_plane_atomic_check_with_state()
171 new_plane_state->base.fb->format->format == DRM_FORMAT_C8) in intel_plane_atomic_check_with_state()
[all …]
Dintel_display.h380 #define for_each_new_intel_plane_in_state(__state, plane, new_plane_state, __i) \ argument
384 (new_plane_state) = to_intel_plane_state((__state)->base.planes[__i].new_state), 1); \
396 #define for_each_oldnew_intel_plane_in_state(__state, plane, old_plane_state, new_plane_state, __i)… argument
401 (new_plane_state) = to_intel_plane_state((__state)->base.planes[__i].new_state), 1); \
Dintel_display.c13735 struct intel_plane_state *new_plane_state = in intel_update_crtc() local
13759 else if (new_plane_state) in intel_update_crtc()
13760 intel_fbc_enable(crtc, new_crtc_state, new_plane_state); in intel_update_crtc()
14140 struct intel_plane_state *old_plane_state, *new_plane_state; in intel_atomic_track_fbs() local
14145 new_plane_state, i) in intel_atomic_track_fbs()
14147 to_intel_frontbuffer(new_plane_state->base.fb), in intel_atomic_track_fbs()
14695 struct drm_plane_state *old_plane_state, *new_plane_state; in intel_legacy_cursor_update() local
14733 new_plane_state = intel_plane_duplicate_state(plane); in intel_legacy_cursor_update()
14734 if (!new_plane_state) in intel_legacy_cursor_update()
14743 drm_atomic_set_fb_for_plane(new_plane_state, fb); in intel_legacy_cursor_update()
[all …]
/Linux-v5.4/drivers/gpu/drm/rcar-du/
Drcar_du_plane.c145 struct rcar_du_plane_state *new_plane_state; in rcar_du_atomic_check_planes() local
151 new_plane_state = to_rcar_plane_state(new_drm_plane_state); in rcar_du_atomic_check_planes()
161 if (!new_plane_state->format) { in rcar_du_atomic_check_planes()
166 new_plane_state->hwindex = -1; 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()
182 new_plane_state->hwindex = -1; in rcar_du_atomic_check_planes()
208 struct rcar_du_plane_state *new_plane_state; in rcar_du_atomic_check_planes() local
231 new_plane_state = to_rcar_plane_state(s); in rcar_du_atomic_check_planes()
232 used_planes |= rcar_du_plane_hwmask(new_plane_state); in rcar_du_atomic_check_planes()
238 new_plane_state->format ? in rcar_du_atomic_check_planes()
[all …]
/Linux-v5.4/drivers/gpu/drm/
Ddrm_atomic.c512 const struct drm_plane_state *new_plane_state) in plane_switching_crtc() argument
514 if (!old_plane_state->crtc || !new_plane_state->crtc) in plane_switching_crtc()
517 if (old_plane_state->crtc == new_plane_state->crtc) in plane_switching_crtc()
539 const struct drm_plane_state *new_plane_state) in drm_atomic_plane_check() argument
541 struct drm_plane *plane = new_plane_state->plane; in drm_atomic_plane_check()
542 struct drm_crtc *crtc = new_plane_state->crtc; in drm_atomic_plane_check()
543 const struct drm_framebuffer *fb = new_plane_state->fb; in drm_atomic_plane_check()
586 if (new_plane_state->crtc_w > INT_MAX || in drm_atomic_plane_check()
587 new_plane_state->crtc_x > INT_MAX - (int32_t) new_plane_state->crtc_w || in drm_atomic_plane_check()
588 new_plane_state->crtc_h > INT_MAX || in drm_atomic_plane_check()
[all …]
Ddrm_atomic_helper.c865 struct drm_plane_state *new_plane_state, *old_plane_state; in drm_atomic_helper_check_planes() local
868 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { in drm_atomic_helper_check_planes()
875 drm_atomic_helper_plane_changed(state, old_plane_state, new_plane_state, plane); in drm_atomic_helper_check_planes()
877 drm_atomic_helper_check_plane_damage(state, new_plane_state); in drm_atomic_helper_check_planes()
882 ret = funcs->atomic_check(plane, new_plane_state); in drm_atomic_helper_check_planes()
1152 struct drm_plane_state *new_plane_state; in drm_atomic_helper_update_legacy_modeset_state() local
1157 new_plane_state = in drm_atomic_helper_update_legacy_modeset_state()
1160 if (new_plane_state && new_plane_state->crtc == crtc) { in drm_atomic_helper_update_legacy_modeset_state()
1161 crtc->x = new_plane_state->src_x >> 16; in drm_atomic_helper_update_legacy_modeset_state()
1162 crtc->y = new_plane_state->src_y >> 16; in drm_atomic_helper_update_legacy_modeset_state()
[all …]
Ddrm_blend.c497 struct drm_plane_state *old_plane_state, *new_plane_state; in drm_atomic_normalize_zpos() local
500 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { in drm_atomic_normalize_zpos()
501 crtc = new_plane_state->crtc; in drm_atomic_normalize_zpos()
504 if (old_plane_state->zpos != new_plane_state->zpos) { in drm_atomic_normalize_zpos()
/Linux-v5.4/include/drm/
Ddrm_atomic_helper.h214 struct drm_plane_state *new_plane_state) in drm_atomic_plane_disabling() argument
221 WARN_ON((new_plane_state->crtc == NULL && new_plane_state->fb != NULL) || in drm_atomic_plane_disabling()
222 (new_plane_state->crtc != NULL && new_plane_state->fb == NULL)); in drm_atomic_plane_disabling()
224 return old_plane_state->crtc && !new_plane_state->crtc; in drm_atomic_plane_disabling()
Ddrm_atomic.h810 #define for_each_oldnew_plane_in_state(__state, plane, old_plane_state, new_plane_state, __i) \ argument
817 (new_plane_state) = (__state)->planes[__i].new_state, 1))
832 #define for_each_oldnew_plane_in_state_reverse(__state, plane, old_plane_state, new_plane_state, __… argument
839 (new_plane_state) = (__state)->planes[__i].new_state, 1))
870 #define for_each_new_plane_in_state(__state, plane, new_plane_state, __i) \ argument
876 (new_plane_state) = (__state)->planes[__i].new_state, 1))
/Linux-v5.4/drivers/gpu/drm/vc4/
Dvc4_kms.c411 struct drm_plane_state *old_plane_state, *new_plane_state; in vc4_load_tracker_atomic_check() local
425 new_plane_state, i) { in vc4_load_tracker_atomic_check()
434 if (new_plane_state->fb && new_plane_state->crtc) { in vc4_load_tracker_atomic_check()
435 vc4_plane_state = to_vc4_plane_state(new_plane_state); in vc4_load_tracker_atomic_check()
/Linux-v5.4/drivers/gpu/drm/imx/
Dimx-drm-core.c86 struct drm_plane_state *old_plane_state, *new_plane_state; in imx_drm_atomic_commit_tail() local
98 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { in imx_drm_atomic_commit_tail()
99 if (drm_atomic_plane_disabling(old_plane_state, new_plane_state)) in imx_drm_atomic_commit_tail()
/Linux-v5.4/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm.c1170 struct drm_plane_state *new_plane_state; in dm_resume() local
1245 for_each_new_plane_in_state(dm->cached_state, plane, new_plane_state, i) { in dm_resume()
1246 dm_new_plane_state = to_dm_plane_state(new_plane_state); in dm_resume()
4289 struct drm_plane_state *new_plane_state; in count_crtc_active_planes() local
4295 new_plane_state = drm_atomic_get_new_plane_state(state, plane); in count_crtc_active_planes()
4297 if (!new_plane_state) { in count_crtc_active_planes()
4308 num_active += (new_plane_state->fb != NULL); in count_crtc_active_planes()
4592 struct drm_plane_state *new_plane_state) in dm_plane_atomic_async_check() argument
5630 struct drm_plane_state *old_plane_state, *new_plane_state; in amdgpu_dm_commit_cursors() local
5638 new_plane_state, i) in amdgpu_dm_commit_cursors()
[all …]
/Linux-v5.4/drivers/gpu/drm/nouveau/dispnv50/
Ddisp.c1791 struct drm_plane_state *new_plane_state; in nv50_disp_atomic_commit_wndw() local
1795 for_each_new_plane_in_state(state, plane, new_plane_state, i) { in nv50_disp_atomic_commit_wndw()
1810 struct drm_plane_state *new_plane_state; in nv50_disp_atomic_commit_tail() local
1847 for_each_new_plane_in_state(state, plane, new_plane_state, i) { in nv50_disp_atomic_commit_tail()
1848 struct nv50_wndw_atom *asyw = nv50_wndw_atom(new_plane_state); in nv50_disp_atomic_commit_tail()
1934 for_each_new_plane_in_state(state, plane, new_plane_state, i) { in nv50_disp_atomic_commit_tail()
1935 struct nv50_wndw_atom *asyw = nv50_wndw_atom(new_plane_state); in nv50_disp_atomic_commit_tail()
1964 for_each_new_plane_in_state(state, plane, new_plane_state, i) { in nv50_disp_atomic_commit_tail()
1965 struct nv50_wndw_atom *asyw = nv50_wndw_atom(new_plane_state); in nv50_disp_atomic_commit_tail()
2010 struct drm_plane_state *new_plane_state; in nv50_disp_atomic_commit() local
[all …]
/Linux-v5.4/drivers/gpu/drm/rockchip/
Drockchip_drm_vop.c1198 struct drm_plane_state *old_plane_state, *new_plane_state; in vop_crtc_atomic_flush() local
1230 new_plane_state, i) { in vop_crtc_atomic_flush()
1234 if (old_plane_state->fb == new_plane_state->fb) in vop_crtc_atomic_flush()
/Linux-v5.4/drivers/gpu/drm/i915/
Dintel_pm.c1342 const struct intel_plane_state *new_plane_state; in g4x_compute_pipe_wm() local
1350 new_plane_state, i) { in g4x_compute_pipe_wm()
1351 if (new_plane_state->base.crtc != &crtc->base && in g4x_compute_pipe_wm()
1355 if (g4x_raw_plane_wm_compute(crtc_state, new_plane_state)) in g4x_compute_pipe_wm()
1863 const struct intel_plane_state *new_plane_state; in vlv_compute_pipe_wm() local
1871 new_plane_state, i) { in vlv_compute_pipe_wm()
1872 if (new_plane_state->base.crtc != &crtc->base && in vlv_compute_pipe_wm()
1876 if (vlv_raw_plane_wm_compute(crtc_state, new_plane_state)) in vlv_compute_pipe_wm()