Lines Matching full:plane
4 * DRM universal plane helper functions
43 * This helper library contains helpers to implement primary plane support on
46 * plane together with the CRTC state this does not allow userspace to disable
47 * the primary plane itself. The default primary plane only expose XRBG8888 and
54 * The plane helpers share the function table structures with other helpers,
74 * Note: Once we change the plane hooks to more fine-grained locking we in get_connectors_for_crtc()
94 static int drm_plane_helper_check_update(struct drm_plane *plane, in drm_plane_helper_check_update() argument
107 .plane = plane, in drm_plane_helper_check_update()
143 * @plane: plane to update
144 * @crtc: the plane's new CRTC
145 * @fb: the plane's new framebuffer
156 * This helper validates the given parameters and updates the primary plane.
164 int drm_plane_helper_update_primary(struct drm_plane *plane, struct drm_crtc *crtc, in drm_plane_helper_update_primary() argument
191 struct drm_device *dev = plane->dev; in drm_plane_helper_update_primary()
199 ret = drm_plane_helper_check_update(plane, crtc, fb, in drm_plane_helper_update_primary()
210 * Primary plane isn't visible. Note that unless a driver in drm_plane_helper_update_primary()
214 return plane->funcs->disable_plane(plane, ctx); in drm_plane_helper_update_primary()
245 * @plane: plane to disable
249 * plane.
257 int drm_plane_helper_disable_primary(struct drm_plane *plane, in drm_plane_helper_disable_primary() argument
260 struct drm_device *dev = plane->dev; in drm_plane_helper_disable_primary()
269 * drm_plane_helper_destroy() - Helper for primary plane destruction
270 * @plane: plane to destroy
272 * Provides a default plane destroy handler for primary planes. This handler
273 * is called during CRTC destruction. We disable the primary plane, remove
274 * it from the DRM plane list, and deallocate the plane structure.
276 void drm_plane_helper_destroy(struct drm_plane *plane) in drm_plane_helper_destroy() argument
278 drm_plane_cleanup(plane); in drm_plane_helper_destroy()
279 kfree(plane); in drm_plane_helper_destroy()