Home
last modified time | relevance | path

Searched refs:TTM_PL_VRAM (Results 1 - 25 of 75) sorted by relevance

123

/kernel/linux/linux-6.6/drivers/gpu/drm/loongson/
H A Dlsdc_ttm.c18 case TTM_PL_VRAM: in lsdc_mem_type_to_str()
60 lbo->placements[c].mem_type = TTM_PL_VRAM; in lsdc_bo_set_placement()
148 case TTM_PL_VRAM: in lsdc_bo_evict_flags()
231 case TTM_PL_VRAM: in lsdc_bo_reserve_io_mem()
337 if (tbo->resource->mem_type == TTM_PL_VRAM) in lsdc_bo_unpin()
414 man = ttm_manager_type(bdev, TTM_PL_VRAM); in lsdc_bo_evict_vram()
536 ttm_range_man_fini(&ldev->bdev, TTM_PL_VRAM); in lsdc_ttm_fini()
559 ret = ttm_range_man_init(&ldev->bdev, TTM_PL_VRAM, false, num_vram_pages); in lsdc_ttm_init()
588 vram_man = ttm_manager_type(bdev, TTM_PL_VRAM); in lsdc_ttm_debugfs_init()
/kernel/linux/linux-6.6/drivers/gpu/drm/radeon/
H A Dradeon_object.c90 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()
[all...]
H A Dradeon_ttm.c71 return ttm_range_man_init(&rdev->mman.bdev, TTM_PL_VRAM, in radeon_ttm_init_vram()
102 case TTM_PL_VRAM: in radeon_evict_flags()
119 if (rbo->placements[i].mem_type == TTM_PL_VRAM) { in radeon_evict_flags()
155 case TTM_PL_VRAM: in radeon_move_blit()
166 case TTM_PL_VRAM: in radeon_move_blit()
236 new_mem->mem_type == TTM_PL_VRAM) || in radeon_bo_move()
237 (old_mem->mem_type == TTM_PL_VRAM && in radeon_bo_move()
284 case TTM_PL_VRAM: in radeon_ttm_io_mem_reserve()
756 ttm_range_man_fini(&rdev->mman.bdev, TTM_PL_VRAM); in radeon_ttm_fini()
773 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()
/kernel/linux/linux-6.6/drivers/gpu/drm/qxl/
H A Dqxl_ttm.c82 case TTM_PL_VRAM: in qxl_ttm_io_mem_reserve()
208 r = qxl_ttm_init_mem_type(qdev, TTM_PL_VRAM, num_io_pages); in qxl_ttm_init()
230 ttm_range_man_fini(&qdev->mman.bdev, TTM_PL_VRAM); in qxl_ttm_fini()
240 TTM_PL_VRAM), in qxl_ttm_debugfs_init()
H A Dqxl_object.c71 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()
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_thp.c141 ttm_set_driver_manager(&dev_priv->bdev, TTM_PL_VRAM, &rman->manager); in vmw_thp_init()
148 struct ttm_resource_manager *man = ttm_manager_type(&dev_priv->bdev, TTM_PL_VRAM); in vmw_thp_fini()
163 ttm_set_driver_manager(&dev_priv->bdev, TTM_PL_VRAM, NULL); in vmw_thp_fini()
H A Dvmwgfx_ttm_buffer.c36 .mem_type = TTM_PL_VRAM,
43 .mem_type = TTM_PL_VRAM,
100 .mem_type = TTM_PL_VRAM,
119 .mem_type = TTM_PL_VRAM,
135 .mem_type = TTM_PL_VRAM,
191 .mem_type = TTM_PL_VRAM,
751 case TTM_PL_VRAM: in vmw_ttm_io_mem_reserve()
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
H A Dradeon_object.c66 case TTM_PL_VRAM: in radeon_update_memory_usage()
115 rbo->placements[c].mem_type = TTM_PL_VRAM; in radeon_ttm_placement_from_domain()
121 rbo->placements[c].mem_type = TTM_PL_VRAM; in radeon_ttm_placement_from_domain()
174 (rbo->placements[i].mem_type == TTM_PL_VRAM) && in radeon_ttm_placement_from_domain()
363 if ((bo->placements[i].mem_type == TTM_PL_VRAM) && in radeon_bo_pin_restricted()
412 if (bo->tbo.mem.mem_type == TTM_PL_VRAM) in radeon_bo_unpin()
432 return ttm_bo_evict_mm(&rdev->mman.bdev, TTM_PL_VRAM); in radeon_bo_evict_vram()
761 if (bo->tbo.mem.mem_type != TTM_PL_VRAM) { in radeon_bo_check_tiling()
810 if (bo->mem.mem_type != TTM_PL_VRAM) in radeon_bo_fault_reserve_notify()
827 if ((rbo->placements[i].mem_type == TTM_PL_VRAM) in radeon_bo_fault_reserve_notify()
[all...]
H A Dradeon_ttm.c75 return ttm_range_man_init(&rdev->mman.bdev, TTM_PL_VRAM, in radeon_ttm_init_vram()
106 case TTM_PL_VRAM: in radeon_evict_flags()
123 if (rbo->placements[i].mem_type == TTM_PL_VRAM) { in radeon_evict_flags()
170 case TTM_PL_VRAM: in radeon_move_blit()
181 case TTM_PL_VRAM: in radeon_move_blit()
335 if (old_mem->mem_type == TTM_PL_VRAM && in radeon_bo_move()
340 new_mem->mem_type == TTM_PL_VRAM) { in radeon_bo_move()
380 case TTM_PL_VRAM: in radeon_ttm_io_mem_reserve()
886 ttm_range_man_fini(&rdev->mman.bdev, TTM_PL_VRAM); in radeon_ttm_fini()
903 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()
/kernel/linux/linux-5.10/drivers/gpu/drm/qxl/
H A Dqxl_ttm.c83 case TTM_PL_VRAM: in qxl_ttm_io_mem_reserve()
226 r = qxl_ttm_init_mem_type(qdev, TTM_PL_VRAM, num_io_pages); in qxl_ttm_init()
248 ttm_range_man_fini(&qdev->mman.bdev, TTM_PL_VRAM); in qxl_ttm_fini()
284 qxl_mem_types_list[i].data = ttm_manager_type(&qdev->mman.bdev, TTM_PL_VRAM); in qxl_ttm_debugfs_init()
H A Dqxl_object.c68 qbo->placements[c].mem_type = TTM_PL_VRAM; in qxl_ttm_placement_from_domain()
74 qbo->placements[c].mem_type = TTM_PL_VRAM; in qxl_ttm_placement_from_domain()
184 if (bo->tbo.mem.mem_type == TTM_PL_VRAM) in qxl_bo_kmap_atomic_page()
221 if ((bo->tbo.mem.mem_type != TTM_PL_VRAM) && in qxl_bo_kunmap_atomic_page()
376 return ttm_bo_evict_mm(&qdev->mman.bdev, TTM_PL_VRAM); in qxl_vram_evict()
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/
H A Dnouveau_ttm.c207 ttm_set_driver_manager(&drm->ttm.bdev, TTM_PL_VRAM, man); in nouveau_ttm_init_vram()
211 return ttm_range_man_init(&drm->ttm.bdev, TTM_PL_VRAM, false, in nouveau_ttm_init_vram()
219 struct ttm_resource_manager *man = ttm_manager_type(&drm->ttm.bdev, TTM_PL_VRAM); in nouveau_ttm_fini_vram()
225 ttm_set_driver_manager(&drm->ttm.bdev, TTM_PL_VRAM, NULL); in nouveau_ttm_fini_vram()
228 ttm_range_man_fini(&drm->ttm.bdev, TTM_PL_VRAM); in nouveau_ttm_fini_vram()
H A Dnouveau_bo.c356 pl[*n].mem_type = TTM_PL_VRAM; in set_placement_list()
461 case TTM_PL_VRAM: in nouveau_bo_pin()
501 case TTM_PL_VRAM: in nouveau_bo_pin()
535 case TTM_PL_VRAM: in nouveau_bo_unpin()
548 case TTM_PL_VRAM: in nouveau_bo_unpin()
755 case TTM_PL_VRAM: in nouveau_bo_evict_flags()
1039 if (new_reg->mem_type != TTM_PL_VRAM) in nouveau_bo_vm_bind()
1148 case TTM_PL_VRAM: in nouveau_ttm_io_mem_free_locked()
1187 case TTM_PL_VRAM: in nouveau_ttm_io_mem_reserve()
1277 if (bo->mem.mem_type != TTM_PL_VRAM) { in nouveau_ttm_fault_reserve_notify()
[all...]
/kernel/linux/linux-6.6/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.c406 pl[*n].mem_type = TTM_PL_VRAM; in set_placement_list()
496 case TTM_PL_VRAM: in nouveau_bo_pin()
531 case TTM_PL_VRAM: in nouveau_bo_pin()
562 case TTM_PL_VRAM: in nouveau_bo_unpin()
801 case TTM_PL_VRAM: in nouveau_bo_evict_flags()
1019 if (new_reg->mem_type != TTM_PL_VRAM) in nouveau_bo_vm_bind()
1104 new_reg->mem_type == TTM_PL_VRAM) || in nouveau_bo_move()
1105 (old_reg->mem_type == TTM_PL_VRAM && in nouveau_bo_move()
1149 case TTM_PL_VRAM: in nouveau_ttm_io_mem_free_locked()
1190 case TTM_PL_VRAM in nouveau_ttm_io_mem_reserve()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_bo.c192 if (bo->resource->mem_type == TTM_PL_VRAM && in vmw_bo_pin_in_start_of_vram()
261 if (bo->resource->mem_type == TTM_PL_VRAM) { in vmw_bo_get_guest_ptr()
733 if (mem->mem_type == TTM_PL_VRAM || bo->resource->mem_type == TTM_PL_VRAM) in vmw_bo_move_notify()
768 pl[n].mem_type = TTM_PL_VRAM; in set_placement_list()
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_res_cursor.h70 case TTM_PL_VRAM: in amdgpu_res_first()
145 case TTM_PL_VRAM: in amdgpu_res_next()
H A Damdgpu_object.c148 places[c].mem_type = TTM_PL_VRAM; in amdgpu_bo_placement_from_domain()
481 man = ttm_manager_type(&adev->mman.bdev, TTM_PL_VRAM); in amdgpu_bo_validate_size()
628 bo->tbo.resource->mem_type == TTM_PL_VRAM && in amdgpu_bo_create()
636 bo->tbo.resource->mem_type == TTM_PL_VRAM) { in amdgpu_bo_create()
931 if ((mem_type == TTM_PL_VRAM) && in amdgpu_bo_pin_restricted()
1033 if (bo->tbo.resource->mem_type == TTM_PL_VRAM) { in amdgpu_bo_unpin()
1349 if (!bo->resource || bo->resource->mem_type != TTM_PL_VRAM || in amdgpu_bo_release_notify()
1387 if (bo->resource->mem_type != TTM_PL_VRAM) in amdgpu_bo_fault_reserve_notify()
1413 if (bo->resource->mem_type == TTM_PL_VRAM && in amdgpu_bo_fault_reserve_notify()
1508 WARN_ON_ONCE(bo->tbo.resource->mem_type == TTM_PL_VRAM in amdgpu_bo_gpu_offset()
[all...]
H A Damdgpu_ttm.c134 case TTM_PL_VRAM: in amdgpu_evict_flags()
382 if (old_mem->mem_type == TTM_PL_VRAM && in amdgpu_move_blit()
426 if (mem->mem_type != TTM_PL_VRAM) in amdgpu_mem_visible()
510 new_mem->mem_type == TTM_PL_VRAM && in amdgpu_bo_move()
511 old_mem->mem_type != TTM_PL_VRAM) { in amdgpu_bo_move()
520 new_mem->mem_type == TTM_PL_VRAM) || in amdgpu_bo_move()
521 (old_mem->mem_type == TTM_PL_VRAM && in amdgpu_bo_move()
574 case TTM_PL_VRAM: in amdgpu_ttm_io_mem_reserve()
629 case TTM_PL_VRAM: in amdgpu_ttm_domain_start()
1329 if (mem && mem->mem_type == TTM_PL_VRAM in amdgpu_ttm_tt_pde_flags()
[all...]
/kernel/linux/linux-6.6/include/drm/ttm/
H A Dttm_placement.h53 #define TTM_PL_VRAM 2 macro
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_object.c67 if (bo->tbo.mem.mem_type == TTM_PL_VRAM) { in amdgpu_bo_subtract_pin_size()
139 places[c].mem_type = TTM_PL_VRAM; in amdgpu_bo_placement_from_domain()
470 man = ttm_manager_type(&adev->mman.bdev, TTM_PL_VRAM); in amdgpu_bo_validate_size()
595 bo->tbo.mem.mem_type == TTM_PL_VRAM && in amdgpu_bo_do_create()
603 bo->tbo.mem.mem_type == TTM_PL_VRAM) { in amdgpu_bo_do_create()
1062 return ttm_bo_evict_mm(&adev->mman.bdev, TTM_PL_VRAM); in amdgpu_bo_evict_vram()
1341 if (bo->mem.mem_type != TTM_PL_VRAM || !bo->mem.mm_node || in amdgpu_bo_release_notify()
1384 if (bo->mem.mem_type != TTM_PL_VRAM) in amdgpu_bo_fault_reserve_notify()
1411 if (bo->mem.mem_type == TTM_PL_VRAM && in amdgpu_bo_fault_reserve_notify()
1499 WARN_ON_ONCE(bo->tbo.mem.mem_type == TTM_PL_VRAM in amdgpu_bo_gpu_offset()
[all...]
H A Damdgpu_ttm.c123 case TTM_PL_VRAM: in amdgpu_evict_flags()
487 if (old_mem->mem_type == TTM_PL_VRAM && in amdgpu_move_blit()
638 if (mem->mem_type != TTM_PL_VRAM) in amdgpu_mem_visible()
698 if (old_mem->mem_type == TTM_PL_VRAM && in amdgpu_bo_move()
702 new_mem->mem_type == TTM_PL_VRAM) { in amdgpu_bo_move()
724 new_mem->mem_type == TTM_PL_VRAM && in amdgpu_bo_move()
725 old_mem->mem_type != TTM_PL_VRAM) { in amdgpu_bo_move()
754 case TTM_PL_VRAM: in amdgpu_ttm_io_mem_reserve()
803 case TTM_PL_VRAM: in amdgpu_ttm_domain_start()
1605 case TTM_PL_VRAM in amdgpu_ttm_bo_eviction_valuable()
[all...]
/kernel/linux/linux-5.10/include/drm/ttm/
H A Dttm_placement.h42 #define TTM_PL_VRAM 2 macro

Completed in 23 milliseconds

123