Lines Matching defs:format
98 static int sun4i_backend_drm_format_to_layer(u32 format, u32 *mode)
100 switch (format) {
198 const struct drm_format_info *format = fb->format;
199 const uint32_t fmt = format->format;
217 if (drm_format_info_is_yuv_packed(format) &&
218 drm_format_info_is_yuv_sampling_422(format))
221 DRM_DEBUG_DRIVER("Unsupported YUV format (0x%x)\n", fmt);
271 if (fb->format->is_yuv)
274 ret = sun4i_backend_drm_format_to_layer(fb->format->format, &val);
276 DRM_DEBUG_DRIVER("Invalid format\n");
295 DRM_DEBUG_DRIVER("Invalid format\n");
344 if (fb->format->is_yuv)
410 uint32_t format = state->fb->format->format;
416 if (!sun4i_frontend_format_is_supported(format, modifier))
419 if (!sun4i_backend_format_is_supported(format, modifier))
433 * Here the format is supported by both the frontend and the backend
504 if (fb->format->is_yuv) {
505 DRM_DEBUG_DRIVER("Plane FB format is YUV\n");
510 DRM_DEBUG_DRIVER("Plane FB format is %p4cc\n",
511 &fb->format->format);
512 if (fb->format->has_alpha || (plane_state->alpha != DRM_BLEND_ALPHA_OPAQUE))
584 if (fb->format->has_alpha || (p_state->alpha != DRM_BLEND_ALPHA_OPAQUE))