Lines Matching refs:plane
47 static void mdp4_plane_set_scanout(struct drm_plane *plane,
49 static int mdp4_plane_mode_set(struct drm_plane *plane,
56 static struct mdp4_kms *get_kms(struct drm_plane *plane) in get_kms() argument
58 struct msm_drm_private *priv = plane->dev->dev_private; in get_kms()
62 static void mdp4_plane_destroy(struct drm_plane *plane) in mdp4_plane_destroy() argument
64 struct mdp4_plane *mdp4_plane = to_mdp4_plane(plane); in mdp4_plane_destroy()
66 drm_plane_cleanup(plane); in mdp4_plane_destroy()
72 static void mdp4_plane_install_properties(struct drm_plane *plane, in mdp4_plane_install_properties() argument
78 static int mdp4_plane_set_property(struct drm_plane *plane, in mdp4_plane_set_property() argument
95 static int mdp4_plane_prepare_fb(struct drm_plane *plane, in mdp4_plane_prepare_fb() argument
98 struct msm_drm_private *priv = plane->dev->dev_private; in mdp4_plane_prepare_fb()
104 drm_gem_plane_helper_prepare_fb(plane, new_state); in mdp4_plane_prepare_fb()
109 static void mdp4_plane_cleanup_fb(struct drm_plane *plane, in mdp4_plane_cleanup_fb() argument
112 struct mdp4_plane *mdp4_plane = to_mdp4_plane(plane); in mdp4_plane_cleanup_fb()
113 struct mdp4_kms *mdp4_kms = get_kms(plane); in mdp4_plane_cleanup_fb()
125 static int mdp4_plane_atomic_check(struct drm_plane *plane, in mdp4_plane_atomic_check() argument
131 static void mdp4_plane_atomic_update(struct drm_plane *plane, in mdp4_plane_atomic_update() argument
135 plane); in mdp4_plane_atomic_update()
138 ret = mdp4_plane_mode_set(plane, in mdp4_plane_atomic_update()
155 static void mdp4_plane_set_scanout(struct drm_plane *plane, in mdp4_plane_set_scanout() argument
158 struct mdp4_plane *mdp4_plane = to_mdp4_plane(plane); in mdp4_plane_set_scanout()
159 struct mdp4_kms *mdp4_kms = get_kms(plane); in mdp4_plane_set_scanout()
210 static int mdp4_plane_mode_set(struct drm_plane *plane, in mdp4_plane_mode_set() argument
217 struct drm_device *dev = plane->dev; in mdp4_plane_mode_set()
218 struct mdp4_plane *mdp4_plane = to_mdp4_plane(plane); in mdp4_plane_mode_set()
219 struct mdp4_kms *mdp4_kms = get_kms(plane); in mdp4_plane_mode_set()
315 mdp4_plane_set_scanout(plane, fb); in mdp4_plane_mode_set()
362 enum mdp4_pipe mdp4_plane_pipe(struct drm_plane *plane) in mdp4_plane_pipe() argument
364 struct mdp4_plane *mdp4_plane = to_mdp4_plane(plane); in mdp4_plane_pipe()
378 struct drm_plane *plane = NULL; in mdp4_plane_init() local
389 plane = &mdp4_plane->base; in mdp4_plane_init()
400 ret = drm_universal_plane_init(dev, plane, 0xff, &mdp4_plane_funcs, in mdp4_plane_init()
406 drm_plane_helper_add(plane, &mdp4_plane_helper_funcs); in mdp4_plane_init()
408 mdp4_plane_install_properties(plane, &plane->base); in mdp4_plane_init()
410 drm_plane_enable_fb_damage_clips(plane); in mdp4_plane_init()
412 return plane; in mdp4_plane_init()
415 if (plane) in mdp4_plane_init()
416 mdp4_plane_destroy(plane); in mdp4_plane_init()