Lines Matching defs:image

461  * rivafb_load_cursor_image - load cursor image to hardware
464 * @w: width of cursor image in pixels
465 * @h: height of cursor image in scanlines
470 * Loads cursor image based on a monochrome source and mask bitmap. The
471 * image bits determines the color of the pixel, 0 for background, 1 for
1471 * @image: pointer to fb_image structure
1485 const struct fb_image *image)
1489 u8 *cdat = (u8 *) image->data;
1493 if ((info->flags & FBINFO_HWACCEL_DISABLED) || image->depth != 1) {
1494 cfb_imageblit(info, image);
1500 fgx = image->fg_color;
1501 bgx = image->bg_color;
1506 fgx = ((u32 *)info->pseudo_palette)[image->fg_color];
1507 bgx = ((u32 *)info->pseudo_palette)[image->bg_color];
1509 fgx = par->palette[image->fg_color];
1510 bgx = par->palette[image->bg_color];
1519 (image->dy << 16) | (image->dx & 0xFFFF));
1521 (((image->dy + image->height) << 16) |
1522 ((image->dx + image->width) & 0xffff)));
1526 (image->height << 16) | ((image->width + 31) & ~31));
1528 (image->height << 16) | ((image->width + 31) & ~31));
1530 (image->dy << 16) | (image->dx & 0xFFFF));
1534 width = (image->width + 31)/32;
1535 size = width * image->height;
1563 * A cursor function that supports displaying a cursor image via hardware.
1577 if (cursor->image.width > MAX_CURS || cursor->image.height > MAX_CURS)
1593 yy = cursor->image.dy - info->var.yoffset;
1594 xx = cursor->image.dx - info->var.xoffset;
1603 u32 bg_idx = cursor->image.bg_color;
1604 u32 fg_idx = cursor->image.fg_color;
1605 u32 s_pitch = (cursor->image.width+7) >> 3;
1607 u8 *dat = (u8 *) cursor->image.data;
1611 src = kmalloc_array(s_pitch, cursor->image.height, GFP_ATOMIC);
1616 for (i = 0; i < s_pitch * cursor->image.height; i++)
1621 for (i = 0; i < s_pitch * cursor->image.height; i++)
1627 cursor->image.height);
1642 cursor->image.width,
1643 cursor->image.height);