Lines Matching full:plane
77 struct drm_plane *plane = NULL; in rzg2l_du_vsp_get_drm_plane() local
79 drm_for_each_plane(plane, &rcdu->ddev) { in rzg2l_du_vsp_get_drm_plane()
80 struct rzg2l_du_vsp_plane *vsp_plane = to_rzg2l_vsp_plane(plane); in rzg2l_du_vsp_get_drm_plane()
86 return plane ? plane : ERR_PTR(-EINVAL); in rzg2l_du_vsp_get_drm_plane()
117 static void rzg2l_du_vsp_plane_setup(struct rzg2l_du_vsp_plane *plane) in rzg2l_du_vsp_plane_setup() argument
120 to_rzg2l_vsp_plane_state(plane->plane.state); in rzg2l_du_vsp_plane_setup()
122 struct drm_framebuffer *fb = plane->plane.state->fb; in rzg2l_du_vsp_plane_setup()
171 vsp1_du_atomic_update(plane->vsp->vsp, crtc->vsp_pipe, in rzg2l_du_vsp_plane_setup()
172 plane->index, &cfg); in rzg2l_du_vsp_plane_setup()
175 static int __rzg2l_du_vsp_plane_atomic_check(struct drm_plane *plane, in __rzg2l_du_vsp_plane_atomic_check() argument
214 static int rzg2l_du_vsp_plane_atomic_check(struct drm_plane *plane, in rzg2l_du_vsp_plane_atomic_check() argument
218 plane); in rzg2l_du_vsp_plane_atomic_check()
221 return __rzg2l_du_vsp_plane_atomic_check(plane, new_plane_state, &rstate->format); in rzg2l_du_vsp_plane_atomic_check()
224 static void rzg2l_du_vsp_plane_atomic_update(struct drm_plane *plane, in rzg2l_du_vsp_plane_atomic_update() argument
227 struct drm_plane_state *old_state = drm_atomic_get_old_plane_state(state, plane); in rzg2l_du_vsp_plane_atomic_update()
228 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, plane); in rzg2l_du_vsp_plane_atomic_update()
229 struct rzg2l_du_vsp_plane *rplane = to_rzg2l_vsp_plane(plane); in rzg2l_du_vsp_plane_atomic_update()
245 rzg2l_du_vsp_plane_atomic_duplicate_state(struct drm_plane *plane) in rzg2l_du_vsp_plane_atomic_duplicate_state() argument
249 if (WARN_ON(!plane->state)) in rzg2l_du_vsp_plane_atomic_duplicate_state()
256 __drm_atomic_helper_plane_duplicate_state(plane, ©->state); in rzg2l_du_vsp_plane_atomic_duplicate_state()
261 static void rzg2l_du_vsp_plane_atomic_destroy_state(struct drm_plane *plane, in rzg2l_du_vsp_plane_atomic_destroy_state() argument
268 static void rzg2l_du_vsp_plane_reset(struct drm_plane *plane) in rzg2l_du_vsp_plane_reset() argument
272 if (plane->state) { in rzg2l_du_vsp_plane_reset()
273 rzg2l_du_vsp_plane_atomic_destroy_state(plane, plane->state); in rzg2l_du_vsp_plane_reset()
274 plane->state = NULL; in rzg2l_du_vsp_plane_reset()
281 __drm_atomic_helper_plane_reset(plane, &state->state); in rzg2l_du_vsp_plane_reset()
328 struct rzg2l_du_vsp_plane *plane; in rzg2l_du_vsp_init() local
330 plane = drmm_universal_plane_alloc(&rcdu->ddev, struct rzg2l_du_vsp_plane, in rzg2l_du_vsp_init()
331 plane, crtcs, &rzg2l_du_vsp_plane_funcs, in rzg2l_du_vsp_init()
335 if (IS_ERR(plane)) in rzg2l_du_vsp_init()
336 return PTR_ERR(plane); in rzg2l_du_vsp_init()
338 plane->vsp = vsp; in rzg2l_du_vsp_init()
339 plane->index = i; in rzg2l_du_vsp_init()
341 drm_plane_helper_add(&plane->plane, in rzg2l_du_vsp_init()