Lines Matching defs:image
466 * rivafb_load_cursor_image - load cursor image to hardware
469 * @w: width of cursor image in pixels
470 * @h: height of cursor image in scanlines
475 * Loads cursor image based on a monochrome source and mask bitmap. The
476 * image bits determines the color of the pixel, 0 for background, 1 for
1477 * @image: pointer to fb_image structure
1491 const struct fb_image *image)
1495 u8 *cdat = (u8 *) image->data;
1499 if ((info->flags & FBINFO_HWACCEL_DISABLED) || image->depth != 1) {
1500 cfb_imageblit(info, image);
1506 fgx = image->fg_color;
1507 bgx = image->bg_color;
1512 fgx = ((u32 *)info->pseudo_palette)[image->fg_color];
1513 bgx = ((u32 *)info->pseudo_palette)[image->bg_color];
1515 fgx = par->palette[image->fg_color];
1516 bgx = par->palette[image->bg_color];
1525 (image->dy << 16) | (image->dx & 0xFFFF));
1527 (((image->dy + image->height) << 16) |
1528 ((image->dx + image->width) & 0xffff)));
1532 (image->height << 16) | ((image->width + 31) & ~31));
1534 (image->height << 16) | ((image->width + 31) & ~31));
1536 (image->dy << 16) | (image->dx & 0xFFFF));
1540 width = (image->width + 31)/32;
1541 size = width * image->height;
1569 * A cursor function that supports displaying a cursor image via hardware.
1583 if (cursor->image.width > MAX_CURS || cursor->image.height > MAX_CURS)
1599 yy = cursor->image.dy - info->var.yoffset;
1600 xx = cursor->image.dx - info->var.xoffset;
1609 u32 bg_idx = cursor->image.bg_color;
1610 u32 fg_idx = cursor->image.fg_color;
1611 u32 s_pitch = (cursor->image.width+7) >> 3;
1613 u8 *dat = (u8 *) cursor->image.data;
1617 src = kmalloc_array(s_pitch, cursor->image.height, GFP_ATOMIC);
1622 for (i = 0; i < s_pitch * cursor->image.height; i++)
1627 for (i = 0; i < s_pitch * cursor->image.height; i++)
1633 cursor->image.height);
1648 cursor->image.width,
1649 cursor->image.height);