Lines Matching defs:cursor
613 static int pm3fb_cursor(struct fb_info *info, struct fb_cursor *cursor)
621 /* Too large of a cursor or wrong bpp :-( */
622 if (cursor->image.width > 64 ||
623 cursor->image.height > 64 ||
624 cursor->image.depth > 1)
628 if (cursor->enable)
634 * If the cursor is not be changed this means either we want the
635 * current cursor state (if enable is set) or we want to query what
636 * we can do with the cursor (if enable is not set)
638 if (!cursor->set)
641 if (cursor->set & FB_CUR_SETPOS) {
642 int x = cursor->image.dx - info->var.xoffset;
643 int y = cursor->image.dy - info->var.yoffset;
651 if (cursor->set & FB_CUR_SETHOT) {
653 cursor->hot.x & 0x3f);
655 cursor->hot.y & 0x3f);
658 if (cursor->set & FB_CUR_SETCMAP) {
659 u32 fg_idx = cursor->image.fg_color;
660 u32 bg_idx = cursor->image.bg_color;
679 if (cursor->set & (FB_CUR_SETSHAPE | FB_CUR_SETIMAGE)) {
680 u8 *bitmap = (u8 *)cursor->image.data;
681 u8 *mask = (u8 *)cursor->mask;
685 for (i = 0; i < cursor->image.height; i++) {
686 int j = (cursor->image.width + 7) >> 3;
692 if (cursor->rop == ROP_COPY)
1573 MODULE_PARM_DESC(hwcursor, "Enable hardware cursor "