Home
last modified time | relevance | path

Searched refs:vram (Results 1 – 25 of 85) sorted by relevance

1234

/linux/drivers/gpu/drm/virtio/
A Dvirtgpu_vram.c45 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 Dvirtgpu_object.c87 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 Dram.c43 .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 Drammcp77.c80 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 Dsh7760fb.c377 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 Dtmiofb.c266 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 Dsm712fb.c1450 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 Dmgag200_mm.c105 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 Dmsm_drv.c74 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 Dmsm_gem.c29 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 Dhyperv_drm_drv.c110 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 Dhyperv_drm_proto.c173 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 Dintelfb.rst38 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 Dcirrus.c61 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 Dgxfb_core.c36 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 Dlxfb_core.c28 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 Detnaviv_dump.c197 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 Dnouveau_bo5039.c148 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 Dnv50_fbcon.c209 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 Dvexpress-v2f-1xv7-ca53x2.dts74 vram: vram@18000000 { label
A Drtsm_ve-aemv8a.dts89 vram: vram@18000000 { label
/linux/drivers/gpu/drm/nouveau/nvif/
A Dvmm.c159 vmm->page[i].vram = args.vram; in nvif_vmm_ctor()
/linux/drivers/video/fbdev/omap/
A Domapfb_main.c1619 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 Di810_main.c137 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 Dif0008.h26 __u8 vram; member

Completed in 39 milliseconds

1234