Lines Matching defs:plane
269 static int vbox_primary_atomic_check(struct drm_plane *plane,
287 static void vbox_primary_atomic_update(struct drm_plane *plane,
290 struct drm_crtc *crtc = plane->state->crtc;
291 struct drm_framebuffer *fb = plane->state->fb;
297 plane->state->src_x >> 16,
298 plane->state->src_y >> 16);
302 clips = drm_plane_get_damage_clips(plane->state);
303 num_clips = drm_plane_get_damage_clips_count(plane->state);
331 static void vbox_primary_atomic_disable(struct drm_plane *plane,
336 /* vbox_do_modeset checks plane->state->fb and will disable if NULL */
342 static int vbox_cursor_atomic_check(struct drm_plane *plane,
392 static void vbox_cursor_atomic_update(struct drm_plane *plane,
396 container_of(plane->dev, struct vbox_private, ddev);
397 struct vbox_crtc *vbox_crtc = to_vbox_crtc(plane->state->crtc);
398 struct drm_framebuffer *fb = plane->state->fb;
400 u32 width = plane->state->crtc_w;
401 u32 height = plane->state->crtc_h;
446 static void vbox_cursor_atomic_disable(struct drm_plane *plane,
450 container_of(plane->dev, struct vbox_private, ddev);
520 struct drm_plane *plane;
539 plane = kzalloc(sizeof(*plane), GFP_KERNEL);
540 if (!plane)
543 err = drm_universal_plane_init(&vbox->ddev, plane, possible_crtcs,
549 drm_plane_helper_add(plane, helper_funcs);
551 return plane;
554 kfree(plane);