Lines Matching refs:log_bpp
36 static inline u16 get_pixel_val16(const uint8_t *pixel, int log_bpp) in get_pixel_val16() argument
39 if (log_bpp == 1) in get_pixel_val16()
78 const uint8_t *const cmd_buffer_end, int log_bpp) in udl_compress_hline16() argument
80 const int bpp = 1 << log_bpp; in udl_compress_hline16()
106 (unsigned long)(pixel_end - pixel) >> log_bpp, in udl_compress_hline16()
107 (unsigned long)(cmd_buffer_end - 1 - cmd) / 2) << log_bpp); in udl_compress_hline16()
109 pixel_val16 = get_pixel_val16(pixel, log_bpp); in udl_compress_hline16()
121 pixel_val16 = get_pixel_val16(pixel, log_bpp); in udl_compress_hline16()
130 raw_pixel_start) >> log_bpp) + 1) & 0xFF; in udl_compress_hline16()
133 *cmd++ = (((pixel - start) >> log_bpp) - 1) & 0xFF; in udl_compress_hline16()
143 *raw_pixels_count_byte = ((pixel - raw_pixel_start) >> log_bpp) & 0xFF; in udl_compress_hline16()
149 *cmd_pixels_count_byte = ((pixel - cmd_pixel_start) >> log_bpp) & 0xFF; in udl_compress_hline16()
150 dev_addr += ((pixel - cmd_pixel_start) >> log_bpp) * 2; in udl_compress_hline16()
173 int udl_render_hline(struct drm_device *dev, int log_bpp, struct urb **urb_ptr, in udl_render_hline() argument
179 u32 base16 = 0 + (device_byte_offset >> log_bpp) * 2; in udl_render_hline()
184 if (WARN_ON(!(log_bpp == 1 || log_bpp == 2))) { in udl_render_hline()
198 (u8 **) &cmd, (u8 *) cmd_end, log_bpp); in udl_render_hline()