Home
last modified time | relevance | path

Searched refs:cursor (Results 1 – 25 of 79) sorted by relevance

1234

/drivers/gpu/drm/mgag200/
Dmgag200_cursor.c25 if (mdev->cursor.pixels_1->pin_count) in mga_hide_cursor()
26 mgag200_bo_unpin(mdev->cursor.pixels_1); in mga_hide_cursor()
27 if (mdev->cursor.pixels_2->pin_count) in mga_hide_cursor()
28 mgag200_bo_unpin(mdev->cursor.pixels_2); in mga_hide_cursor()
39 struct mgag200_bo *pixels_1 = mdev->cursor.pixels_1; in mga_crtc_cursor_set()
40 struct mgag200_bo *pixels_2 = mdev->cursor.pixels_2; in mga_crtc_cursor_set()
41 struct mgag200_bo *pixels_current = mdev->cursor.pixels_current; in mga_crtc_cursor_set()
42 struct mgag200_bo *pixels_prev = mdev->cursor.pixels_prev; in mga_crtc_cursor_set()
96 &mdev->cursor.pixels_1_gpu_addr); in mga_crtc_cursor_set()
102 &mdev->cursor.pixels_2_gpu_addr); in mga_crtc_cursor_set()
[all …]
Dmgag200_main.c236 &mdev->cursor.pixels_1); in mgag200_driver_load()
238 &mdev->cursor.pixels_2); in mgag200_driver_load()
239 if (!mdev->cursor.pixels_2 || !mdev->cursor.pixels_1) in mgag200_driver_load()
241 mdev->cursor.pixels_current = mdev->cursor.pixels_1; in mgag200_driver_load()
242 mdev->cursor.pixels_prev = mdev->cursor.pixels_2; in mgag200_driver_load()
245 mdev->cursor.pixels_1 = NULL; in mgag200_driver_load()
246 mdev->cursor.pixels_2 = NULL; in mgag200_driver_load()
/drivers/video/fbdev/aty/
Dmach64_cursor.c67 static int atyfb_cursor(struct fb_info *info, struct fb_cursor *cursor) in atyfb_cursor() argument
81 if (cursor->enable) in atyfb_cursor()
89 if (cursor->set & FB_CUR_SETPOS) { in atyfb_cursor()
90 x = cursor->image.dx - cursor->hot.x - info->var.xoffset; in atyfb_cursor()
98 y = cursor->image.dy - cursor->hot.y - info->var.yoffset; in atyfb_cursor()
106 h = cursor->image.height; in atyfb_cursor()
124 if (cursor->set & FB_CUR_SETCMAP) { in atyfb_cursor()
127 fg_idx = cursor->image.fg_color; in atyfb_cursor()
128 bg_idx = cursor->image.bg_color; in atyfb_cursor()
143 if (cursor->set & (FB_CUR_SETSHAPE | FB_CUR_SETIMAGE)) { in atyfb_cursor()
[all …]
/drivers/video/console/
Dtileblit.c85 struct fb_tilecursor cursor; in tile_cursor() local
88 cursor.sx = vc->vc_x; in tile_cursor()
89 cursor.sy = vc->vc_y; in tile_cursor()
90 cursor.mode = (mode == CM_ERASE || use_sw) ? 0 : 1; in tile_cursor()
91 cursor.fg = fg; in tile_cursor()
92 cursor.bg = bg; in tile_cursor()
96 cursor.shape = FB_TILE_CURSOR_NONE; in tile_cursor()
99 cursor.shape = FB_TILE_CURSOR_UNDERLINE; in tile_cursor()
102 cursor.shape = FB_TILE_CURSOR_LOWER_THIRD; in tile_cursor()
105 cursor.shape = FB_TILE_CURSOR_LOWER_HALF; in tile_cursor()
[all …]
Dbitblit.c239 struct fb_cursor cursor; in bit_cursor() local
248 cursor.set = 0; in bit_cursor()
266 cursor.set |= FB_CUR_SETIMAGE; in bit_cursor()
286 cursor.set |= FB_CUR_SETCMAP; in bit_cursor()
294 cursor.set |= FB_CUR_SETPOS; in bit_cursor()
302 cursor.set |= FB_CUR_SETSIZE; in bit_cursor()
307 ops->cursor_state.hot.x = cursor.hot.y = 0; in bit_cursor()
308 cursor.set |= FB_CUR_SETHOT; in bit_cursor()
311 if (cursor.set & FB_CUR_SETSIZE || in bit_cursor()
326 cursor.set |= FB_CUR_SETSHAPE; in bit_cursor()
[all …]
Dfbcon_cw.c207 struct fb_cursor cursor; in cw_cursor() local
220 cursor.set = 0; in cw_cursor()
238 cursor.set |= FB_CUR_SETIMAGE; in cw_cursor()
258 cursor.set |= FB_CUR_SETCMAP; in cw_cursor()
266 cursor.set |= FB_CUR_SETSIZE; in cw_cursor()
277 cursor.set |= FB_CUR_SETPOS; in cw_cursor()
282 ops->cursor_state.hot.x = cursor.hot.y = 0; in cw_cursor()
283 cursor.set |= FB_CUR_SETHOT; in cw_cursor()
286 if (cursor.set & FB_CUR_SETSIZE || in cw_cursor()
308 cursor.set |= FB_CUR_SETSHAPE; in cw_cursor()
[all …]
Dfbcon_ccw.c224 struct fb_cursor cursor; in ccw_cursor() local
237 cursor.set = 0; in ccw_cursor()
255 cursor.set |= FB_CUR_SETIMAGE; in ccw_cursor()
275 cursor.set |= FB_CUR_SETCMAP; in ccw_cursor()
283 cursor.set |= FB_CUR_SETSIZE; in ccw_cursor()
294 cursor.set |= FB_CUR_SETPOS; in ccw_cursor()
299 ops->cursor_state.hot.x = cursor.hot.y = 0; in ccw_cursor()
300 cursor.set |= FB_CUR_SETHOT; in ccw_cursor()
303 if (cursor.set & FB_CUR_SETSIZE || in ccw_cursor()
325 cursor.set |= FB_CUR_SETSHAPE; in ccw_cursor()
[all …]
Dsoftcursor.c22 int soft_cursor(struct fb_info *info, struct fb_cursor *cursor) in soft_cursor() argument
34 s_pitch = (cursor->image.width + 7) >> 3; in soft_cursor()
35 dsize = s_pitch * cursor->image.height; in soft_cursor()
50 *image = cursor->image; in soft_cursor()
57 if (cursor->enable) { in soft_cursor()
58 switch (cursor->rop) { in soft_cursor()
61 src[i] = image->data[i] ^ cursor->mask[i]; in soft_cursor()
66 src[i] = image->data[i] & cursor->mask[i]; in soft_cursor()
Dfbcon_ud.c254 struct fb_cursor cursor; in ud_cursor() local
268 cursor.set = 0; in ud_cursor()
286 cursor.set |= FB_CUR_SETIMAGE; in ud_cursor()
306 cursor.set |= FB_CUR_SETCMAP; in ud_cursor()
314 cursor.set |= FB_CUR_SETSIZE; in ud_cursor()
325 cursor.set |= FB_CUR_SETPOS; in ud_cursor()
330 ops->cursor_state.hot.x = cursor.hot.y = 0; in ud_cursor()
331 cursor.set |= FB_CUR_SETHOT; in ud_cursor()
334 if (cursor.set & FB_CUR_SETSIZE || in ud_cursor()
349 cursor.set |= FB_CUR_SETSHAPE; in ud_cursor()
[all …]
/drivers/video/fbdev/intelfb/
Dintelfbdrv.c158 struct fb_cursor *cursor);
642 dinfo->cursor.size = HW_CURSOR_SIZE; in intelfb_pci_register()
668 dinfo->cursor.offset = offset + in intelfb_pci_register()
673 + (dinfo->cursor.size >> 12); in intelfb_pci_register()
724 agp_allocate_memory(bridge, dinfo->cursor.size >> 12, in intelfb_pci_register()
732 dinfo->cursor.offset)) { in intelfb_pci_register()
739 dinfo->cursor.physical in intelfb_pci_register()
742 dinfo->cursor.physical = dinfo->aperture.physical in intelfb_pci_register()
743 + (dinfo->cursor.offset << 12); in intelfb_pci_register()
744 dinfo->cursor.virtual = dinfo->aperture.virtual in intelfb_pci_register()
[all …]
/drivers/staging/speakup/
DDefaultKeyAssignments12 InsKeyPad-8 say from top of screen to reading cursor.
18 InsKeyPad-4 say from left edge of line to reading cursor.
20 InsKeyPad-6 Say from reading cursor to right edge of line.
26 InsKeyPad-plus Say from reading cursor line to bottom of screen.
27 KeyPad-Minus Park reading cursor (toggle)
31 InsKeyPad-9 Move reading cursor to top of screen (insert pgup)
32 InsKeyPad-3 Move reading cursor to bottom of screen (insert pgdn)
33 InsKeyPad-7 Move reading cursor to left edge of screen (insert home)
34 InsKeyPad-1 Move reading cursor to right edge of screen (insert end)
35 ControlKeyPad-1 Move reading cursor to last character on current line.
[all …]
/drivers/gpu/drm/msm/mdp/mdp4/
Dmdp4_crtc.c50 } cursor; member
497 spin_lock_irqsave(&mdp4_crtc->cursor.lock, flags); in update_cursor()
498 if (mdp4_crtc->cursor.stale) { in update_cursor()
499 struct drm_gem_object *next_bo = mdp4_crtc->cursor.next_bo; in update_cursor()
500 struct drm_gem_object *prev_bo = mdp4_crtc->cursor.scanout_bo; in update_cursor()
501 uint32_t iova = mdp4_crtc->cursor.next_iova; in update_cursor()
510 MDP4_DMA_CURSOR_SIZE_WIDTH(mdp4_crtc->cursor.width) | in update_cursor()
511 MDP4_DMA_CURSOR_SIZE_HEIGHT(mdp4_crtc->cursor.height)); in update_cursor()
526 mdp4_crtc->cursor.scanout_bo = next_bo; in update_cursor()
527 mdp4_crtc->cursor.stale = false; in update_cursor()
[all …]
/drivers/video/fbdev/
Dpm2fb.c1264 static int pm2vfb_cursor(struct fb_info *info, struct fb_cursor *cursor) in pm2vfb_cursor() argument
1268 int x = cursor->image.dx - info->var.xoffset; in pm2vfb_cursor()
1269 int y = cursor->image.dy - info->var.yoffset; in pm2vfb_cursor()
1271 if (cursor->enable) in pm2vfb_cursor()
1276 if (!cursor->enable) in pm2vfb_cursor()
1288 if (!cursor->set) in pm2vfb_cursor()
1291 if (cursor->set & FB_CUR_SETHOT) { in pm2vfb_cursor()
1293 cursor->hot.x & 0x3f); in pm2vfb_cursor()
1295 cursor->hot.y & 0x3f); in pm2vfb_cursor()
1298 if (cursor->set & FB_CUR_SETCMAP) { in pm2vfb_cursor()
[all …]
Dpmag-aa-fb.c87 struct aafb_cursor cursor; member
107 struct aafb_cursor *c = &info->cursor; in aafb_set_cursor()
119 struct aafb_cursor *c = &info->cursor; in aafbcon_cursor()
151 struct aafb_cursor *c = &info->cursor; in aafbcon_set_font()
168 struct aafb_cursor *c = &info->cursor; in aafb_cursor_timer_handler()
186 struct aafb_cursor *c = &info->cursor; in aafb_cursor_init()
203 struct aafb_cursor *c = &info->cursor; in aafb_cursor_exit()
215 .cursor = aafbcon_cursor,
384 aafbcon_cursor(disp, CM_ERASE, ip->cursor.x, ip->cursor.y); in aafb_update_var()
397 aafbcon_cursor(&ip->disp, CM_ERASE, ip->cursor.x, ip->cursor.y); in aafb_blank()
Dfsl-diu-fb.c381 __le16 cursor[MAX_CURS * MAX_CURS] __aligned(32); member
447 hw->pallete, hw->cursor, hw->curs_pos, hw->diu_mode, in fsl_diu_dump()
1002 __le16 *cursor = data->cursor; in fsl_diu_load_cursor_image() local
1012 cursor[w] = (line & mask) ? _fg : _bg; in fsl_diu_load_cursor_image()
1016 cursor += MAX_CURS; in fsl_diu_load_cursor_image()
1025 static int fsl_diu_cursor(struct fb_info *info, struct fb_cursor *cursor) in fsl_diu_cursor() argument
1031 if (cursor->image.width > MAX_CURS || cursor->image.height > MAX_CURS) in fsl_diu_cursor()
1035 if (cursor->set & FB_CUR_SETSIZE) { in fsl_diu_cursor()
1043 memset(data->cursor, 0, sizeof(data->cursor)); in fsl_diu_cursor()
1047 if (cursor->set & FB_CUR_SETPOS) { in fsl_diu_cursor()
[all …]
Dsm501fb.c108 struct sm501_mem cursor; member
1040 static int sm501fb_cursor(struct fb_info *info, struct fb_cursor *cursor) in sm501fb_cursor() argument
1048 dev_dbg(fbi->dev, "%s(%p,%p)\n", __func__, info, cursor); in sm501fb_cursor()
1057 if (cursor->image.width > 64) in sm501fb_cursor()
1060 if (cursor->image.height > 64) in sm501fb_cursor()
1063 if (cursor->image.depth > 1) in sm501fb_cursor()
1068 if (cursor->enable) in sm501fb_cursor()
1076 if (cursor->set & FB_CUR_SETPOS) { in sm501fb_cursor()
1077 unsigned int x = cursor->image.dx; in sm501fb_cursor()
1078 unsigned int y = cursor->image.dy; in sm501fb_cursor()
[all …]
Dpm3fb.c619 static int pm3fb_cursor(struct fb_info *info, struct fb_cursor *cursor) in pm3fb_cursor() argument
628 if (cursor->image.width > 64 || in pm3fb_cursor()
629 cursor->image.height > 64 || in pm3fb_cursor()
630 cursor->image.depth > 1) in pm3fb_cursor()
634 if (cursor->enable) in pm3fb_cursor()
644 if (!cursor->set) in pm3fb_cursor()
647 if (cursor->set & FB_CUR_SETPOS) { in pm3fb_cursor()
648 int x = cursor->image.dx - info->var.xoffset; in pm3fb_cursor()
649 int y = cursor->image.dy - info->var.yoffset; in pm3fb_cursor()
657 if (cursor->set & FB_CUR_SETHOT) { in pm3fb_cursor()
[all …]
Dleo.c186 struct leo_cursor __iomem *cursor; member
212 struct leo_cursor __iomem *cursor = par->cursor; in leo_switch_from_graph() local
245 sbus_writel(sbus_readl(&cursor->cur_misc) & ~LEO_CUR_ENABLE, &cursor->cur_misc); in leo_switch_from_graph()
543 if (par->cursor) in leo_unmap_regs()
545 par->cursor, sizeof(struct leo_cursor)); in leo_unmap_regs()
588 par->cursor = in leo_probe()
598 !par->cursor || in leo_probe()
Dcobalt_lcdfb.c291 static int cobalt_lcdfb_cursor(struct fb_info *info, struct fb_cursor *cursor) in cobalt_lcdfb_cursor() argument
296 switch (cursor->set) { in cobalt_lcdfb_cursor()
298 x = cursor->image.dx; in cobalt_lcdfb_cursor()
299 y = cursor->image.dy; in cobalt_lcdfb_cursor()
318 if (cursor->enable) in cobalt_lcdfb_cursor()
/drivers/gpu/drm/nouveau/dispnv04/
Dcrtc.c164 nv_crtc->cursor.set_offset(nv_crtc, nv_crtc->cursor.offset); in nv_crtc_calc_state_ext()
759 nouveau_bo_unmap(nv_crtc->cursor.nvbo); in nv_crtc_destroy()
760 nouveau_bo_unpin(nv_crtc->cursor.nvbo); in nv_crtc_destroy()
761 nouveau_bo_ref(NULL, &nv_crtc->cursor.nvbo); in nv_crtc_destroy()
992 struct nouveau_bo *cursor = NULL; in nv04_crtc_cursor_set() local
997 nv_crtc->cursor.hide(nv_crtc, true); in nv04_crtc_cursor_set()
1007 cursor = nouveau_gem_object(gem); in nv04_crtc_cursor_set()
1009 ret = nouveau_bo_map(cursor); in nv04_crtc_cursor_set()
1014 nv11_cursor_upload(dev, cursor, nv_crtc->cursor.nvbo); in nv04_crtc_cursor_set()
1016 nv04_cursor_upload(dev, cursor, nv_crtc->cursor.nvbo); in nv04_crtc_cursor_set()
[all …]
Dcursor.c65 crtc->cursor.set_offset = nv04_cursor_set_offset; in nv04_cursor_init()
66 crtc->cursor.set_pos = nv04_cursor_set_pos; in nv04_cursor_init()
67 crtc->cursor.hide = nv04_cursor_hide; in nv04_cursor_init()
68 crtc->cursor.show = nv04_cursor_show; in nv04_cursor_init()
/drivers/dma/ppc4xx/
Dadma.c130 struct ppc440spe_rxor *cursor, int index,
2082 static void ppc440spe_init_rxor_cursor(struct ppc440spe_rxor *cursor);
3244 struct ppc440spe_rxor *cursor, int index, int src_cnt) in ppc440spe_adma_dma2rxor_inc_addr() argument
3246 cursor->addr_count++; in ppc440spe_adma_dma2rxor_inc_addr()
3248 ppc440spe_desc_set_xor_src_cnt(desc, cursor->addr_count); in ppc440spe_adma_dma2rxor_inc_addr()
3249 } else if (cursor->addr_count == XOR_MAX_OPS) { in ppc440spe_adma_dma2rxor_inc_addr()
3250 ppc440spe_desc_set_xor_src_cnt(desc, cursor->addr_count); in ppc440spe_adma_dma2rxor_inc_addr()
3251 cursor->addr_count = 0; in ppc440spe_adma_dma2rxor_inc_addr()
3252 cursor->desc_count++; in ppc440spe_adma_dma2rxor_inc_addr()
3261 struct ppc440spe_rxor *cursor, int index, in ppc440spe_adma_dma2rxor_prep_src() argument
[all …]
/drivers/video/fbdev/nvidia/
Dnvidia.c538 static int nvidiafb_cursor(struct fb_info *info, struct fb_cursor *cursor) in nvidiafb_cursor() argument
542 int i, set = cursor->set; in nvidiafb_cursor()
545 if (cursor->image.width > MAX_CURS || cursor->image.height > MAX_CURS) in nvidiafb_cursor()
561 yy = cursor->image.dy - info->var.yoffset; in nvidiafb_cursor()
562 xx = cursor->image.dx - info->var.xoffset; in nvidiafb_cursor()
570 u32 bg_idx = cursor->image.bg_color; in nvidiafb_cursor()
571 u32 fg_idx = cursor->image.fg_color; in nvidiafb_cursor()
572 u32 s_pitch = (cursor->image.width + 7) >> 3; in nvidiafb_cursor()
574 u8 *dat = (u8 *) cursor->image.data; in nvidiafb_cursor()
575 u8 *msk = (u8 *) cursor->mask; in nvidiafb_cursor()
[all …]
/drivers/gpu/drm/qxl/
Dqxl_display.c278 struct qxl_cursor *cursor; in qxl_crtc_cursor_set2() local
325 ret = qxl_bo_kmap(cursor_bo, (void **)&cursor); in qxl_crtc_cursor_set2()
329 cursor->header.unique = 0; in qxl_crtc_cursor_set2()
330 cursor->header.type = SPICE_CURSOR_TYPE_ALPHA; in qxl_crtc_cursor_set2()
331 cursor->header.width = 64; in qxl_crtc_cursor_set2()
332 cursor->header.height = 64; in qxl_crtc_cursor_set2()
333 cursor->header.hot_spot_x = hot_x; in qxl_crtc_cursor_set2()
334 cursor->header.hot_spot_y = hot_y; in qxl_crtc_cursor_set2()
335 cursor->data_size = size; in qxl_crtc_cursor_set2()
336 cursor->chunk.next_chunk = 0; in qxl_crtc_cursor_set2()
[all …]
/drivers/video/fbdev/via/
Dviafbdev.c771 static int viafb_cursor(struct fb_info *info, struct fb_cursor *cursor) in viafb_cursor() argument
789 if (cursor->set & FB_CUR_SETHOT) { in viafb_cursor()
790 temp = (cursor->hot.x << 16) + cursor->hot.y; in viafb_cursor()
794 if (cursor->set & FB_CUR_SETPOS) { in viafb_cursor()
795 yy = cursor->image.dy - info->var.yoffset; in viafb_cursor()
796 xx = cursor->image.dx - info->var.xoffset; in viafb_cursor()
802 if (cursor->image.width <= 32 && cursor->image.height <= 32) in viafb_cursor()
804 else if (cursor->image.width <= 64 && cursor->image.height <= 64) in viafb_cursor()
808 "%dx%d", cursor->image.width, cursor->image.height); in viafb_cursor()
812 if (cursor->set & FB_CUR_SETSIZE) { in viafb_cursor()
[all …]

1234