Lines Matching refs:ttm

138 	struct ttm_tt *ttm = bo->ttm;  in ttm_bo_move_memcpy()  local
150 if (ttm && ((ttm->page_flags & TTM_TT_FLAG_SWAPPED) || in ttm_bo_move_memcpy()
152 ret = ttm_tt_populate(bdev, ttm, ctx); in ttm_bo_move_memcpy()
159 dst_iter = ttm_kmap_iter_tt_init(&_dst_iter.tt, bo->ttm); in ttm_bo_move_memcpy()
165 src_iter = ttm_kmap_iter_tt_init(&_src_iter.tt, bo->ttm); in ttm_bo_move_memcpy()
171 clear = src_iter->ops->maps_tt && (!ttm || !ttm_tt_is_populated(ttm)); in ttm_bo_move_memcpy()
172 if (!(clear && ttm && !(ttm->page_flags & TTM_TT_FLAG_ZERO_ALLOC))) in ttm_bo_move_memcpy()
271 caching = man->use_tt ? bo->ttm->caching : res->bus.caching; in ttm_io_prot()
313 struct ttm_tt *ttm = bo->ttm; in ttm_bo_kmap_ttm() local
317 BUG_ON(!ttm); in ttm_bo_kmap_ttm()
319 ret = ttm_tt_populate(bo->bdev, ttm, &ctx); in ttm_bo_kmap_ttm()
323 if (num_pages == 1 && ttm->caching == ttm_cached) { in ttm_bo_kmap_ttm()
330 map->page = ttm->pages[start_page]; in ttm_bo_kmap_ttm()
339 map->virtual = vmap(ttm->pages + start_page, num_pages, in ttm_bo_kmap_ttm()
432 struct ttm_tt *ttm = bo->ttm; in ttm_bo_vmap() local
436 ret = ttm_tt_populate(bo->bdev, ttm, &ctx); in ttm_bo_vmap()
445 vaddr = vmap(ttm->pages, ttm->num_pages, 0, prot); in ttm_bo_vmap()
516 ghost_obj->ttm = NULL; in ttm_bo_move_to_ghost()
518 bo->ttm = NULL; in ttm_bo_move_to_ghost()
606 struct ttm_tt *ttm; in ttm_bo_pipeline_gutting() local
616 if (!bo->ttm) { in ttm_bo_pipeline_gutting()
622 ttm_tt_unpopulate(bo->bdev, bo->ttm); in ttm_bo_pipeline_gutting()
624 ttm_tt_mark_for_clear(bo->ttm); in ttm_bo_pipeline_gutting()
639 ttm = bo->ttm; in ttm_bo_pipeline_gutting()
640 bo->ttm = NULL; in ttm_bo_pipeline_gutting()
642 swap(bo->ttm, ttm); in ttm_bo_pipeline_gutting()
657 bo->ttm = ttm; in ttm_bo_pipeline_gutting()
662 ttm_tt_destroy(bo->bdev, ttm); in ttm_bo_pipeline_gutting()