Lines Matching refs:vram_mm
193 struct drm_vram_mm *vmm = dev->vram_mm; in drm_gem_vram_create()
612 if (WARN_ONCE(!dev->vram_mm, "VRAM MM not initialized")) in drm_gem_vram_driver_dumb_create()
972 struct drm_vram_mm *vmm = entry->dev->vram_mm; in drm_vram_mm_debugfs()
1035 if (WARN_ON(dev->vram_mm)) in drm_vram_helper_alloc_mm()
1036 return dev->vram_mm; in drm_vram_helper_alloc_mm()
1038 dev->vram_mm = kzalloc(sizeof(*dev->vram_mm), GFP_KERNEL); in drm_vram_helper_alloc_mm()
1039 if (!dev->vram_mm) in drm_vram_helper_alloc_mm()
1042 ret = drm_vram_mm_init(dev->vram_mm, dev, vram_base, vram_size); in drm_vram_helper_alloc_mm()
1046 return dev->vram_mm; in drm_vram_helper_alloc_mm()
1049 kfree(dev->vram_mm); in drm_vram_helper_alloc_mm()
1050 dev->vram_mm = NULL; in drm_vram_helper_alloc_mm()
1056 if (!dev->vram_mm) in drm_vram_helper_release_mm()
1059 drm_vram_mm_cleanup(dev->vram_mm); in drm_vram_helper_release_mm()
1060 kfree(dev->vram_mm); in drm_vram_helper_release_mm()
1061 dev->vram_mm = NULL; in drm_vram_helper_release_mm()
1087 struct drm_vram_mm *vram_mm; in drmm_vram_helper_init() local
1089 if (drm_WARN_ON_ONCE(dev, dev->vram_mm)) in drmm_vram_helper_init()
1092 vram_mm = drm_vram_helper_alloc_mm(dev, vram_base, vram_size); in drmm_vram_helper_init()
1093 if (IS_ERR(vram_mm)) in drmm_vram_helper_init()
1094 return PTR_ERR(vram_mm); in drmm_vram_helper_init()
1108 struct drm_vram_mm *vmm = dev->vram_mm; in drm_vram_helper_mode_valid_internal()
1111 if (WARN_ON(!dev->vram_mm)) in drm_vram_helper_mode_valid_internal()