Lines Matching refs:ttm
150 if (bo->ttm) in ttm_bo_release_list()
151 ttm_tt_destroy(bo->ttm); in ttm_bo_release_list()
179 if (bo->ttm != NULL) { in ttm_bo_add_to_lru()
242 bo->ttm = NULL; in ttm_bo_add_ttm()
252 bo->ttm = bdev->driver->ttm_tt_create(bdev, bo->num_pages << PAGE_SHIFT, in ttm_bo_add_ttm()
254 if (unlikely(bo->ttm == NULL)) in ttm_bo_add_ttm()
258 bo->ttm = bdev->driver->ttm_tt_create(bdev, bo->num_pages << PAGE_SHIFT, in ttm_bo_add_ttm()
261 if (unlikely(bo->ttm == NULL)) { in ttm_bo_add_ttm()
265 bo->ttm->sg = bo->sg; in ttm_bo_add_ttm()
302 if (bo->ttm == NULL) { in ttm_bo_handle_move_mem()
309 ret = ttm_tt_set_placement_caching(bo->ttm, mem->placement); in ttm_bo_handle_move_mem()
314 ret = ttm_tt_bind(bo->ttm, mem); in ttm_bo_handle_move_mem()
374 if ((new_man->flags & TTM_MEMTYPE_FLAG_FIXED) && bo->ttm) { in ttm_bo_handle_move_mem()
375 ttm_tt_unbind(bo->ttm); in ttm_bo_handle_move_mem()
376 ttm_tt_destroy(bo->ttm); in ttm_bo_handle_move_mem()
377 bo->ttm = NULL; in ttm_bo_handle_move_mem()
396 if (bo->ttm) { in ttm_bo_cleanup_memtype_use()
397 ttm_tt_unbind(bo->ttm); in ttm_bo_cleanup_memtype_use()
398 ttm_tt_destroy(bo->ttm); in ttm_bo_cleanup_memtype_use()
399 bo->ttm = NULL; in ttm_bo_cleanup_memtype_use()
1070 if (bo->mem.mem_type == TTM_PL_SYSTEM && bo->ttm == NULL) { in ttm_bo_validate()
1683 ret = ttm_tt_swapout(bo->ttm, bo->persistent_swap_storage); in ttm_bo_swapout()