Lines Matching defs:image
168 /* image data is MSB-first, fb structure is MSB-first too */
175 static void arkfb_iplan_imageblit(struct fb_info *info, const struct fb_image *image)
177 u32 fg = expand_color(image->fg_color);
178 u32 bg = expand_color(image->bg_color);
185 src1 = image->data;
186 dst1 = info->screen_base + (image->dy * info->fix.line_length)
187 + ((image->dx / 8) * 4);
189 for (y = 0; y < image->height; y++) {
192 for (x = 0; x < image->width; x += 8) {
197 src1 += image->width / 8;
225 /* image data is MSB-first, fb structure is high-nibble-in-low-byte-first */
233 static void arkfb_cfb4_imageblit(struct fb_info *info, const struct fb_image *image)
235 u32 fg = image->fg_color * 0x11111111;
236 u32 bg = image->bg_color * 0x11111111;
243 src1 = image->data;
244 dst1 = info->screen_base + (image->dy * info->fix.line_length)
245 + ((image->dx / 8) * 4);
247 for (y = 0; y < image->height; y++) {
250 for (x = 0; x < image->width; x += 8) {
255 src1 += image->width / 8;
261 static void arkfb_imageblit(struct fb_info *info, const struct fb_image *image)
263 if ((info->var.bits_per_pixel == 4) && (image->depth == 1)
264 && ((image->width % 8) == 0) && ((image->dx % 8) == 0)) {
266 arkfb_iplan_imageblit(info, image);
268 arkfb_cfb4_imageblit(info, image);
270 cfb_imageblit(info, image);