• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/video/

Lines Matching defs:cursor

87 	struct sm501_mem	 cursor;
1015 * set or change the hardware cursor parameters
1018 static int sm501fb_cursor(struct fb_info *info, struct fb_cursor *cursor)
1026 dev_dbg(fbi->dev, "%s(%p,%p)\n", __func__, info, cursor);
1035 if (cursor->image.width > 64)
1038 if (cursor->image.height > 64)
1041 if (cursor->image.depth > 1)
1046 if (cursor->enable)
1052 if (cursor->set & FB_CUR_SETPOS) {
1053 unsigned int x = cursor->image.dx;
1054 unsigned int y = cursor->image.dy;
1061 //y += cursor->image.height;
1066 if (cursor->set & FB_CUR_SETCMAP) {
1067 unsigned int bg_col = cursor->image.bg_color;
1068 unsigned int fg_col = cursor->image.fg_color;
1087 if (cursor->set & FB_CUR_SETSIZE ||
1088 cursor->set & (FB_CUR_SETIMAGE | FB_CUR_SETSHAPE)) {
1089 /* SM501 cursor is a two bpp 64x64 bitmap this routine
1090 * clears it to transparent then combines the cursor
1092 * cursor */
1094 const unsigned char *pcol = cursor->image.data;
1095 const unsigned char *pmsk = cursor->mask;
1096 void __iomem *dst = par->cursor.k_addr;
1102 __func__, cursor->image.width, cursor->image.height);
1107 for (y = 0; y < cursor->image.height; y++) {
1108 for (x = 0; x < cursor->image.width; x++) {
1129 sm501fb_sync_regs(fbi); /* ensure cursor data flushed */
1215 * show the crt control and cursor registers
1234 * show the panel control and cursor registers
1449 * initialise hw cursor parameters
1466 ret = sm501_alloc_mem(info, &par->cursor, SM501_MEMF_CURSOR, 1024,
1473 writel(par->cursor.sm_addr, par->cursor_regs + SM501_OFF_HWC_ADDR);
2025 par->store_cursor = vmalloc(par->cursor.size);
2027 dev_err(info->dev, "no memory to store cursor\n");
2032 dev_dbg(info->dev, "suspending cursor to %p\n", par->store_cursor);
2035 memcpy_fromio(par->store_cursor, par->cursor.k_addr, par->cursor.size);
2062 dev_dbg(info->dev, "restoring cursor from %p\n", par->store_cursor);
2069 memcpy_toio(par->cursor.k_addr, par->store_cursor,
2070 par->cursor.size);