Lines Matching defs:format
54 const struct drm_format_info *format;
85 const struct drm_format_info *format, int n, int x, int y)
92 + (x * format->cpp[n] / (n == 0 ? 1 : format->hsub))
93 + (y * fb->pitches[n] / (n == 0 ? 1 : format->vsub));
141 const struct drm_format_info *format = omap_fb->format;
144 info->fourcc = fb->format->format;
172 if (fb->format->format == DRM_FORMAT_UYVY ||
173 fb->format->format == DRM_FORMAT_YUYV) {
205 info->paddr = get_linear_addr(fb, format, 0, x, y);
212 info->screen_width /= format->cpp[0];
214 if (fb->format->format == DRM_FORMAT_NV12) {
220 info->p_uv_addr = get_linear_addr(fb, format, 1, x, y);
232 if (fb->format->is_yuv) {
246 r_info->paddr = get_linear_addr(fb, format, 0,
248 if (fb->format->format == DRM_FORMAT_NV12) {
250 get_linear_addr(fb, format, 1,
260 int ret, i, n = fb->format->num_planes;
300 int i, n = fb->format->num_planes;
323 int i, n = fb->format->num_planes;
326 (char *)&fb->format->format);
370 const struct drm_format_info *format = NULL;
380 format = drm_get_format_info(dev, mode_cmd);
387 if (!format || i == ARRAY_SIZE(formats)) {
388 dev_dbg(dev->dev, "unsupported pixel format: %4.4s\n",
401 omap_fb->format = format;
405 * The code below assumes that no format use more than two planes, and
409 if (format->num_planes == 2 && pitch != mode_cmd->pitches[1]) {
415 if (pitch % format->cpp[0]) {
418 pitch, format->cpp[0]);
423 for (i = 0; i < format->num_planes; i++) {
425 unsigned int vsub = i == 0 ? 1 : format->vsub;