Lines Matching refs:ttm
170 drm->ttm.type_host[!!kind] = typei; in nouveau_ttm_init_host()
176 drm->ttm.type_ncoh[!!kind] = typei; in nouveau_ttm_init_host()
191 ttm_resource_manager_init(man, &drm->ttm.bdev, in nouveau_ttm_init_vram()
193 ttm_set_driver_manager(&drm->ttm.bdev, TTM_PL_VRAM, man); in nouveau_ttm_init_vram()
197 return ttm_range_man_init(&drm->ttm.bdev, TTM_PL_VRAM, false, in nouveau_ttm_init_vram()
205 struct ttm_resource_manager *man = ttm_manager_type(&drm->ttm.bdev, TTM_PL_VRAM); in nouveau_ttm_fini_vram()
209 ttm_resource_manager_evict_all(&drm->ttm.bdev, man); in nouveau_ttm_fini_vram()
211 ttm_set_driver_manager(&drm->ttm.bdev, TTM_PL_VRAM, NULL); in nouveau_ttm_fini_vram()
214 ttm_range_man_fini(&drm->ttm.bdev, TTM_PL_VRAM); in nouveau_ttm_fini_vram()
229 return ttm_range_man_init(&drm->ttm.bdev, TTM_PL_TT, true, in nouveau_ttm_init_gtt()
238 ttm_resource_manager_init(man, &drm->ttm.bdev, size_pages); in nouveau_ttm_init_gtt()
239 ttm_set_driver_manager(&drm->ttm.bdev, TTM_PL_TT, man); in nouveau_ttm_init_gtt()
247 struct ttm_resource_manager *man = ttm_manager_type(&drm->ttm.bdev, TTM_PL_TT); in nouveau_ttm_fini_gtt()
251 ttm_range_man_fini(&drm->ttm.bdev, TTM_PL_TT); in nouveau_ttm_fini_gtt()
254 ttm_resource_manager_evict_all(&drm->ttm.bdev, man); in nouveau_ttm_fini_gtt()
256 ttm_set_driver_manager(&drm->ttm.bdev, TTM_PL_TT, NULL); in nouveau_ttm_fini_gtt()
290 drm->ttm.type_vram = typei; in nouveau_ttm_init()
292 drm->ttm.type_vram = -1; in nouveau_ttm_init()
302 ret = ttm_device_init(&drm->ttm.bdev, &nouveau_bo_driver, drm->dev->dev, in nouveau_ttm_init()
324 drm->ttm.mtrr = arch_phys_wc_add(device->func->resource_addr(device, 1), in nouveau_ttm_init()
340 mutex_init(&drm->ttm.io_reserve_mutex); in nouveau_ttm_init()
341 INIT_LIST_HEAD(&drm->ttm.io_reserve_lru); in nouveau_ttm_init()
356 ttm_device_fini(&drm->ttm.bdev); in nouveau_ttm_fini()
358 arch_phys_wc_del(drm->ttm.mtrr); in nouveau_ttm_fini()
359 drm->ttm.mtrr = 0; in nouveau_ttm_fini()