Lines Matching refs:format
55 const struct drm_format_info *format; member
86 const struct drm_format_info *format, int n, int x, int y) in get_linear_addr() argument
93 + (x * format->cpp[n] / (n == 0 ? 1 : format->hsub)) in get_linear_addr()
94 + (y * fb->pitches[n] / (n == 0 ? 1 : format->vsub)); in get_linear_addr()
142 const struct drm_format_info *format = omap_fb->format; in omap_framebuffer_update_scanout() local
145 info->fourcc = fb->format->format; in omap_framebuffer_update_scanout()
173 if (fb->format->format == DRM_FORMAT_UYVY || in omap_framebuffer_update_scanout()
174 fb->format->format == DRM_FORMAT_YUYV) { in omap_framebuffer_update_scanout()
206 info->paddr = get_linear_addr(fb, format, 0, x, y); in omap_framebuffer_update_scanout()
213 info->screen_width /= format->cpp[0]; in omap_framebuffer_update_scanout()
215 if (fb->format->format == DRM_FORMAT_NV12) { in omap_framebuffer_update_scanout()
221 info->p_uv_addr = get_linear_addr(fb, format, 1, x, y); in omap_framebuffer_update_scanout()
233 if (fb->format->is_yuv) { in omap_framebuffer_update_scanout()
247 r_info->paddr = get_linear_addr(fb, format, 0, in omap_framebuffer_update_scanout()
249 if (fb->format->format == DRM_FORMAT_NV12) { in omap_framebuffer_update_scanout()
251 get_linear_addr(fb, format, 1, in omap_framebuffer_update_scanout()
261 int ret, i, n = fb->format->num_planes; in omap_framebuffer_pin()
301 int i, n = fb->format->num_planes; in omap_framebuffer_unpin()
324 int i, n = fb->format->num_planes; in omap_framebuffer_describe()
327 (char *)&fb->format->format); in omap_framebuffer_describe()
371 const struct drm_format_info *format = NULL; in omap_framebuffer_init() local
381 format = drm_get_format_info(dev, mode_cmd); in omap_framebuffer_init()
388 if (!format || i == ARRAY_SIZE(formats)) { in omap_framebuffer_init()
402 omap_fb->format = format; in omap_framebuffer_init()
410 if (format->num_planes == 2 && pitch != mode_cmd->pitches[1]) { in omap_framebuffer_init()
416 if (pitch % format->cpp[0]) { in omap_framebuffer_init()
419 pitch, format->cpp[0]); in omap_framebuffer_init()
424 for (i = 0; i < format->num_planes; i++) { in omap_framebuffer_init()
426 unsigned int vsub = i == 0 ? 1 : format->vsub; in omap_framebuffer_init()