Lines Matching defs:cursor
612 static int pm3fb_cursor(struct fb_info *info, struct fb_cursor *cursor)
620 /* Too large of a cursor or wrong bpp :-( */
621 if (cursor->image.width > 64 ||
622 cursor->image.height > 64 ||
623 cursor->image.depth > 1)
627 if (cursor->enable)
633 * If the cursor is not be changed this means either we want the
634 * current cursor state (if enable is set) or we want to query what
635 * we can do with the cursor (if enable is not set)
637 if (!cursor->set)
640 if (cursor->set & FB_CUR_SETPOS) {
641 int x = cursor->image.dx - info->var.xoffset;
642 int y = cursor->image.dy - info->var.yoffset;
650 if (cursor->set & FB_CUR_SETHOT) {
652 cursor->hot.x & 0x3f);
654 cursor->hot.y & 0x3f);
657 if (cursor->set & FB_CUR_SETCMAP) {
658 u32 fg_idx = cursor->image.fg_color;
659 u32 bg_idx = cursor->image.bg_color;
678 if (cursor->set & (FB_CUR_SETSHAPE | FB_CUR_SETIMAGE)) {
679 u8 *bitmap = (u8 *)cursor->image.data;
680 u8 *mask = (u8 *)cursor->mask;
684 for (i = 0; i < cursor->image.height; i++) {
685 int j = (cursor->image.width + 7) >> 3;
691 if (cursor->rop == ROP_COPY)
1562 MODULE_PARM_DESC(hwcursor, "Enable hardware cursor "