/drivers/gpu/drm/virtio/ |
D | virtgpu_vram.c | 8 struct virtio_gpu_object_vram *vram = to_virtio_gpu_vram(bo); in virtio_gpu_vram_free() local 13 unmap = drm_mm_node_allocated(&vram->vram_node); in virtio_gpu_vram_free() 36 struct virtio_gpu_object_vram *vram = to_virtio_gpu_vram(bo); in virtio_gpu_vram_mmap() local 42 wait_event(vgdev->resp_wq, vram->map_state != STATE_INITIALIZING); in virtio_gpu_vram_mmap() 43 if (vram->map_state != STATE_OK) in virtio_gpu_vram_mmap() 52 if (vram->map_info == VIRTIO_GPU_MAP_CACHE_WC) in virtio_gpu_vram_mmap() 54 else if (vram->map_info == VIRTIO_GPU_MAP_CACHE_UNCACHED) in virtio_gpu_vram_mmap() 58 if (vm_size != vram->vram_node.size) in virtio_gpu_vram_mmap() 62 vram->vram_node.start >> PAGE_SHIFT, in virtio_gpu_vram_mmap() 86 struct virtio_gpu_object_vram *vram = to_virtio_gpu_vram(bo); in virtio_gpu_vram_map() local [all …]
|
D | virtgpu_object.c | 87 struct virtio_gpu_object_vram *vram = to_virtio_gpu_vram(bo); in virtio_gpu_cleanup_object() local 90 if (drm_mm_node_allocated(&vram->vram_node)) in virtio_gpu_cleanup_object() 91 drm_mm_remove_node(&vram->vram_node); in virtio_gpu_cleanup_object() 95 drm_gem_free_mmap_offset(&vram->base.base.base); in virtio_gpu_cleanup_object() 96 drm_gem_object_release(&vram->base.base.base); in virtio_gpu_cleanup_object() 97 kfree(vram); in virtio_gpu_cleanup_object()
|
/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
D | ram.c | 41 struct nvkm_vram *vram = nvkm_vram(memory); in nvkm_vram_map() local 43 .memory = &vram->memory, in nvkm_vram_map() 45 .mem = vram->mn, in nvkm_vram_map() 60 struct nvkm_vram *vram = nvkm_vram(memory); in nvkm_vram_addr() local 61 if (!nvkm_mm_contiguous(vram->mn)) in nvkm_vram_addr() 63 return (u64)nvkm_mm_addr(vram->mn) << NVKM_RAM_MM_SHIFT; in nvkm_vram_addr() 81 struct nvkm_vram *vram = nvkm_vram(memory); in nvkm_vram_dtor() local 82 struct nvkm_mm_node *next = vram->mn; in nvkm_vram_dtor() 84 mutex_lock(&vram->ram->mutex); in nvkm_vram_dtor() 87 nvkm_mm_free(&vram->ram->vram, &node); in nvkm_vram_dtor() [all …]
|
D | rammcp77.c | 80 nvkm_mm_fini(&ram->base.vram); in mcp77_ram_new() 82 return nvkm_mm_init(&ram->base.vram, NVKM_RAM_MM_NORMAL, in mcp77_ram_new()
|
/drivers/video/fbdev/ |
D | sh7760fb.c | 377 unsigned long vram; in sh7760fb_alloc_mem() local 393 vram = info->var.xres * info->var.yres; in sh7760fb_alloc_mem() 396 vram >>= 3; in sh7760fb_alloc_mem() 398 vram >>= 2; in sh7760fb_alloc_mem() 400 vram >>= 1; in sh7760fb_alloc_mem() 402 vram *= 2; in sh7760fb_alloc_mem() 403 if ((vram < 1) || (vram > 1024 * 2048)) { in sh7760fb_alloc_mem() 408 if (vram < PAGE_SIZE) in sh7760fb_alloc_mem() 409 vram = PAGE_SIZE; in sh7760fb_alloc_mem() 411 fbmem = dma_alloc_coherent(info->dev, vram, &par->fbdma, GFP_KERNEL); in sh7760fb_alloc_mem() [all …]
|
D | tmiofb.c | 266 const struct resource *vram = &cell->resources[2]; in tmiofb_hw_init() local 269 if (nlcr == NULL || vram == NULL) in tmiofb_hw_init() 290 base = vram->start + info->screen_size; in tmiofb_hw_init() 676 struct resource *vram = platform_get_resource(dev, IORESOURCE_MEM, 2); in tmiofb_probe() local 689 if (ccr == NULL || lcr == NULL || vram == NULL || irq < 0) { in tmiofb_probe() 715 info->fix.smem_start = vram->start; in tmiofb_probe() 716 info->fix.smem_len = resource_size(vram); in tmiofb_probe()
|
D | sm712fb.c | 1426 u8 vram; in sm7xx_vram_probe() local 1443 vram = inb_p(0x3c5) >> 6; in sm7xx_vram_probe() 1445 if (vram == 0x00) in sm7xx_vram_probe() 1447 else if (vram == 0x01) in sm7xx_vram_probe() 1449 else if (vram == 0x02) in sm7xx_vram_probe() 1451 else if (vram == 0x03) in sm7xx_vram_probe()
|
/drivers/gpu/drm/mgag200/ |
D | mgag200_mm.c | 84 iounmap(mdev->vram); in mgag200_mm_release() 119 mdev->vram = ioremap(start, len); in mgag200_mm_init() 120 if (!mdev->vram) { in mgag200_mm_init() 125 mdev->mc.vram_size = mgag200_probe_vram(mdev, mdev->vram, len); in mgag200_mm_init()
|
/drivers/gpu/drm/msm/ |
D | msm_drv.c | 75 static char *vram = "16m"; variable 76 MODULE_PARM_DESC(vram, "Configure VRAM size (for devices without IOMMU/GPUMMU)"); 77 module_param(vram, charp, 0); 376 if (priv->vram.paddr) { in msm_drm_uninit() 378 drm_mm_takedown(&priv->vram.mm); in msm_drm_uninit() 379 dma_free_attrs(dev, priv->vram.size, NULL, in msm_drm_uninit() 380 priv->vram.paddr, attrs); in msm_drm_uninit() 457 DRM_INFO("using %s VRAM carveout\n", vram); in msm_init_vram() 458 size = memparse(vram, NULL); in msm_init_vram() 465 priv->vram.size = size; in msm_init_vram() [all …]
|
D | msm_gem.c | 28 priv->vram.paddr; in physaddr() 78 spin_lock(&priv->vram.lock); in get_pages_vram() 79 ret = drm_mm_insert_node(&priv->vram.mm, msm_obj->vram_node, npages); in get_pages_vram() 80 spin_unlock(&priv->vram.lock); in get_pages_vram() 145 spin_lock(&priv->vram.lock); in put_pages_vram() 147 spin_unlock(&priv->vram.lock); in put_pages_vram() 1156 else if ((flags & (MSM_BO_STOLEN | MSM_BO_SCANOUT)) && priv->vram.size) in msm_gem_new() 1159 if (GEM_WARN_ON(use_vram && !priv->vram.size)) in msm_gem_new()
|
/drivers/gpu/drm/hyperv/ |
D | hyperv_drm_drv.c | 110 hv->vram = devm_ioremap(&pdev->dev, hv->fb_base, hv->fb_size); in hyperv_setup_gen1() 111 if (!hv->vram) { in hyperv_setup_gen1() 146 hv->vram = ioremap_cache(hv->mem->start, hv->fb_size); in hyperv_setup_gen2() 147 if (!hv->vram) { in hyperv_setup_gen2()
|
D | hyperv_drm_proto.c | 173 struct synthvid_vram_location vram; member 259 msg->vram.user_ctx = vram_pp; in hyperv_update_vram_location() 260 msg->vram.vram_gpa = vram_pp; in hyperv_update_vram_location() 261 msg->vram.is_vram_gpa_specified = 1; in hyperv_update_vram_location()
|
/drivers/gpu/drm/tiny/ |
D | cirrus.c | 61 void __iomem *vram; member 327 drm_fb_memcpy_dstclip(cirrus->vram, fb->pitches[0], in cirrus_fb_blit_rect() 331 drm_fb_xrgb8888_to_rgb565_dstclip(cirrus->vram, in cirrus_fb_blit_rect() 336 drm_fb_xrgb8888_to_rgb888_dstclip(cirrus->vram, in cirrus_fb_blit_rect() 573 cirrus->vram = devm_ioremap(&pdev->dev, pci_resource_start(pdev, 0), in cirrus_pci_probe() 575 if (cirrus->vram == NULL) in cirrus_pci_probe()
|
/drivers/video/fbdev/geode/ |
D | gxfb_core.c | 36 static int vram; variable 251 info->fix.smem_len = vram ? vram : gx_frame_buffer_size(); in gxfb_map_video_memory() 529 module_param(vram, int, 0); 530 MODULE_PARM_DESC(vram, "video memory size");
|
D | lxfb_core.c | 28 static int vram; variable 358 info->fix.smem_len = vram ? vram : lx_framebuffer_size(); in lxfb_map_video_memory() 667 module_param(vram, int, 0); 668 MODULE_PARM_DESC(vram, "video memory size");
|
/drivers/gpu/drm/etnaviv/ |
D | etnaviv_dump.c | 197 struct etnaviv_vram_mapping *vram; in etnaviv_core_dump() local 202 vram = submit->bos[i].mapping; in etnaviv_core_dump() 216 iter.hdr->iova = cpu_to_le64(vram->iova); in etnaviv_core_dump()
|
/drivers/gpu/drm/nouveau/ |
D | nouveau_bo5039.c | 148 SET_CONTEXT_DMA_BUFFER_IN, chan->vram.handle, in nv50_bo_move_init() 149 SET_CONTEXT_DMA_BUFFER_OUT, chan->vram.handle); in nv50_bo_move_init()
|
D | nv50_fbcon.c | 209 PUSH_MTHD(push, NV502D, SET_DST_CONTEXT_DMA, chan->vram.handle, in nv50_fbcon_accel_init() 210 SET_SRC_CONTEXT_DMA, chan->vram.handle, in nv50_fbcon_accel_init() 211 SET_SEMAPHORE_CONTEXT_DMA, chan->vram.handle); in nv50_fbcon_accel_init()
|
D | nouveau_chan.h | 23 struct nvif_object vram; member
|
D | nv84_fence.c | 41 PUSH_MTHD(push, NV826F, SET_CONTEXT_DMA_SEMAPHORE, chan->vram.handle); in nv84_fence_emit32() 64 PUSH_MTHD(push, NV826F, SET_CONTEXT_DMA_SEMAPHORE, chan->vram.handle); in nv84_fence_sync32()
|
/drivers/gpu/drm/nouveau/nvif/ |
D | vmm.c | 159 vmm->page[i].vram = args.vram; in nvif_vmm_ctor()
|
/drivers/video/fbdev/omap/ |
D | omapfb_main.c | 1619 unsigned long vram; in omapfb_do_probe() local 1721 vram = 0; in omapfb_do_probe() 1729 vram += fbdev->mem_desc.region[i].size; in omapfb_do_probe() 1742 vram, fbdev->mem_desc.region_cnt); in omapfb_do_probe() 1849 unsigned long vram; in omapfb_setup() local 1850 vram = (simple_strtoul(this_opt + 5, &suffix, 0)); in omapfb_setup() 1856 vram *= 1024; in omapfb_setup() 1860 vram *= 1024; in omapfb_setup() 1867 def_vram[def_vram_cnt++] = vram; in omapfb_setup() 1915 module_param_array_named(vram, def_vram, ulong, &def_vram_cnt, 0664);
|
/drivers/video/fbdev/i810/ |
D | i810_main.c | 137 static int vram = 4; variable 1646 if (vram + 1 > par->aperture.size >> 20) in i810_fix_offsets() 1647 vram = (par->aperture.size >> 20) - 1; in i810_fix_offsets() 1650 if (vram + v_offset_default + 1 > par->aperture.size >> 20) in i810_fix_offsets() 1651 v_offset_default = (par->aperture.size >> 20) - (vram + 1); in i810_fix_offsets() 1653 par->fb.size = vram << 20; in i810_fix_offsets() 1770 if (!vram) in i810_init_defaults() 1771 vram = 1; in i810_init_defaults() 1797 vyres = (vram << 20)/(info->var.xres*bpp >> 3); in i810_init_defaults() 1977 vram = (simple_strtoul(this_opt+5, NULL, 0)); in i810fb_setup() [all …]
|
/drivers/gpu/drm/nouveau/include/nvif/ |
D | if0008.h | 26 __u8 vram; member
|
D | vmm.h | 26 bool vram:1; member
|