Lines Matching refs:plane
280 void vmw_du_cursor_plane_destroy(struct drm_plane *plane)
282 vmw_cursor_update_position(plane->dev->dev_private, false, 0, 0);
284 drm_plane_cleanup(plane);
288 void vmw_du_primary_plane_destroy(struct drm_plane *plane)
290 drm_plane_cleanup(plane);
299 * @vps: plane state associated with the display surface
323 * @plane: display plane
331 vmw_du_plane_cleanup_fb(struct drm_plane *plane,
343 * @plane: display plane
344 * @new_state: info on the new plane state, including the FB
349 vmw_du_cursor_plane_prepare_fb(struct drm_plane *plane,
377 vmw_du_cursor_plane_atomic_update(struct drm_plane *plane,
380 struct drm_crtc *crtc = plane->state->crtc ?: old_state->crtc;
383 struct vmw_plane_state *vps = vmw_plane_state_to_vps(plane->state);
391 if (plane->state->fb) {
392 hotspot_x += plane->state->fb->hot_x;
393 hotspot_y += plane->state->fb->hot_y;
408 plane->state->crtc_w,
409 plane->state->crtc_h,
417 du->cursor_x = plane->state->crtc_x + du->set_gui_x;
418 du->cursor_y = plane->state->crtc_y + du->set_gui_y;
435 * @plane: display plane
436 * @state: info on the new plane state, including the FB
444 int vmw_du_primary_plane_atomic_check(struct drm_plane *plane,
475 * @plane: cursor plane
476 * @state: info on the new plane state
483 int vmw_du_cursor_plane_atomic_check(struct drm_plane *plane,
533 /* We always want to have an active plane with an active CRTC */
643 * specified plane.
654 * vmw_du_plane_duplicate_state - duplicate plane state
655 * @plane: drm plane
657 * Allocates and returns a copy of the plane state (both common and
658 * vmw-specific) for the specified plane.
660 * Returns: The newly allocated plane state, or NULL on failure.
663 vmw_du_plane_duplicate_state(struct drm_plane *plane)
668 vps = kmemdup(plane->state, sizeof(*vps), GFP_KERNEL);
685 __drm_atomic_helper_plane_duplicate_state(plane, state);
692 * vmw_du_plane_reset - creates a blank vmw plane state
693 * @plane: drm plane
695 * Resets the atomic state for @plane by freeing the state pointer (which might
698 void vmw_du_plane_reset(struct drm_plane *plane)
703 if (plane->state)
704 vmw_du_plane_destroy_state(plane, plane->state);
713 __drm_atomic_helper_plane_reset(plane, &vps->base);
718 * vmw_du_plane_destroy_state - destroy plane state
719 * @plane: DRM plane
722 * Destroys the plane state (both common and vmw-specific) for the
723 * specified plane.
726 vmw_du_plane_destroy_state(struct drm_plane *plane,
739 drm_atomic_helper_plane_destroy_state(plane, state);
810 * specified plane.
1571 * It also means we don't need to take the plane mutex.
2370 struct drm_plane *plane = crtc->primary;
2372 if (plane->state->fb == &framebuffer->base)
2696 * vmw_du_helper_plane_update - Helper to do plane update on a display unit.
2699 * Call this helper after setting callbacks in &vmw_du_update_plane to do plane
2706 struct drm_plane_state *state = update->plane->state;
2721 * Iterate in advance to check if really need plane update and find the
2722 * number of clips that actually are in plane src for fifo allocation.