Lines Matching refs:cursor
154 struct fb_cursor *cursor);
610 dinfo->cursor.size = HW_CURSOR_SIZE; in intelfb_pci_register()
636 dinfo->cursor.offset = offset + in intelfb_pci_register()
641 + (dinfo->cursor.size >> 12); in intelfb_pci_register()
692 agp_allocate_memory(bridge, dinfo->cursor.size >> 12, in intelfb_pci_register()
700 dinfo->cursor.offset)) { in intelfb_pci_register()
707 dinfo->cursor.physical in intelfb_pci_register()
710 dinfo->cursor.physical = dinfo->aperture.physical in intelfb_pci_register()
711 + (dinfo->cursor.offset << 12); in intelfb_pci_register()
712 dinfo->cursor.virtual = dinfo->aperture.virtual in intelfb_pci_register()
713 + (dinfo->cursor.offset << 12); in intelfb_pci_register()
756 dinfo->cursor.physical, dinfo->cursor.size, in intelfb_pci_register()
757 dinfo->cursor.virtual, dinfo->cursor.offset, in intelfb_pci_register()
758 dinfo->cursor.physical); in intelfb_pci_register()
1543 static int intelfb_cursor(struct fb_info *info, struct fb_cursor *cursor) in intelfb_cursor() argument
1557 physical = (dinfo->mobile || IS_I9XX(dinfo)) ? dinfo->cursor.physical : in intelfb_cursor()
1558 (dinfo->cursor.offset << 12); in intelfb_cursor()
1565 cursor->image.width, cursor->image.height, in intelfb_cursor()
1566 cursor->image.dx, cursor->image.dy); in intelfb_cursor()
1570 intelfbhw_cursor_setpos(dinfo, cursor->image.dx, in intelfb_cursor()
1571 cursor->image.dy); in intelfb_cursor()
1574 fg =dinfo->pseudo_palette[cursor->image.fg_color]; in intelfb_cursor()
1575 bg =dinfo->pseudo_palette[cursor->image.bg_color]; in intelfb_cursor()
1577 fg = cursor->image.fg_color; in intelfb_cursor()
1578 bg = cursor->image.bg_color; in intelfb_cursor()
1581 intelfbhw_cursor_load(dinfo, cursor->image.width, in intelfb_cursor()
1582 cursor->image.height, in intelfb_cursor()
1585 if (cursor->enable) in intelfb_cursor()
1590 if (cursor->set & FB_CUR_SETPOS) { in intelfb_cursor()
1593 dx = cursor->image.dx - info->var.xoffset; in intelfb_cursor()
1594 dy = cursor->image.dy - info->var.yoffset; in intelfb_cursor()
1599 if (cursor->set & FB_CUR_SETSIZE) { in intelfb_cursor()
1600 if (cursor->image.width > 64 || cursor->image.height > 64) in intelfb_cursor()
1606 if (cursor->set & FB_CUR_SETCMAP) { in intelfb_cursor()
1610 fg = dinfo->pseudo_palette[cursor->image.fg_color]; in intelfb_cursor()
1611 bg = dinfo->pseudo_palette[cursor->image.bg_color]; in intelfb_cursor()
1613 fg = cursor->image.fg_color; in intelfb_cursor()
1614 bg = cursor->image.bg_color; in intelfb_cursor()
1620 if (cursor->set & (FB_CUR_SETSHAPE | FB_CUR_SETIMAGE)) { in intelfb_cursor()
1621 u32 s_pitch = (ROUND_UP_TO(cursor->image.width, 8) / 8); in intelfb_cursor()
1622 u32 size = s_pitch * cursor->image.height; in intelfb_cursor()
1623 u8 *dat = (u8 *) cursor->image.data; in intelfb_cursor()
1624 u8 *msk = (u8 *) cursor->mask; in intelfb_cursor()
1628 if (cursor->image.depth != 1) in intelfb_cursor()
1631 switch (cursor->rop) { in intelfb_cursor()
1647 intelfbhw_cursor_load(dinfo, cursor->image.width, in intelfb_cursor()
1648 cursor->image.height, src); in intelfb_cursor()
1651 if (cursor->enable) in intelfb_cursor()