| /Linux-v5.15/include/drm/ttm/ |
| D | ttm_tt.h | 36 struct ttm_tt; 64 struct ttm_tt { struct 82 struct ttm_tt *tt; 86 static inline bool ttm_tt_is_populated(struct ttm_tt *tt) in ttm_tt_is_populated() 115 int ttm_tt_init(struct ttm_tt *ttm, struct ttm_buffer_object *bo, 117 int ttm_sg_tt_init(struct ttm_tt *ttm_dma, struct ttm_buffer_object *bo, 127 void ttm_tt_fini(struct ttm_tt *ttm); 136 void ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *ttm); 143 void ttm_tt_destroy_common(struct ttm_device *bdev, struct ttm_tt *ttm); 152 int ttm_tt_swapin(struct ttm_tt *ttm); [all …]
|
| D | ttm_pool.h | 35 struct ttm_tt; 78 int ttm_pool_alloc(struct ttm_pool *pool, struct ttm_tt *tt, 80 void ttm_pool_free(struct ttm_pool *pool, struct ttm_tt *tt);
|
| D | ttm_device.h | 83 struct ttm_tt *(*ttm_tt_create)(struct ttm_buffer_object *bo, 96 struct ttm_tt *ttm, 107 struct ttm_tt *ttm); 118 void (*ttm_tt_destroy)(struct ttm_device *bdev, struct ttm_tt *ttm);
|
| D | ttm_bo_api.h | 81 struct ttm_tt; 140 struct ttm_tt *ttm;
|
| /Linux-v5.15/drivers/gpu/drm/amd/amdgpu/ |
| D | amdgpu_ttm.h | 166 bool amdgpu_ttm_tt_get_user_pages_done(struct ttm_tt *ttm); 173 static inline bool amdgpu_ttm_tt_get_user_pages_done(struct ttm_tt *ttm) in amdgpu_ttm_tt_get_user_pages_done() 179 void amdgpu_ttm_tt_set_user_pages(struct ttm_tt *ttm, struct page **pages); 182 bool amdgpu_ttm_tt_has_userptr(struct ttm_tt *ttm); 183 struct mm_struct *amdgpu_ttm_tt_get_usermm(struct ttm_tt *ttm); 184 bool amdgpu_ttm_tt_affect_userptr(struct ttm_tt *ttm, unsigned long start, 186 bool amdgpu_ttm_tt_userptr_invalidated(struct ttm_tt *ttm, 188 bool amdgpu_ttm_tt_is_userptr(struct ttm_tt *ttm); 189 bool amdgpu_ttm_tt_is_readonly(struct ttm_tt *ttm); 190 uint64_t amdgpu_ttm_tt_pde_flags(struct ttm_tt *ttm, struct ttm_resource *mem); [all …]
|
| D | amdgpu_ttm.c | 65 struct ttm_tt *ttm, 68 struct ttm_tt *ttm); 638 struct ttm_tt ttm; 660 struct ttm_tt *ttm = bo->tbo.ttm; in amdgpu_ttm_tt_get_user_pages() 710 bool amdgpu_ttm_tt_get_user_pages_done(struct ttm_tt *ttm) in amdgpu_ttm_tt_get_user_pages_done() 744 void amdgpu_ttm_tt_set_user_pages(struct ttm_tt *ttm, struct page **pages) in amdgpu_ttm_tt_set_user_pages() 758 struct ttm_tt *ttm) in amdgpu_ttm_tt_pin_userptr() 795 struct ttm_tt *ttm) in amdgpu_ttm_tt_unpin_userptr() 831 struct ttm_tt *ttm = tbo->ttm; in amdgpu_ttm_gart_bind() 877 struct ttm_tt *ttm, in amdgpu_ttm_backend_bind() [all …]
|
| D | amdgpu_amdkfd_gpuvm.c | 125 __roundup_pow_of_two(sizeof(struct ttm_tt)) + in amdgpu_amdkfd_acc_size() 475 struct ttm_tt *src_ttm = mem->bo->tbo.ttm; in kfd_mem_dmamap_userptr() 476 struct ttm_tt *ttm = bo->tbo.ttm; in kfd_mem_dmamap_userptr() 556 struct ttm_tt *ttm = bo->tbo.ttm; in kfd_mem_dmaunmap_userptr()
|
| /Linux-v5.15/drivers/gpu/drm/ttm/ |
| D | ttm_tt.c | 93 static int ttm_tt_alloc_page_directory(struct ttm_tt *ttm) in ttm_tt_alloc_page_directory() 102 static int ttm_dma_tt_alloc_page_directory(struct ttm_tt *ttm) in ttm_dma_tt_alloc_page_directory() 115 static int ttm_sg_tt_alloc_page_directory(struct ttm_tt *ttm) in ttm_sg_tt_alloc_page_directory() 125 void ttm_tt_destroy_common(struct ttm_device *bdev, struct ttm_tt *ttm) in ttm_tt_destroy_common() 136 void ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in ttm_tt_destroy() 141 static void ttm_tt_init_fields(struct ttm_tt *ttm, in ttm_tt_init_fields() 155 int ttm_tt_init(struct ttm_tt *ttm, struct ttm_buffer_object *bo, in ttm_tt_init() 168 void ttm_tt_fini(struct ttm_tt *ttm) in ttm_tt_fini() 179 int ttm_sg_tt_init(struct ttm_tt *ttm, struct ttm_buffer_object *bo, in ttm_sg_tt_init() 198 int ttm_tt_swapin(struct ttm_tt *ttm) in ttm_tt_swapin() [all …]
|
| D | ttm_agp_backend.c | 45 struct ttm_tt ttm; 50 int ttm_agp_bind(struct ttm_tt *ttm, struct ttm_resource *bo_mem) in ttm_agp_bind() 87 void ttm_agp_unbind(struct ttm_tt *ttm) in ttm_agp_unbind() 102 bool ttm_agp_is_bound(struct ttm_tt *ttm) in ttm_agp_is_bound() 113 void ttm_agp_destroy(struct ttm_tt *ttm) in ttm_agp_destroy() 124 struct ttm_tt *ttm_agp_tt_create(struct ttm_buffer_object *bo, in ttm_agp_tt_create()
|
| D | Makefile | 5 ttm-y := ttm_tt.o ttm_bo.o ttm_bo_util.o ttm_bo_vm.o ttm_module.o \
|
| D | ttm_bo_util.c | 96 struct ttm_tt *ttm = bo->ttm; in ttm_move_memcpy() 142 struct ttm_tt *ttm = bo->ttm; in ttm_bo_move_memcpy() 305 struct ttm_tt *ttm = bo->ttm; in ttm_bo_kmap_ttm() 424 struct ttm_tt *ttm = bo->ttm; in ttm_bo_vmap() 589 struct ttm_tt *ttm; in ttm_bo_pipeline_gutting()
|
| D | ttm_bo_vm.c | 198 struct ttm_tt *ttm = bo->ttm; in ttm_bo_vm_insert_huge() 287 struct ttm_tt *ttm = NULL; in ttm_bo_vm_fault_reserved()
|
| D | ttm_pool.c | 360 int ttm_pool_alloc(struct ttm_pool *pool, struct ttm_tt *tt, in ttm_pool_alloc() 459 void ttm_pool_free(struct ttm_pool *pool, struct ttm_tt *tt) in ttm_pool_free()
|
| /Linux-v5.15/drivers/gpu/drm/nouveau/ |
| D | nouveau_ttm.h | 15 struct ttm_tt *nouveau_sgdma_create_ttm(struct ttm_buffer_object *bo, 24 int nouveau_sgdma_bind(struct ttm_device *bdev, struct ttm_tt *ttm, struct ttm_resource *reg); 25 void nouveau_sgdma_unbind(struct ttm_device *bdev, struct ttm_tt *ttm); 26 void nouveau_sgdma_destroy(struct ttm_device *bdev, struct ttm_tt *ttm);
|
| D | nouveau_sgdma.c | 14 struct ttm_tt ttm; 19 nouveau_sgdma_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in nouveau_sgdma_destroy() 32 nouveau_sgdma_bind(struct ttm_device *bdev, struct ttm_tt *ttm, struct ttm_resource *reg) in nouveau_sgdma_bind() 59 nouveau_sgdma_unbind(struct ttm_device *bdev, struct ttm_tt *ttm) in nouveau_sgdma_unbind() 68 struct ttm_tt *
|
| D | nouveau_mem.h | 4 struct ttm_tt; 28 int nouveau_mem_host(struct ttm_resource *, struct ttm_tt *);
|
| D | nouveau_bo.c | 46 static int nouveau_ttm_tt_bind(struct ttm_device *bdev, struct ttm_tt *ttm, 48 static void nouveau_ttm_tt_unbind(struct ttm_device *bdev, struct ttm_tt *ttm); 552 struct ttm_tt *ttm_dma = (struct ttm_tt *)nvbo->bo.ttm; in nouveau_bo_sync_for_device() 588 struct ttm_tt *ttm_dma = (struct ttm_tt *)nvbo->bo.ttm; in nouveau_bo_sync_for_cpu() 698 static struct ttm_tt * 713 nouveau_ttm_tt_bind(struct ttm_device *bdev, struct ttm_tt *ttm, in nouveau_ttm_tt_bind() 729 nouveau_ttm_tt_unbind(struct ttm_device *bdev, struct ttm_tt *ttm) in nouveau_ttm_tt_unbind() 1248 struct ttm_tt *ttm, struct ttm_operation_ctx *ctx) in nouveau_ttm_tt_populate() 1250 struct ttm_tt *ttm_dma = (void *)ttm; in nouveau_ttm_tt_populate() 1272 struct ttm_tt *ttm) in nouveau_ttm_tt_unpopulate() [all …]
|
| D | nouveau_mem.c | 88 nouveau_mem_host(struct ttm_resource *reg, struct ttm_tt *tt) in nouveau_mem_host()
|
| /Linux-v5.15/drivers/gpu/drm/radeon/ |
| D | radeon_ttm.c | 56 static int radeon_ttm_tt_bind(struct ttm_device *bdev, struct ttm_tt *ttm, 58 static void radeon_ttm_tt_unbind(struct ttm_device *bdev, struct ttm_tt *ttm); 328 struct ttm_tt ttm; 338 static int radeon_ttm_tt_pin_userptr(struct ttm_device *bdev, struct ttm_tt *ttm) in radeon_ttm_tt_pin_userptr() 399 static void radeon_ttm_tt_unpin_userptr(struct ttm_device *bdev, struct ttm_tt *ttm) in radeon_ttm_tt_unpin_userptr() 428 static bool radeon_ttm_backend_is_bound(struct ttm_tt *ttm) in radeon_ttm_backend_is_bound() 436 struct ttm_tt *ttm, in radeon_ttm_backend_bind() 471 static void radeon_ttm_backend_unbind(struct ttm_device *bdev, struct ttm_tt *ttm) in radeon_ttm_backend_unbind() 487 static void radeon_ttm_backend_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in radeon_ttm_backend_destroy() 498 static struct ttm_tt *radeon_ttm_tt_create(struct ttm_buffer_object *bo, in radeon_ttm_tt_create() [all …]
|
| D | radeon.h | 2847 struct ttm_tt *ttm, uint64_t addr, 2849 extern bool radeon_ttm_tt_has_userptr(struct radeon_device *rdev, struct ttm_tt *ttm); 2850 extern bool radeon_ttm_tt_is_readonly(struct radeon_device *rdev, struct ttm_tt *ttm); 2851 bool radeon_ttm_tt_is_bound(struct ttm_device *bdev, struct ttm_tt *ttm);
|
| /Linux-v5.15/drivers/gpu/drm/qxl/ |
| D | qxl_ttm.c | 102 static void qxl_ttm_backend_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in qxl_ttm_backend_destroy() 109 static struct ttm_tt *qxl_ttm_tt_create(struct ttm_buffer_object *bo, in qxl_ttm_tt_create() 112 struct ttm_tt *ttm; in qxl_ttm_tt_create() 114 ttm = kzalloc(sizeof(struct ttm_tt), GFP_KERNEL); in qxl_ttm_tt_create()
|
| /Linux-v5.15/drivers/gpu/drm/vmwgfx/ |
| D | vmwgfx_ttm_buffer.c | 188 struct ttm_tt dma_ttm; 451 struct ttm_tt *ttm, struct ttm_resource *bo_mem) in vmw_ttm_bind() 495 struct ttm_tt *ttm) in vmw_ttm_unbind() 520 static void vmw_ttm_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in vmw_ttm_destroy() 541 struct ttm_tt *ttm, struct ttm_operation_ctx *ctx) in vmw_ttm_populate() 571 struct ttm_tt *ttm) in vmw_ttm_unpopulate() 591 static struct ttm_tt *vmw_ttm_tt_create(struct ttm_buffer_object *bo, in vmw_ttm_tt_create()
|
| D | vmwgfx_bo.c | 488 acc_size += ttm_round_pot(sizeof(struct ttm_tt)); in vmw_bo_create_kernel()
|
| /Linux-v5.15/drivers/gpu/drm/i915/gem/ |
| D | i915_gem_ttm.c | 48 struct ttm_tt ttm; 107 struct ttm_tt *ttm) in i915_ttm_cache_level() 170 static struct ttm_tt *i915_ttm_tt_create(struct ttm_buffer_object *bo, in i915_ttm_tt_create() 199 static void i915_ttm_tt_unpopulate(struct ttm_device *bdev, struct ttm_tt *ttm) in i915_ttm_tt_unpopulate() 213 static void i915_ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in i915_ttm_tt_destroy() 379 static struct sg_table *i915_ttm_tt_get_st(struct ttm_tt *ttm) in i915_ttm_tt_get_st() 440 struct ttm_tt *ttm = bo->ttm; in i915_ttm_accel_move()
|
| /Linux-v5.15/drivers/gpu/drm/ |
| D | drm_gem_vram_helper.c | 847 static void bo_driver_ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *tt) in bo_driver_ttm_tt_destroy() 858 static struct ttm_tt *bo_driver_ttm_tt_create(struct ttm_buffer_object *bo, in bo_driver_ttm_tt_create() 861 struct ttm_tt *tt; in bo_driver_ttm_tt_create()
|