Lines Matching refs:ttm
39 #include "ttm/ttm_module.h"
40 #include "ttm/ttm_bo_driver.h"
41 #include "ttm/ttm_placement.h"
159 if (bo->ttm)
160 ttm_tt_destroy(bo->ttm);
202 if (bo->ttm != NULL) {
318 bo->ttm = NULL;
328 bo->ttm = ttm_tt_create(bdev, bo->num_pages << PAGE_SHIFT,
330 if (unlikely(bo->ttm == NULL))
334 bo->ttm = ttm_tt_create(bdev, bo->num_pages << PAGE_SHIFT,
337 if (unlikely(bo->ttm == NULL)) {
342 ret = ttm_tt_set_user(bo->ttm, current,
345 ttm_tt_destroy(bo->ttm);
373 * Create and bind a ttm if required.
376 if (!(new_man->flags & TTM_MEMTYPE_FLAG_FIXED) && (bo->ttm == NULL)) {
381 ret = ttm_tt_set_placement_caching(bo->ttm, mem->placement);
386 ret = ttm_tt_bind(bo->ttm, mem);
435 if ((new_man->flags & TTM_MEMTYPE_FLAG_FIXED) && bo->ttm) {
436 ttm_tt_unbind(bo->ttm);
437 ttm_tt_destroy(bo->ttm);
438 bo->ttm = NULL;
456 if (bo->ttm) {
464 ttm_tt_unbind(bo->ttm);
465 ttm_tt_destroy(bo->ttm);
466 bo->ttm = NULL;
1140 if (bo->mem.mem_type == TTM_PL_SYSTEM && bo->ttm == NULL) {
1873 * anyone tries to access a ttm page.
1879 ret = ttm_tt_swapout(bo->ttm, bo->persistant_swap_storage);