/linux-6.3-rc2/drivers/gpu/drm/qxl/ |
A D | qxl_ttm.c | 82 case TTM_PL_VRAM: in qxl_ttm_io_mem_reserve() 197 r = qxl_ttm_init_mem_type(qdev, TTM_PL_VRAM, num_io_pages); in qxl_ttm_init() 219 ttm_range_man_fini(&qdev->mman.bdev, TTM_PL_VRAM); in qxl_ttm_fini() 229 TTM_PL_VRAM), in qxl_ttm_debugfs_init()
|
A D | qxl_object.c | 71 qbo->placements[c].mem_type = TTM_PL_VRAM; in qxl_ttm_placement_from_domain() 77 qbo->placements[c].mem_type = TTM_PL_VRAM; in qxl_ttm_placement_from_domain() 216 if (bo->tbo.resource->mem_type == TTM_PL_VRAM) in qxl_bo_kmap_atomic_page() 270 if ((bo->tbo.resource->mem_type != TTM_PL_VRAM) && in qxl_bo_kunmap_atomic_page() 413 man = ttm_manager_type(&qdev->mman.bdev, TTM_PL_VRAM); in qxl_vram_evict()
|
A D | qxl_drv.h | 287 (bo->tbo.resource->mem_type == TTM_PL_VRAM) in qxl_bo_physical_address()
|
/linux-6.3-rc2/drivers/gpu/drm/radeon/ |
A D | radeon_object.c | 90 rbo->placements[c].mem_type = TTM_PL_VRAM; in radeon_ttm_placement_from_domain() 95 rbo->placements[c].mem_type = TTM_PL_VRAM; in radeon_ttm_placement_from_domain() 121 (rbo->placements[i].mem_type == TTM_PL_VRAM) && in radeon_ttm_placement_from_domain() 311 if ((bo->placements[i].mem_type == TTM_PL_VRAM) && in radeon_bo_pin_restricted() 344 if (bo->tbo.resource->mem_type == TTM_PL_VRAM) in radeon_bo_unpin() 364 man = ttm_manager_type(bdev, TTM_PL_VRAM); in radeon_bo_evict_vram() 422 ttm_manager_type(&rdev->mman.bdev, TTM_PL_VRAM); in radeon_bo_get_threshold_for_moves() 697 if (bo->tbo.resource->mem_type != TTM_PL_VRAM) { in radeon_bo_check_tiling() 737 if (bo->resource->mem_type != TTM_PL_VRAM) in radeon_bo_fault_reserve_notify() 754 if ((rbo->placements[i].mem_type == TTM_PL_VRAM) && in radeon_bo_fault_reserve_notify()
|
A D | radeon_ttm.c | 72 return ttm_range_man_init(&rdev->mman.bdev, TTM_PL_VRAM, in radeon_ttm_init_vram() 103 case TTM_PL_VRAM: in radeon_evict_flags() 120 if (rbo->placements[i].mem_type == TTM_PL_VRAM) { in radeon_evict_flags() 156 case TTM_PL_VRAM: in radeon_move_blit() 167 case TTM_PL_VRAM: in radeon_move_blit() 240 new_mem->mem_type == TTM_PL_VRAM) || in radeon_bo_move() 241 (old_mem->mem_type == TTM_PL_VRAM && in radeon_bo_move() 288 case TTM_PL_VRAM: in radeon_ttm_io_mem_reserve() 760 ttm_range_man_fini(&rdev->mman.bdev, TTM_PL_VRAM); in radeon_ttm_fini() 777 man = ttm_manager_type(&rdev->mman.bdev, TTM_PL_VRAM); in radeon_ttm_set_active_vram_size() [all …]
|
A D | radeon_object.h | 43 case TTM_PL_VRAM: in radeon_mem_type_to_domain() 102 case TTM_PL_VRAM: in radeon_bo_gpu_offset()
|
/linux-6.3-rc2/drivers/gpu/drm/nouveau/ |
A D | nouveau_ttm.c | 193 ttm_set_driver_manager(&drm->ttm.bdev, TTM_PL_VRAM, man); in nouveau_ttm_init_vram() 197 return ttm_range_man_init(&drm->ttm.bdev, TTM_PL_VRAM, false, in nouveau_ttm_init_vram() 205 struct ttm_resource_manager *man = ttm_manager_type(&drm->ttm.bdev, TTM_PL_VRAM); in nouveau_ttm_fini_vram() 211 ttm_set_driver_manager(&drm->ttm.bdev, TTM_PL_VRAM, NULL); in nouveau_ttm_fini_vram() 214 ttm_range_man_fini(&drm->ttm.bdev, TTM_PL_VRAM); in nouveau_ttm_fini_vram()
|
A D | nouveau_bo.c | 356 pl[*n].mem_type = TTM_PL_VRAM; in set_placement_list() 446 case TTM_PL_VRAM: in nouveau_bo_pin() 481 case TTM_PL_VRAM: in nouveau_bo_pin() 512 case TTM_PL_VRAM: in nouveau_bo_unpin() 751 case TTM_PL_VRAM: in nouveau_bo_evict_flags() 963 if (new_reg->mem_type != TTM_PL_VRAM) in nouveau_bo_vm_bind() 1051 new_reg->mem_type == TTM_PL_VRAM) || in nouveau_bo_move() 1052 (old_reg->mem_type == TTM_PL_VRAM && in nouveau_bo_move() 1096 case TTM_PL_VRAM: in nouveau_ttm_io_mem_free_locked() 1137 case TTM_PL_VRAM: in nouveau_ttm_io_mem_reserve() [all …]
|
A D | nouveau_gem.c | 348 bo->resource->mem_type == TTM_PL_VRAM) in nouveau_gem_set_domain() 562 ((nvbo->bo.resource->mem_type == TTM_PL_VRAM && in validate_list()
|
A D | nouveau_abi16.c | 313 if (chan->chan->push.buffer->bo.resource->mem_type == TTM_PL_VRAM) in nouveau_abi16_ioctl_channel_alloc()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/amdgpu/ |
A D | amdgpu_object.c | 137 places[c].mem_type = TTM_PL_VRAM; in amdgpu_bo_placement_from_domain() 462 man = ttm_manager_type(&adev->mman.bdev, TTM_PL_VRAM); in amdgpu_bo_validate_size() 602 bo->tbo.resource->mem_type == TTM_PL_VRAM && in amdgpu_bo_create() 610 bo->tbo.resource->mem_type == TTM_PL_VRAM) { in amdgpu_bo_create() 908 if ((mem_type == TTM_PL_VRAM) && in amdgpu_bo_pin_restricted() 1010 if (bo->tbo.resource->mem_type == TTM_PL_VRAM) { in amdgpu_bo_unpin() 1316 if (!bo->resource || bo->resource->mem_type != TTM_PL_VRAM || in amdgpu_bo_release_notify() 1355 if (bo->resource->mem_type != TTM_PL_VRAM) in amdgpu_bo_fault_reserve_notify() 1383 if (bo->resource->mem_type == TTM_PL_VRAM && in amdgpu_bo_fault_reserve_notify() 1478 WARN_ON_ONCE(bo->tbo.resource->mem_type == TTM_PL_VRAM && in amdgpu_bo_gpu_offset()
|
A D | amdgpu_res_cursor.h | 70 case TTM_PL_VRAM: in amdgpu_res_first() 144 case TTM_PL_VRAM: in amdgpu_res_next()
|
A D | amdgpu_ttm.c | 135 case TTM_PL_VRAM: in amdgpu_evict_flags() 383 if (old_mem->mem_type == TTM_PL_VRAM && in amdgpu_move_blit() 426 if (mem->mem_type != TTM_PL_VRAM) in amdgpu_mem_visible() 512 new_mem->mem_type == TTM_PL_VRAM && in amdgpu_bo_move() 513 old_mem->mem_type != TTM_PL_VRAM) { in amdgpu_bo_move() 522 new_mem->mem_type == TTM_PL_VRAM) || in amdgpu_bo_move() 523 (old_mem->mem_type == TTM_PL_VRAM && in amdgpu_bo_move() 575 case TTM_PL_VRAM: in amdgpu_ttm_io_mem_reserve() 620 case TTM_PL_VRAM: in amdgpu_ttm_domain_start() 2152 case TTM_PL_VRAM: in amdgpu_ttm_evict_resources() [all …]
|
A D | amdgpu_object.h | 143 case TTM_PL_VRAM: in amdgpu_mem_type_to_domain() 223 if (bo->tbo.resource->mem_type != TTM_PL_VRAM) in amdgpu_bo_in_cpu_visible_vram()
|
A D | amdgpu_vram_mgr.c | 855 ttm_set_driver_manager(&adev->mman.bdev, TTM_PL_VRAM, &mgr->manager); in amdgpu_vram_mgr_init() 893 ttm_set_driver_manager(&adev->mman.bdev, TTM_PL_VRAM, NULL); in amdgpu_vram_mgr_fini()
|
A D | amdgpu_dma_buf.c | 182 case TTM_PL_VRAM: in amdgpu_dma_buf_map()
|
/linux-6.3-rc2/include/drm/ttm/ |
A D | ttm_placement.h | 53 #define TTM_PL_VRAM 2 macro
|
/linux-6.3-rc2/drivers/gpu/drm/vmwgfx/ |
A D | vmwgfx_ttm_buffer.c | 34 .mem_type = TTM_PL_VRAM, 70 .mem_type = TTM_PL_VRAM, 89 .mem_type = TTM_PL_VRAM, 545 case TTM_PL_VRAM: in vmw_ttm_io_mem_reserve()
|
A D | vmwgfx_bo.c | 213 if (bo->resource->mem_type == TTM_PL_VRAM && in vmw_bo_pin_in_start_of_vram() 279 if (bo->resource->mem_type == TTM_PL_VRAM) { in vmw_bo_get_guest_ptr() 844 if (mem->mem_type == TTM_PL_VRAM || bo->resource->mem_type == TTM_PL_VRAM) in vmw_bo_move_notify()
|
A D | vmwgfx_drv.c | 702 ret = ttm_range_man_init(&dev_priv->bdev, TTM_PL_VRAM, false, in vmw_vram_manager_init() 704 ttm_resource_manager_set_used(ttm_manager_type(&dev_priv->bdev, TTM_PL_VRAM), false); in vmw_vram_manager_init() 710 ttm_range_man_fini(&dev_priv->bdev, TTM_PL_VRAM); in vmw_vram_manager_fini() 1325 struct ttm_resource_manager *man = ttm_manager_type(&dev_priv->bdev, TTM_PL_VRAM); in __vmw_svga_enable() 1352 struct ttm_resource_manager *man = ttm_manager_type(&dev_priv->bdev, TTM_PL_VRAM); in __vmw_svga_disable() 1371 struct ttm_resource_manager *man = ttm_manager_type(&dev_priv->bdev, TTM_PL_VRAM); in vmw_svga_disable() 1410 ttm_resource_manager_create_debugfs(ttm_manager_type(&vmw->bdev, TTM_PL_VRAM), in vmw_debugfs_resource_managers_init()
|
A D | vmwgfx_gem.c | 207 case TTM_PL_VRAM: in vmw_bo_print_info()
|
A D | vmwgfx_cmd.c | 585 if (bo->resource->mem_type == TTM_PL_VRAM) { in vmw_cmd_emit_dummy_legacy_query()
|
/linux-6.3-rc2/drivers/gpu/drm/ |
A D | drm_gem_vram_helper.c | 153 gbo->placements[c].mem_type = TTM_PL_VRAM; in drm_gem_vram_placement() 932 case TTM_PL_VRAM: in bo_driver_io_mem_reserve() 962 struct ttm_resource_manager *man = ttm_manager_type(&vmm->bdev, TTM_PL_VRAM); in drm_vram_mm_debugfs() 1001 ret = ttm_range_man_init(&vmm->bdev, TTM_PL_VRAM, in drm_vram_mm_init() 1011 ttm_range_man_fini(&vmm->bdev, TTM_PL_VRAM); in drm_vram_mm_cleanup()
|
A D | drm_gem_ttm_helper.c | 31 [ TTM_PL_VRAM ] = "vram", in drm_gem_ttm_print_info()
|
/linux-6.3-rc2/drivers/gpu/drm/i915/gem/ |
A D | i915_gem_ttm.h | 65 #define I915_PL_STOLEN TTM_PL_VRAM
|