/linux/drivers/gpu/drm/virtio/ |
A D | virtgpu_vram.c | 45 if (vram->map_state != STATE_OK) in virtio_gpu_vram_mmap() 60 if (vm_size != vram->vram_node.size) in virtio_gpu_vram_mmap() 98 vram->vram_node.size, dir, in virtio_gpu_vram_map_dma_buf() 180 drm_mm_remove_node(&vram->vram_node); in virtio_gpu_vram_map() 190 struct virtio_gpu_object_vram *vram; in virtio_gpu_vram_create() local 193 vram = kzalloc(sizeof(*vram), GFP_KERNEL); in virtio_gpu_vram_create() 194 if (!vram) in virtio_gpu_vram_create() 197 obj = &vram->base.base.base; in virtio_gpu_vram_create() 206 kfree(vram); in virtio_gpu_vram_create() 212 kfree(vram); in virtio_gpu_vram_create() [all …]
|
A 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()
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
A D | ram.c | 43 .memory = &vram->memory, in nvkm_vram_map() 45 .mem = vram->mn, in nvkm_vram_map() 87 nvkm_mm_free(&vram->ram->vram, &node); in nvkm_vram_dtor() 90 return vram; in nvkm_vram_dtor() 110 struct nvkm_vram *vram; in nvkm_ram_get() local 120 mm = &ram->vram; in nvkm_ram_get() 122 if (!(vram = kzalloc(sizeof(*vram), GFP_KERNEL))) in nvkm_ram_get() 125 vram->ram = ram; in nvkm_ram_get() 126 vram->page = page; in nvkm_ram_get() 127 *pmemory = &vram->memory; in nvkm_ram_get() [all …]
|
A 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()
|
/linux/drivers/video/fbdev/ |
A 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 …]
|
A 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()
|
A D | sm712fb.c | 1450 u8 vram; in sm7xx_vram_probe() local 1467 vram = inb_p(0x3c5) >> 6; in sm7xx_vram_probe() 1469 if (vram == 0x00) in sm7xx_vram_probe() 1471 else if (vram == 0x01) in sm7xx_vram_probe() 1473 else if (vram == 0x02) in sm7xx_vram_probe() 1475 else if (vram == 0x03) in sm7xx_vram_probe()
|
/linux/drivers/gpu/drm/mgag200/ |
A D | mgag200_mm.c | 105 mdev->vram = devm_ioremap(dev->dev, start, len); in mgag200_mm_init() 106 if (!mdev->vram) in mgag200_mm_init() 109 mdev->mc.vram_size = mgag200_probe_vram(mdev, mdev->vram, len); in mgag200_mm_init()
|
/linux/drivers/gpu/drm/msm/ |
A D | msm_drv.c | 74 static char *vram = "16m"; variable 76 module_param(vram, charp, 0); 396 if (priv->vram.paddr) { in msm_drm_uninit() 398 drm_mm_takedown(&priv->vram.mm); in msm_drm_uninit() 400 priv->vram.paddr, attrs); in msm_drm_uninit() 478 size = memparse(vram, NULL); in msm_init_vram() 485 priv->vram.size = size; in msm_init_vram() 488 spin_lock_init(&priv->vram.lock); in msm_init_vram() 500 priv->vram.paddr = 0; in msm_init_vram() 505 (uint32_t)priv->vram.paddr, in msm_init_vram() [all …]
|
A D | msm_gem.c | 29 priv->vram.paddr; in physaddr() 79 spin_lock(&priv->vram.lock); in get_pages_vram() 80 ret = drm_mm_insert_node(&priv->vram.mm, msm_obj->vram_node, npages); in get_pages_vram() 81 spin_unlock(&priv->vram.lock); in get_pages_vram() 146 spin_lock(&priv->vram.lock); in put_pages_vram() 148 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()
|
/linux/drivers/gpu/drm/hyperv/ |
A 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()
|
A 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()
|
/linux/Documentation/fb/ |
A D | intelfb.rst | 38 c. "vram=<value>" 99 append="video=intelfb:mode=800x600-32@75,accel,hwcursor,vram=8" 127 modprobe intelfb mode=800x600-32@75 vram=8 accel=1 hwcursor=1 131 options intelfb mode=800x600-32@75 vram=8 accel=1 hwcursor=1
|
/linux/drivers/gpu/drm/tiny/ |
A 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()
|
/linux/drivers/video/fbdev/geode/ |
A 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");
|
A D | lxfb_core.c | 28 static int vram; variable 355 info->fix.smem_len = vram ? vram : lx_framebuffer_size(); in lxfb_map_video_memory() 664 module_param(vram, int, 0); 665 MODULE_PARM_DESC(vram, "video memory size");
|
/linux/drivers/gpu/drm/etnaviv/ |
A 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()
|
/linux/drivers/gpu/drm/nouveau/ |
A 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()
|
A 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()
|
/linux/arch/arm64/boot/dts/arm/ |
A D | vexpress-v2f-1xv7-ca53x2.dts | 74 vram: vram@18000000 { label
|
A D | rtsm_ve-aemv8a.dts | 89 vram: vram@18000000 { label
|
/linux/drivers/gpu/drm/nouveau/nvif/ |
A D | vmm.c | 159 vmm->page[i].vram = args.vram; in nvif_vmm_ctor()
|
/linux/drivers/video/fbdev/omap/ |
A 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);
|
/linux/drivers/video/fbdev/i810/ |
A 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 …]
|
/linux/drivers/gpu/drm/nouveau/include/nvif/ |
A D | if0008.h | 26 __u8 vram; member
|