Home
last modified time | relevance | path

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

12

/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_fdinfo.c66 [TTM_PL_VRAM] = "vram", in amdgpu_show_fdinfo()
101 stats[TTM_PL_VRAM].drm.resident/1024UL); in amdgpu_show_fdinfo()
109 stats[TTM_PL_VRAM].evicted/1024UL); in amdgpu_show_fdinfo()
111 (stats[TTM_PL_VRAM].drm.shared + in amdgpu_show_fdinfo()
112 stats[TTM_PL_VRAM].drm.private) / 1024UL); in amdgpu_show_fdinfo()
H A Damdgpu_res_cursor.h70 case TTM_PL_VRAM: in amdgpu_res_first()
145 case TTM_PL_VRAM: in amdgpu_res_next()
181 case TTM_PL_VRAM: in amdgpu_res_cleared()
H A Damdgpu_ttm.c130 case TTM_PL_VRAM: in amdgpu_evict_flags()
341 (abo_src->tbo.resource->mem_type == TTM_PL_VRAM)) in amdgpu_ttm_copy_mem_to_mem()
344 (dst->mem->mem_type == TTM_PL_VRAM)) { in amdgpu_ttm_copy_mem_to_mem()
410 if (old_mem->mem_type == TTM_PL_VRAM && in amdgpu_move_blit()
461 if (res->mem_type != TTM_PL_VRAM) in amdgpu_res_cpu_visible()
486 if (mem->mem_type == TTM_PL_VRAM && in amdgpu_res_copyable()
562 new_mem->mem_type == TTM_PL_VRAM && in amdgpu_bo_move()
563 old_mem->mem_type != TTM_PL_VRAM) { in amdgpu_bo_move()
572 new_mem->mem_type == TTM_PL_VRAM) || in amdgpu_bo_move()
573 (old_mem->mem_type == TTM_PL_VRAM && in amdgpu_bo_move()
[all …]
H A Damdgpu_vram_mgr.c937 ttm_set_driver_manager(&adev->mman.bdev, TTM_PL_VRAM, &mgr->manager); in amdgpu_vram_mgr_init()
976 ttm_set_driver_manager(&adev->mman.bdev, TTM_PL_VRAM, NULL); in amdgpu_vram_mgr_fini()
/linux/drivers/gpu/drm/loongson/
H A Dlsdc_ttm.c19 case TTM_PL_VRAM: in lsdc_mem_type_to_str()
60 lbo->placements[c].mem_type = TTM_PL_VRAM; in lsdc_bo_set_placement()
147 case TTM_PL_VRAM: in lsdc_bo_evict_flags()
230 case TTM_PL_VRAM: in lsdc_bo_reserve_io_mem()
336 if (tbo->resource->mem_type == TTM_PL_VRAM) in lsdc_bo_unpin()
409 man = ttm_manager_type(bdev, TTM_PL_VRAM); in lsdc_bo_evict_vram()
531 ttm_range_man_fini(&ldev->bdev, TTM_PL_VRAM); in lsdc_ttm_fini()
555 ret = ttm_range_man_init(&ldev->bdev, TTM_PL_VRAM, false, num_vram_pages); in lsdc_ttm_init()
584 vram_man = ttm_manager_type(bdev, TTM_PL_VRAM); in lsdc_ttm_debugfs_init()
H A Dlsdc_drv.c356 if (resource->mem_type == TTM_PL_VRAM) { in lsdc_drm_freeze()
/linux/drivers/gpu/drm/radeon/
H A Dradeon_object.c89 rbo->placements[c].mem_type = TTM_PL_VRAM; in radeon_ttm_placement_from_domain()
94 rbo->placements[c].mem_type = TTM_PL_VRAM; in radeon_ttm_placement_from_domain()
119 (rbo->placements[i].mem_type == TTM_PL_VRAM) && in radeon_ttm_placement_from_domain()
307 if ((bo->placements[i].mem_type == TTM_PL_VRAM) && in radeon_bo_pin_restricted()
340 if (bo->tbo.resource->mem_type == TTM_PL_VRAM) in radeon_bo_unpin()
360 man = ttm_manager_type(bdev, TTM_PL_VRAM); in radeon_bo_evict_vram()
418 ttm_manager_type(&rdev->mman.bdev, TTM_PL_VRAM); in radeon_bo_get_threshold_for_moves()
690 if (bo->tbo.resource->mem_type != TTM_PL_VRAM) { in radeon_bo_check_tiling()
730 if (bo->resource->mem_type != TTM_PL_VRAM) in radeon_bo_fault_reserve_notify()
747 if ((rbo->placements[i].mem_type == TTM_PL_VRAM) && in radeon_bo_fault_reserve_notify()
H A Dradeon_ttm.c72 return ttm_range_man_init(&rdev->mman.bdev, TTM_PL_VRAM, in radeon_ttm_init_vram()
101 case TTM_PL_VRAM: in radeon_evict_flags()
117 if (rbo->placements[i].mem_type == TTM_PL_VRAM) { in radeon_evict_flags()
150 case TTM_PL_VRAM: in radeon_move_blit()
161 case TTM_PL_VRAM: in radeon_move_blit()
228 new_mem->mem_type == TTM_PL_VRAM) || in radeon_bo_move()
229 (old_mem->mem_type == TTM_PL_VRAM && in radeon_bo_move()
276 case TTM_PL_VRAM: in radeon_ttm_io_mem_reserve()
750 ttm_range_man_fini(&rdev->mman.bdev, TTM_PL_VRAM); in radeon_ttm_fini()
767 man = ttm_manager_type(&rdev->mman.bdev, TTM_PL_VRAM); in radeon_ttm_set_active_vram_size()
[all …]
H A Dradeon_object.h43 case TTM_PL_VRAM: in radeon_mem_type_to_domain()
102 case TTM_PL_VRAM: in radeon_bo_gpu_offset()
/linux/drivers/gpu/drm/qxl/
H A Dqxl_ttm.c81 case TTM_PL_VRAM: in qxl_ttm_io_mem_reserve()
207 r = qxl_ttm_init_mem_type(qdev, TTM_PL_VRAM, num_io_pages); in qxl_ttm_init()
229 ttm_range_man_fini(&qdev->mman.bdev, TTM_PL_VRAM); in qxl_ttm_fini()
239 TTM_PL_VRAM), in qxl_ttm_debugfs_init()
H A Dqxl_object.c67 qbo->placements[c].mem_type = TTM_PL_VRAM; in qxl_ttm_placement_from_domain()
73 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()
416 man = ttm_manager_type(&qdev->mman.bdev, TTM_PL_VRAM); in qxl_vram_evict()
H A Dqxl_drv.h284 (bo->tbo.resource->mem_type == TTM_PL_VRAM) in qxl_bo_physical_address()
/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_ttm.c193 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()
H A Dnouveau_bo.c522 pl[*n].mem_type = TTM_PL_VRAM; in nouveau_bo_placement_set()
566 case TTM_PL_VRAM: in nouveau_bo_pin_locked()
601 case TTM_PL_VRAM: in nouveau_bo_pin_locked()
627 case TTM_PL_VRAM: in nouveau_bo_unpin_locked()
891 case TTM_PL_VRAM: in nouveau_bo_evict_flags()
1112 if (new_reg->mem_type != TTM_PL_VRAM) in nouveau_bo_vm_bind()
1198 new_reg->mem_type == TTM_PL_VRAM) || in nouveau_bo_move()
1199 (old_reg->mem_type == TTM_PL_VRAM && in nouveau_bo_move()
1244 case TTM_PL_VRAM: in nouveau_ttm_io_mem_free_locked()
1285 case TTM_PL_VRAM: in nouveau_ttm_io_mem_reserve()
[all …]
H A Dnouveau_abi16.c321 struct ttm_resource_manager *vram_mgr = ttm_manager_type(&drm->ttm.bdev, TTM_PL_VRAM); in nouveau_abi16_ioctl_getparam()
430 if (chan->chan->push.buffer->bo.resource->mem_type == TTM_PL_VRAM) in nouveau_abi16_ioctl_channel_alloc()
/linux/drivers/gpu/drm/
H A Ddrm_gem_vram_helper.c148 gbo->placements[c].mem_type = TTM_PL_VRAM; in drm_gem_vram_placement()
798 case TTM_PL_VRAM: in bo_driver_io_mem_reserve()
828 struct ttm_resource_manager *man = ttm_manager_type(&vmm->bdev, TTM_PL_VRAM); in drm_vram_mm_debugfs()
867 ret = ttm_range_man_init(&vmm->bdev, TTM_PL_VRAM, in drm_vram_mm_init()
877 ttm_range_man_fini(&vmm->bdev, TTM_PL_VRAM); in drm_vram_mm_cleanup()
H A Ddrm_gem_ttm_helper.c33 [ TTM_PL_VRAM ] = "vram", in drm_gem_ttm_print_info()
/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_bo.c211 if (bo->resource->mem_type == TTM_PL_VRAM && in vmw_bo_pin_in_start_of_vram()
280 if (bo->resource->mem_type == TTM_PL_VRAM) { in vmw_bo_get_guest_ptr()
725 if (mem->mem_type == TTM_PL_VRAM || bo->resource->mem_type == TTM_PL_VRAM) in vmw_bo_move_notify()
774 pl[n].mem_type = TTM_PL_VRAM; in set_placement_list()
H A Dvmwgfx_drv.c695 ret = ttm_range_man_init(&dev_priv->bdev, TTM_PL_VRAM, false, in vmw_vram_manager_init()
697 ttm_resource_manager_set_used(ttm_manager_type(&dev_priv->bdev, TTM_PL_VRAM), false); in vmw_vram_manager_init()
703 ttm_range_man_fini(&dev_priv->bdev, TTM_PL_VRAM); in vmw_vram_manager_fini()
1327 struct ttm_resource_manager *man = ttm_manager_type(&dev_priv->bdev, TTM_PL_VRAM); in __vmw_svga_enable()
1354 struct ttm_resource_manager *man = ttm_manager_type(&dev_priv->bdev, TTM_PL_VRAM); in __vmw_svga_disable()
1373 struct ttm_resource_manager *man = ttm_manager_type(&dev_priv->bdev, TTM_PL_VRAM); in vmw_svga_disable()
1412 ttm_resource_manager_create_debugfs(ttm_manager_type(&vmw->bdev, TTM_PL_VRAM), in vmw_debugfs_resource_managers_init()
H A Dvmwgfx_ttm_buffer.c35 .mem_type = TTM_PL_VRAM,
448 case TTM_PL_VRAM: in vmw_ttm_io_mem_reserve()
H A Dvmwgfx_gem.c262 case TTM_PL_VRAM: in vmw_bo_print_info()
/linux/include/drm/ttm/
H A Dttm_placement.h53 #define TTM_PL_VRAM 2 macro
/linux/drivers/gpu/drm/ttm/tests/
H A Dttm_kunit_helpers.c75 if (bo->resource->mem_type == TTM_PL_VRAM && in mock_move()
99 case TTM_PL_VRAM: in mock_evict_flags()
H A Dttm_resource_test.c87 .mem_type = TTM_PL_VRAM,
/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_ttm.h66 #define I915_PL_STOLEN TTM_PL_VRAM

12