Lines Matching full:plane

45 static void mdp4_plane_set_scanout(struct drm_plane *plane,
47 static int mdp4_plane_mode_set(struct drm_plane *plane,
54 static struct mdp4_kms *get_kms(struct drm_plane *plane) in get_kms() argument
56 struct msm_drm_private *priv = plane->dev->dev_private; in get_kms()
60 static void mdp4_plane_destroy(struct drm_plane *plane) in mdp4_plane_destroy() argument
62 struct mdp4_plane *mdp4_plane = to_mdp4_plane(plane); in mdp4_plane_destroy()
64 drm_plane_cleanup(plane); in mdp4_plane_destroy()
70 static void mdp4_plane_install_properties(struct drm_plane *plane, in mdp4_plane_install_properties() argument
76 static int mdp4_plane_set_property(struct drm_plane *plane, in mdp4_plane_set_property() argument
93 static void mdp4_plane_cleanup_fb(struct drm_plane *plane, in mdp4_plane_cleanup_fb() argument
96 struct mdp4_plane *mdp4_plane = to_mdp4_plane(plane); in mdp4_plane_cleanup_fb()
97 struct mdp4_kms *mdp4_kms = get_kms(plane); in mdp4_plane_cleanup_fb()
109 static int mdp4_plane_atomic_check(struct drm_plane *plane, in mdp4_plane_atomic_check() argument
115 static void mdp4_plane_atomic_update(struct drm_plane *plane, in mdp4_plane_atomic_update() argument
119 plane); in mdp4_plane_atomic_update()
122 ret = mdp4_plane_mode_set(plane, in mdp4_plane_atomic_update()
139 static void mdp4_plane_set_scanout(struct drm_plane *plane, in mdp4_plane_set_scanout() argument
142 struct mdp4_plane *mdp4_plane = to_mdp4_plane(plane); in mdp4_plane_set_scanout()
143 struct mdp4_kms *mdp4_kms = get_kms(plane); in mdp4_plane_set_scanout()
194 static int mdp4_plane_mode_set(struct drm_plane *plane, in mdp4_plane_mode_set() argument
201 struct drm_device *dev = plane->dev; in mdp4_plane_mode_set()
202 struct mdp4_plane *mdp4_plane = to_mdp4_plane(plane); in mdp4_plane_mode_set()
203 struct mdp4_kms *mdp4_kms = get_kms(plane); in mdp4_plane_mode_set()
299 mdp4_plane_set_scanout(plane, fb); in mdp4_plane_mode_set()
346 enum mdp4_pipe mdp4_plane_pipe(struct drm_plane *plane) in mdp4_plane_pipe() argument
348 struct mdp4_plane *mdp4_plane = to_mdp4_plane(plane); in mdp4_plane_pipe()
358 /* initialize plane */
362 struct drm_plane *plane = NULL; in mdp4_plane_init() local
373 plane = &mdp4_plane->base; in mdp4_plane_init()
384 ret = drm_universal_plane_init(dev, plane, 0xff, &mdp4_plane_funcs, in mdp4_plane_init()
390 drm_plane_helper_add(plane, &mdp4_plane_helper_funcs); in mdp4_plane_init()
392 mdp4_plane_install_properties(plane, &plane->base); in mdp4_plane_init()
394 drm_plane_enable_fb_damage_clips(plane); in mdp4_plane_init()
396 return plane; in mdp4_plane_init()
399 if (plane) in mdp4_plane_init()
400 mdp4_plane_destroy(plane); in mdp4_plane_init()