/drivers/gpu/drm/sti/ |
D | sti_cursor.c | 80 readl(cursor->regs + reg)) 93 struct sti_cursor *cursor, u32 val) in cursor_dbg_pml() argument 95 if (cursor->pixmap.paddr == val) in cursor_dbg_pml() 96 seq_printf(s, "\tVirt @: %p", cursor->pixmap.base); in cursor_dbg_pml() 100 struct sti_cursor *cursor, u32 val) in cursor_dbg_cml() argument 102 if (cursor->clut_paddr == val) in cursor_dbg_cml() 103 seq_printf(s, "\tVirt @: %p", cursor->clut); in cursor_dbg_cml() 109 struct sti_cursor *cursor = (struct sti_cursor *)node->info_ent->data; in cursor_dbg_show() local 112 sti_plane_to_str(&cursor->plane), cursor->regs); in cursor_dbg_show() 116 cursor_dbg_vpo(s, readl(cursor->regs + CUR_VPO)); in cursor_dbg_show() [all …]
|
/drivers/staging/sm750fb/ |
D | sm750_cursor.c | 23 writel((data), cursor->mmio + (addr)) 48 void sm750_hw_cursor_enable(struct lynx_cursor *cursor) in sm750_hw_cursor_enable() argument 52 reg = (cursor->offset & HWC_ADDRESS_ADDRESS_MASK) | HWC_ADDRESS_ENABLE; in sm750_hw_cursor_enable() 56 void sm750_hw_cursor_disable(struct lynx_cursor *cursor) in sm750_hw_cursor_disable() argument 61 void sm750_hw_cursor_setSize(struct lynx_cursor *cursor, int w, int h) in sm750_hw_cursor_setSize() argument 63 cursor->w = w; in sm750_hw_cursor_setSize() 64 cursor->h = h; in sm750_hw_cursor_setSize() 67 void sm750_hw_cursor_setPos(struct lynx_cursor *cursor, int x, int y) in sm750_hw_cursor_setPos() argument 76 void sm750_hw_cursor_setColor(struct lynx_cursor *cursor, u32 fg, u32 bg) in sm750_hw_cursor_setColor() argument 85 void sm750_hw_cursor_setData(struct lynx_cursor *cursor, u16 rop, in sm750_hw_cursor_setData() argument [all …]
|
D | sm750_cursor.h | 6 void sm750_hw_cursor_enable(struct lynx_cursor *cursor); 7 void sm750_hw_cursor_disable(struct lynx_cursor *cursor); 8 void sm750_hw_cursor_setSize(struct lynx_cursor *cursor, int w, int h); 9 void sm750_hw_cursor_setPos(struct lynx_cursor *cursor, int x, int y); 10 void sm750_hw_cursor_setColor(struct lynx_cursor *cursor, u32 fg, u32 bg); 11 void sm750_hw_cursor_setData(struct lynx_cursor *cursor, u16 rop, 13 void sm750_hw_cursor_setData2(struct lynx_cursor *cursor, u16 rop,
|
D | sm750.c | 109 struct lynx_cursor *cursor; in lynxfb_ops_cursor() local 113 cursor = &crtc->cursor; in lynxfb_ops_cursor() 115 if (fbcursor->image.width > cursor->max_w || in lynxfb_ops_cursor() 116 fbcursor->image.height > cursor->max_h || in lynxfb_ops_cursor() 121 sm750_hw_cursor_disable(cursor); in lynxfb_ops_cursor() 123 sm750_hw_cursor_setSize(cursor, in lynxfb_ops_cursor() 128 sm750_hw_cursor_setPos(cursor, in lynxfb_ops_cursor() 144 sm750_hw_cursor_setColor(cursor, fg, bg); in lynxfb_ops_cursor() 148 sm750_hw_cursor_setData(cursor, in lynxfb_ops_cursor() 155 sm750_hw_cursor_enable(cursor); in lynxfb_ops_cursor() [all …]
|
/drivers/video/fbdev/aty/ |
D | mach64_cursor.c | 68 static int atyfb_cursor(struct fb_info *info, struct fb_cursor *cursor) in atyfb_cursor() argument 82 if (cursor->enable) in atyfb_cursor() 90 if (cursor->set & FB_CUR_SETPOS) { in atyfb_cursor() 91 x = cursor->image.dx - cursor->hot.x - info->var.xoffset; in atyfb_cursor() 99 y = cursor->image.dy - cursor->hot.y - info->var.yoffset; in atyfb_cursor() 107 h = cursor->image.height; in atyfb_cursor() 125 if (cursor->set & FB_CUR_SETCMAP) { in atyfb_cursor() 128 fg_idx = cursor->image.fg_color; in atyfb_cursor() 129 bg_idx = cursor->image.bg_color; in atyfb_cursor() 144 if (cursor->set & (FB_CUR_SETSHAPE | FB_CUR_SETIMAGE)) { in atyfb_cursor() [all …]
|
/drivers/dma-buf/ |
D | dma-fence-unwrap.c | 18 __dma_fence_unwrap_array(struct dma_fence_unwrap *cursor) in __dma_fence_unwrap_array() argument 20 cursor->array = dma_fence_chain_contained(cursor->chain); in __dma_fence_unwrap_array() 21 cursor->index = 0; in __dma_fence_unwrap_array() 22 return dma_fence_array_first(cursor->array); in __dma_fence_unwrap_array() 34 struct dma_fence_unwrap *cursor) in dma_fence_unwrap_first() argument 36 cursor->chain = dma_fence_get(head); in dma_fence_unwrap_first() 37 return __dma_fence_unwrap_array(cursor); in dma_fence_unwrap_first() 48 struct dma_fence *dma_fence_unwrap_next(struct dma_fence_unwrap *cursor) in dma_fence_unwrap_next() argument 52 ++cursor->index; in dma_fence_unwrap_next() 53 tmp = dma_fence_array_next(cursor->array, cursor->index); in dma_fence_unwrap_next() [all …]
|
/drivers/gpu/drm/i915/display/ |
D | intel_cursor.c | 282 if (plane->cursor.base != base || in i845_update_cursor() 283 plane->cursor.size != size || in i845_update_cursor() 284 plane->cursor.cntl != cntl) { in i845_update_cursor() 291 plane->cursor.base = base; in i845_update_cursor() 292 plane->cursor.size = size; in i845_update_cursor() 293 plane->cursor.cntl = cntl; in i845_update_cursor() 542 if (plane->cursor.base != base || in i9xx_update_cursor() 543 plane->cursor.size != fbc_ctl || in i9xx_update_cursor() 544 plane->cursor.cntl != cntl) { in i9xx_update_cursor() 552 plane->cursor.base = base; in i9xx_update_cursor() [all …]
|
/drivers/video/fbdev/ |
D | pmag-aa-fb.c | 104 static int aafb_cursor(struct fb_info *info, struct fb_cursor *cursor) in aafb_cursor() argument 108 if (cursor->image.height > BT431_CURSOR_SIZE || in aafb_cursor() 109 cursor->image.width > BT431_CURSOR_SIZE) { in aafb_cursor() 114 if (!cursor->enable) in aafb_cursor() 117 if (cursor->set & FB_CUR_SETPOS) in aafb_cursor() 119 cursor->image.dx, cursor->image.dy); in aafb_cursor() 120 if (cursor->set & FB_CUR_SETCMAP) { in aafb_cursor() 121 u8 fg = cursor->image.fg_color ? 0xf : 0x0; in aafb_cursor() 122 u8 bg = cursor->image.bg_color ? 0xf : 0x0; in aafb_cursor() 128 if (cursor->set & (FB_CUR_SETSIZE | FB_CUR_SETSHAPE | FB_CUR_SETIMAGE)) in aafb_cursor() [all …]
|
D | pm2fb.c | 1265 static int pm2vfb_cursor(struct fb_info *info, struct fb_cursor *cursor) in pm2vfb_cursor() argument 1269 int x = cursor->image.dx - info->var.xoffset; in pm2vfb_cursor() 1270 int y = cursor->image.dy - info->var.yoffset; in pm2vfb_cursor() 1272 if (cursor->enable) in pm2vfb_cursor() 1277 if (!cursor->enable) in pm2vfb_cursor() 1289 if (!cursor->set) in pm2vfb_cursor() 1292 if (cursor->set & FB_CUR_SETHOT) { in pm2vfb_cursor() 1294 cursor->hot.x & 0x3f); in pm2vfb_cursor() 1296 cursor->hot.y & 0x3f); in pm2vfb_cursor() 1299 if (cursor->set & FB_CUR_SETCMAP) { in pm2vfb_cursor() [all …]
|
/drivers/video/fbdev/core/ |
D | tileblit.c | 85 struct fb_tilecursor cursor; in tile_cursor() local 88 cursor.sx = vc->state.x; in tile_cursor() 89 cursor.sy = vc->state.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 …]
|
D | fbcon_cw.c | 207 struct fb_cursor cursor; in cw_cursor() local 220 cursor.set = 0; in cw_cursor() 229 cursor.set |= FB_CUR_SETIMAGE; in cw_cursor() 249 cursor.set |= FB_CUR_SETCMAP; in cw_cursor() 257 cursor.set |= FB_CUR_SETSIZE; in cw_cursor() 268 cursor.set |= FB_CUR_SETPOS; in cw_cursor() 273 ops->cursor_state.hot.x = cursor.hot.y = 0; in cw_cursor() 274 cursor.set |= FB_CUR_SETHOT; in cw_cursor() 277 if (cursor.set & FB_CUR_SETSIZE || in cw_cursor() 300 cursor.set |= FB_CUR_SETSHAPE; in cw_cursor() [all …]
|
D | bitblit.c | 239 struct fb_cursor cursor; in bit_cursor() local 248 cursor.set = 0; in bit_cursor() 260 cursor.set |= FB_CUR_SETIMAGE; in bit_cursor() 280 cursor.set |= FB_CUR_SETCMAP; in bit_cursor() 288 cursor.set |= FB_CUR_SETPOS; in bit_cursor() 296 cursor.set |= FB_CUR_SETSIZE; in bit_cursor() 301 ops->cursor_state.hot.x = cursor.hot.y = 0; in bit_cursor() 302 cursor.set |= FB_CUR_SETHOT; in bit_cursor() 305 if (cursor.set & FB_CUR_SETSIZE || in bit_cursor() 320 cursor.set |= FB_CUR_SETSHAPE; in bit_cursor() [all …]
|
D | fbcon_ccw.c | 224 struct fb_cursor cursor; in ccw_cursor() local 237 cursor.set = 0; in ccw_cursor() 246 cursor.set |= FB_CUR_SETIMAGE; in ccw_cursor() 266 cursor.set |= FB_CUR_SETCMAP; in ccw_cursor() 274 cursor.set |= FB_CUR_SETSIZE; in ccw_cursor() 285 cursor.set |= FB_CUR_SETPOS; in ccw_cursor() 290 ops->cursor_state.hot.x = cursor.hot.y = 0; in ccw_cursor() 291 cursor.set |= FB_CUR_SETHOT; in ccw_cursor() 294 if (cursor.set & FB_CUR_SETSIZE || in ccw_cursor() 317 cursor.set |= FB_CUR_SETSHAPE; in ccw_cursor() [all …]
|
D | fbcon_ud.c | 254 struct fb_cursor cursor; in ud_cursor() local 268 cursor.set = 0; in ud_cursor() 277 cursor.set |= FB_CUR_SETIMAGE; in ud_cursor() 297 cursor.set |= FB_CUR_SETCMAP; in ud_cursor() 305 cursor.set |= FB_CUR_SETSIZE; in ud_cursor() 316 cursor.set |= FB_CUR_SETPOS; in ud_cursor() 321 ops->cursor_state.hot.x = cursor.hot.y = 0; in ud_cursor() 322 cursor.set |= FB_CUR_SETHOT; in ud_cursor() 325 if (cursor.set & FB_CUR_SETSIZE || in ud_cursor() 340 cursor.set |= FB_CUR_SETSHAPE; in ud_cursor() [all …]
|
D | softcursor.c | 22 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()
|
/drivers/firmware/google/ |
D | memconsole-coreboot.c | 23 u32 cursor; member 42 u32 cursor = cbmem_console->cursor & CURSOR_MASK; in memconsole_coreboot_read() local 43 u32 flags = cbmem_console->cursor & ~CURSOR_MASK; in memconsole_coreboot_read() 53 if (cursor > size) /* Shouldn't really happen, but... */ in memconsole_coreboot_read() 54 cursor = 0; in memconsole_coreboot_read() 55 seg[0] = (struct seg){.phys = cursor, .len = size - cursor}; in memconsole_coreboot_read() 56 seg[1] = (struct seg){.phys = 0, .len = cursor}; in memconsole_coreboot_read() 58 seg[0] = (struct seg){.phys = 0, .len = min(cursor, size)}; in memconsole_coreboot_read()
|
/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_vm.c | 436 struct amdgpu_vm_pt_cursor *cursor) in amdgpu_vm_pt_start() argument 438 cursor->pfn = start; in amdgpu_vm_pt_start() 439 cursor->parent = NULL; in amdgpu_vm_pt_start() 440 cursor->entry = &vm->root; in amdgpu_vm_pt_start() 441 cursor->level = adev->vm_manager.root_level; in amdgpu_vm_pt_start() 455 struct amdgpu_vm_pt_cursor *cursor) in amdgpu_vm_pt_descendant() argument 459 if ((cursor->level == AMDGPU_VM_PTB) || !cursor->entry || in amdgpu_vm_pt_descendant() 460 !cursor->entry->bo) in amdgpu_vm_pt_descendant() 463 mask = amdgpu_vm_entries_mask(adev, cursor->level); in amdgpu_vm_pt_descendant() 464 shift = amdgpu_vm_level_shift(adev, cursor->level); in amdgpu_vm_pt_descendant() [all …]
|
D | amdgpu_ttm.c | 438 struct amdgpu_res_cursor cursor; in amdgpu_mem_visible() local 446 amdgpu_res_first(mem, 0, mem_size, &cursor); in amdgpu_mem_visible() 449 if (cursor.size != mem_size) in amdgpu_mem_visible() 452 return cursor.start + cursor.size <= adev->gmc.visible_vram_size; in amdgpu_mem_visible() 607 struct amdgpu_res_cursor cursor; in amdgpu_ttm_io_mem_pfn() local 610 &cursor); in amdgpu_ttm_io_mem_pfn() 611 return (adev->gmc.aper_base + cursor.start) >> PAGE_SHIFT; in amdgpu_ttm_io_mem_pfn() 1336 struct amdgpu_res_cursor cursor; in amdgpu_ttm_bo_eviction_valuable() local 1382 &cursor); in amdgpu_ttm_bo_eviction_valuable() 1383 while (cursor.remaining) { in amdgpu_ttm_bo_eviction_valuable() [all …]
|
/drivers/video/fbdev/intelfb/ |
D | intelfbdrv.c | 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() [all …]
|
/drivers/gpu/drm/msm/disp/mdp4/ |
D | mdp4_crtc.c | 39 } cursor; member 372 spin_lock_irqsave(&mdp4_crtc->cursor.lock, flags); in update_cursor() 373 if (mdp4_crtc->cursor.stale) { in update_cursor() 374 struct drm_gem_object *next_bo = mdp4_crtc->cursor.next_bo; in update_cursor() 375 struct drm_gem_object *prev_bo = mdp4_crtc->cursor.scanout_bo; in update_cursor() 376 uint64_t iova = mdp4_crtc->cursor.next_iova; in update_cursor() 385 MDP4_DMA_CURSOR_SIZE_WIDTH(mdp4_crtc->cursor.width) | in update_cursor() 386 MDP4_DMA_CURSOR_SIZE_HEIGHT(mdp4_crtc->cursor.height)); in update_cursor() 401 mdp4_crtc->cursor.scanout_bo = next_bo; in update_cursor() 402 mdp4_crtc->cursor.stale = false; in update_cursor() [all …]
|
/drivers/accessibility/speakup/ |
D | DefaultKeyAssignments | 12 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/nouveau/dispnv04/ |
D | disp.c | 90 if (nv_crtc->cursor.nvbo) { in nv04_display_fini() 91 if (nv_crtc->cursor.set_offset) in nv04_display_fini() 92 nouveau_bo_unmap(nv_crtc->cursor.nvbo); in nv04_display_fini() 93 nouveau_bo_unpin(nv_crtc->cursor.nvbo); in nv04_display_fini() 144 if (!nv_crtc->cursor.nvbo) in nv04_display_init() 147 ret = nouveau_bo_pin(nv_crtc->cursor.nvbo, in nv04_display_init() 149 if (!ret && nv_crtc->cursor.set_offset) in nv04_display_init() 150 ret = nouveau_bo_map(nv_crtc->cursor.nvbo); in nv04_display_init() 175 if (!nv_crtc->cursor.nvbo) in nv04_display_init() 178 if (nv_crtc->cursor.set_offset) in nv04_display_init() [all …]
|
/drivers/gpu/drm/msm/disp/mdp5/ |
D | mdp5_crtc.c | 63 } cursor; member 555 if (mdp5_crtc->cursor.iova) { in mdp5_crtc_atomic_enable() 558 spin_lock_irqsave(&mdp5_crtc->cursor.lock, flags); in mdp5_crtc_atomic_enable() 560 spin_unlock_irqrestore(&mdp5_crtc->cursor.lock, flags); in mdp5_crtc_atomic_enable() 869 if (mdp5_crtc->cursor.x >= 0) in get_roi() 870 *roi_w = min(mdp5_crtc->cursor.width, xres - in get_roi() 871 mdp5_crtc->cursor.x); in get_roi() 873 *roi_w = mdp5_crtc->cursor.width - abs(mdp5_crtc->cursor.x); in get_roi() 874 if (mdp5_crtc->cursor.y >= 0) in get_roi() 875 *roi_h = min(mdp5_crtc->cursor.height, yres - in get_roi() [all …]
|
/drivers/gpu/drm/vkms/ |
D | vkms_output.c | 42 struct vkms_plane *primary, *cursor = NULL, *overlay = NULL; in vkms_output_init() local 59 if (vkmsdev->config->cursor) { in vkms_output_init() 60 cursor = vkms_plane_init(vkmsdev, DRM_PLANE_TYPE_CURSOR, index); in vkms_output_init() 61 if (IS_ERR(cursor)) in vkms_output_init() 62 return PTR_ERR(cursor); in vkms_output_init() 65 ret = vkms_crtc_init(dev, crtc, &primary->base, &cursor->base); in vkms_output_init()
|
/drivers/gpu/drm/qxl/ |
D | qxl_display.c | 571 struct qxl_cursor cursor; in qxl_create_cursor() local 591 cursor.header.unique = 0; in qxl_create_cursor() 592 cursor.header.type = SPICE_CURSOR_TYPE_ALPHA; in qxl_create_cursor() 593 cursor.header.width = 64; in qxl_create_cursor() 594 cursor.header.height = 64; in qxl_create_cursor() 595 cursor.header.hot_spot_x = hot_x; in qxl_create_cursor() 596 cursor.header.hot_spot_y = hot_y; in qxl_create_cursor() 597 cursor.data_size = size; in qxl_create_cursor() 598 cursor.chunk.next_chunk = 0; in qxl_create_cursor() 599 cursor.chunk.prev_chunk = 0; in qxl_create_cursor() [all …]
|