Lines Matching full:plane
19 static void sun4i_backend_layer_reset(struct drm_plane *plane) in sun4i_backend_layer_reset() argument
23 if (plane->state) { in sun4i_backend_layer_reset()
24 state = state_to_sun4i_layer_state(plane->state); in sun4i_backend_layer_reset()
29 plane->state = NULL; in sun4i_backend_layer_reset()
34 __drm_atomic_helper_plane_reset(plane, &state->state); in sun4i_backend_layer_reset()
38 sun4i_backend_layer_duplicate_state(struct drm_plane *plane) in sun4i_backend_layer_duplicate_state() argument
40 struct sun4i_layer_state *orig = state_to_sun4i_layer_state(plane->state); in sun4i_backend_layer_duplicate_state()
47 __drm_atomic_helper_plane_duplicate_state(plane, ©->state); in sun4i_backend_layer_duplicate_state()
53 static void sun4i_backend_layer_destroy_state(struct drm_plane *plane, in sun4i_backend_layer_destroy_state() argument
63 static void sun4i_backend_layer_atomic_disable(struct drm_plane *plane, in sun4i_backend_layer_atomic_disable() argument
67 plane); in sun4i_backend_layer_atomic_disable()
69 struct sun4i_layer *layer = plane_to_sun4i_layer(plane); in sun4i_backend_layer_atomic_disable()
83 static void sun4i_backend_layer_atomic_update(struct drm_plane *plane, in sun4i_backend_layer_atomic_update() argument
87 plane); in sun4i_backend_layer_atomic_update()
89 struct sun4i_layer *layer = plane_to_sun4i_layer(plane); in sun4i_backend_layer_atomic_update()
97 sun4i_frontend_update_coord(frontend, plane); in sun4i_backend_layer_atomic_update()
98 sun4i_frontend_update_buffer(frontend, plane); in sun4i_backend_layer_atomic_update()
99 sun4i_frontend_update_formats(frontend, plane, in sun4i_backend_layer_atomic_update()
105 sun4i_backend_update_layer_formats(backend, layer->id, plane); in sun4i_backend_layer_atomic_update()
106 sun4i_backend_update_layer_buffer(backend, layer->id, plane); in sun4i_backend_layer_atomic_update()
109 sun4i_backend_update_layer_coord(backend, layer->id, plane); in sun4i_backend_layer_atomic_update()
110 sun4i_backend_update_layer_zpos(backend, layer->id, plane); in sun4i_backend_layer_atomic_update()
114 static bool sun4i_layer_format_mod_supported(struct drm_plane *plane, in sun4i_layer_format_mod_supported() argument
117 struct sun4i_layer *layer = plane_to_sun4i_layer(plane); in sun4i_layer_format_mod_supported()
215 ret = drm_universal_plane_init(drm, &layer->plane, 0, in sun4i_layer_init_one()
224 drm_plane_helper_add(&layer->plane, in sun4i_layer_init_one()
227 drm_plane_create_alpha_property(&layer->plane); in sun4i_layer_init_one()
228 drm_plane_create_zpos_property(&layer->plane, layer->id, in sun4i_layer_init_one()
253 dev_err(drm->dev, "Couldn't initialize %s plane\n", in sun4i_layers_init()
258 planes[i] = &layer->plane; in sun4i_layers_init()