Lines Matching refs:image
215 static void s3fb_iplan_imageblit(struct fb_info *info, const struct fb_image *image) in s3fb_iplan_imageblit() argument
217 u32 fg = expand_color(image->fg_color); in s3fb_iplan_imageblit()
218 u32 bg = expand_color(image->bg_color); in s3fb_iplan_imageblit()
225 src1 = image->data; in s3fb_iplan_imageblit()
226 dst1 = info->screen_base + (image->dy * info->fix.line_length) in s3fb_iplan_imageblit()
227 + ((image->dx / 8) * 4); in s3fb_iplan_imageblit()
229 for (y = 0; y < image->height; y++) { in s3fb_iplan_imageblit()
232 for (x = 0; x < image->width; x += 8) { in s3fb_iplan_imageblit()
237 src1 += image->width / 8; in s3fb_iplan_imageblit()
272 static void s3fb_cfb4_imageblit(struct fb_info *info, const struct fb_image *image) in s3fb_cfb4_imageblit() argument
274 u32 fg = image->fg_color * 0x11111111; in s3fb_cfb4_imageblit()
275 u32 bg = image->bg_color * 0x11111111; in s3fb_cfb4_imageblit()
282 src1 = image->data; in s3fb_cfb4_imageblit()
283 dst1 = info->screen_base + (image->dy * info->fix.line_length) in s3fb_cfb4_imageblit()
284 + ((image->dx / 8) * 4); in s3fb_cfb4_imageblit()
286 for (y = 0; y < image->height; y++) { in s3fb_cfb4_imageblit()
289 for (x = 0; x < image->width; x += 8) { in s3fb_cfb4_imageblit()
294 src1 += image->width / 8; in s3fb_cfb4_imageblit()
299 static void s3fb_imageblit(struct fb_info *info, const struct fb_image *image) in s3fb_imageblit() argument
301 if ((info->var.bits_per_pixel == 4) && (image->depth == 1) in s3fb_imageblit()
302 && ((image->width % 8) == 0) && ((image->dx % 8) == 0)) { in s3fb_imageblit()
304 s3fb_iplan_imageblit(info, image); in s3fb_imageblit()
306 s3fb_cfb4_imageblit(info, image); in s3fb_imageblit()
308 cfb_imageblit(info, image); in s3fb_imageblit()