Lines Matching defs:plane
168 * drm_atomic_set_crtc_for_plane - set CRTC for plane
169 * @plane_state: the plane whose incoming state to update
170 * @crtc: CRTC to use for the plane
172 * Changing the assigned CRTC for a plane requires us to grab the lock and state
185 struct drm_plane *plane = plane_state->plane;
196 crtc_state->plane_mask &= ~drm_plane_mask(plane);
206 crtc_state->plane_mask |= drm_plane_mask(plane);
210 DRM_DEBUG_ATOMIC("Link [PLANE:%d:%s] state %p to [CRTC:%d:%s]\n",
211 plane->base.id, plane->name, plane_state,
214 DRM_DEBUG_ATOMIC("Link [PLANE:%d:%s] state %p to [NOCRTC]\n",
215 plane->base.id, plane->name, plane_state);
222 * drm_atomic_set_fb_for_plane - set framebuffer for plane
223 * @plane_state: atomic state object for the plane
224 * @fb: fb to use for the plane
226 * Changing the assigned framebuffer for a plane requires us to grab a reference
235 struct drm_plane *plane = plane_state->plane;
238 DRM_DEBUG_ATOMIC("Set [FB:%d] for [PLANE:%d:%s] state %p\n",
239 fb->base.id, plane->base.id, plane->name,
242 DRM_DEBUG_ATOMIC("Set [NOFB] for [PLANE:%d:%s] state %p\n",
243 plane->base.id, plane->name, plane_state);
250 * drm_atomic_set_fence_for_plane - set fence for plane
251 * @plane_state: atomic state object for the plane
252 * @fence: dma_fence to use for the plane
270 * driver allows obeys both implicit and explicit fences for plane updates, then
519 static int drm_atomic_plane_set_property(struct drm_plane *plane,
523 plane->dev;
566 } else if (property == plane->alpha_property) {
568 } else if (property == plane->blend_mode_property) {
570 } else if (property == plane->rotation_property) {
572 DRM_DEBUG_ATOMIC("[PLANE:%d:%s] bad rotation bitmask: 0x%"PRIx64"\n",
573 plane->base.id, plane->name, val);
577 } else if (property == plane->zpos_property) {
579 } else if (property == plane->color_encoding_property) {
581 } else if (property == plane->color_range_property) {
591 } else if (plane->funcs->atomic_set_property) {
592 return plane->funcs->atomic_set_property(plane, state,
595 DRM_DEBUG_ATOMIC("[PLANE:%d:%s] unknown property [PROP:%d:%s]]\n",
596 plane->base.id, plane->name,
605 drm_atomic_plane_get_property(struct drm_plane *plane,
609 struct drm_device *dev = plane->dev;
634 } else if (property == plane->alpha_property) {
636 } else if (property == plane->blend_mode_property) {
638 } else if (property == plane->rotation_property) {
640 } else if (property == plane->zpos_property) {
642 } else if (property == plane->color_encoding_property) {
644 } else if (property == plane->color_range_property) {
649 } else if (plane->funcs->atomic_get_property) {
650 return plane->funcs->atomic_get_property(plane, state, property, val);
882 struct drm_plane *plane = obj_to_plane(obj);
883 WARN_ON(!drm_modeset_is_locked(&plane->mutex));
884 ret = drm_atomic_plane_get_property(plane,
885 plane->state, property, val);
1010 struct drm_plane *plane = obj_to_plane(obj);
1013 plane_state = drm_atomic_get_plane_state(state, plane);
1019 ret = drm_atomic_plane_set_property(plane,
1039 * IN_FENCE_FD on each DRM Plane to send fences to the kernel and
1052 * the plane on the screen. The fence can be either a normal fence or a