Lines Matching refs:vmm
192 struct drm_vram_mm *vmm = dev->vram_mm; in drm_gem_vram_create() local
196 if (WARN_ONCE(!vmm, "VRAM MM not initialized")) in drm_gem_vram_create()
220 bdev = &vmm->bdev; in drm_gem_vram_create()
938 struct drm_vram_mm *vmm = drm_vram_mm_of_bdev(bdev); in bo_driver_io_mem_reserve() local
944 mem->bus.offset = (mem->start << PAGE_SHIFT) + vmm->vram_base; in bo_driver_io_mem_reserve()
972 struct drm_vram_mm *vmm = node->minor->dev->vram_mm; in drm_vram_mm_debugfs() local
973 struct ttm_resource_manager *man = ttm_manager_type(&vmm->bdev, TTM_PL_VRAM); in drm_vram_mm_debugfs()
998 static int drm_vram_mm_init(struct drm_vram_mm *vmm, struct drm_device *dev, in drm_vram_mm_init() argument
1003 vmm->vram_base = vram_base; in drm_vram_mm_init()
1004 vmm->vram_size = vram_size; in drm_vram_mm_init()
1006 ret = ttm_device_init(&vmm->bdev, &bo_driver, dev->dev, in drm_vram_mm_init()
1013 ret = ttm_range_man_init(&vmm->bdev, TTM_PL_VRAM, in drm_vram_mm_init()
1021 static void drm_vram_mm_cleanup(struct drm_vram_mm *vmm) in drm_vram_mm_cleanup() argument
1023 ttm_range_man_fini(&vmm->bdev, TTM_PL_VRAM); in drm_vram_mm_cleanup()
1024 ttm_device_fini(&vmm->bdev); in drm_vram_mm_cleanup()
1109 struct drm_vram_mm *vmm = dev->vram_mm; in drm_vram_helper_mode_valid_internal() local
1115 max_fbpages = (vmm->vram_size / 2) >> PAGE_SHIFT; in drm_vram_helper_mode_valid_internal()