Lines Matching defs:cursor

105 	struct sm501_mem	 cursor;
1035 * set or change the hardware cursor parameters
1038 static int sm501fb_cursor(struct fb_info *info, struct fb_cursor *cursor)
1046 dev_dbg(fbi->dev, "%s(%p,%p)\n", __func__, info, cursor);
1055 if (cursor->image.width > 64)
1058 if (cursor->image.height > 64)
1061 if (cursor->image.depth > 1)
1066 if (cursor->enable)
1074 if (cursor->set & FB_CUR_SETPOS) {
1075 unsigned int x = cursor->image.dx;
1076 unsigned int y = cursor->image.dy;
1083 //y += cursor->image.height;
1088 if (cursor->set & FB_CUR_SETCMAP) {
1089 unsigned int bg_col = cursor->image.bg_color;
1090 unsigned int fg_col = cursor->image.fg_color;
1109 if (cursor->set & FB_CUR_SETSIZE ||
1110 cursor->set & (FB_CUR_SETIMAGE | FB_CUR_SETSHAPE)) {
1111 /* SM501 cursor is a two bpp 64x64 bitmap this routine
1112 * clears it to transparent then combines the cursor
1114 * cursor */
1116 const unsigned char *pcol = cursor->image.data;
1117 const unsigned char *pmsk = cursor->mask;
1118 void __iomem *dst = par->cursor.k_addr;
1124 __func__, cursor->image.width, cursor->image.height);
1129 for (y = 0; y < cursor->image.height; y++) {
1130 for (x = 0; x < cursor->image.width; x++) {
1151 sm501fb_sync_regs(fbi); /* ensure cursor data flushed */
1238 * show the crt control and cursor registers
1257 * show the panel control and cursor registers
1483 * initialise hw cursor parameters
1500 ret = sm501_alloc_mem(info, &par->cursor, SM501_MEMF_CURSOR, 1024,
1507 smc501_writel(par->cursor.sm_addr,
2101 par->store_cursor = vmalloc(par->cursor.size);
2103 dev_err(info->dev, "no memory to store cursor\n");
2108 dev_dbg(info->dev, "suspending cursor to %p\n", par->store_cursor);
2111 memcpy_fromio(par->store_cursor, par->cursor.k_addr, par->cursor.size);
2142 dev_dbg(info->dev, "restoring cursor from %p\n", par->store_cursor);
2149 memcpy_toio(par->cursor.k_addr, par->store_cursor,
2150 par->cursor.size);