| /Linux-v5.15/drivers/gpu/drm/qxl/ |
| D | qxl_ttm.c | 82 case TTM_PL_VRAM: in qxl_ttm_io_mem_reserve() 198 r = qxl_ttm_init_mem_type(qdev, TTM_PL_VRAM, num_io_pages); in qxl_ttm_init() 220 ttm_range_man_fini(&qdev->mman.bdev, TTM_PL_VRAM); in qxl_ttm_fini() 256 qxl_mem_types_list[i].data = ttm_manager_type(&qdev->mman.bdev, TTM_PL_VRAM); in qxl_ttm_debugfs_init()
|
| 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() 215 if (bo->tbo.resource->mem_type == TTM_PL_VRAM) in qxl_bo_kmap_atomic_page() 269 if ((bo->tbo.resource->mem_type != TTM_PL_VRAM) && in qxl_bo_kunmap_atomic_page() 412 man = ttm_manager_type(&qdev->mman.bdev, TTM_PL_VRAM); in qxl_vram_evict()
|
| D | qxl_drv.h | 295 (bo->tbo.resource->mem_type == TTM_PL_VRAM) in qxl_bo_physical_address()
|
| /Linux-v5.15/drivers/gpu/drm/radeon/ |
| D | radeon_object.c | 64 case TTM_PL_VRAM: in radeon_update_memory_usage() 111 rbo->placements[c].mem_type = TTM_PL_VRAM; in radeon_ttm_placement_from_domain() 116 rbo->placements[c].mem_type = TTM_PL_VRAM; in radeon_ttm_placement_from_domain() 142 (rbo->placements[i].mem_type == TTM_PL_VRAM) && in radeon_ttm_placement_from_domain() 327 if ((bo->placements[i].mem_type == TTM_PL_VRAM) && in radeon_bo_pin_restricted() 360 if (bo->tbo.resource->mem_type == TTM_PL_VRAM) in radeon_bo_unpin() 380 man = ttm_manager_type(bdev, TTM_PL_VRAM); in radeon_bo_evict_vram() 712 if (bo->tbo.resource->mem_type != TTM_PL_VRAM) { in radeon_bo_check_tiling() 758 if (bo->resource->mem_type != TTM_PL_VRAM) in radeon_bo_fault_reserve_notify() 775 if ((rbo->placements[i].mem_type == TTM_PL_VRAM) && in radeon_bo_fault_reserve_notify()
|
| 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() 243 new_mem->mem_type == TTM_PL_VRAM) || in radeon_bo_move() 244 (old_mem->mem_type == TTM_PL_VRAM && in radeon_bo_move() 291 case TTM_PL_VRAM: in radeon_ttm_io_mem_reserve() 777 ttm_range_man_fini(&rdev->mman.bdev, TTM_PL_VRAM); in radeon_ttm_fini() 794 man = ttm_manager_type(&rdev->mman.bdev, TTM_PL_VRAM); in radeon_ttm_set_active_vram_size() [all …]
|
| 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-v5.15/drivers/gpu/drm/nouveau/ |
| D | nouveau_ttm.c | 168 ttm_set_driver_manager(&drm->ttm.bdev, TTM_PL_VRAM, man); in nouveau_ttm_init_vram() 172 return ttm_range_man_init(&drm->ttm.bdev, TTM_PL_VRAM, false, in nouveau_ttm_init_vram() 180 struct ttm_resource_manager *man = ttm_manager_type(&drm->ttm.bdev, TTM_PL_VRAM); in nouveau_ttm_fini_vram() 186 ttm_set_driver_manager(&drm->ttm.bdev, TTM_PL_VRAM, NULL); in nouveau_ttm_fini_vram() 189 ttm_range_man_fini(&drm->ttm.bdev, TTM_PL_VRAM); in nouveau_ttm_fini_vram()
|
| D | nouveau_bo.c | 353 pl[*n].mem_type = TTM_PL_VRAM; in set_placement_list() 443 case TTM_PL_VRAM: in nouveau_bo_pin() 478 case TTM_PL_VRAM: in nouveau_bo_pin() 509 case TTM_PL_VRAM: in nouveau_bo_unpin() 748 case TTM_PL_VRAM: in nouveau_bo_evict_flags() 944 if (new_reg->mem_type != TTM_PL_VRAM) in nouveau_bo_vm_bind() 1024 new_reg->mem_type == TTM_PL_VRAM) || in nouveau_bo_move() 1025 (old_reg->mem_type == TTM_PL_VRAM && in nouveau_bo_move() 1069 case TTM_PL_VRAM: in nouveau_ttm_io_mem_free_locked() 1110 case TTM_PL_VRAM: in nouveau_ttm_io_mem_reserve() [all …]
|
| 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()
|
| D | nouveau_abi16.c | 315 if (chan->chan->push.buffer->bo.resource->mem_type == TTM_PL_VRAM) in nouveau_abi16_ioctl_channel_alloc()
|
| /Linux-v5.15/drivers/gpu/drm/vmwgfx/ |
| D | vmwgfx_thp.c | 144 ttm_set_driver_manager(&dev_priv->bdev, TTM_PL_VRAM, &rman->manager); in vmw_thp_init() 151 struct ttm_resource_manager *man = ttm_manager_type(&dev_priv->bdev, TTM_PL_VRAM); in vmw_thp_fini() 166 ttm_set_driver_manager(&dev_priv->bdev, TTM_PL_VRAM, NULL); in vmw_thp_fini()
|
| D | vmwgfx_ttm_buffer.c | 35 .mem_type = TTM_PL_VRAM, 71 .mem_type = TTM_PL_VRAM, 90 .mem_type = TTM_PL_VRAM, 125 .mem_type = TTM_PL_VRAM, 634 case TTM_PL_VRAM: in vmw_ttm_io_mem_reserve()
|
| D | vmwgfx_bo.c | 230 if (bo->resource->mem_type == TTM_PL_VRAM && in vmw_bo_pin_in_start_of_vram() 296 if (bo->resource->mem_type == TTM_PL_VRAM) { in vmw_bo_get_guest_ptr() 1199 if (mem->mem_type == TTM_PL_VRAM || bo->resource->mem_type == TTM_PL_VRAM) in vmw_bo_move_notify()
|
| D | vmwgfx_drv.c | 713 ret = ttm_range_man_init(&dev_priv->bdev, TTM_PL_VRAM, false, in vmw_vram_manager_init() 716 ttm_resource_manager_set_used(ttm_manager_type(&dev_priv->bdev, TTM_PL_VRAM), false); in vmw_vram_manager_init() 725 ttm_range_man_fini(&dev_priv->bdev, TTM_PL_VRAM); in vmw_vram_manager_fini() 1317 struct ttm_resource_manager *man = ttm_manager_type(&dev_priv->bdev, TTM_PL_VRAM); in __vmw_svga_enable() 1344 struct ttm_resource_manager *man = ttm_manager_type(&dev_priv->bdev, TTM_PL_VRAM); in __vmw_svga_disable() 1363 struct ttm_resource_manager *man = ttm_manager_type(&dev_priv->bdev, TTM_PL_VRAM); in vmw_svga_disable()
|
| D | vmwgfx_cmd.c | 578 if (bo->resource->mem_type == TTM_PL_VRAM) { in vmw_cmd_emit_dummy_legacy_query()
|
| /Linux-v5.15/drivers/gpu/drm/amd/amdgpu/ |
| D | amdgpu_object.c | 136 places[c].mem_type = TTM_PL_VRAM; in amdgpu_bo_placement_from_domain() 460 man = ttm_manager_type(&adev->mman.bdev, TTM_PL_VRAM); in amdgpu_bo_validate_size() 596 bo->tbo.resource->mem_type == TTM_PL_VRAM && in amdgpu_bo_create() 604 bo->tbo.resource->mem_type == TTM_PL_VRAM) { in amdgpu_bo_create() 930 if ((mem_type == TTM_PL_VRAM) && in amdgpu_bo_pin_restricted() 1032 if (bo->tbo.resource->mem_type == TTM_PL_VRAM) { in amdgpu_bo_unpin() 1060 man = ttm_manager_type(&adev->mman.bdev, TTM_PL_VRAM); in amdgpu_bo_evict_vram() 1342 if (bo->resource->mem_type != TTM_PL_VRAM || in amdgpu_bo_release_notify() 1379 if (bo->resource->mem_type != TTM_PL_VRAM) in amdgpu_bo_fault_reserve_notify() 1407 if (bo->resource->mem_type == TTM_PL_VRAM && in amdgpu_bo_fault_reserve_notify() [all …]
|
| D | amdgpu_ttm.c | 138 case TTM_PL_VRAM: in amdgpu_evict_flags() 400 if (old_mem->mem_type == TTM_PL_VRAM && in amdgpu_move_blit() 443 if (mem->mem_type != TTM_PL_VRAM) in amdgpu_mem_visible() 519 new_mem->mem_type == TTM_PL_VRAM && in amdgpu_bo_move() 520 old_mem->mem_type != TTM_PL_VRAM) { in amdgpu_bo_move() 529 new_mem->mem_type == TTM_PL_VRAM) || in amdgpu_bo_move() 530 (old_mem->mem_type == TTM_PL_VRAM && in amdgpu_bo_move() 582 case TTM_PL_VRAM: in amdgpu_ttm_io_mem_reserve() 627 case TTM_PL_VRAM: in amdgpu_ttm_domain_start() 1292 if (mem && mem->mem_type == TTM_PL_VRAM && in amdgpu_ttm_tt_pde_flags() [all …]
|
| D | amdgpu_vram_mgr.c | 101 man = ttm_manager_type(&adev->mman.bdev, TTM_PL_VRAM); in amdgpu_mem_info_vram_used_show() 121 man = ttm_manager_type(&adev->mman.bdev, TTM_PL_VRAM); in amdgpu_mem_info_vis_vram_used_show() 709 ttm_set_driver_manager(&adev->mman.bdev, TTM_PL_VRAM, &mgr->manager); in amdgpu_vram_mgr_init() 747 ttm_set_driver_manager(&adev->mman.bdev, TTM_PL_VRAM, NULL); in amdgpu_vram_mgr_fini()
|
| D | amdgpu_object.h | 144 case TTM_PL_VRAM: in amdgpu_mem_type_to_domain() 224 if (bo->tbo.resource->mem_type != TTM_PL_VRAM) in amdgpu_bo_in_cpu_visible_vram()
|
| D | amdgpu_dma_buf.c | 196 case TTM_PL_VRAM: in amdgpu_dma_buf_map()
|
| D | amdgpu_kms.c | 668 ui64 = amdgpu_vram_mgr_usage(ttm_manager_type(&adev->mman.bdev, TTM_PL_VRAM)); in amdgpu_info_ioctl() 671 ui64 = amdgpu_vram_mgr_vis_usage(ttm_manager_type(&adev->mman.bdev, TTM_PL_VRAM)); in amdgpu_info_ioctl() 706 ttm_manager_type(&adev->mman.bdev, TTM_PL_VRAM); in amdgpu_info_ioctl()
|
| /Linux-v5.15/include/drm/ttm/ |
| D | ttm_placement.h | 42 #define TTM_PL_VRAM 2 macro
|
| /Linux-v5.15/drivers/gpu/drm/ |
| D | drm_gem_vram_helper.c | 151 gbo->placements[c].mem_type = TTM_PL_VRAM; in drm_gem_vram_placement() 927 case TTM_PL_VRAM: in bo_driver_io_mem_reserve() 957 struct ttm_resource_manager *man = ttm_manager_type(&vmm->bdev, TTM_PL_VRAM); in drm_vram_mm_debugfs() 997 ret = ttm_range_man_init(&vmm->bdev, TTM_PL_VRAM, in drm_vram_mm_init() 1007 ttm_range_man_fini(&vmm->bdev, TTM_PL_VRAM); in drm_vram_mm_cleanup()
|
| D | drm_gem_ttm_helper.c | 29 [ TTM_PL_VRAM ] = "vram", in drm_gem_ttm_print_info()
|
| /Linux-v5.15/drivers/gpu/drm/ttm/ |
| D | ttm_bo.c | 120 case TTM_PL_VRAM: in ttm_bo_move_to_lru_tail() 157 man = ttm_manager_type(pos->first->bdev, TTM_PL_VRAM); in ttm_bo_bulk_move_lru_tail()
|