Lines Matching refs:layer
235 struct sun8i_ui_layer *layer = plane_to_sun8i_ui_layer(plane); in sun8i_ui_layer_atomic_check() local
251 if (layer->mixer->cfg->scaler_mask & BIT(layer->channel)) { in sun8i_ui_layer_atomic_check()
267 struct sun8i_ui_layer *layer = plane_to_sun8i_ui_layer(plane); in sun8i_ui_layer_atomic_disable() local
269 struct sun8i_mixer *mixer = layer->mixer; in sun8i_ui_layer_atomic_disable()
271 sun8i_ui_layer_enable(mixer, layer->channel, layer->overlay, false, 0, in sun8i_ui_layer_atomic_disable()
282 struct sun8i_ui_layer *layer = plane_to_sun8i_ui_layer(plane); in sun8i_ui_layer_atomic_update() local
285 struct sun8i_mixer *mixer = layer->mixer; in sun8i_ui_layer_atomic_update()
288 sun8i_ui_layer_enable(mixer, layer->channel, in sun8i_ui_layer_atomic_update()
289 layer->overlay, false, 0, old_zpos); in sun8i_ui_layer_atomic_update()
293 sun8i_ui_layer_update_coord(mixer, layer->channel, in sun8i_ui_layer_atomic_update()
294 layer->overlay, plane, zpos); in sun8i_ui_layer_atomic_update()
295 sun8i_ui_layer_update_alpha(mixer, layer->channel, in sun8i_ui_layer_atomic_update()
296 layer->overlay, plane); in sun8i_ui_layer_atomic_update()
297 sun8i_ui_layer_update_formats(mixer, layer->channel, in sun8i_ui_layer_atomic_update()
298 layer->overlay, plane); in sun8i_ui_layer_atomic_update()
299 sun8i_ui_layer_update_buffer(mixer, layer->channel, in sun8i_ui_layer_atomic_update()
300 layer->overlay, plane); in sun8i_ui_layer_atomic_update()
301 sun8i_ui_layer_enable(mixer, layer->channel, layer->overlay, in sun8i_ui_layer_atomic_update()
354 struct sun8i_ui_layer *layer; in sun8i_ui_layer_init_one() local
358 layer = devm_kzalloc(drm->dev, sizeof(*layer), GFP_KERNEL); in sun8i_ui_layer_init_one()
359 if (!layer) in sun8i_ui_layer_init_one()
366 ret = drm_universal_plane_init(drm, &layer->plane, 0, in sun8i_ui_layer_init_one()
378 ret = drm_plane_create_alpha_property(&layer->plane); in sun8i_ui_layer_init_one()
384 ret = drm_plane_create_zpos_property(&layer->plane, channel, in sun8i_ui_layer_init_one()
391 drm_plane_helper_add(&layer->plane, &sun8i_ui_layer_helper_funcs); in sun8i_ui_layer_init_one()
392 layer->mixer = mixer; in sun8i_ui_layer_init_one()
393 layer->channel = channel; in sun8i_ui_layer_init_one()
394 layer->overlay = 0; in sun8i_ui_layer_init_one()
396 return layer; in sun8i_ui_layer_init_one()