Lines Matching refs:cursor
619 static int pm3fb_cursor(struct fb_info *info, struct fb_cursor *cursor) in pm3fb_cursor() argument
628 if (cursor->image.width > 64 || in pm3fb_cursor()
629 cursor->image.height > 64 || in pm3fb_cursor()
630 cursor->image.depth > 1) in pm3fb_cursor()
634 if (cursor->enable) in pm3fb_cursor()
644 if (!cursor->set) in pm3fb_cursor()
647 if (cursor->set & FB_CUR_SETPOS) { in pm3fb_cursor()
648 int x = cursor->image.dx - info->var.xoffset; in pm3fb_cursor()
649 int y = cursor->image.dy - info->var.yoffset; in pm3fb_cursor()
657 if (cursor->set & FB_CUR_SETHOT) { in pm3fb_cursor()
659 cursor->hot.x & 0x3f); in pm3fb_cursor()
661 cursor->hot.y & 0x3f); in pm3fb_cursor()
664 if (cursor->set & FB_CUR_SETCMAP) { in pm3fb_cursor()
665 u32 fg_idx = cursor->image.fg_color; in pm3fb_cursor()
666 u32 bg_idx = cursor->image.bg_color; in pm3fb_cursor()
685 if (cursor->set & (FB_CUR_SETSHAPE | FB_CUR_SETIMAGE)) { in pm3fb_cursor()
686 u8 *bitmap = (u8 *)cursor->image.data; in pm3fb_cursor()
687 u8 *mask = (u8 *)cursor->mask; in pm3fb_cursor()
691 for (i = 0; i < cursor->image.height; i++) { in pm3fb_cursor()
692 int j = (cursor->image.width + 7) >> 3; in pm3fb_cursor()
698 if (cursor->rop == ROP_COPY) in pm3fb_cursor()