Home
last modified time | relevance | path

Searched refs:ttm_tt (Results 1 – 25 of 28) sorted by relevance

12

/Linux-v6.1/include/drm/ttm/
Dttm_tt.h36 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()
150 int ttm_tt_init(struct ttm_tt *ttm, struct ttm_buffer_object *bo,
153 int ttm_sg_tt_init(struct ttm_tt *ttm_dma, struct ttm_buffer_object *bo,
163 void ttm_tt_fini(struct ttm_tt *ttm);
173 void ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *ttm);
182 int ttm_tt_swapin(struct ttm_tt *ttm);
183 int ttm_tt_swapout(struct ttm_device *bdev, struct ttm_tt *ttm,
[all …]
Dttm_pool.h35 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);
Dttm_device.h73 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);
Dttm_bo_api.h78 struct ttm_tt;
135 struct ttm_tt *ttm;
/Linux-v6.1/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ttm.h156 bool amdgpu_ttm_tt_get_user_pages_done(struct ttm_tt *ttm,
165 static inline bool amdgpu_ttm_tt_get_user_pages_done(struct ttm_tt *ttm, in amdgpu_ttm_tt_get_user_pages_done()
172 void amdgpu_ttm_tt_set_user_pages(struct ttm_tt *ttm, struct page **pages);
177 bool amdgpu_ttm_tt_has_userptr(struct ttm_tt *ttm);
178 struct mm_struct *amdgpu_ttm_tt_get_usermm(struct ttm_tt *ttm);
179 bool amdgpu_ttm_tt_affect_userptr(struct ttm_tt *ttm, unsigned long start,
181 bool amdgpu_ttm_tt_userptr_invalidated(struct ttm_tt *ttm,
183 bool amdgpu_ttm_tt_is_userptr(struct ttm_tt *ttm);
184 bool amdgpu_ttm_tt_is_readonly(struct ttm_tt *ttm);
185 uint64_t amdgpu_ttm_tt_pde_flags(struct ttm_tt *ttm, struct ttm_resource *mem);
[all …]
Damdgpu_ttm.c70 struct ttm_tt *ttm,
73 struct ttm_tt *ttm);
639 struct ttm_tt ttm;
661 struct ttm_tt *ttm = bo->tbo.ttm; in amdgpu_ttm_tt_get_user_pages()
713 bool amdgpu_ttm_tt_get_user_pages_done(struct ttm_tt *ttm, in amdgpu_ttm_tt_get_user_pages_done()
741 void amdgpu_ttm_tt_set_user_pages(struct ttm_tt *ttm, struct page **pages) in amdgpu_ttm_tt_set_user_pages()
755 struct ttm_tt *ttm) in amdgpu_ttm_tt_pin_userptr()
792 struct ttm_tt *ttm) in amdgpu_ttm_tt_unpin_userptr()
814 struct ttm_tt *ttm = tbo->ttm; in amdgpu_ttm_gart_bind()
849 struct ttm_tt *ttm, in amdgpu_ttm_backend_bind()
[all …]
Damdgpu_amdkfd_gpuvm.c507 struct ttm_tt *src_ttm = mem->bo->tbo.ttm; in kfd_mem_dmamap_userptr()
508 struct ttm_tt *ttm = bo->tbo.ttm; in kfd_mem_dmamap_userptr()
594 struct ttm_tt *ttm = bo->tbo.ttm; in kfd_mem_dmamap_sg_bo()
671 struct ttm_tt *ttm = bo->tbo.ttm; in kfd_mem_dmaunmap_userptr()
718 struct ttm_tt *ttm = bo->tbo.ttm; in kfd_mem_dmaunmap_sg_bo()
/Linux-v6.1/drivers/gpu/drm/ttm/
Dttm_tt.c97 static int ttm_tt_alloc_page_directory(struct ttm_tt *ttm) in ttm_tt_alloc_page_directory()
106 static int ttm_dma_tt_alloc_page_directory(struct ttm_tt *ttm) in ttm_dma_tt_alloc_page_directory()
117 static int ttm_sg_tt_alloc_page_directory(struct ttm_tt *ttm) in ttm_sg_tt_alloc_page_directory()
127 void ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in ttm_tt_destroy()
132 static void ttm_tt_init_fields(struct ttm_tt *ttm, in ttm_tt_init_fields()
147 int ttm_tt_init(struct ttm_tt *ttm, struct ttm_buffer_object *bo, in ttm_tt_init()
161 void ttm_tt_fini(struct ttm_tt *ttm) in ttm_tt_fini()
178 int ttm_sg_tt_init(struct ttm_tt *ttm, struct ttm_buffer_object *bo, in ttm_sg_tt_init()
197 int ttm_tt_swapin(struct ttm_tt *ttm) in ttm_tt_swapin()
249 int ttm_tt_swapout(struct ttm_device *bdev, struct ttm_tt *ttm, in ttm_tt_swapout()
[all …]
Dttm_agp_backend.c45 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()
DMakefile5 ttm-y := ttm_tt.o ttm_bo.o ttm_bo_util.o ttm_bo_vm.o ttm_module.o \
Dttm_bo_util.c138 struct ttm_tt *ttm = bo->ttm; in ttm_bo_move_memcpy()
319 struct ttm_tt *ttm = bo->ttm; in ttm_bo_kmap_ttm()
440 struct ttm_tt *ttm = bo->ttm; in ttm_bo_vmap()
616 struct ttm_tt *ttm; in ttm_bo_pipeline_gutting()
Dttm_pool.c359 int ttm_pool_alloc(struct ttm_pool *pool, struct ttm_tt *tt, in ttm_pool_alloc()
458 void ttm_pool_free(struct ttm_pool *pool, struct ttm_tt *tt) in ttm_pool_free()
Dttm_bo_vm.c196 struct ttm_tt *ttm = NULL; in ttm_bo_vm_fault_reserved()
/Linux-v6.1/drivers/gpu/drm/nouveau/
Dnouveau_ttm.h15 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);
Dnouveau_sgdma.c14 struct ttm_tt ttm;
19 nouveau_sgdma_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in nouveau_sgdma_destroy()
30 nouveau_sgdma_bind(struct ttm_device *bdev, struct ttm_tt *ttm, struct ttm_resource *reg) in nouveau_sgdma_bind()
57 nouveau_sgdma_unbind(struct ttm_device *bdev, struct ttm_tt *ttm) in nouveau_sgdma_unbind()
66 struct ttm_tt *
Dnouveau_mem.h4 struct ttm_tt;
35 int nouveau_mem_host(struct ttm_resource *, struct ttm_tt *);
Dnouveau_bo.c46 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);
554 struct ttm_tt *ttm_dma = (struct ttm_tt *)nvbo->bo.ttm; in nouveau_bo_sync_for_device()
590 struct ttm_tt *ttm_dma = (struct ttm_tt *)nvbo->bo.ttm; in nouveau_bo_sync_for_cpu()
700 static struct ttm_tt *
715 nouveau_ttm_tt_bind(struct ttm_device *bdev, struct ttm_tt *ttm, in nouveau_ttm_tt_bind()
731 nouveau_ttm_tt_unbind(struct ttm_device *bdev, struct ttm_tt *ttm) in nouveau_ttm_tt_unbind()
1267 struct ttm_tt *ttm, struct ttm_operation_ctx *ctx) in nouveau_ttm_tt_populate()
1269 struct ttm_tt *ttm_dma = (void *)ttm; in nouveau_ttm_tt_populate()
1289 struct ttm_tt *ttm) in nouveau_ttm_tt_unpopulate()
[all …]
Dnouveau_mem.c88 nouveau_mem_host(struct ttm_resource *reg, struct ttm_tt *tt) in nouveau_mem_host()
/Linux-v6.1/drivers/gpu/drm/radeon/
Dradeon_ttm.c56 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);
325 struct ttm_tt ttm;
335 static int radeon_ttm_tt_pin_userptr(struct ttm_device *bdev, struct ttm_tt *ttm) in radeon_ttm_tt_pin_userptr()
396 static void radeon_ttm_tt_unpin_userptr(struct ttm_device *bdev, struct ttm_tt *ttm) in radeon_ttm_tt_unpin_userptr()
425 static bool radeon_ttm_backend_is_bound(struct ttm_tt *ttm) in radeon_ttm_backend_is_bound()
433 struct ttm_tt *ttm, in radeon_ttm_backend_bind()
468 static void radeon_ttm_backend_unbind(struct ttm_device *bdev, struct ttm_tt *ttm) in radeon_ttm_backend_unbind()
484 static void radeon_ttm_backend_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in radeon_ttm_backend_destroy()
492 static struct ttm_tt *radeon_ttm_tt_create(struct ttm_buffer_object *bo, in radeon_ttm_tt_create()
[all …]
/Linux-v6.1/drivers/gpu/drm/qxl/
Dqxl_ttm.c102 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-v6.1/drivers/gpu/drm/vmwgfx/
Dvmwgfx_ttm_buffer.c382 struct ttm_tt *ttm, struct ttm_resource *bo_mem) in vmw_ttm_bind()
429 struct ttm_tt *ttm) in vmw_ttm_unbind()
456 static void vmw_ttm_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in vmw_ttm_destroy()
471 struct ttm_tt *ttm, struct ttm_operation_ctx *ctx) in vmw_ttm_populate()
485 struct ttm_tt *ttm) in vmw_ttm_unpopulate()
502 static struct ttm_tt *vmw_ttm_tt_create(struct ttm_buffer_object *bo, in vmw_ttm_tt_create()
/Linux-v6.1/drivers/gpu/drm/i915/gem/
Di915_gem_ttm_move.c53 struct ttm_tt *ttm) in i915_ttm_cache_level()
174 struct ttm_tt *dst_ttm, in i915_ttm_accel_move()
182 struct ttm_tt *src_ttm = bo->ttm; in i915_ttm_accel_move()
295 struct ttm_tt *dst_ttm, in i915_ttm_memcpy_init()
451 struct ttm_resource *dst_mem, struct ttm_tt *dst_ttm, in __i915_ttm_move()
558 struct ttm_tt *ttm = bo->ttm; in i915_ttm_move()
Di915_gem_ttm.c50 struct ttm_tt ttm;
186 struct ttm_tt *ttm, in i915_ttm_tt_shmem_populate()
244 static void i915_ttm_tt_shmem_unpopulate(struct ttm_tt *ttm) in i915_ttm_tt_shmem_unpopulate()
269 static struct ttm_tt *i915_ttm_tt_create(struct ttm_buffer_object *bo, in i915_ttm_tt_create()
322 struct ttm_tt *ttm, in i915_ttm_tt_populate()
333 static void i915_ttm_tt_unpopulate(struct ttm_device *bdev, struct ttm_tt *ttm) in i915_ttm_tt_unpopulate()
349 static void i915_ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in i915_ttm_tt_destroy()
528 static struct i915_refct_sgt *i915_ttm_tt_get_st(struct ttm_tt *ttm) in i915_ttm_tt_get_st()
Di915_gem_ttm_move.h16 struct ttm_tt;
/Linux-v6.1/drivers/gpu/drm/
Ddrm_gem_vram_helper.c864 static void bo_driver_ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *tt) in bo_driver_ttm_tt_destroy()
874 static struct ttm_tt *bo_driver_ttm_tt_create(struct ttm_buffer_object *bo, in bo_driver_ttm_tt_create()
877 struct ttm_tt *tt; in bo_driver_ttm_tt_create()

12