Lines Matching defs:cursor
39 * 01/2003 - Version 0.4.0: fbcon HW cursor support added. (David Dawes)
62 * cursor are disabled on this platform. (David Dawes)
68 * cursor are disabled on this platform. (David Dawes)
90 * Fix HW accel and HW cursor on i845G
155 struct fb_cursor *cursor);
250 MODULE_PARM_DESC(hwcursor, "Enable HW cursor");
612 /* Allocate space for the ring buffer and HW cursor if enabled. */
618 dinfo->cursor.size = HW_CURSOR_SIZE;
644 dinfo->cursor.offset = offset +
649 + (dinfo->cursor.size >> 12);
700 agp_allocate_memory(bridge, dinfo->cursor.size >> 12,
702 ERR_MSG("cannot allocate cursor memory\n");
708 dinfo->cursor.offset)) {
709 ERR_MSG("cannot bind cursor memory\n");
715 dinfo->cursor.physical
718 dinfo->cursor.physical = dinfo->aperture.physical
719 + (dinfo->cursor.offset << 12);
720 dinfo->cursor.virtual = dinfo->aperture.virtual
721 + (dinfo->cursor.offset << 12);
763 DBG_MSG("HW cursor: 0x%x/0x%x (0x%p) (offset 0x%x) (phys 0x%x)\n",
764 dinfo->cursor.physical, dinfo->cursor.size,
765 dinfo->cursor.virtual, dinfo->cursor.offset,
766 dinfo->cursor.physical);
1550 static int intelfb_cursor(struct fb_info *info, struct fb_cursor *cursor)
1563 /* If XFree killed the cursor - restore it */
1564 physical = (dinfo->mobile || IS_I9XX(dinfo)) ? dinfo->cursor.physical :
1565 (dinfo->cursor.offset << 12);
1570 DBG_MSG("the cursor was killed - restore it !!\n");
1572 cursor->image.width, cursor->image.height,
1573 cursor->image.dx, cursor->image.dy);
1577 intelfbhw_cursor_setpos(dinfo, cursor->image.dx,
1578 cursor->image.dy);
1581 fg =dinfo->pseudo_palette[cursor->image.fg_color];
1582 bg =dinfo->pseudo_palette[cursor->image.bg_color];
1584 fg = cursor->image.fg_color;
1585 bg = cursor->image.bg_color;
1588 intelfbhw_cursor_load(dinfo, cursor->image.width,
1589 cursor->image.height,
1592 if (cursor->enable)
1597 if (cursor->set & FB_CUR_SETPOS) {
1600 dx = cursor->image.dx - info->var.xoffset;
1601 dy = cursor->image.dy - info->var.yoffset;
1606 if (cursor->set & FB_CUR_SETSIZE) {
1607 if (cursor->image.width > 64 || cursor->image.height > 64)
1613 if (cursor->set & FB_CUR_SETCMAP) {
1617 fg = dinfo->pseudo_palette[cursor->image.fg_color];
1618 bg = dinfo->pseudo_palette[cursor->image.bg_color];
1620 fg = cursor->image.fg_color;
1621 bg = cursor->image.bg_color;
1627 if (cursor->set & (FB_CUR_SETSHAPE | FB_CUR_SETIMAGE)) {
1628 u32 s_pitch = (ROUND_UP_TO(cursor->image.width, 8) / 8);
1629 u32 size = s_pitch * cursor->image.height;
1630 u8 *dat = (u8 *) cursor->image.data;
1631 u8 *msk = (u8 *) cursor->mask;
1635 if (cursor->image.depth != 1)
1638 switch (cursor->rop) {
1651 make the cursor dirty */
1654 intelfbhw_cursor_load(dinfo, cursor->image.width,
1655 cursor->image.height, src);
1658 if (cursor->enable)