| /linux/drivers/gpu/drm/ttm/tests/ |
| A D | ttm_resource_test.c | 83 .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() 235 ttm_init_test_mocks(test, priv, TTM_PL_SYSTEM, TTM_PL_FLAG_TOPDOWN); in ttm_resource_manager_usage_basic() 257 man = ttm_manager_type(priv->devs->ttm_dev, TTM_PL_SYSTEM); in ttm_resource_manager_set_used_basic() 271 u32 mem_type = TTM_PL_SYSTEM; in ttm_sys_man_alloc_basic() 296 u32 mem_type = TTM_PL_SYSTEM; in ttm_sys_man_free_basic()
|
| A D | ttm_kunit_helpers.c | 12 .mem_type = TTM_PL_SYSTEM, 67 if (!old_mem || (old_mem->mem_type == TTM_PL_SYSTEM && !bo->ttm)) { in mock_move() 73 new_mem->mem_type == TTM_PL_SYSTEM) { in mock_move() 81 if ((old_mem->mem_type == TTM_PL_SYSTEM && in mock_move() 84 new_mem->mem_type == TTM_PL_SYSTEM)) { in mock_move() 97 case TTM_PL_SYSTEM: in mock_evict_flags()
|
| A D | ttm_device_test.c | 33 KUNIT_ASSERT_NOT_NULL(test, ttm_dev->man_drv[TTM_PL_SYSTEM]); in ttm_device_init_basic() 65 KUNIT_ASSERT_NOT_NULL(test, ttm_devs[i].man_drv[TTM_PL_SYSTEM]); in ttm_device_init_multiple() 87 man = ttm_manager_type(ttm_dev, TTM_PL_SYSTEM); in ttm_device_fini_basic() 94 KUNIT_ASSERT_NULL(test, ttm_dev->man_drv[TTM_PL_SYSTEM]); in ttm_device_fini_basic()
|
| A D | ttm_bo_validate_test.c | 119 place = ttm_place_kunit_init(test, TTM_PL_SYSTEM, 0); in ttm_bo_init_reserved_sys_man() 230 u32 fst_mem = TTM_PL_SYSTEM, snd_mem = TTM_PL_VRAM; in ttm_bo_validate_basic() 333 u32 mem_type = TTM_PL_SYSTEM; in ttm_bo_validate_pinned() 362 .mem_type = TTM_PL_SYSTEM, 387 if (params->mem_type != TTM_PL_SYSTEM) in ttm_bo_validate_same_placement() 408 if (params->mem_type != TTM_PL_SYSTEM) in ttm_bo_validate_same_placement() 524 u32 mem_type = TTM_PL_SYSTEM; in ttm_bo_validate_no_placement_signaled() 594 u32 mem_type = TTM_PL_SYSTEM; in ttm_bo_validate_no_placement_not_signaled() 646 u32 mem_type = TTM_PL_SYSTEM; in ttm_bo_validate_move_fence_signaled() 813 mem_type_evict = TTM_PL_SYSTEM; in ttm_bo_validate_happy_evict() [all …]
|
| A D | ttm_bo_test.c | 246 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_put_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/ |
| A D | qxl_ttm.c | 57 .mem_type = TTM_PL_SYSTEM, in qxl_evict_flags() 77 case TTM_PL_SYSTEM: in qxl_ttm_io_mem_reserve() 145 if (new_mem->mem_type != TTM_PL_SYSTEM) { in qxl_bo_move() 146 hop->mem_type = TTM_PL_SYSTEM; in qxl_bo_move() 161 if (old_mem->mem_type == TTM_PL_SYSTEM && bo->ttm == NULL) { in qxl_bo_move()
|
| A D | qxl_object.c | 77 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/ |
| A D | lsdc_ttm.c | 22 case TTM_PL_SYSTEM: in lsdc_mem_type_to_str() 69 lbo->placements[c].mem_type = TTM_PL_SYSTEM; in lsdc_bo_set_placement() 74 lbo->placements[c].mem_type = TTM_PL_SYSTEM; in lsdc_bo_set_placement() 186 if (old_mem->mem_type == TTM_PL_SYSTEM && !tbo->ttm) { in lsdc_bo_move() 193 if (old_mem->mem_type == TTM_PL_SYSTEM && in lsdc_bo_move() 202 new_mem->mem_type == TTM_PL_SYSTEM) { in lsdc_bo_move() 225 case TTM_PL_SYSTEM: in lsdc_bo_reserve_io_mem() 263 if (unlikely(resource->mem_type == TTM_PL_SYSTEM)) in lsdc_bo_gpu_offset()
|
| /linux/drivers/gpu/drm/ttm/ |
| A D | ttm_device.c | 155 for (i = TTM_PL_SYSTEM; i < TTM_NUM_MEM_TYPES; ++i) { in ttm_device_swapout() 241 man = ttm_manager_type(bdev, TTM_PL_SYSTEM); in ttm_device_fini() 243 ttm_set_driver_manager(bdev, TTM_PL_SYSTEM, NULL); in ttm_device_fini() 288 for (i = TTM_PL_SYSTEM; i < TTM_NUM_MEM_TYPES; ++i) { in ttm_device_clear_dma_mappings()
|
| A D | ttm_bo.c | 141 if (mem->mem_type != TTM_PL_SYSTEM) { in ttm_bo_handle_move_mem() 425 if (bo->resource->mem_type == TTM_PL_SYSTEM) in ttm_bo_eviction_valuable() 701 may_evict = (force_space && place->mem_type != TTM_PL_SYSTEM); in ttm_bo_alloc_resource() 843 if (!bo->resource || bo->resource->mem_type == TTM_PL_SYSTEM) { in ttm_bo_validate() 1101 if (bo->resource->mem_type != TTM_PL_SYSTEM) { in ttm_bo_swapout_cb() 1106 place.mem_type = TTM_PL_SYSTEM; in ttm_bo_swapout_cb()
|
| A D | ttm_sys_manager.c | 47 ttm_set_driver_manager(bdev, TTM_PL_SYSTEM, man); in ttm_sys_man_init()
|
| /linux/drivers/gpu/drm/radeon/ |
| A D | radeon_ttm.c | 88 .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() 228 if ((old_mem->mem_type == TTM_PL_SYSTEM && in radeon_bo_move() 231 new_mem->mem_type == TTM_PL_SYSTEM)) { in radeon_bo_move() 263 case TTM_PL_SYSTEM: in radeon_ttm_io_mem_reserve()
|
| A D | radeon_object.h | 47 case TTM_PL_SYSTEM: in radeon_mem_type_to_domain()
|
| /linux/include/drm/ttm/ |
| A D | ttm_placement.h | 51 #define TTM_PL_SYSTEM 0 macro
|
| /linux/drivers/gpu/drm/vmwgfx/ |
| A D | vmwgfx_ttm_buffer.c | 42 .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()
|
| A D | vmwgfx_bo.c | 794 pl[n].mem_type = TTM_PL_SYSTEM; in set_placement_list() 804 pl[n].mem_type = TTM_PL_SYSTEM; in set_placement_list() 826 if (bo->tbo.resource->mem_type == TTM_PL_SYSTEM || in vmw_bo_placement_set()
|
| /linux/drivers/gpu/drm/ |
| A D | drm_gem_vram_helper.c | 157 gbo->placements[c].mem_type = TTM_PL_SYSTEM; in drm_gem_vram_placement() 254 gbo->bo.resource->mem_type == TTM_PL_SYSTEM)) in drm_gem_vram_pg_offset() 893 if (new_mem->mem_type != TTM_PL_SYSTEM) { in bo_driver_move() 894 hop->mem_type = TTM_PL_SYSTEM; in bo_driver_move() 914 case TTM_PL_SYSTEM: /* nothing to do */ in bo_driver_io_mem_reserve()
|
| A D | drm_gem_ttm_helper.c | 29 [ TTM_PL_SYSTEM ] = "system", in drm_gem_ttm_print_info()
|
| /linux/drivers/gpu/drm/nouveau/ |
| A D | nouveau_bo.c | 454 pl[*n].mem_type = TTM_PL_SYSTEM; in nouveau_bo_placement_set() 997 if (mem && new_reg->mem_type != TTM_PL_SYSTEM && in nouveau_bo_move_ntfy() 1092 if (!old_reg || (old_reg->mem_type == TTM_PL_SYSTEM && in nouveau_bo_move() 1098 if (old_reg->mem_type == TTM_PL_SYSTEM && in nouveau_bo_move() 1105 new_reg->mem_type == TTM_PL_SYSTEM) { in nouveau_bo_move() 1114 if ((old_reg->mem_type == TTM_PL_SYSTEM && in nouveau_bo_move() 1117 new_reg->mem_type == TTM_PL_SYSTEM)) { in nouveau_bo_move() 1182 case TTM_PL_SYSTEM: in nouveau_ttm_io_mem_reserve() 1306 if (bo->resource->mem_type != TTM_PL_SYSTEM) in nouveau_ttm_fault_reserve_notify()
|
| A D | nouveau_vmm.c | 99 if (nvbo->bo.resource->mem_type != TTM_PL_SYSTEM && in nouveau_vma_new()
|
| /linux/drivers/gpu/drm/i915/gem/ |
| A D | i915_gem_ttm.h | 65 #define I915_PL_SYSTEM TTM_PL_SYSTEM
|
| A D | i915_gem_ttm_move.c | 590 if (dst_mem->mem_type != TTM_PL_SYSTEM) { in i915_ttm_move() 591 hop->mem_type = TTM_PL_SYSTEM; in i915_ttm_move()
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| A D | amdgpu_object.c | 173 places[c].mem_type = TTM_PL_SYSTEM; in amdgpu_bo_placement_from_domain() 205 places[c].mem_type = TTM_PL_SYSTEM; in amdgpu_bo_placement_from_domain() 1165 old_mem && old_mem->mem_type != TTM_PL_SYSTEM) in amdgpu_bo_move_notify() 1202 case TTM_PL_SYSTEM: in amdgpu_bo_get_memory() 1407 WARN_ON_ONCE(bo->tbo.resource->mem_type == TTM_PL_SYSTEM); in amdgpu_bo_gpu_offset() 1517 case TTM_PL_SYSTEM: in amdgpu_bo_print_info()
|
| A D | amdgpu_ttm.c | 98 .mem_type = TTM_PL_SYSTEM, in amdgpu_evict_flags() 444 if (res->mem_type == TTM_PL_SYSTEM || res->mem_type == TTM_PL_TT || in amdgpu_res_cpu_visible() 505 if (!old_mem || (old_mem->mem_type == TTM_PL_SYSTEM && in amdgpu_bo_move() 511 if (old_mem->mem_type == TTM_PL_SYSTEM && in amdgpu_bo_move() 520 new_mem->mem_type == TTM_PL_SYSTEM) { in amdgpu_bo_move() 556 ((old_mem->mem_type == TTM_PL_SYSTEM && in amdgpu_bo_move() 559 new_mem->mem_type == TTM_PL_SYSTEM))) { in amdgpu_bo_move() 604 case TTM_PL_SYSTEM: in amdgpu_ttm_io_mem_reserve() 1346 if (mem && mem->mem_type != TTM_PL_SYSTEM) in amdgpu_ttm_tt_pde_flags() 1407 if (bo->resource->mem_type == TTM_PL_SYSTEM) in amdgpu_ttm_bo_eviction_valuable()
|
| /linux/drivers/gpu/drm/i915/ |
| A D | intel_region_ttm.c | 63 return TTM_PL_SYSTEM; in intel_region_to_ttm_type()
|