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