Lines Matching refs:plane
36 static void mdp4_plane_set_scanout(struct drm_plane *plane,
38 static int mdp4_plane_mode_set(struct drm_plane *plane,
45 static struct mdp4_kms *get_kms(struct drm_plane *plane) in get_kms() argument
47 struct msm_drm_private *priv = plane->dev->dev_private; in get_kms()
51 static void mdp4_plane_destroy(struct drm_plane *plane) in mdp4_plane_destroy() argument
53 struct mdp4_plane *mdp4_plane = to_mdp4_plane(plane); in mdp4_plane_destroy()
55 drm_plane_helper_disable(plane); in mdp4_plane_destroy()
56 drm_plane_cleanup(plane); in mdp4_plane_destroy()
62 void mdp4_plane_install_properties(struct drm_plane *plane, in mdp4_plane_install_properties() argument
68 int mdp4_plane_set_property(struct drm_plane *plane, in mdp4_plane_set_property() argument
85 static int mdp4_plane_prepare_fb(struct drm_plane *plane, in mdp4_plane_prepare_fb() argument
89 struct mdp4_plane *mdp4_plane = to_mdp4_plane(plane); in mdp4_plane_prepare_fb()
90 struct mdp4_kms *mdp4_kms = get_kms(plane); in mdp4_plane_prepare_fb()
96 static void mdp4_plane_cleanup_fb(struct drm_plane *plane, in mdp4_plane_cleanup_fb() argument
100 struct mdp4_plane *mdp4_plane = to_mdp4_plane(plane); in mdp4_plane_cleanup_fb()
101 struct mdp4_kms *mdp4_kms = get_kms(plane); in mdp4_plane_cleanup_fb()
108 static int mdp4_plane_atomic_check(struct drm_plane *plane, in mdp4_plane_atomic_check() argument
114 static void mdp4_plane_atomic_update(struct drm_plane *plane, in mdp4_plane_atomic_update() argument
117 struct drm_plane_state *state = plane->state; in mdp4_plane_atomic_update()
120 ret = mdp4_plane_mode_set(plane, in mdp4_plane_atomic_update()
137 static void mdp4_plane_set_scanout(struct drm_plane *plane, in mdp4_plane_set_scanout() argument
140 struct mdp4_plane *mdp4_plane = to_mdp4_plane(plane); in mdp4_plane_set_scanout()
141 struct mdp4_kms *mdp4_kms = get_kms(plane); in mdp4_plane_set_scanout()
161 plane->fb = fb; in mdp4_plane_set_scanout()
193 static int mdp4_plane_mode_set(struct drm_plane *plane, in mdp4_plane_mode_set() argument
200 struct drm_device *dev = plane->dev; in mdp4_plane_mode_set()
201 struct mdp4_plane *mdp4_plane = to_mdp4_plane(plane); in mdp4_plane_mode_set()
202 struct mdp4_kms *mdp4_kms = get_kms(plane); in mdp4_plane_mode_set()
295 mdp4_plane_set_scanout(plane, fb); in mdp4_plane_mode_set()
336 enum mdp4_pipe mdp4_plane_pipe(struct drm_plane *plane) in mdp4_plane_pipe() argument
338 struct mdp4_plane *mdp4_plane = to_mdp4_plane(plane); in mdp4_plane_pipe()
346 struct drm_plane *plane = NULL; in mdp4_plane_init() local
357 plane = &mdp4_plane->base; in mdp4_plane_init()
366 ret = drm_universal_plane_init(dev, plane, 0xff, &mdp4_plane_funcs, in mdp4_plane_init()
371 drm_plane_helper_add(plane, &mdp4_plane_helper_funcs); in mdp4_plane_init()
373 mdp4_plane_install_properties(plane, &plane->base); in mdp4_plane_init()
375 return plane; in mdp4_plane_init()
378 if (plane) in mdp4_plane_init()
379 mdp4_plane_destroy(plane); in mdp4_plane_init()