Lines Matching refs:vram
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()
467 drm_mm_init(&priv->vram.mm, 0, (size >> PAGE_SHIFT) - 1); in msm_init_vram()
468 spin_lock_init(&priv->vram.lock); in msm_init_vram()
477 &priv->vram.paddr, GFP_KERNEL, attrs); in msm_init_vram()
480 priv->vram.paddr = 0; in msm_init_vram()
485 (uint32_t)priv->vram.paddr, in msm_init_vram()
486 (uint32_t)(priv->vram.paddr + size)); in msm_init_vram()