Lines Matching refs:ttm
32 __FBSDID("$FreeBSD: releng/10.3/sys/dev/drm2/ttm/ttm_bo.c 285002 2015-07-01 11:28:42Z avg $");
35 #include <dev/drm2/ttm/ttm_module.h>
36 #include <dev/drm2/ttm/ttm_bo_driver.h>
37 #include <dev/drm2/ttm/ttm_placement.h>
124 if (bo->ttm)
125 ttm_tt_destroy(bo->ttm);
174 if (bo->ttm != NULL) {
378 bo->ttm = NULL;
388 bo->ttm = bdev->driver->ttm_tt_create(bdev, bo->num_pages << PAGE_SHIFT,
390 if (unlikely(bo->ttm == NULL))
394 bo->ttm = bdev->driver->ttm_tt_create(bdev, bo->num_pages << PAGE_SHIFT,
397 if (unlikely(bo->ttm == NULL)) {
401 bo->ttm->sg = bo->sg;
434 * Create and bind a ttm if required.
438 if (bo->ttm == NULL) {
445 ret = ttm_tt_set_placement_caching(bo->ttm, mem->placement);
450 ret = ttm_tt_bind(bo->ttm, mem);
508 if ((new_man->flags & TTM_MEMTYPE_FLAG_FIXED) && bo->ttm) {
509 ttm_tt_unbind(bo->ttm);
510 ttm_tt_destroy(bo->ttm);
511 bo->ttm = NULL;
530 if (bo->ttm) {
531 ttm_tt_unbind(bo->ttm);
532 ttm_tt_destroy(bo->ttm);
533 bo->ttm = NULL;
1201 if (bo->mem.mem_type == TTM_PL_SYSTEM && bo->ttm == NULL) {
1870 * anyone tries to access a ttm page.
1876 ret = ttm_tt_swapout(bo->ttm, bo->persistent_swap_storage);