Lines Matching full:layer
102 DRM_DEBUG_DRIVER("Layer source offset X: %d Y: %d\n", in sun8i_vi_layer_update_coord()
105 DRM_DEBUG_DRIVER("Layer source size W: %d H: %d\n", src_w, src_h); in sun8i_vi_layer_update_coord()
183 DRM_DEBUG_DRIVER("Layer destination coordinates X: %d Y: %d\n", in sun8i_vi_layer_update_coord()
185 DRM_DEBUG_DRIVER("Layer destination size W: %d H: %d\n", dst_w, dst_h); in sun8i_vi_layer_update_coord()
296 DRM_DEBUG_DRIVER("Layer %d. line width: %d bytes\n", in sun8i_vi_layer_update_buffer()
320 struct sun8i_layer *layer = plane_to_sun8i_layer(plane); in sun8i_vi_layer_atomic_check() local
336 if (layer->mixer->cfg->scaler_mask & BIT(layer->channel)) { in sun8i_vi_layer_atomic_check()
352 struct sun8i_layer *layer = plane_to_sun8i_layer(plane); in sun8i_vi_layer_atomic_update() local
354 struct sun8i_mixer *mixer = layer->mixer; in sun8i_vi_layer_atomic_update()
359 sun8i_vi_layer_update_coord(mixer, layer->channel, in sun8i_vi_layer_atomic_update()
360 layer->overlay, plane, zpos); in sun8i_vi_layer_atomic_update()
361 sun8i_vi_layer_update_alpha(mixer, layer->channel, in sun8i_vi_layer_atomic_update()
362 layer->overlay, plane); in sun8i_vi_layer_atomic_update()
363 sun8i_vi_layer_update_formats(mixer, layer->channel, in sun8i_vi_layer_atomic_update()
364 layer->overlay, plane); in sun8i_vi_layer_atomic_update()
365 sun8i_vi_layer_update_buffer(mixer, layer->channel, in sun8i_vi_layer_atomic_update()
366 layer->overlay, plane); in sun8i_vi_layer_atomic_update()
384 * While DE2 VI layer supports same RGB formats as UI layer, alpha
478 struct sun8i_layer *layer; in sun8i_vi_layer_init_one() local
482 layer = devm_kzalloc(drm->dev, sizeof(*layer), GFP_KERNEL); in sun8i_vi_layer_init_one()
483 if (!layer) in sun8i_vi_layer_init_one()
498 ret = drm_universal_plane_init(drm, &layer->plane, 0, in sun8i_vi_layer_init_one()
504 dev_err(drm->dev, "Couldn't initialize layer\n"); in sun8i_vi_layer_init_one()
511 ret = drm_plane_create_alpha_property(&layer->plane); in sun8i_vi_layer_init_one()
518 ret = drm_plane_create_zpos_property(&layer->plane, index, in sun8i_vi_layer_init_one()
533 ret = drm_plane_create_color_properties(&layer->plane, in sun8i_vi_layer_init_one()
543 drm_plane_helper_add(&layer->plane, &sun8i_vi_layer_helper_funcs); in sun8i_vi_layer_init_one()
544 layer->mixer = mixer; in sun8i_vi_layer_init_one()
545 layer->type = SUN8I_LAYER_TYPE_VI; in sun8i_vi_layer_init_one()
546 layer->channel = index; in sun8i_vi_layer_init_one()
547 layer->overlay = 0; in sun8i_vi_layer_init_one()
549 return layer; in sun8i_vi_layer_init_one()