Lines Matching defs:format
67 static unsigned int check_pixel_format(struct drm_plane *plane, u32 format)
77 /* Due to HW limitations, changing pixel format after initial
80 if (init_disp_cfg.format && init_disp_cfg.format != format) {
81 drm_dbg(&kmb->drm, "Cannot change format after initial plane configuration");
85 if (plane->format_types[i] == format)
111 ret = check_pixel_format(plane, fb->format->format);
165 static unsigned int get_pixel_format(u32 format)
169 switch (format) {
250 DRM_INFO_ONCE("%s : %d format=0x%x val=0x%x\n",
251 __func__, __LINE__, format, val);
255 static unsigned int get_bits_per_pixel(const struct drm_format_info *format)
260 if (format->num_planes > 1) {
265 bpp += 8 * format->cpp[0];
310 int has_alpha = state->fb->format->has_alpha;
369 num_planes = fb->format->num_planes;
390 "src_w=%d src_h=%d, fb->format->format=0x%x fb->flags=0x%x\n",
391 src_w, src_h, fb->format->format, fb->flags);
395 dma_len = (width * height * fb->format->cpp[0]);
402 (width * fb->format->cpp[0]));
407 val = get_pixel_format(fb->format->format);
408 val |= get_bits_per_pixel(fb->format);
412 width * fb->format->cpp[0]);
414 (width * fb->format->cpp[0]));
431 ((width) * fb->format->cpp[0]));
435 ((width) * fb->format->cpp[0]));
512 /* FIXME no doc on how to set output format, these values are taken
531 !init_disp_cfg->format) {
534 init_disp_cfg->format = fb->format->format;