Lines Matching refs:vram_mm
192 struct drm_vram_mm *vmm = dev->vram_mm; in drm_gem_vram_create()
623 if (WARN_ONCE(!dev->vram_mm, "VRAM MM not initialized")) in drm_gem_vram_driver_dumb_create()
972 struct drm_vram_mm *vmm = node->minor->dev->vram_mm; in drm_vram_mm_debugfs()
1036 if (WARN_ON(dev->vram_mm)) in drm_vram_helper_alloc_mm()
1037 return dev->vram_mm; in drm_vram_helper_alloc_mm()
1039 dev->vram_mm = kzalloc(sizeof(*dev->vram_mm), GFP_KERNEL); in drm_vram_helper_alloc_mm()
1040 if (!dev->vram_mm) in drm_vram_helper_alloc_mm()
1043 ret = drm_vram_mm_init(dev->vram_mm, dev, vram_base, vram_size); in drm_vram_helper_alloc_mm()
1047 return dev->vram_mm; in drm_vram_helper_alloc_mm()
1050 kfree(dev->vram_mm); in drm_vram_helper_alloc_mm()
1051 dev->vram_mm = NULL; in drm_vram_helper_alloc_mm()
1057 if (!dev->vram_mm) in drm_vram_helper_release_mm()
1060 drm_vram_mm_cleanup(dev->vram_mm); in drm_vram_helper_release_mm()
1061 kfree(dev->vram_mm); in drm_vram_helper_release_mm()
1062 dev->vram_mm = NULL; in drm_vram_helper_release_mm()
1088 struct drm_vram_mm *vram_mm; in drmm_vram_helper_init() local
1090 if (drm_WARN_ON_ONCE(dev, dev->vram_mm)) in drmm_vram_helper_init()
1093 vram_mm = drm_vram_helper_alloc_mm(dev, vram_base, vram_size); in drmm_vram_helper_init()
1094 if (IS_ERR(vram_mm)) in drmm_vram_helper_init()
1095 return PTR_ERR(vram_mm); in drmm_vram_helper_init()
1109 struct drm_vram_mm *vmm = dev->vram_mm; in drm_vram_helper_mode_valid_internal()
1112 if (WARN_ON(!dev->vram_mm)) in drm_vram_helper_mode_valid_internal()