Lines Matching refs:plane

15 #include "plane.h"
17 static void tegra_plane_destroy(struct drm_plane *plane)
19 struct tegra_plane *p = to_tegra_plane(plane);
21 drm_plane_cleanup(plane);
25 static void tegra_plane_reset(struct drm_plane *plane)
27 struct tegra_plane *p = to_tegra_plane(plane);
31 if (plane->state)
32 __drm_atomic_helper_plane_destroy_state(plane->state);
34 kfree(plane->state);
35 plane->state = NULL;
39 plane->state = &state->base;
40 plane->state->plane = plane;
41 plane->state->zpos = p->index;
42 plane->state->normalized_zpos = p->index;
50 tegra_plane_atomic_duplicate_state(struct drm_plane *plane)
52 struct tegra_plane_state *state = to_tegra_plane_state(plane->state);
60 __drm_atomic_helper_plane_duplicate_state(plane, &copy->base);
79 static void tegra_plane_atomic_destroy_state(struct drm_plane *plane,
86 static bool tegra_plane_format_mod_supported(struct drm_plane *plane,
159 dev_err(dc->dev, "failed to map plane %u: %d\n", i, err);
193 int tegra_plane_prepare_fb(struct drm_plane *plane,
201 drm_gem_fb_prepare_fb(plane, state);
206 void tegra_plane_cleanup_fb(struct drm_plane *plane,
215 int tegra_plane_state_add(struct tegra_plane *plane,
227 /* Check plane state for visibility and calculate clipping bounds */
235 tegra->planes |= WIN_A_ACT_REQ << plane->index;
457 struct drm_plane *plane;
467 drm_for_each_plane(plane, tegra->base.dev) {
468 struct tegra_plane *p = to_tegra_plane(plane);
470 /* skip this plane and planes on different CRTCs */
475 plane);
483 static unsigned int tegra_plane_get_overlap_index(struct tegra_plane *plane,
488 WARN_ON(plane == other);
491 if (i == plane->index)
507 struct drm_plane *plane;
510 for_each_new_plane_in_state(state->base.state, plane, new, i) {
511 struct tegra_plane *p = to_tegra_plane(plane);
514 /* skip this plane and planes on different CRTCs */
531 * Missing framebuffer means that plane is disabled, in this
546 struct drm_plane *plane;
560 * transparency state for each plane.
562 drm_for_each_plane(plane, tegra->base.dev) {
563 struct tegra_plane *p = to_tegra_plane(plane);
569 new = drm_atomic_get_new_plane_state(state->base.state, plane);
574 * plane.