Lines Matching refs:ttm

57 	struct ttm_tt *ttm = bo->ttm;  in ttm_bo_move_ttm()  local
70 ttm_tt_unbind(ttm); in ttm_bo_move_ttm()
77 ret = ttm_tt_set_placement_caching(ttm, new_mem->placement); in ttm_bo_move_ttm()
82 ret = ttm_tt_bind(ttm, new_mem, ctx); in ttm_bo_move_ttm()
312 static int ttm_copy_io_ttm_page(struct ttm_tt *ttm, void *src, in ttm_copy_io_ttm_page() argument
316 struct page *d = ttm->pages[page]; in ttm_copy_io_ttm_page()
334 static int ttm_copy_ttm_io_page(struct ttm_tt *ttm, void *dst, in ttm_copy_ttm_io_page() argument
338 struct page *s = ttm->pages[page]; in ttm_copy_ttm_io_page()
362 struct ttm_tt *ttm = bo->ttm; in ttm_bo_move_memcpy() local
394 (ttm == NULL || (ttm->state == tt_unpopulated && in ttm_bo_move_memcpy()
395 !(ttm->page_flags & TTM_PAGE_FLAG_SWAPPED)))) { in ttm_bo_move_memcpy()
403 if (ttm) { in ttm_bo_move_memcpy()
404 ret = ttm_tt_populate(ttm, ctx); in ttm_bo_move_memcpy()
423 ret = ttm_copy_ttm_io_page(ttm, new_iomap, page, in ttm_bo_move_memcpy()
428 ret = ttm_copy_io_ttm_page(ttm, old_iomap, page, in ttm_bo_move_memcpy()
443 ttm_tt_destroy(ttm); in ttm_bo_move_memcpy()
444 bo->ttm = NULL; in ttm_bo_move_memcpy()
585 struct ttm_tt *ttm = bo->ttm; in ttm_bo_kmap_ttm() local
589 BUG_ON(!ttm); in ttm_bo_kmap_ttm()
591 ret = ttm_tt_populate(ttm, &ctx); in ttm_bo_kmap_ttm()
602 map->page = ttm->pages[start_page]; in ttm_bo_kmap_ttm()
611 map->virtual = vmap(ttm->pages + start_page, num_pages, in ttm_bo_kmap_ttm()
700 ttm_tt_destroy(bo->ttm); in ttm_bo_move_accel_cleanup()
701 bo->ttm = NULL; in ttm_bo_move_accel_cleanup()
729 ghost_obj->ttm = NULL; in ttm_bo_move_accel_cleanup()
731 bo->ttm = NULL; in ttm_bo_move_accel_cleanup()
785 ghost_obj->ttm = NULL; in ttm_bo_pipeline_move()
787 bo->ttm = NULL; in ttm_bo_pipeline_move()
823 ttm_tt_destroy(bo->ttm); in ttm_bo_pipeline_move()
824 bo->ttm = NULL; in ttm_bo_pipeline_move()
852 bo->ttm = NULL; in ttm_bo_pipeline_gutting()