Lines Matching defs:format

437 	 *       bpp value with a preferred format that is given as struct
439 * format.
1129 const struct drm_format_info *format)
1131 u8 depth = format->depth;
1133 if (format->is_color_indexed) {
1198 var->bits_per_pixel = drm_format_info_bpp(fb->format, 0);
1223 const struct drm_format_info *format = fb->format;
1235 switch (format->format) {
1239 /* supported format with sub-byte pixels */
1243 if ((drm_format_info_block_width(format, 0) > 1) ||
1244 (drm_format_info_block_height(format, 0) > 1))
1253 bpp = drm_format_info_bpp(format, 0);
1283 * Workaround for SDL 1.2, which is known to be setting all pixel format
1293 drm_fb_helper_fill_pixel_fmt(var, format);
1297 * drm fbdev emulation doesn't support changing the pixel format at all,
1298 * so reject all pixel format changing requests.
1301 drm_dbg_kms(dev, "fbdev emulation doesn't support changing the pixel format\n");
1446 uint32_t format;
1456 format = drm_mode_legacy_fb_format(bpp, depth);
1457 if (!format)
1461 if (formats[i] == format)
1462 return format;
1538 break; /* found supported format */
1543 break; /* found supported format */
1551 break; /* found supported format */
1558 * format for compatibility with legacy applications.
1560 drm_warn(dev, "No compatible format found\n");
1703 const struct drm_format_info *format = fb->format;
1705 switch (format->format) {
1709 /* supported format with sub-byte pixels */
1713 WARN_ON((drm_format_info_block_width(format, 0) > 1) ||
1714 (drm_format_info_block_height(format, 0) > 1));
1724 drm_fb_helper_fill_pixel_fmt(&info->var, format);
1750 fb->format->is_color_indexed);