Lines Matching refs:ttm
287 return ttm_bo_mmap(filp, vma, &drm->ttm.bdev); in nouveau_ttm_mmap()
308 global_ref = &drm->ttm.mem_global_ref; in nouveau_ttm_global_init()
317 drm->ttm.mem_global_ref.release = NULL; in nouveau_ttm_global_init()
321 drm->ttm.bo_global_ref.mem_glob = global_ref->object; in nouveau_ttm_global_init()
322 global_ref = &drm->ttm.bo_global_ref.ref; in nouveau_ttm_global_init()
331 drm_global_item_unref(&drm->ttm.mem_global_ref); in nouveau_ttm_global_init()
332 drm->ttm.mem_global_ref.release = NULL; in nouveau_ttm_global_init()
342 if (drm->ttm.mem_global_ref.release == NULL) in nouveau_ttm_global_release()
345 drm_global_item_unref(&drm->ttm.bo_global_ref.ref); in nouveau_ttm_global_release()
346 drm_global_item_unref(&drm->ttm.mem_global_ref); in nouveau_ttm_global_release()
347 drm->ttm.mem_global_ref.release = NULL; in nouveau_ttm_global_release()
378 ret = ttm_bo_device_init(&drm->ttm.bdev, in nouveau_ttm_init()
379 drm->ttm.bo_global_ref.ref.object, in nouveau_ttm_init()
392 ret = ttm_bo_init_mm(&drm->ttm.bdev, TTM_PL_VRAM, in nouveau_ttm_init()
399 drm->ttm.mtrr = arch_phys_wc_add(nv_device_resource_start(nvkm_device(&drm->device), 1), in nouveau_ttm_init()
409 ret = ttm_bo_init_mm(&drm->ttm.bdev, TTM_PL_TT, in nouveau_ttm_init()
425 ttm_bo_clean_mm(&drm->ttm.bdev, TTM_PL_VRAM); in nouveau_ttm_fini()
426 ttm_bo_clean_mm(&drm->ttm.bdev, TTM_PL_TT); in nouveau_ttm_fini()
429 ttm_bo_device_release(&drm->ttm.bdev); in nouveau_ttm_fini()
433 arch_phys_wc_del(drm->ttm.mtrr); in nouveau_ttm_fini()
434 drm->ttm.mtrr = 0; in nouveau_ttm_fini()