Lines Matching full:layer
76 DRM_DEBUG_DRIVER("Layer source offset X: %d Y: %d\n", in sun8i_ui_layer_update_coord()
78 DRM_DEBUG_DRIVER("Layer source size W: %d H: %d\n", src_w, src_h); in sun8i_ui_layer_update_coord()
103 DRM_DEBUG_DRIVER("Layer destination coordinates X: %d Y: %d\n", in sun8i_ui_layer_update_coord()
105 DRM_DEBUG_DRIVER("Layer destination size W: %d H: %d\n", dst_w, dst_h); in sun8i_ui_layer_update_coord()
167 DRM_DEBUG_DRIVER("Layer line width: %d bytes\n", fb->pitches[0]); in sun8i_ui_layer_update_buffer()
186 struct sun8i_layer *layer = plane_to_sun8i_layer(plane); in sun8i_ui_layer_atomic_check() local
202 if (layer->mixer->cfg->scaler_mask & BIT(layer->channel)) { in sun8i_ui_layer_atomic_check()
219 struct sun8i_layer *layer = plane_to_sun8i_layer(plane); in sun8i_ui_layer_atomic_update() local
221 struct sun8i_mixer *mixer = layer->mixer; in sun8i_ui_layer_atomic_update()
226 sun8i_ui_layer_update_coord(mixer, layer->channel, in sun8i_ui_layer_atomic_update()
227 layer->overlay, plane, zpos); in sun8i_ui_layer_atomic_update()
228 sun8i_ui_layer_update_alpha(mixer, layer->channel, in sun8i_ui_layer_atomic_update()
229 layer->overlay, plane); in sun8i_ui_layer_atomic_update()
230 sun8i_ui_layer_update_formats(mixer, layer->channel, in sun8i_ui_layer_atomic_update()
231 layer->overlay, plane); in sun8i_ui_layer_atomic_update()
232 sun8i_ui_layer_update_buffer(mixer, layer->channel, in sun8i_ui_layer_atomic_update()
233 layer->overlay, plane); in sun8i_ui_layer_atomic_update()
284 struct sun8i_layer *layer; in sun8i_ui_layer_init_one() local
288 layer = devm_kzalloc(drm->dev, sizeof(*layer), GFP_KERNEL); in sun8i_ui_layer_init_one()
289 if (!layer) in sun8i_ui_layer_init_one()
296 ret = drm_universal_plane_init(drm, &layer->plane, 0, in sun8i_ui_layer_init_one()
302 dev_err(drm->dev, "Couldn't initialize layer\n"); in sun8i_ui_layer_init_one()
308 ret = drm_plane_create_alpha_property(&layer->plane); in sun8i_ui_layer_init_one()
314 ret = drm_plane_create_zpos_property(&layer->plane, channel, in sun8i_ui_layer_init_one()
321 drm_plane_helper_add(&layer->plane, &sun8i_ui_layer_helper_funcs); in sun8i_ui_layer_init_one()
322 layer->mixer = mixer; in sun8i_ui_layer_init_one()
323 layer->type = SUN8I_LAYER_TYPE_UI; in sun8i_ui_layer_init_one()
324 layer->channel = channel; in sun8i_ui_layer_init_one()
325 layer->overlay = 0; in sun8i_ui_layer_init_one()
327 return layer; in sun8i_ui_layer_init_one()