Home
last modified time | relevance | path

Searched refs:vram_mm (Results 1 – 6 of 6) sorted by relevance

/drivers/gpu/drm/
Ddrm_gem_vram_helper.c191 struct drm_vram_mm *vmm = dev->vram_mm; in drm_gem_vram_create()
621 if (WARN_ONCE(!dev->vram_mm, "VRAM MM not initialized")) in drm_gem_vram_driver_dumb_create()
956 struct drm_vram_mm *vmm = node->minor->dev->vram_mm; in drm_vram_mm_debugfs()
1020 if (WARN_ON(dev->vram_mm)) in drm_vram_helper_alloc_mm()
1021 return dev->vram_mm; in drm_vram_helper_alloc_mm()
1023 dev->vram_mm = kzalloc(sizeof(*dev->vram_mm), GFP_KERNEL); in drm_vram_helper_alloc_mm()
1024 if (!dev->vram_mm) in drm_vram_helper_alloc_mm()
1027 ret = drm_vram_mm_init(dev->vram_mm, dev, vram_base, vram_size); in drm_vram_helper_alloc_mm()
1031 return dev->vram_mm; in drm_vram_helper_alloc_mm()
1034 kfree(dev->vram_mm); in drm_vram_helper_alloc_mm()
[all …]
/drivers/gpu/drm/via/
Dvia_mm.c66 drm_mm_init(&dev_priv->vram_mm, 0, fb->size >> VIA_MM_ALIGN_SHIFT); in via_fb_init()
104 drm_mm_takedown(&dev_priv->vram_mm); in via_lastclose()
149 retval = drm_mm_insert_node(&dev_priv->vram_mm, in via_mem_alloc()
Dvia_drv.h102 struct drm_mm vram_mm; member
/drivers/gpu/drm/sis/
Dsis_mm.c74 drm_mm_init(&dev_priv->vram_mm, 0, fb->size >> SIS_MM_ALIGN_SHIFT); in sis_fb_init()
125 retval = drm_mm_insert_node(&dev_priv->vram_mm, in sis_drm_alloc()
303 drm_mm_takedown(&dev_priv->vram_mm); in sis_lastclose()
Dsis_drv.h62 struct drm_mm vram_mm; member
/drivers/gpu/drm/ast/
Dast_main.c461 if (dev->vram_mm->vram_size < pci_resource_len(pdev, 0)) { in ast_device_create()
462 ast->dp501_fw_buf = pci_iomap_range(pdev, 0, dev->vram_mm->vram_size, 0); in ast_device_create()