/Linux-v4.19/include/drm/ttm/ |
D | ttm_placement.h | 42 #define TTM_PL_VRAM 2 macro 47 #define TTM_PL_FLAG_VRAM (1 << TTM_PL_VRAM)
|
/Linux-v4.19/drivers/gpu/drm/qxl/ |
D | qxl_ttm.c | 166 case TTM_PL_VRAM: in qxl_init_mem_type() 230 case TTM_PL_VRAM: in qxl_ttm_io_mem_reserve() 391 r = ttm_bo_init_mm(&qdev->mman.bdev, TTM_PL_VRAM, in qxl_ttm_init() 414 ttm_bo_clean_mm(&qdev->mman.bdev, TTM_PL_VRAM); in qxl_ttm_fini() 457 qxl_mem_types_list[i].data = qdev->mman.bdev.man[TTM_PL_VRAM].priv; in qxl_ttm_debugfs_init()
|
D | qxl_object.c | 152 if (bo->tbo.mem.mem_type == TTM_PL_VRAM) in qxl_bo_kmap_atomic_page() 192 if (bo->tbo.mem.mem_type == TTM_PL_VRAM) in qxl_bo_kunmap_atomic_page() 358 return ttm_bo_evict_mm(&qdev->mman.bdev, TTM_PL_VRAM); in qxl_vram_evict()
|
/Linux-v4.19/drivers/gpu/drm/radeon/ |
D | radeon_ttm.c | 162 case TTM_PL_VRAM: in radeon_init_mem_type() 198 case TTM_PL_VRAM: in radeon_evict_flags() 271 case TTM_PL_VRAM: in radeon_move_blit() 282 case TTM_PL_VRAM: in radeon_move_blit() 433 if (old_mem->mem_type == TTM_PL_VRAM && in radeon_bo_move() 438 new_mem->mem_type == TTM_PL_VRAM) { in radeon_bo_move() 485 case TTM_PL_VRAM: in radeon_ttm_io_mem_reserve() 866 r = ttm_bo_init_mm(&rdev->mman.bdev, TTM_PL_VRAM, in radeon_ttm_init() 924 ttm_bo_clean_mm(&rdev->mman.bdev, TTM_PL_VRAM); in radeon_ttm_fini() 942 man = &rdev->mman.bdev.man[TTM_PL_VRAM]; in radeon_ttm_set_active_vram_size() [all …]
|
D | radeon_object.c | 63 case TTM_PL_VRAM: in radeon_update_memory_usage() 411 if (bo->tbo.mem.mem_type == TTM_PL_VRAM) in radeon_bo_unpin() 429 return ttm_bo_evict_mm(&rdev->mman.bdev, TTM_PL_VRAM); in radeon_bo_evict_vram() 758 if (bo->tbo.mem.mem_type != TTM_PL_VRAM) { in radeon_bo_check_tiling() 807 if (bo->mem.mem_type != TTM_PL_VRAM) in radeon_bo_fault_reserve_notify()
|
D | radeon_object.h | 43 case TTM_PL_VRAM: in radeon_mem_type_to_domain()
|
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_object.h | 124 case TTM_PL_VRAM: in amdgpu_mem_type_to_domain() 204 case TTM_PL_VRAM: return true; in amdgpu_bo_gpu_accessible() 219 if (bo->tbo.mem.mem_type != TTM_PL_VRAM) in amdgpu_bo_in_cpu_visible_vram()
|
D | amdgpu_object.c | 78 if (bo->tbo.mem.mem_type == TTM_PL_VRAM) { in amdgpu_bo_subtract_pin_size() 405 man = &adev->mman.bdev.man[TTM_PL_VRAM]; in amdgpu_bo_validate_size() 504 bo->tbo.mem.mem_type == TTM_PL_VRAM && in amdgpu_bo_do_create() 1026 return ttm_bo_evict_mm(&adev->mman.bdev, TTM_PL_VRAM); in amdgpu_bo_evict_vram() 1297 if (bo->mem.mem_type != TTM_PL_VRAM) in amdgpu_bo_fault_reserve_notify() 1324 if (bo->mem.mem_type == TTM_PL_VRAM && in amdgpu_bo_fault_reserve_notify() 1368 WARN_ON_ONCE(bo->tbo.mem.mem_type == TTM_PL_VRAM && in amdgpu_bo_gpu_offset()
|
D | amdgpu_ttm.c | 195 case TTM_PL_VRAM: in amdgpu_init_mem_type() 258 case TTM_PL_VRAM: in amdgpu_evict_flags() 683 if (old_mem->mem_type == TTM_PL_VRAM && in amdgpu_bo_move() 687 new_mem->mem_type == TTM_PL_VRAM) { in amdgpu_bo_move() 703 new_mem->mem_type == TTM_PL_VRAM && in amdgpu_bo_move() 704 old_mem->mem_type != TTM_PL_VRAM) { in amdgpu_bo_move() 740 case TTM_PL_VRAM: in amdgpu_ttm_io_mem_reserve() 1495 case TTM_PL_VRAM: in amdgpu_ttm_bo_eviction_valuable() 1538 if (bo->mem.mem_type != TTM_PL_VRAM) in amdgpu_ttm_access_memory() 1739 r = ttm_bo_init_mm(&adev->mman.bdev, TTM_PL_VRAM, in amdgpu_ttm_init() [all …]
|
D | amdgpu_kms.c | 483 ui64 = amdgpu_vram_mgr_usage(&adev->mman.bdev.man[TTM_PL_VRAM]); in amdgpu_info_ioctl() 486 ui64 = amdgpu_vram_mgr_vis_usage(&adev->mman.bdev.man[TTM_PL_VRAM]); in amdgpu_info_ioctl() 526 amdgpu_vram_mgr_usage(&adev->mman.bdev.man[TTM_PL_VRAM]); in amdgpu_info_ioctl() 534 amdgpu_vram_mgr_vis_usage(&adev->mman.bdev.man[TTM_PL_VRAM]); in amdgpu_info_ioctl()
|
D | amdgpu_amdkfd.c | 437 return amdgpu_vram_mgr_usage(&adev->mman.bdev.man[TTM_PL_VRAM]); in amdgpu_amdkfd_get_vram_usage()
|
/Linux-v4.19/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_drv.c | 887 ret = ttm_bo_init_mm(&dev_priv->bdev, TTM_PL_VRAM, in vmw_driver_load() 893 dev_priv->bdev.man[TTM_PL_VRAM].use_type = false; in vmw_driver_load() 978 (void)ttm_bo_clean_mm(&dev_priv->bdev, TTM_PL_VRAM); in vmw_driver_load() 1029 (void)ttm_bo_clean_mm(&dev_priv->bdev, TTM_PL_VRAM); in vmw_driver_unload() 1336 if (!dev_priv->bdev.man[TTM_PL_VRAM].use_type) { in __vmw_svga_enable() 1338 dev_priv->bdev.man[TTM_PL_VRAM].use_type = true; in __vmw_svga_enable() 1365 if (dev_priv->bdev.man[TTM_PL_VRAM].use_type) { in __vmw_svga_disable() 1366 dev_priv->bdev.man[TTM_PL_VRAM].use_type = false; in __vmw_svga_disable() 1398 if (dev_priv->bdev.man[TTM_PL_VRAM].use_type) { in vmw_svga_disable() 1399 dev_priv->bdev.man[TTM_PL_VRAM].use_type = false; in vmw_svga_disable() [all …]
|
D | vmwgfx_bo.c | 247 if (bo->mem.mem_type == TTM_PL_VRAM && in vmw_bo_pin_in_start_of_vram() 319 if (bo->mem.mem_type == TTM_PL_VRAM) { in vmw_bo_get_guest_ptr() 1113 if (mem->mem_type == TTM_PL_VRAM || bo->mem.mem_type == TTM_PL_VRAM) in vmw_bo_move_notify()
|
D | vmwgfx_ttm_buffer.c | 762 case TTM_PL_VRAM: in vmw_init_mem_type() 821 case TTM_PL_VRAM: in vmw_ttm_io_mem_reserve()
|
/Linux-v4.19/drivers/staging/vboxvideo/ |
D | vbox_ttm.c | 121 case TTM_PL_VRAM: in vbox_bo_init_mem_type() 170 case TTM_PL_VRAM: in vbox_ttm_io_mem_reserve() 244 ret = ttm_bo_init_mm(bdev, TTM_PL_VRAM, in vbox_mm_init()
|
/Linux-v4.19/drivers/gpu/drm/mgag200/ |
D | mgag200_ttm.c | 123 case TTM_PL_VRAM: in mgag200_bo_init_mem_type() 175 case TTM_PL_VRAM: in mgag200_ttm_io_mem_reserve() 250 ret = ttm_bo_init_mm(bdev, TTM_PL_VRAM, mdev->mc.vram_size >> PAGE_SHIFT); in mgag200_mm_init()
|
/Linux-v4.19/drivers/gpu/drm/ast/ |
D | ast_ttm.c | 123 case TTM_PL_VRAM: in ast_bo_init_mem_type() 175 case TTM_PL_VRAM: in ast_ttm_io_mem_reserve() 250 ret = ttm_bo_init_mm(bdev, TTM_PL_VRAM, in ast_mm_init()
|
/Linux-v4.19/drivers/gpu/drm/cirrus/ |
D | cirrus_ttm.c | 123 case TTM_PL_VRAM: in cirrus_bo_init_mem_type() 175 case TTM_PL_VRAM: in cirrus_ttm_io_mem_reserve() 250 ret = ttm_bo_init_mm(bdev, TTM_PL_VRAM, in cirrus_mm_init()
|
/Linux-v4.19/drivers/gpu/drm/hisilicon/hibmc/ |
D | hibmc_ttm.c | 104 case TTM_PL_VRAM: in hibmc_bo_init_mem_type() 182 case TTM_PL_VRAM: in hibmc_ttm_io_mem_reserve() 256 ret = ttm_bo_init_mm(bdev, TTM_PL_VRAM, in hibmc_mm_init()
|
/Linux-v4.19/drivers/gpu/drm/bochs/ |
D | bochs_mm.c | 99 case TTM_PL_VRAM: in bochs_bo_init_mem_type() 152 case TTM_PL_VRAM: in bochs_ttm_io_mem_reserve() 226 ret = ttm_bo_init_mm(bdev, TTM_PL_VRAM, in bochs_mm_init()
|
/Linux-v4.19/drivers/gpu/drm/nouveau/ |
D | nouveau_ttm.c | 320 ret = ttm_bo_init_mm(&drm->ttm.bdev, TTM_PL_VRAM, in nouveau_ttm_init() 354 ttm_bo_clean_mm(&drm->ttm.bdev, TTM_PL_VRAM); in nouveau_ttm_fini()
|
D | nouveau_bo.c | 430 case TTM_PL_VRAM: in nouveau_bo_pin() 468 case TTM_PL_VRAM: in nouveau_bo_unpin() 639 case TTM_PL_VRAM: in nouveau_bo_init_mem_type() 695 case TTM_PL_VRAM: in nouveau_bo_evict_flags() 1306 if (new_reg->mem_type != TTM_PL_VRAM) in nouveau_bo_vm_bind() 1436 case TTM_PL_VRAM: in nouveau_ttm_io_mem_reserve() 1496 case TTM_PL_VRAM: in nouveau_ttm_io_mem_free() 1517 if (bo->mem.mem_type != TTM_PL_VRAM) { in nouveau_ttm_fault_reserve_notify()
|
D | nouveau_gem.c | 301 bo->mem.mem_type == TTM_PL_VRAM) in nouveau_gem_set_domain() 518 ((nvbo->bo.mem.mem_type == TTM_PL_VRAM && in validate_list()
|
D | nouveau_abi16.c | 319 if (chan->chan->push.buffer->bo.mem.mem_type == TTM_PL_VRAM) in nouveau_abi16_ioctl_channel_alloc()
|
D | nouveau_chan.c | 176 if (chan->push.buffer->bo.mem.mem_type == TTM_PL_VRAM) { in nouveau_channel_prep()
|