Lines Matching refs:plane
52 static void mdp4_plane_set_scanout(struct drm_plane *plane,
54 static int mdp4_plane_mode_set(struct drm_plane *plane,
61 static struct mdp4_kms *get_kms(struct drm_plane *plane) in get_kms() argument
63 struct msm_drm_private *priv = plane->dev->dev_private; in get_kms()
67 static void mdp4_plane_destroy(struct drm_plane *plane) in mdp4_plane_destroy() argument
69 struct mdp4_plane *mdp4_plane = to_mdp4_plane(plane); in mdp4_plane_destroy()
71 drm_plane_helper_disable(plane); in mdp4_plane_destroy()
72 drm_plane_cleanup(plane); in mdp4_plane_destroy()
78 static void mdp4_plane_install_properties(struct drm_plane *plane, in mdp4_plane_install_properties() argument
84 int mdp4_plane_set_property(struct drm_plane *plane, in mdp4_plane_set_property() argument
101 static int mdp4_plane_prepare_fb(struct drm_plane *plane, in mdp4_plane_prepare_fb() argument
104 struct mdp4_plane *mdp4_plane = to_mdp4_plane(plane); in mdp4_plane_prepare_fb()
105 struct mdp4_kms *mdp4_kms = get_kms(plane); in mdp4_plane_prepare_fb()
115 static void mdp4_plane_cleanup_fb(struct drm_plane *plane, in mdp4_plane_cleanup_fb() argument
118 struct mdp4_plane *mdp4_plane = to_mdp4_plane(plane); in mdp4_plane_cleanup_fb()
119 struct mdp4_kms *mdp4_kms = get_kms(plane); in mdp4_plane_cleanup_fb()
130 static int mdp4_plane_atomic_check(struct drm_plane *plane, in mdp4_plane_atomic_check() argument
136 static void mdp4_plane_atomic_update(struct drm_plane *plane, in mdp4_plane_atomic_update() argument
139 struct drm_plane_state *state = plane->state; in mdp4_plane_atomic_update()
142 ret = mdp4_plane_mode_set(plane, in mdp4_plane_atomic_update()
159 static void mdp4_plane_set_scanout(struct drm_plane *plane, in mdp4_plane_set_scanout() argument
162 struct mdp4_plane *mdp4_plane = to_mdp4_plane(plane); in mdp4_plane_set_scanout()
163 struct mdp4_kms *mdp4_kms = get_kms(plane); in mdp4_plane_set_scanout()
183 plane->fb = fb; in mdp4_plane_set_scanout()
215 static int mdp4_plane_mode_set(struct drm_plane *plane, in mdp4_plane_mode_set() argument
222 struct drm_device *dev = plane->dev; in mdp4_plane_mode_set()
223 struct mdp4_plane *mdp4_plane = to_mdp4_plane(plane); in mdp4_plane_mode_set()
224 struct mdp4_kms *mdp4_kms = get_kms(plane); in mdp4_plane_mode_set()
320 mdp4_plane_set_scanout(plane, fb); in mdp4_plane_mode_set()
367 enum mdp4_pipe mdp4_plane_pipe(struct drm_plane *plane) in mdp4_plane_pipe() argument
369 struct mdp4_plane *mdp4_plane = to_mdp4_plane(plane); in mdp4_plane_pipe()
377 struct drm_plane *plane = NULL; in mdp4_plane_init() local
388 plane = &mdp4_plane->base; in mdp4_plane_init()
399 ret = drm_universal_plane_init(dev, plane, 0xff, &mdp4_plane_funcs, in mdp4_plane_init()
404 drm_plane_helper_add(plane, &mdp4_plane_helper_funcs); in mdp4_plane_init()
406 mdp4_plane_install_properties(plane, &plane->base); in mdp4_plane_init()
408 return plane; in mdp4_plane_init()
411 if (plane) in mdp4_plane_init()
412 mdp4_plane_destroy(plane); in mdp4_plane_init()