Lines Matching full:layer
69 struct sun4i_layer *layer = plane_to_sun4i_layer(plane); in sun4i_backend_layer_atomic_disable() local
70 struct sun4i_backend *backend = layer->backend; in sun4i_backend_layer_atomic_disable()
72 sun4i_backend_layer_enable(backend, layer->id, false); in sun4i_backend_layer_atomic_disable()
89 struct sun4i_layer *layer = plane_to_sun4i_layer(plane); in sun4i_backend_layer_atomic_update() local
90 struct sun4i_backend *backend = layer->backend; in sun4i_backend_layer_atomic_update()
93 sun4i_backend_cleanup_layer(backend, layer->id); in sun4i_backend_layer_atomic_update()
101 sun4i_backend_update_layer_frontend(backend, layer->id, 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()
111 sun4i_backend_layer_enable(backend, layer->id, true); in sun4i_backend_layer_atomic_update()
117 struct sun4i_layer *layer = plane_to_sun4i_layer(plane); in sun4i_layer_format_mod_supported() local
119 if (IS_ERR_OR_NULL(layer->backend->frontend)) in sun4i_layer_format_mod_supported()
198 struct sun4i_layer *layer; in sun4i_layer_init_one() local
201 layer = devm_kzalloc(drm->dev, sizeof(*layer), GFP_KERNEL); in sun4i_layer_init_one()
202 if (!layer) in sun4i_layer_init_one()
205 layer->id = id; in sun4i_layer_init_one()
206 layer->backend = backend; in sun4i_layer_init_one()
215 ret = drm_universal_plane_init(drm, &layer->plane, 0, in sun4i_layer_init_one()
220 dev_err(drm->dev, "Couldn't initialize layer\n"); 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()
231 return layer; in sun4i_layer_init_one()
249 struct sun4i_layer *layer; in sun4i_layers_init() local
251 layer = sun4i_layer_init_one(drm, backend, type, i); in sun4i_layers_init()
252 if (IS_ERR(layer)) { in sun4i_layers_init()
255 return ERR_CAST(layer); in sun4i_layers_init()
258 planes[i] = &layer->plane; in sun4i_layers_init()