Lines Matching refs:log_bpp
75 static inline u16 get_pixel_val16(const uint8_t *pixel, int log_bpp) in get_pixel_val16() argument
78 if (log_bpp == 1) in get_pixel_val16()
117 const uint8_t *const cmd_buffer_end, int log_bpp) in udl_compress_hline16() argument
119 const int bpp = 1 << log_bpp; in udl_compress_hline16()
145 (unsigned long)(pixel_end - pixel) >> log_bpp, in udl_compress_hline16()
146 (unsigned long)(cmd_buffer_end - 1 - cmd) / 2) << log_bpp); in udl_compress_hline16()
148 pixel_val16 = get_pixel_val16(pixel, log_bpp); in udl_compress_hline16()
160 pixel_val16 = get_pixel_val16(pixel, log_bpp); in udl_compress_hline16()
169 raw_pixel_start) >> log_bpp) + 1) & 0xFF; in udl_compress_hline16()
172 *cmd++ = (((pixel - start) >> log_bpp) - 1) & 0xFF; in udl_compress_hline16()
182 *raw_pixels_count_byte = ((pixel - raw_pixel_start) >> log_bpp) & 0xFF; in udl_compress_hline16()
188 *cmd_pixels_count_byte = ((pixel - cmd_pixel_start) >> log_bpp) & 0xFF; in udl_compress_hline16()
189 dev_addr += ((pixel - cmd_pixel_start) >> log_bpp) * 2; in udl_compress_hline16()
212 int udl_render_hline(struct drm_device *dev, int log_bpp, struct urb **urb_ptr, in udl_render_hline() argument
218 u32 base16 = 0 + (device_byte_offset >> log_bpp) * 2; in udl_render_hline()
223 BUG_ON(!(log_bpp == 1 || log_bpp == 2)); in udl_render_hline()
233 (u8 **) &cmd, (u8 *) cmd_end, log_bpp); in udl_render_hline()