Lines Matching refs:ttm

138 	struct ttm_tt *ttm = bo->ttm;  in ttm_bo_move_memcpy()  local
153 if (ttm && ((ttm->page_flags & TTM_TT_FLAG_SWAPPED) || in ttm_bo_move_memcpy()
155 ret = ttm_tt_populate(bdev, ttm, ctx); in ttm_bo_move_memcpy()
162 dst_iter = ttm_kmap_iter_tt_init(&_dst_iter.tt, bo->ttm); in ttm_bo_move_memcpy()
168 src_iter = ttm_kmap_iter_tt_init(&_src_iter.tt, bo->ttm); in ttm_bo_move_memcpy()
174 clear = src_iter->ops->maps_tt && (!ttm || !ttm_tt_is_populated(ttm)); in ttm_bo_move_memcpy()
175 if (!(clear && ttm && !(ttm->page_flags & TTM_TT_FLAG_ZERO_ALLOC))) in ttm_bo_move_memcpy()
277 caching = man->use_tt ? bo->ttm->caching : res->bus.caching; in ttm_io_prot()
319 struct ttm_tt *ttm = bo->ttm; in ttm_bo_kmap_ttm() local
323 BUG_ON(!ttm); in ttm_bo_kmap_ttm()
325 ret = ttm_tt_populate(bo->bdev, ttm, &ctx); in ttm_bo_kmap_ttm()
329 if (num_pages == 1 && ttm->caching == ttm_cached) { in ttm_bo_kmap_ttm()
336 map->page = ttm->pages[start_page]; in ttm_bo_kmap_ttm()
345 map->virtual = vmap(ttm->pages + start_page, num_pages, in ttm_bo_kmap_ttm()
440 struct ttm_tt *ttm = bo->ttm; in ttm_bo_vmap() local
444 ret = ttm_tt_populate(bo->bdev, ttm, &ctx); in ttm_bo_vmap()
453 vaddr = vmap(ttm->pages, ttm->num_pages, 0, prot); in ttm_bo_vmap()
526 ghost_obj->ttm = NULL; in ttm_bo_move_to_ghost()
528 bo->ttm = NULL; in ttm_bo_move_to_ghost()
616 struct ttm_tt *ttm; in ttm_bo_pipeline_gutting() local
626 if (!bo->ttm) { in ttm_bo_pipeline_gutting()
632 ttm_tt_unpopulate(bo->bdev, bo->ttm); in ttm_bo_pipeline_gutting()
634 ttm_tt_mark_for_clear(bo->ttm); in ttm_bo_pipeline_gutting()
649 ttm = bo->ttm; in ttm_bo_pipeline_gutting()
650 bo->ttm = NULL; in ttm_bo_pipeline_gutting()
652 swap(bo->ttm, ttm); in ttm_bo_pipeline_gutting()
667 bo->ttm = ttm; in ttm_bo_pipeline_gutting()
672 ttm_tt_destroy(bo->bdev, ttm); in ttm_bo_pipeline_gutting()