Lines Matching defs:format
132 /* convert to new format and call new ioctl */
155 const struct drm_format_info *format, int plane)
160 return DIV_ROUND_UP(width, format->hsub);
164 const struct drm_format_info *format, int plane)
169 return DIV_ROUND_UP(height, format->vsub);
178 /* check if the format is supported at all */
180 drm_dbg_kms(dev, "bad framebuffer format %p4cc\n",
195 /* now let the driver pick its own format info */
337 * Add a new FB to the specified CRTC, given a user request with format. This is
339 * and uses fourcc codes as pixel format specifiers.
520 if (fb->format->num_planes > 1) {
532 r->depth = fb->format->depth;
533 r->bpp = drm_format_info_bpp(fb->format, 0);
587 (fb->format->num_planes > 1 || !fb->funcs->create_handle)) {
594 r->pixel_format = fb->format->format;
607 for (i = 0; i < fb->format->num_planes; i++) {
624 for (i = 0; i < fb->format->num_planes; i++) {
849 if (WARN_ON_ONCE(fb->dev != dev || !fb->format))
1155 if (plane >= fb->format->num_planes)
1158 return fb_plane_width(width, fb->format, plane);
1174 if (plane >= fb->format->num_planes)
1177 return fb_plane_height(height, fb->format, plane);
1189 drm_printf_indent(p, indent, "format=%p4cc\n", &fb->format->format);
1194 for (i = 0; i < fb->format->num_planes; i++) {