• Home
  • Raw
  • Download

Lines Matching refs:format

54 static size_t gud_xrgb8888_to_r124(u8 *dst, const struct drm_format_info *format,  in gud_xrgb8888_to_r124()  argument
58 unsigned int block_width = drm_format_info_block_width(format, 0); in gud_xrgb8888_to_r124()
65 WARN_ON_ONCE(format->char_per_block[0] != 1); in gud_xrgb8888_to_r124()
71 len = drm_format_info_min_pitch(format, 0, width) * height; in gud_xrgb8888_to_r124()
100 static size_t gud_xrgb8888_to_color(u8 *dst, const struct drm_format_info *format, in gud_xrgb8888_to_color() argument
104 unsigned int block_width = drm_format_info_block_width(format, 0); in gud_xrgb8888_to_color()
114 len = drm_format_info_min_pitch(format, 0, width) * drm_rect_height(rect); in gud_xrgb8888_to_color()
133 switch (format->format) { in gud_xrgb8888_to_color()
150 const struct drm_format_info *format, struct drm_rect *rect, in gud_prep_flush() argument
161 pitch = drm_format_info_min_pitch(format, 0, drm_rect_width(rect)); in gud_prep_flush()
185 if (format != fb->format) { in gud_prep_flush()
186 if (format->format == GUD_DRM_FORMAT_R1) { in gud_prep_flush()
187 len = gud_xrgb8888_to_r124(buf, format, vaddr, fb, rect); in gud_prep_flush()
192 } else if (format->format == DRM_FORMAT_RGB565) { in gud_prep_flush()
195 len = gud_xrgb8888_to_color(buf, format, vaddr, fb, rect); in gud_prep_flush()
197 } else if (gud_is_big_endian() && format->cpp[0] > 1) { in gud_prep_flush()
274 const struct drm_format_info *format, struct drm_rect *rect) in gud_flush_rect() argument
282 ret = gud_prep_flush(gdrm, fb, format, rect, &req); in gud_flush_rect()
356 const struct drm_format_info *format; in gud_flush_work() local
376 format = fb->format; in gud_flush_work()
377 if (format->format == DRM_FORMAT_XRGB8888 && gdrm->xrgb8888_emulation_format) in gud_flush_work()
378 format = gdrm->xrgb8888_emulation_format; in gud_flush_work()
381 pitch = drm_format_info_min_pitch(format, 0, drm_rect_width(&damage)); in gud_flush_work()
393 ret = gud_flush_rect(gdrm, fb, format, &rect); in gud_flush_work()
449 const struct drm_format_info *format = fb->format; in gud_pipe_check() local
462 if (old_fb && old_fb->format != format) in gud_pipe_check()
472 if (format->format == DRM_FORMAT_XRGB8888 && gdrm->xrgb8888_emulation_format) in gud_pipe_check()
473 format = gdrm->xrgb8888_emulation_format; in gud_pipe_check()
508 req->format = gud_from_fourcc(format->format); in gud_pipe_check()
509 if (WARN_ON_ONCE(!req->format)) { in gud_pipe_check()