Lines Matching full:plane
44 * struct drm_plane_state - mutable plane state
53 /** @plane: backpointer to the plane */
54 struct drm_plane *plane; member
90 * Left position of visible portion of plane on crtc, signed dest
98 * Upper position of visible portion of plane on crtc, signed dest
103 /** @crtc_w: width of visible portion of plane on crtc */
104 /** @crtc_h: height of visible portion of plane on crtc */
108 * @src_x: left position of visible portion of plane within plane (in
113 * @src_y: upper position of visible portion of plane within plane (in
117 /** @src_w: width of visible portion of plane (in 16.16) */
118 /** @src_h: height of visible portion of plane (in 16.16) */
123 * Opacity of the plane with 0 as completely transparent and 0xffff as
132 * the current plane are composited with the background. Value can be
139 * Rotation of the plane. See drm_plane_create_rotation_property() for
146 * Priority of the given plane on crtc (optional).
151 * plane object IDs; the plane with a higher ID is stacked on top of a
152 * plane with a lower ID.
185 * Blob representing damage (area in plane framebuffer that changed
186 * since last plane update) as an array of &drm_mode_rect in framebuffer
187 * coodinates of the attached framebuffer. Note that unlike plane src,
198 * source coordinates of the plane (in 16.16).
208 * clipped destination coordinates of the plane.
220 * Visibility of the plane. This can be false even if fb!=NULL and
234 * and for async plane updates.
269 * struct drm_plane_funcs - driver plane control functions
275 * This is the legacy entry point to enable and configure the plane for
277 * plane, i.e. the passed-in crtc and fb paramters are never NULL.
281 * values). Devices that don't support subpixel plane coordinates can
298 int (*update_plane)(struct drm_plane *plane,
309 * This is the legacy entry point to disable the plane. The DRM core
321 int (*disable_plane)(struct drm_plane *plane,
327 * Clean up plane resources. This is only called at driver unload time
328 * through drm_mode_config_cleanup() since a plane cannot be hotplugged
331 void (*destroy)(struct drm_plane *plane);
336 * Reset plane hardware and software state to off. This function isn't
343 void (*reset)(struct drm_plane *plane);
349 * plane.
359 int (*set_property)(struct drm_plane *plane,
365 * Duplicate the current atomic state for this plane and return it.
393 struct drm_plane_state *(*atomic_duplicate_state)(struct drm_plane *plane);
403 void (*atomic_destroy_state)(struct drm_plane *plane,
443 * asks for properties attached to this plane). No other validation is
448 int (*atomic_set_property)(struct drm_plane *plane,
469 * properties attached to this plane).
471 int (*atomic_get_property)(struct drm_plane *plane,
479 * interfaces attached to the plane like debugfs interfaces.
488 int (*late_register)(struct drm_plane *plane);
494 * userspace interfaces attached to the plane from
499 void (*early_unregister)(struct drm_plane *plane);
517 * format/modifier combination is valid for the plane. This allows the
521 * If not present, then any modifier in the plane's modifier
522 * list is allowed with any of the plane's formats.
526 * True if the given modifier is valid for that format on the plane.
529 bool (*format_mod_supported)(struct drm_plane *plane, uint32_t format,
534 * enum drm_plane_type - uapi plane type enumeration
538 * uapi semantics for them. For userspace which is universal plane aware and
545 * wish to receive a universal plane list containing all plane types. See also
548 * In addition to setting each plane's type, drivers need to setup the
567 * A primary plane attached to a CRTC is the most likely to be able to
568 * light up the CRTC when no scaling/cropping is used and the plane
576 * A cursor plane attached to a CRTC is more likely to be able to be
587 * struct drm_plane - central DRM plane control structure
591 * the color conversion, see `Plane Composition Properties`_ for more details,
596 /** @dev: DRM device this plane belongs to */
614 * Protects modeset plane state, together with the &drm_crtc.mutex of
615 * CRTC this plane is linked to (when active, getting activated or
626 * @possible_crtcs: pipes this plane can be bound to constructed from
630 /** @format_types: array of formats supported by this plane */
636 * plane. Used by the drm_plane_init compatibility wrapper only.
640 /** @modifiers: array of modifiers supported by this plane */
671 /** @funcs: plane control functions */
674 /** @properties: property tracking for this plane */
677 /** @type: Type of plane, see &enum drm_plane_type for details. */
682 * index. It is invariant over the lifetime of the plane.
692 * Current atomic state for this plane.
695 * access the current plane state without taking locks. Either by going
706 * Optional alpha property for this plane. See
712 * Optional zpos property for this plane. See
718 * Optional rotation property for this plane. See
724 * Optional "pixel blend mode" enum property for this plane.
726 * describing how the pixels from the current plane are composited with
759 struct drm_plane *plane,
768 struct drm_plane *plane,
773 void drm_plane_cleanup(struct drm_plane *plane);
787 * drmm_universal_plane_alloc - Allocate and initialize an universal plane object
792 * @funcs: callbacks for the new plane
797 * @plane_type: type of plane (overlay, primary, cursor)
798 * @name: printf style format string for the plane name, or NULL for default name
800 * Allocates and initializes a plane object of type @type. Cleanup is
807 * Pointer to new plane, or ERR_PTR on failure.
818 * drm_plane_index - find the index of a registered plane
819 * @plane: plane to find index for
821 * Given a registered plane, return the index of that plane within a DRM
824 static inline unsigned int drm_plane_index(const struct drm_plane *plane) in drm_plane_index() argument
826 return plane->index; in drm_plane_index()
830 * drm_plane_mask - find the mask of a registered plane
831 * @plane: plane to find mask for
833 static inline u32 drm_plane_mask(const struct drm_plane *plane) in drm_plane_mask() argument
835 return 1 << drm_plane_index(plane); in drm_plane_mask()
839 void drm_plane_force_disable(struct drm_plane *plane);
841 int drm_mode_plane_set_obj_prop(struct drm_plane *plane,
849 * @id: plane id
851 * Returns the plane with @id, NULL if it doesn't exist. Simple wrapper around
865 * @plane: the loop cursor
867 * @plane_mask: bitmask of plane indices
871 #define drm_for_each_plane_mask(plane, dev, plane_mask) \ argument
872 list_for_each_entry((plane), &(dev)->mode_config.plane_list, head) \
873 for_each_if ((plane_mask) & drm_plane_mask(plane))
877 * @plane: the loop cursor
882 * universal plane aware. See also &enum drm_plane_type.
884 #define drm_for_each_legacy_plane(plane, dev) \ argument
885 list_for_each_entry(plane, &(dev)->mode_config.plane_list, head) \
886 for_each_if (plane->type == DRM_PLANE_TYPE_OVERLAY)
890 * @plane: the loop cursor
895 #define drm_for_each_plane(plane, dev) \ argument
896 list_for_each_entry(plane, &(dev)->mode_config.plane_list, head)
901 void drm_plane_enable_fb_damage_clips(struct drm_plane *plane);
907 int drm_plane_create_scaling_filter_property(struct drm_plane *plane,