Home
last modified time | relevance | path

Searched refs:TTM_PL_VRAM (Results 1 – 25 of 31) sorted by relevance

12

/Linux-v4.19/include/drm/ttm/
Dttm_placement.h42 #define TTM_PL_VRAM 2 macro
47 #define TTM_PL_FLAG_VRAM (1 << TTM_PL_VRAM)
/Linux-v4.19/drivers/gpu/drm/qxl/
Dqxl_ttm.c166 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()
Dqxl_object.c152 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/
Dradeon_ttm.c162 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 …]
Dradeon_object.c63 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()
Dradeon_object.h43 case TTM_PL_VRAM: in radeon_mem_type_to_domain()
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/
Damdgpu_object.h124 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()
Damdgpu_object.c78 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()
Damdgpu_ttm.c195 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 …]
Damdgpu_kms.c483 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()
Damdgpu_amdkfd.c437 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/
Dvmwgfx_drv.c887 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 …]
Dvmwgfx_bo.c247 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()
Dvmwgfx_ttm_buffer.c762 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/
Dvbox_ttm.c121 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/
Dmgag200_ttm.c123 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/
Dast_ttm.c123 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/
Dcirrus_ttm.c123 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/
Dhibmc_ttm.c104 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/
Dbochs_mm.c99 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/
Dnouveau_ttm.c320 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()
Dnouveau_bo.c430 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()
Dnouveau_gem.c301 bo->mem.mem_type == TTM_PL_VRAM) in nouveau_gem_set_domain()
518 ((nvbo->bo.mem.mem_type == TTM_PL_VRAM && in validate_list()
Dnouveau_abi16.c319 if (chan->chan->push.buffer->bo.mem.mem_type == TTM_PL_VRAM) in nouveau_abi16_ioctl_channel_alloc()
Dnouveau_chan.c176 if (chan->push.buffer->bo.mem.mem_type == TTM_PL_VRAM) { in nouveau_channel_prep()

12