Lines Matching defs:image
173 /* image data is MSB-first, fb structure is MSB-first too */
180 static void arkfb_iplan_imageblit(struct fb_info *info, const struct fb_image *image)
182 u32 fg = expand_color(image->fg_color);
183 u32 bg = expand_color(image->bg_color);
190 src1 = image->data;
191 dst1 = info->screen_base + (image->dy * info->fix.line_length)
192 + ((image->dx / 8) * 4);
194 for (y = 0; y < image->height; y++) {
197 for (x = 0; x < image->width; x += 8) {
202 src1 += image->width / 8;
230 /* image data is MSB-first, fb structure is high-nibble-in-low-byte-first */
238 static void arkfb_cfb4_imageblit(struct fb_info *info, const struct fb_image *image)
240 u32 fg = image->fg_color * 0x11111111;
241 u32 bg = image->bg_color * 0x11111111;
248 src1 = image->data;
249 dst1 = info->screen_base + (image->dy * info->fix.line_length)
250 + ((image->dx / 8) * 4);
252 for (y = 0; y < image->height; y++) {
255 for (x = 0; x < image->width; x += 8) {
260 src1 += image->width / 8;
266 static void arkfb_imageblit(struct fb_info *info, const struct fb_image *image)
268 if ((info->var.bits_per_pixel == 4) && (image->depth == 1)
269 && ((image->width % 8) == 0) && ((image->dx % 8) == 0)) {
271 arkfb_iplan_imageblit(info, image);
273 arkfb_cfb4_imageblit(info, image);
275 cfb_imageblit(info, image);