Lines Matching refs: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
158 struct fb_cursor *cursor);
253 MODULE_PARM_DESC(hwcursor, "Enable HW cursor");
636 /* Allocate space for the ring buffer and HW cursor if enabled. */
642 dinfo->cursor.size = HW_CURSOR_SIZE;
668 dinfo->cursor.offset = offset +
673 + (dinfo->cursor.size >> 12);
722 agp_allocate_memory(bridge, dinfo->cursor.size >> 12,
724 ERR_MSG("cannot allocate cursor memory\n");
730 dinfo->cursor.offset)) {
731 ERR_MSG("cannot bind cursor memory\n");
737 dinfo->cursor.physical
740 dinfo->cursor.physical = dinfo->aperture.physical
741 + (dinfo->cursor.offset << 12);
742 dinfo->cursor.virtual = dinfo->aperture.virtual
743 + (dinfo->cursor.offset << 12);
784 DBG_MSG("HW cursor: 0x%x/0x%x (0x%p) (offset 0x%x) (phys 0x%x)\n",
785 dinfo->cursor.physical, dinfo->cursor.size,
786 dinfo->cursor.virtual, dinfo->cursor.offset,
787 dinfo->cursor.physical);
1577 static int intelfb_cursor(struct fb_info *info, struct fb_cursor *cursor)
1590 /* If XFree killed the cursor - restore it */
1591 physical = (dinfo->mobile || IS_I9XX(dinfo)) ? dinfo->cursor.physical :
1592 (dinfo->cursor.offset << 12);
1597 DBG_MSG("the cursor was killed - restore it !!\n");
1599 cursor->image.width, cursor->image.height,
1600 cursor->image.dx, cursor->image.dy);
1604 intelfbhw_cursor_setpos(dinfo, cursor->image.dx,
1605 cursor->image.dy);
1608 fg =dinfo->pseudo_palette[cursor->image.fg_color];
1609 bg =dinfo->pseudo_palette[cursor->image.bg_color];
1611 fg = cursor->image.fg_color;
1612 bg = cursor->image.bg_color;
1615 intelfbhw_cursor_load(dinfo, cursor->image.width,
1616 cursor->image.height,
1619 if (cursor->enable)
1624 if (cursor->set & FB_CUR_SETPOS) {
1627 dx = cursor->image.dx - info->var.xoffset;
1628 dy = cursor->image.dy - info->var.yoffset;
1633 if (cursor->set & FB_CUR_SETSIZE) {
1634 if (cursor->image.width > 64 || cursor->image.height > 64)
1640 if (cursor->set & FB_CUR_SETCMAP) {
1644 fg = dinfo->pseudo_palette[cursor->image.fg_color];
1645 bg = dinfo->pseudo_palette[cursor->image.bg_color];
1647 fg = cursor->image.fg_color;
1648 bg = cursor->image.bg_color;
1654 if (cursor->set & (FB_CUR_SETSHAPE | FB_CUR_SETIMAGE)) {
1655 u32 s_pitch = (ROUND_UP_TO(cursor->image.width, 8) / 8);
1656 u32 size = s_pitch * cursor->image.height;
1657 u8 *dat = (u8 *) cursor->image.data;
1658 u8 *msk = (u8 *) cursor->mask;
1662 if (cursor->image.depth != 1)
1665 switch (cursor->rop) {
1678 make the cursor dirty */
1681 intelfbhw_cursor_load(dinfo, cursor->image.width,
1682 cursor->image.height, src);
1685 if (cursor->enable)