Home
last modified time | relevance | path

Searched refs:TTM_PL_SYSTEM (Results 1 – 22 of 22) sorted by relevance

/linux/drivers/gpu/drm/ttm/tests/
H A Dttm_resource_test.c83 .mem_type = TTM_PL_SYSTEM,
95 .mem_type = TTM_PL_SYSTEM,
121 if (params->mem_type > TTM_PL_SYSTEM) in ttm_resource_init_basic()
159 ttm_init_test_mocks(test, priv, TTM_PL_SYSTEM, 0); in ttm_resource_init_pinned()
189 ttm_init_test_mocks(test, priv, TTM_PL_SYSTEM, 0); in ttm_resource_fini_basic()
236 ttm_init_test_mocks(test, priv, TTM_PL_SYSTEM, TTM_PL_FLAG_TOPDOWN); in ttm_resource_manager_usage_basic()
258 man = ttm_manager_type(priv->devs->ttm_dev, TTM_PL_SYSTEM); in ttm_resource_manager_set_used_basic()
272 u32 mem_type = TTM_PL_SYSTEM; in ttm_sys_man_alloc_basic()
297 u32 mem_type = TTM_PL_SYSTEM; in ttm_sys_man_free_basic()
H A Dttm_kunit_helpers.c15 .mem_type = TTM_PL_SYSTEM,
70 if (!old_mem || (old_mem->mem_type == TTM_PL_SYSTEM && !bo->ttm)) { in mock_move()
76 new_mem->mem_type == TTM_PL_SYSTEM) { in mock_move()
84 if ((old_mem->mem_type == TTM_PL_SYSTEM && in mock_move()
87 new_mem->mem_type == TTM_PL_SYSTEM)) { in mock_move()
100 case TTM_PL_SYSTEM: in mock_evict_flags()
H A Dttm_bo_test.c246 u32 mem_type = TTM_PL_SYSTEM; in ttm_bo_unreserve_basic()
287 u32 mem_type = TTM_PL_SYSTEM; in ttm_bo_unreserve_pinned()
331 u32 mem_type = TTM_PL_SYSTEM; in ttm_bo_unreserve_bulk()
389 u32 mem_type = TTM_PL_SYSTEM; in ttm_bo_fini_basic()
504 u32 mem_type = TTM_PL_SYSTEM; in ttm_bo_pin_unpin_resource()
555 u32 mem_type = TTM_PL_SYSTEM; in ttm_bo_multiple_pin_one_unpin()
/linux/drivers/gpu/drm/qxl/
H A Dqxl_ttm.c58 .mem_type = TTM_PL_SYSTEM, in qxl_evict_flags()
78 case TTM_PL_SYSTEM: in qxl_ttm_io_mem_reserve()
146 if (new_mem->mem_type != TTM_PL_SYSTEM) { in qxl_bo_move()
147 hop->mem_type = TTM_PL_SYSTEM; in qxl_bo_move()
162 if (old_mem->mem_type == TTM_PL_SYSTEM && bo->ttm == NULL) { in qxl_bo_move()
H A Dqxl_object.c77 qbo->placements[c].mem_type = TTM_PL_SYSTEM; in qxl_ttm_placement_from_domain()
81 qbo->placements[c].mem_type = TTM_PL_SYSTEM; in qxl_ttm_placement_from_domain()
/linux/drivers/gpu/drm/loongson/
H A Dlsdc_ttm.c23 case TTM_PL_SYSTEM: in lsdc_mem_type_to_str()
70 lbo->placements[c].mem_type = TTM_PL_SYSTEM; in lsdc_bo_set_placement()
75 lbo->placements[c].mem_type = TTM_PL_SYSTEM; in lsdc_bo_set_placement()
187 if (old_mem->mem_type == TTM_PL_SYSTEM && !tbo->ttm) { in lsdc_bo_move()
194 if (old_mem->mem_type == TTM_PL_SYSTEM && in lsdc_bo_move()
203 new_mem->mem_type == TTM_PL_SYSTEM) { in lsdc_bo_move()
226 case TTM_PL_SYSTEM: in lsdc_bo_reserve_io_mem()
264 if (unlikely(resource->mem_type == TTM_PL_SYSTEM)) in lsdc_bo_gpu_offset()
/linux/drivers/gpu/drm/radeon/
H A Dradeon_ttm.c88 .mem_type = TTM_PL_SYSTEM, in radeon_evict_flags()
208 if (!old_mem || (old_mem->mem_type == TTM_PL_SYSTEM && in radeon_bo_move()
213 if (old_mem->mem_type == TTM_PL_SYSTEM && in radeon_bo_move()
220 new_mem->mem_type == TTM_PL_SYSTEM) { in radeon_bo_move()
227 if ((old_mem->mem_type == TTM_PL_SYSTEM && in radeon_bo_move()
230 new_mem->mem_type == TTM_PL_SYSTEM)) { in radeon_bo_move()
262 case TTM_PL_SYSTEM: in radeon_ttm_io_mem_reserve()
H A Dradeon_object.h47 case TTM_PL_SYSTEM: in radeon_mem_type_to_domain()
H A Dradeon_object.c106 rbo->placements[c].mem_type = TTM_PL_SYSTEM; in radeon_ttm_placement_from_domain()
111 rbo->placements[c].mem_type = TTM_PL_SYSTEM; in radeon_ttm_placement_from_domain()
H A Dradeon_vm.c946 if (mem->mem_type != TTM_PL_SYSTEM) in radeon_vm_bo_update()
/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_ttm_buffer.c42 .mem_type = TTM_PL_SYSTEM,
443 case TTM_PL_SYSTEM: in vmw_ttm_io_mem_reserve()
493 return mem_type == TTM_PL_SYSTEM || mem_type == VMW_PL_SYSTEM; in vmw_memtype_is_system()
516 if (!bo->resource || (bo->resource->mem_type == TTM_PL_SYSTEM && in vmw_move()
H A Dvmwgfx_bo.c790 pl[n].mem_type = TTM_PL_SYSTEM; in set_placement_list()
800 pl[n].mem_type = TTM_PL_SYSTEM; in set_placement_list()
822 if (bo->tbo.resource->mem_type == TTM_PL_SYSTEM || in vmw_bo_placement_set()
H A Dvmwgfx_drv.c1410 ttm_resource_manager_create_debugfs(ttm_manager_type(&vmw->bdev, TTM_PL_SYSTEM), in vmw_debugfs_resource_managers_init()
/linux/include/drm/ttm/
H A Dttm_placement.h51 #define TTM_PL_SYSTEM 0 macro
/linux/drivers/gpu/drm/ttm/
H A Dttm_bo.c147 if (mem->mem_type != TTM_PL_SYSTEM) { in ttm_bo_handle_move_mem()
427 if (res->mem_type == TTM_PL_SYSTEM) in ttm_bo_eviction_valuable()
739 may_evict = (force_space && place->mem_type != TTM_PL_SYSTEM); in ttm_bo_alloc_resource()
887 if (!bo->resource || bo->resource->mem_type == TTM_PL_SYSTEM) { in ttm_bo_validate()
1149 if (bo->resource->mem_type != TTM_PL_SYSTEM) { in ttm_bo_swapout_cb()
1154 place.mem_type = TTM_PL_SYSTEM; in ttm_bo_swapout_cb()
H A Dttm_sys_manager.c47 ttm_set_driver_manager(bdev, TTM_PL_SYSTEM, man); in ttm_sys_man_init()
H A Dttm_bo_util.c1087 .mem_type = TTM_PL_SYSTEM, in ttm_bo_shrink()
1099 if (flags.allow_move && bo->resource->mem_type != TTM_PL_SYSTEM) { in ttm_bo_shrink()
/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_ttm.h65 #define I915_PL_SYSTEM TTM_PL_SYSTEM
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_ttm.c101 .mem_type = TTM_PL_SYSTEM, in amdgpu_evict_flags()
464 if (res->mem_type == TTM_PL_SYSTEM || res->mem_type == TTM_PL_TT || in amdgpu_res_cpu_visible()
526 if (!old_mem || (old_mem->mem_type == TTM_PL_SYSTEM && in amdgpu_bo_move()
532 if (old_mem->mem_type == TTM_PL_SYSTEM && in amdgpu_bo_move()
541 new_mem->mem_type == TTM_PL_SYSTEM) { in amdgpu_bo_move()
579 ((old_mem->mem_type == TTM_PL_SYSTEM && in amdgpu_bo_move()
582 new_mem->mem_type == TTM_PL_SYSTEM))) { in amdgpu_bo_move()
627 case TTM_PL_SYSTEM: in amdgpu_ttm_io_mem_reserve()
1415 if (mem && mem->mem_type != TTM_PL_SYSTEM) in amdgpu_ttm_tt_pde_flags()
1477 if (bo->resource->mem_type == TTM_PL_SYSTEM) in amdgpu_ttm_bo_eviction_valuable()
H A Damdgpu_amdkfd_gpuvm.c2077 bo->tbo.resource->mem_type == TTM_PL_SYSTEM) in amdgpu_amdkfd_gpuvm_map_memory_to_gpu()
2582 if (bo->tbo.resource->mem_type != TTM_PL_SYSTEM) { in update_invalid_user_pages()
H A Damdgpu_vm.c1683 bo_va->base.bo->tbo.resource->mem_type == TTM_PL_SYSTEM)) in amdgpu_vm_handle_moved()
/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_vmm.c99 if (nvbo->bo.resource->mem_type != TTM_PL_SYSTEM && in nouveau_vma_new()