Lines Matching refs:cursor
612 static int pm3fb_cursor(struct fb_info *info, struct fb_cursor *cursor) in pm3fb_cursor() argument
621 if (cursor->image.width > 64 || in pm3fb_cursor()
622 cursor->image.height > 64 || in pm3fb_cursor()
623 cursor->image.depth > 1) in pm3fb_cursor()
627 if (cursor->enable) in pm3fb_cursor()
637 if (!cursor->set) in pm3fb_cursor()
640 if (cursor->set & FB_CUR_SETPOS) { in pm3fb_cursor()
641 int x = cursor->image.dx - info->var.xoffset; in pm3fb_cursor()
642 int y = cursor->image.dy - info->var.yoffset; in pm3fb_cursor()
650 if (cursor->set & FB_CUR_SETHOT) { in pm3fb_cursor()
652 cursor->hot.x & 0x3f); in pm3fb_cursor()
654 cursor->hot.y & 0x3f); in pm3fb_cursor()
657 if (cursor->set & FB_CUR_SETCMAP) { in pm3fb_cursor()
658 u32 fg_idx = cursor->image.fg_color; in pm3fb_cursor()
659 u32 bg_idx = cursor->image.bg_color; in pm3fb_cursor()
678 if (cursor->set & (FB_CUR_SETSHAPE | FB_CUR_SETIMAGE)) { in pm3fb_cursor()
679 u8 *bitmap = (u8 *)cursor->image.data; in pm3fb_cursor()
680 u8 *mask = (u8 *)cursor->mask; in pm3fb_cursor()
684 for (i = 0; i < cursor->image.height; i++) { in pm3fb_cursor()
685 int j = (cursor->image.width + 7) >> 3; in pm3fb_cursor()
691 if (cursor->rop == ROP_COPY) in pm3fb_cursor()