Lines Matching defs:format
156 * convert_from_xrgb8888 - convert one pixel from xrgb8888 to the desired format
157 * @color: input color, in xrgb8888 format
158 * @format: output format
161 * Color in the format specified, casted to u32.
162 * Or 0 if the format is not supported.
164 static u32 convert_from_xrgb8888(u32 color, u32 format)
166 switch (format) {
189 WARN_ONCE(1, "Can't convert to %p4cc\n", &format);
255 * @sbuf8: source buffer, in monochrome format, 8 pixels per byte.
259 * @fg_color: foreground color, in destination format
260 * @bg_color: background color, in destination format
264 * framebuffer in other supported format.
391 unsigned int px_width = sb->format->cpp[0];
429 fg_color = convert_from_xrgb8888(fg_color, sb->format->format);
430 bg_color = convert_from_xrgb8888(bg_color, sb->format->format);
444 bg_color, sb->format->cpp[0]);
455 * @format: a fourcc color code
458 * Check if drm_panic will be able to use this color format.
460 static bool drm_panic_is_format_supported(const struct drm_format_info *format)
462 if (format->num_planes != 1)
464 return convert_from_xrgb8888(0xffffff, format->format) != 0;
478 if (!ret && drm_panic_is_format_supported(sb.format)) {