/drivers/gpu/drm/nouveau/ |
H A D | nv50_cursor.c | 46 if (update && nv_crtc->cursor.visible) 51 NV_ERROR(dev, "no space while unhiding cursor\n"); 61 OUT_RING(evo, nv_crtc->cursor.offset >> 8); 67 nv_crtc->cursor.visible = true; 81 if (update && !nv_crtc->cursor.visible) 86 NV_ERROR(dev, "no space while hiding cursor\n"); 101 nv_crtc->cursor.visible = false; 113 /* Needed to make the cursor move. */ 121 if (offset == nv_crtc->cursor.offset) 124 nv_crtc->cursor [all...] |
H A D | nv04_cursor.c | 65 crtc->cursor.set_offset = nv04_cursor_set_offset; 66 crtc->cursor.set_pos = nv04_cursor_set_pos; 67 crtc->cursor.hide = nv04_cursor_hide; 68 crtc->cursor.show = nv04_cursor_show;
|
H A D | nv50_crtc.c | 75 nv_crtc->cursor.hide(nv_crtc, false); 93 if (nv_crtc->cursor.visible) 94 nv_crtc->cursor.show(nv_crtc, false); 96 nv_crtc->cursor.hide(nv_crtc, false); 366 nouveau_bo_unmap(nv_crtc->cursor.nvbo); 367 nouveau_bo_ref(NULL, &nv_crtc->cursor.nvbo); 377 struct nouveau_bo *cursor = NULL; local 382 nv_crtc->cursor.hide(nv_crtc, true); 392 cursor = nouveau_gem_object(gem); 394 ret = nouveau_bo_map(cursor); [all...] |
H A D | nv04_crtc.c | 153 nv_crtc->cursor.set_offset(nv_crtc, nv_crtc->cursor.offset); 725 nouveau_bo_unmap(nv_crtc->cursor.nvbo); 726 nouveau_bo_ref(NULL, &nv_crtc->cursor.nvbo); 959 struct nouveau_bo *cursor = NULL; local 964 nv_crtc->cursor.hide(nv_crtc, true); 974 cursor = nouveau_gem_object(gem); 976 ret = nouveau_bo_map(cursor); 981 nv11_cursor_upload(dev, cursor, nv_crtc->cursor [all...] |
H A D | nouveau_crtc.h | 58 } cursor; member in struct:nouveau_crtc
|
H A D | nouveau_drv.c | 205 nouveau_bo_unmap(nv_crtc->cursor.nvbo); 206 nouveau_bo_unpin(nv_crtc->cursor.nvbo); 355 ret = nouveau_bo_pin(nv_crtc->cursor.nvbo, TTM_PL_FLAG_VRAM); 357 ret = nouveau_bo_map(nv_crtc->cursor.nvbo); 359 NV_ERROR(dev, "Could not pin/map cursor.\n"); 378 u32 offset = nv_crtc->cursor.nvbo->bo.offset; 380 nv_crtc->cursor.set_offset(nv_crtc, offset); 381 nv_crtc->cursor.set_pos(nv_crtc, nv_crtc->cursor_saved_x,
|
/drivers/video/console/ |
H A D | softcursor.c | 4 * Generic software cursor for frame buffer devices 22 int soft_cursor(struct fb_info *info, struct fb_cursor *cursor) argument 34 s_pitch = (cursor->image.width + 7) >> 3; 35 dsize = s_pitch * cursor->image.height; 51 *image = cursor->image; 58 if (cursor->enable) { 59 switch (cursor->rop) { 62 src[i] = image->data[i] ^ cursor->mask[i]; 67 src[i] = image->data[i] & cursor->mask[i]; 82 MODULE_DESCRIPTION("Generic software cursor"); [all...] |
H A D | tileblit.c | 85 struct fb_tilecursor cursor; local 88 cursor.sx = vc->vc_x; 89 cursor.sy = vc->vc_y; 90 cursor.mode = (mode == CM_ERASE || use_sw) ? 0 : 1; 91 cursor.fg = fg; 92 cursor.bg = bg; 96 cursor.shape = FB_TILE_CURSOR_NONE; 99 cursor.shape = FB_TILE_CURSOR_UNDERLINE; 102 cursor.shape = FB_TILE_CURSOR_LOWER_THIRD; 105 cursor [all...] |
H A D | bitblit.c | 240 struct fb_cursor cursor; local 249 cursor.set = 0; 267 cursor.set |= FB_CUR_SETIMAGE; 287 cursor.set |= FB_CUR_SETCMAP; 295 cursor.set |= FB_CUR_SETPOS; 303 cursor.set |= FB_CUR_SETSIZE; 308 ops->cursor_state.hot.x = cursor.hot.y = 0; 309 cursor.set |= FB_CUR_SETHOT; 312 if (cursor.set & FB_CUR_SETSIZE || 327 cursor [all...] |
H A D | fbcon_ccw.c | 225 struct fb_cursor cursor; local 238 cursor.set = 0; 256 cursor.set |= FB_CUR_SETIMAGE; 276 cursor.set |= FB_CUR_SETCMAP; 284 cursor.set |= FB_CUR_SETSIZE; 295 cursor.set |= FB_CUR_SETPOS; 300 ops->cursor_state.hot.x = cursor.hot.y = 0; 301 cursor.set |= FB_CUR_SETHOT; 304 if (cursor.set & FB_CUR_SETSIZE || 326 cursor [all...] |
H A D | fbcon_cw.c | 209 struct fb_cursor cursor; local 222 cursor.set = 0; 240 cursor.set |= FB_CUR_SETIMAGE; 260 cursor.set |= FB_CUR_SETCMAP; 268 cursor.set |= FB_CUR_SETSIZE; 279 cursor.set |= FB_CUR_SETPOS; 284 ops->cursor_state.hot.x = cursor.hot.y = 0; 285 cursor.set |= FB_CUR_SETHOT; 288 if (cursor.set & FB_CUR_SETSIZE || 310 cursor [all...] |
H A D | fbcon_ud.c | 255 struct fb_cursor cursor; local 269 cursor.set = 0; 287 cursor.set |= FB_CUR_SETIMAGE; 307 cursor.set |= FB_CUR_SETCMAP; 315 cursor.set |= FB_CUR_SETSIZE; 326 cursor.set |= FB_CUR_SETPOS; 331 ops->cursor_state.hot.x = cursor.hot.y = 0; 332 cursor.set |= FB_CUR_SETHOT; 335 if (cursor.set & FB_CUR_SETSIZE || 350 cursor [all...] |
/drivers/video/aty/ |
H A D | mach64_cursor.c | 19 * The hardware cursor definition requires 2 bits per pixel. The 20 * Cursor size reguardless of the visible cursor size is 64 pixels 21 * by 64 lines. The total memory required to define the cursor is 23 * must be in a contigiuos format. The 2 bit cursor code values are 45 * cursor is specificed by CURS_HORZ_VERT_POSN. Care must be taken 46 * when the cursor hot spot is not the top left corner and the 47 * physical cursor position becomes negative. It will be be displayed 48 * if either the horizontal or vertical cursor position is negative 50 * If x becomes negative the cursor manager must adjust the CURS_HORZ_OFFSET 54 * CUR_OFFSET must be adjusted to a point to the appropriate line in the cursor 66 atyfb_cursor(struct fb_info *info, struct fb_cursor *cursor) argument [all...] |
/drivers/video/intelfb/ |
H A D | intelfbdrv.c | 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 1577 intelfb_cursor(struct fb_info *info, struct fb_cursor *cursor) argument [all...] |
/drivers/video/ |
H A D | pmag-aa-fb.c | 23 * Hardware cursor support. 61 * Bt431 cursor generator offset (rel. to TC slot base address). 87 struct aafb_cursor cursor; member in struct:aafb_info 107 struct aafb_cursor *c = &info->cursor; 119 struct aafb_cursor *c = &info->cursor; 151 struct aafb_cursor *c = &info->cursor; 168 struct aafb_cursor *c = &info->cursor; 186 struct aafb_cursor *c = &info->cursor; 203 struct aafb_cursor *c = &info->cursor; 215 .cursor [all...] |
H A D | pm2fb.c | 73 * The XFree GLINT driver will (I think to implement hardware cursor 527 * The hardware cursor needs +vsync to recognise vert retrace. 528 * We may not be using the hardware cursor, but the X Glint 1257 * Hardware cursor support. 1264 static int pm2vfb_cursor(struct fb_info *info, struct fb_cursor *cursor) argument 1268 int x = cursor->image.dx - info->var.xoffset; 1269 int y = cursor->image.dy - info->var.yoffset; 1271 if (cursor->enable) 1276 if (!cursor->enable) 1284 * If the cursor i 1365 pm2fb_cursor(struct fb_info *info, struct fb_cursor *cursor) argument [all...] |
H A D | cobalt_lcdfb.c | 248 static int cobalt_lcdfb_cursor(struct fb_info *info, struct fb_cursor *cursor) argument 253 switch (cursor->set) { 255 x = cursor->image.dx; 256 y = cursor->image.dy; 275 if (cursor->enable)
|
H A D | sm501fb.c | 108 struct sm501_mem cursor; member in struct:sm501fb_par 1037 * set or change the hardware cursor parameters 1040 static int sm501fb_cursor(struct fb_info *info, struct fb_cursor *cursor) argument 1048 dev_dbg(fbi->dev, "%s(%p,%p)\n", __func__, info, cursor); 1057 if (cursor->image.width > 64) 1060 if (cursor->image.height > 64) 1063 if (cursor->image.depth > 1) 1068 if (cursor->enable) 1076 if (cursor->set & FB_CUR_SETPOS) { 1077 unsigned int x = cursor [all...] |
H A D | leo.c | 186 struct leo_cursor __iomem *cursor; member in struct:leo_par 212 struct leo_cursor __iomem *cursor = par->cursor; local 244 /* hide cursor */ 245 sbus_writel(sbus_readl(&cursor->cur_misc) & ~LEO_CUR_ENABLE, &cursor->cur_misc); 543 if (par->cursor) 545 par->cursor, sizeof(struct leo_cursor)); 588 par->cursor = 590 sizeof(struct leo_cursor), "leolx cursor"); [all...] |
H A D | g364fb.c | 111 static int g364fb_cursor(struct fb_info *info, struct fb_cursor *cursor); 125 int g364fb_cursor(struct fb_info *info, struct fb_cursor *cursor) argument 128 switch (cursor->enable) { 216 /* setup cursor */ 222 * first set the whole cursor to transparent 228 * switch the last two lines to cursor palette 3
|
H A D | pm3fb.c | 619 static int pm3fb_cursor(struct fb_info *info, struct fb_cursor *cursor) argument 627 /* Too large of a cursor or wrong bpp :-( */ 628 if (cursor->image.width > 64 || 629 cursor->image.height > 64 || 630 cursor->image.depth > 1) 634 if (cursor->enable) 640 * If the cursor is not be changed this means either we want the 641 * current cursor state (if enable is set) or we want to query what 642 * we can do with the cursor (if enable is not set) 644 if (!cursor [all...] |
H A D | tdfxfb.c | 25 * (proper acceleration, 24 bpp, hardware cursor) and bug fixes by Attila 1059 static int tdfxfb_cursor(struct fb_info *info, struct fb_cursor *cursor) argument 1067 /* Too large of a cursor or wrong bpp :-( */ 1068 if (cursor->image.width > 64 || 1069 cursor->image.height > 64 || 1070 cursor->image.depth > 1) 1074 if (cursor->enable) 1080 * If the cursor is not be changed this means either we want the 1081 * current cursor state (if enable is set) or we want to query what 1082 * we can do with the cursor (i [all...] |
H A D | imsttfb.c | 1199 imsttfb_cursor(struct fb_info *info, struct fb_cursor *cursor) 1202 u32 flags = cursor->set, fg, bg, xx, yy; 1204 if (cursor->dest == NULL && cursor->rop == ROP_XOR) 1207 imstt_set_cursor(info, cursor, 0); 1210 xx = cursor->image.dx - info->var.xoffset; 1211 yy = cursor->image.dy - info->var.yoffset; 1218 int fg_idx = cursor->image.fg_color; 1219 int width = (cursor->image.width+7)/8; 1220 u8 *dat = (u8 *) cursor [all...] |
/drivers/dma/ppc4xx/ |
H A D | adma.c | 127 struct ppc440spe_rxor *cursor, int index, 2430 static void ppc440spe_init_rxor_cursor(struct ppc440spe_rxor *cursor); 3592 struct ppc440spe_rxor *cursor, int index, int src_cnt) 3594 cursor->addr_count++; 3596 ppc440spe_desc_set_xor_src_cnt(desc, cursor->addr_count); 3597 } else if (cursor->addr_count == XOR_MAX_OPS) { 3598 ppc440spe_desc_set_xor_src_cnt(desc, cursor->addr_count); 3599 cursor->addr_count = 0; 3600 cursor->desc_count++; 3609 struct ppc440spe_rxor *cursor, in 3590 ppc440spe_adma_dma2rxor_inc_addr( struct ppc440spe_adma_desc_slot *desc, struct ppc440spe_rxor *cursor, int index, int src_cnt) argument 3607 ppc440spe_adma_dma2rxor_prep_src( struct ppc440spe_adma_desc_slot *hdesc, struct ppc440spe_rxor *cursor, int index, int src_cnt, u32 addr) argument 3806 ppc440spe_init_rxor_cursor(struct ppc440spe_rxor *cursor) argument [all...] |
/drivers/video/nvidia/ |
H A D | nvidia.c | 62 /* HW cursor parameters */ 538 static int nvidiafb_cursor(struct fb_info *info, struct fb_cursor *cursor) argument 542 int i, set = cursor->set; 545 if (cursor->image.width > MAX_CURS || cursor->image.height > MAX_CURS) 561 yy = cursor->image.dy - info->var.yoffset; 562 xx = cursor->image.dx - info->var.xoffset; 570 u32 bg_idx = cursor->image.bg_color; 571 u32 fg_idx = cursor->image.fg_color; 572 u32 s_pitch = (cursor [all...] |