Lines Matching refs:image
387 struct fb_image *image, int rotate) in fb_rotate_logo() argument
392 fb_rotate_logo_ud(image->data, dst, image->width, in fb_rotate_logo()
393 image->height); in fb_rotate_logo()
394 image->dx = info->var.xres - image->width - image->dx; in fb_rotate_logo()
395 image->dy = info->var.yres - image->height - image->dy; in fb_rotate_logo()
397 fb_rotate_logo_cw(image->data, dst, image->width, in fb_rotate_logo()
398 image->height); in fb_rotate_logo()
399 swap(image->width, image->height); in fb_rotate_logo()
400 tmp = image->dy; in fb_rotate_logo()
401 image->dy = image->dx; in fb_rotate_logo()
402 image->dx = info->var.xres - image->width - tmp; in fb_rotate_logo()
404 fb_rotate_logo_ccw(image->data, dst, image->width, in fb_rotate_logo()
405 image->height); in fb_rotate_logo()
406 swap(image->width, image->height); in fb_rotate_logo()
407 tmp = image->dx; in fb_rotate_logo()
408 image->dx = image->dy; in fb_rotate_logo()
409 image->dy = info->var.yres - image->height - tmp; in fb_rotate_logo()
412 image->data = dst; in fb_rotate_logo()
415 static void fb_do_show_logo(struct fb_info *info, struct fb_image *image, in fb_do_show_logo() argument
420 if (image->width > info->var.xres || image->height > info->var.yres) in fb_do_show_logo()
425 x < num && image->dx + image->width <= info->var.xres; in fb_do_show_logo()
427 info->fbops->fb_imageblit(info, image); in fb_do_show_logo()
428 image->dx += image->width + 8; in fb_do_show_logo()
431 u32 dx = image->dx; in fb_do_show_logo()
433 for (x = 0; x < num && image->dx <= dx; x++) { in fb_do_show_logo()
434 info->fbops->fb_imageblit(info, image); in fb_do_show_logo()
435 image->dx -= image->width + 8; in fb_do_show_logo()
439 x < num && image->dy + image->height <= info->var.yres; in fb_do_show_logo()
441 info->fbops->fb_imageblit(info, image); in fb_do_show_logo()
442 image->dy += image->height + 8; in fb_do_show_logo()
445 u32 dy = image->dy; in fb_do_show_logo()
447 for (x = 0; x < num && image->dy <= dy; x++) { in fb_do_show_logo()
448 info->fbops->fb_imageblit(info, image); in fb_do_show_logo()
449 image->dy -= image->height + 8; in fb_do_show_logo()
460 struct fb_image image; in fb_show_logo_line() local
467 image.depth = 8; in fb_show_logo_line()
468 image.data = logo->data; in fb_show_logo_line()
497 image.data = logo_new; in fb_show_logo_line()
512 image.dx = (xres - (n * (logo->width + 8) - 8)) / 2; in fb_show_logo_line()
513 image.dy = y ?: (yres - logo->height) / 2; in fb_show_logo_line()
515 image.dx = 0; in fb_show_logo_line()
516 image.dy = y; in fb_show_logo_line()
519 image.width = logo->width; in fb_show_logo_line()
520 image.height = logo->height; in fb_show_logo_line()
526 fb_rotate_logo(info, logo_rotate, &image, rotate); in fb_show_logo_line()
529 fb_do_show_logo(info, &image, rotate, n); in fb_show_logo_line()
536 return image.dy + logo->height; in fb_show_logo_line()