/linux-6.3-rc2/include/drm/ttm/ |
A D | ttm_tt.h | 36 struct ttm_tt; 46 struct ttm_tt { struct 116 struct ttm_tt *tt; 120 static inline bool ttm_tt_is_populated(struct ttm_tt *tt) in ttm_tt_is_populated() 163 void ttm_tt_fini(struct ttm_tt *ttm); 182 int ttm_tt_swapin(struct ttm_tt *ttm); 216 static inline void ttm_tt_mark_for_clear(struct ttm_tt *ttm) in ttm_tt_mark_for_clear() 224 struct ttm_tt *tt); 245 void ttm_agp_unbind(struct ttm_tt *ttm); 246 void ttm_agp_destroy(struct ttm_tt *ttm); [all …]
|
A D | ttm_pool.h | 35 struct ttm_tt; 79 int ttm_pool_alloc(struct ttm_pool *pool, struct ttm_tt *tt, 81 void ttm_pool_free(struct ttm_pool *pool, struct ttm_tt *tt);
|
A D | ttm_device.h | 73 struct ttm_tt *(*ttm_tt_create)(struct ttm_buffer_object *bo, 86 struct ttm_tt *ttm, 97 struct ttm_tt *ttm); 108 void (*ttm_tt_destroy)(struct ttm_device *bdev, struct ttm_tt *ttm);
|
A D | ttm_bo.h | 52 struct ttm_tt; 118 struct ttm_tt *ttm;
|
/linux-6.3-rc2/drivers/gpu/drm/amd/amdgpu/ |
A D | amdgpu_ttm.h | 162 void amdgpu_ttm_tt_discard_user_pages(struct ttm_tt *ttm, 164 bool amdgpu_ttm_tt_get_user_pages_done(struct ttm_tt *ttm, 173 static inline void amdgpu_ttm_tt_discard_user_pages(struct ttm_tt *ttm, in amdgpu_ttm_tt_discard_user_pages() 177 static inline bool amdgpu_ttm_tt_get_user_pages_done(struct ttm_tt *ttm, in amdgpu_ttm_tt_get_user_pages_done() 184 void amdgpu_ttm_tt_set_user_pages(struct ttm_tt *ttm, struct page **pages); 189 bool amdgpu_ttm_tt_has_userptr(struct ttm_tt *ttm); 190 struct mm_struct *amdgpu_ttm_tt_get_usermm(struct ttm_tt *ttm); 191 bool amdgpu_ttm_tt_affect_userptr(struct ttm_tt *ttm, unsigned long start, 193 bool amdgpu_ttm_tt_userptr_invalidated(struct ttm_tt *ttm, 195 bool amdgpu_ttm_tt_is_userptr(struct ttm_tt *ttm); [all …]
|
A D | amdgpu_ttm.c | 71 struct ttm_tt *ttm, 74 struct ttm_tt *ttm); 631 struct ttm_tt ttm; 753 struct ttm_tt *ttm) in amdgpu_ttm_tt_pin_userptr() 790 struct ttm_tt *ttm) in amdgpu_ttm_tt_unpin_userptr() 812 struct ttm_tt *ttm = tbo->ttm; in amdgpu_ttm_gart_bind() 847 struct ttm_tt *ttm, in amdgpu_ttm_backend_bind() 986 struct ttm_tt *ttm) in amdgpu_ttm_backend_unbind() 1014 struct ttm_tt *ttm) in amdgpu_ttm_backend_destroy() 1066 struct ttm_tt *ttm, in amdgpu_ttm_tt_populate() [all …]
|
A D | amdgpu_amdkfd_gpuvm.c | 461 struct ttm_tt *src_ttm = mem->bo->tbo.ttm; in kfd_mem_dmamap_userptr() 462 struct ttm_tt *ttm = bo->tbo.ttm; in kfd_mem_dmamap_userptr() 548 struct ttm_tt *ttm = bo->tbo.ttm; in kfd_mem_dmamap_sg_bo() 625 struct ttm_tt *ttm = bo->tbo.ttm; in kfd_mem_dmaunmap_userptr() 672 struct ttm_tt *ttm = bo->tbo.ttm; in kfd_mem_dmaunmap_sg_bo()
|
/linux-6.3-rc2/drivers/gpu/drm/ttm/ |
A D | ttm_tt.c | 98 static int ttm_tt_alloc_page_directory(struct ttm_tt *ttm) in ttm_tt_alloc_page_directory() 107 static int ttm_dma_tt_alloc_page_directory(struct ttm_tt *ttm) in ttm_dma_tt_alloc_page_directory() 118 static int ttm_sg_tt_alloc_page_directory(struct ttm_tt *ttm) in ttm_sg_tt_alloc_page_directory() 128 void ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in ttm_tt_destroy() 133 static void ttm_tt_init_fields(struct ttm_tt *ttm, in ttm_tt_init_fields() 148 int ttm_tt_init(struct ttm_tt *ttm, struct ttm_buffer_object *bo, in ttm_tt_init() 162 void ttm_tt_fini(struct ttm_tt *ttm) in ttm_tt_fini() 198 int ttm_tt_swapin(struct ttm_tt *ttm) in ttm_tt_swapin() 250 int ttm_tt_swapout(struct ttm_device *bdev, struct ttm_tt *ttm, in ttm_tt_swapout() 298 struct ttm_tt *ttm, struct ttm_operation_ctx *ctx) in ttm_tt_populate() [all …]
|
A 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()
|
A D | Makefile | 5 ttm-y := ttm_tt.o ttm_bo.o ttm_bo_util.o ttm_bo_vm.o ttm_module.o \
|
A D | ttm_bo_util.c | 149 struct ttm_tt *ttm = bo->ttm; in ttm_bo_move_memcpy() 339 struct ttm_tt *ttm = bo->ttm; in ttm_bo_kmap_ttm() 497 struct ttm_tt *ttm = bo->ttm; in ttm_bo_vmap() 710 struct ttm_tt *ttm; in ttm_bo_pipeline_gutting()
|
A D | ttm_pool.c | 382 int ttm_pool_alloc(struct ttm_pool *pool, struct ttm_tt *tt, in ttm_pool_alloc() 493 void ttm_pool_free(struct ttm_pool *pool, struct ttm_tt *tt) in ttm_pool_free()
|
A D | ttm_bo_vm.c | 191 struct ttm_tt *ttm = NULL; in ttm_bo_vm_fault_reserved()
|
/linux-6.3-rc2/drivers/gpu/drm/nouveau/ |
A 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);
|
A D | nouveau_sgdma.c | 15 struct ttm_tt ttm; 20 nouveau_sgdma_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in nouveau_sgdma_destroy() 31 nouveau_sgdma_bind(struct ttm_device *bdev, struct ttm_tt *ttm, struct ttm_resource *reg) in nouveau_sgdma_bind() 58 nouveau_sgdma_unbind(struct ttm_device *bdev, struct ttm_tt *ttm) in nouveau_sgdma_unbind() 67 struct ttm_tt *
|
A D | nouveau_mem.h | 4 struct ttm_tt; 35 int nouveau_mem_host(struct ttm_resource *, struct ttm_tt *);
|
A D | nouveau_bo.c | 47 static int nouveau_ttm_tt_bind(struct ttm_device *bdev, struct ttm_tt *ttm, 49 static void nouveau_ttm_tt_unbind(struct ttm_device *bdev, struct ttm_tt *ttm); 555 struct ttm_tt *ttm_dma = (struct ttm_tt *)nvbo->bo.ttm; in nouveau_bo_sync_for_device() 591 struct ttm_tt *ttm_dma = (struct ttm_tt *)nvbo->bo.ttm; in nouveau_bo_sync_for_cpu() 701 static struct ttm_tt * 716 nouveau_ttm_tt_bind(struct ttm_device *bdev, struct ttm_tt *ttm, in nouveau_ttm_tt_bind() 732 nouveau_ttm_tt_unbind(struct ttm_device *bdev, struct ttm_tt *ttm) in nouveau_ttm_tt_unbind() 1275 struct ttm_tt *ttm, struct ttm_operation_ctx *ctx) in nouveau_ttm_tt_populate() 1277 struct ttm_tt *ttm_dma = (void *)ttm; in nouveau_ttm_tt_populate() 1297 struct ttm_tt *ttm) in nouveau_ttm_tt_unpopulate() [all …]
|
A D | nouveau_mem.c | 89 nouveau_mem_host(struct ttm_resource *reg, struct ttm_tt *tt) in nouveau_mem_host()
|
/linux-6.3-rc2/drivers/gpu/drm/radeon/ |
A D | radeon_ttm.c | 325 struct ttm_tt ttm; 433 struct ttm_tt *ttm, in radeon_ttm_backend_bind() 527 struct ttm_tt *ttm) in radeon_ttm_tt_to_gtt() 540 struct ttm_tt *ttm, in radeon_ttm_tt_populate() 586 struct ttm_tt *ttm, uint64_t addr, in radeon_ttm_tt_set_userptr() 601 struct ttm_tt *ttm) in radeon_ttm_tt_is_bound() 612 struct ttm_tt *ttm, in radeon_ttm_tt_bind() 630 struct ttm_tt *ttm) in radeon_ttm_tt_unbind() 644 struct ttm_tt *ttm) in radeon_ttm_tt_destroy() 658 struct ttm_tt *ttm) in radeon_ttm_tt_has_userptr() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/qxl/ |
A D | qxl_ttm.c | 102 static void qxl_ttm_backend_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in qxl_ttm_backend_destroy() 108 static struct ttm_tt *qxl_ttm_tt_create(struct ttm_buffer_object *bo, in qxl_ttm_tt_create() 111 struct ttm_tt *ttm; in qxl_ttm_tt_create() 113 ttm = kzalloc(sizeof(struct ttm_tt), GFP_KERNEL); in qxl_ttm_tt_create()
|
/linux-6.3-rc2/drivers/gpu/drm/vmwgfx/ |
A D | vmwgfx_ttm_buffer.c | 381 struct ttm_tt *ttm, struct ttm_resource *bo_mem) in vmw_ttm_bind() 428 struct ttm_tt *ttm) in vmw_ttm_unbind() 455 static void vmw_ttm_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in vmw_ttm_destroy() 470 struct ttm_tt *ttm, struct ttm_operation_ctx *ctx) in vmw_ttm_populate() 484 struct ttm_tt *ttm) in vmw_ttm_unpopulate() 501 static struct ttm_tt *vmw_ttm_tt_create(struct ttm_buffer_object *bo, in vmw_ttm_tt_create()
|
/linux-6.3-rc2/drivers/gpu/drm/i915/gem/ |
A D | i915_gem_ttm_move.c | 53 struct ttm_tt *ttm) in i915_ttm_cache_level() 190 struct ttm_tt *dst_ttm, in i915_ttm_accel_move() 198 struct ttm_tt *src_ttm = bo->ttm; in i915_ttm_accel_move() 311 struct ttm_tt *dst_ttm, in i915_ttm_memcpy_init() 467 struct ttm_resource *dst_mem, struct ttm_tt *dst_ttm, in __i915_ttm_move() 574 struct ttm_tt *ttm = bo->ttm; in i915_ttm_move()
|
A D | i915_gem_ttm_move.h | 16 struct ttm_tt;
|
A D | i915_gem_ttm.c | 50 struct ttm_tt ttm; 189 struct ttm_tt *ttm, in i915_ttm_tt_shmem_populate() 247 static void i915_ttm_tt_shmem_unpopulate(struct ttm_tt *ttm) in i915_ttm_tt_shmem_unpopulate() 272 static struct ttm_tt *i915_ttm_tt_create(struct ttm_buffer_object *bo, in i915_ttm_tt_create() 323 struct ttm_tt *ttm, in i915_ttm_tt_populate() 334 static void i915_ttm_tt_unpopulate(struct ttm_device *bdev, struct ttm_tt *ttm) in i915_ttm_tt_unpopulate() 350 static void i915_ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in i915_ttm_tt_destroy() 520 static struct i915_refct_sgt *i915_ttm_tt_get_st(struct ttm_tt *ttm) in i915_ttm_tt_get_st()
|
/linux-6.3-rc2/drivers/gpu/drm/ |
A D | drm_gem_vram_helper.c | 853 static void bo_driver_ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *tt) in bo_driver_ttm_tt_destroy() 863 static struct ttm_tt *bo_driver_ttm_tt_create(struct ttm_buffer_object *bo, in bo_driver_ttm_tt_create() 866 struct ttm_tt *tt; in bo_driver_ttm_tt_create()
|