Home
last modified time | relevance | path

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

12

/Linux-v6.6/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;
81 int ttm_pool_alloc(struct ttm_pool *pool, struct ttm_tt *tt,
83 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.h52 struct ttm_tt;
118 struct ttm_tt *ttm;
/Linux-v6.6/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ttm.h171 void amdgpu_ttm_tt_discard_user_pages(struct ttm_tt *ttm,
173 bool amdgpu_ttm_tt_get_user_pages_done(struct ttm_tt *ttm,
182 static inline void amdgpu_ttm_tt_discard_user_pages(struct ttm_tt *ttm, in amdgpu_ttm_tt_discard_user_pages()
186 static inline bool amdgpu_ttm_tt_get_user_pages_done(struct ttm_tt *ttm, in amdgpu_ttm_tt_get_user_pages_done()
193 void amdgpu_ttm_tt_set_user_pages(struct ttm_tt *ttm, struct page **pages);
198 bool amdgpu_ttm_tt_has_userptr(struct ttm_tt *ttm);
199 struct mm_struct *amdgpu_ttm_tt_get_usermm(struct ttm_tt *ttm);
200 bool amdgpu_ttm_tt_affect_userptr(struct ttm_tt *ttm, unsigned long start,
202 bool amdgpu_ttm_tt_userptr_invalidated(struct ttm_tt *ttm,
204 bool amdgpu_ttm_tt_is_userptr(struct ttm_tt *ttm);
[all …]
Damdgpu_ttm.c69 struct ttm_tt *ttm,
72 struct ttm_tt *ttm);
639 struct ttm_tt ttm;
662 struct ttm_tt *ttm = bo->tbo.ttm; in amdgpu_ttm_tt_get_user_pages()
709 void amdgpu_ttm_tt_discard_user_pages(struct ttm_tt *ttm, in amdgpu_ttm_tt_discard_user_pages()
724 bool amdgpu_ttm_tt_get_user_pages_done(struct ttm_tt *ttm, in amdgpu_ttm_tt_get_user_pages_done()
748 void amdgpu_ttm_tt_set_user_pages(struct ttm_tt *ttm, struct page **pages) in amdgpu_ttm_tt_set_user_pages()
762 struct ttm_tt *ttm) in amdgpu_ttm_tt_pin_userptr()
799 struct ttm_tt *ttm) in amdgpu_ttm_tt_unpin_userptr()
824 struct ttm_tt *ttm, uint64_t flags) in amdgpu_ttm_gart_bind_gfx9_mqd()
[all …]
/Linux-v6.6/drivers/gpu/drm/ttm/
Dttm_tt.c98 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()
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.c149 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()
708 struct ttm_tt *ttm; in ttm_bo_pipeline_gutting()
Dttm_pool.c383 static void ttm_pool_free_range(struct ttm_pool *pool, struct ttm_tt *tt, in ttm_pool_free_range()
419 int ttm_pool_alloc(struct ttm_pool *pool, struct ttm_tt *tt, in ttm_pool_alloc()
534 void ttm_pool_free(struct ttm_pool *pool, struct ttm_tt *tt) in ttm_pool_free()
/Linux-v6.6/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.c15 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 *
Dnouveau_mem.h4 struct ttm_tt;
35 int nouveau_mem_host(struct ttm_resource *, struct ttm_tt *);
Dnouveau_bo.c47 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);
604 struct ttm_tt *ttm_dma = (struct ttm_tt *)nvbo->bo.ttm; in nouveau_bo_sync_for_device()
640 struct ttm_tt *ttm_dma = (struct ttm_tt *)nvbo->bo.ttm; in nouveau_bo_sync_for_cpu()
750 static struct ttm_tt *
765 nouveau_ttm_tt_bind(struct ttm_device *bdev, struct ttm_tt *ttm, in nouveau_ttm_tt_bind()
781 nouveau_ttm_tt_unbind(struct ttm_device *bdev, struct ttm_tt *ttm) in nouveau_ttm_tt_unbind()
1327 struct ttm_tt *ttm, struct ttm_operation_ctx *ctx) in nouveau_ttm_tt_populate()
1329 struct ttm_tt *ttm_dma = (void *)ttm; in nouveau_ttm_tt_populate()
1349 struct ttm_tt *ttm) in nouveau_ttm_tt_unpopulate()
[all …]
Dnouveau_mem.c89 nouveau_mem_host(struct ttm_resource *reg, struct ttm_tt *tt) in nouveau_mem_host()
/Linux-v6.6/drivers/gpu/drm/radeon/
Dradeon_ttm.c55 static int radeon_ttm_tt_bind(struct ttm_device *bdev, struct ttm_tt *ttm,
57 static void radeon_ttm_tt_unbind(struct ttm_device *bdev, struct ttm_tt *ttm);
321 struct ttm_tt ttm;
331 static int radeon_ttm_tt_pin_userptr(struct ttm_device *bdev, struct ttm_tt *ttm) in radeon_ttm_tt_pin_userptr()
392 static void radeon_ttm_tt_unpin_userptr(struct ttm_device *bdev, struct ttm_tt *ttm) in radeon_ttm_tt_unpin_userptr()
421 static bool radeon_ttm_backend_is_bound(struct ttm_tt *ttm) in radeon_ttm_backend_is_bound()
429 struct ttm_tt *ttm, in radeon_ttm_backend_bind()
464 static void radeon_ttm_backend_unbind(struct ttm_device *bdev, struct ttm_tt *ttm) in radeon_ttm_backend_unbind()
480 static void radeon_ttm_backend_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in radeon_ttm_backend_destroy()
488 static struct ttm_tt *radeon_ttm_tt_create(struct ttm_buffer_object *bo, in radeon_ttm_tt_create()
[all …]
/Linux-v6.6/drivers/gpu/drm/ttm/tests/
Dttm_pool_test.c50 static struct ttm_tt *ttm_tt_kunit_init(struct kunit *test, in ttm_tt_kunit_init()
57 struct ttm_tt *tt; in ttm_tt_kunit_init()
80 struct ttm_tt *tt; in ttm_pool_pre_populated()
140 struct ttm_tt *tt; in ttm_pool_alloc_basic()
201 struct ttm_tt *tt; in ttm_pool_alloc_basic_dma_addr()
241 struct ttm_tt *tt; in ttm_pool_alloc_order_caching_match()
269 struct ttm_tt *tt; in ttm_pool_alloc_caching_mismatch()
303 struct ttm_tt *tt; in ttm_pool_alloc_order_mismatch()
339 struct ttm_tt *tt; in ttm_pool_free_dma_alloc()
370 struct ttm_tt *tt; in ttm_pool_free_no_dma_alloc()
/Linux-v6.6/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.6/drivers/gpu/drm/vmwgfx/
Dvmwgfx_ttm_buffer.c300 struct ttm_tt *ttm, struct ttm_resource *bo_mem) in vmw_ttm_bind()
347 struct ttm_tt *ttm) in vmw_ttm_unbind()
374 static void vmw_ttm_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in vmw_ttm_destroy()
389 struct ttm_tt *ttm, struct ttm_operation_ctx *ctx) in vmw_ttm_populate()
403 struct ttm_tt *ttm) in vmw_ttm_unpopulate()
420 static struct ttm_tt *vmw_ttm_tt_create(struct ttm_buffer_object *bo, in vmw_ttm_tt_create()
/Linux-v6.6/drivers/gpu/drm/i915/gem/
Di915_gem_ttm_move.c53 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()
314 struct ttm_tt *dst_ttm, in i915_ttm_memcpy_init()
470 struct ttm_resource *dst_mem, struct ttm_tt *dst_ttm, in __i915_ttm_move()
579 struct ttm_tt *ttm = bo->ttm; in i915_ttm_move()
Di915_gem_ttm.c50 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()
526 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.6/drivers/gpu/drm/loongson/
Dlsdc_ttm.c88 static void lsdc_ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *tt) in lsdc_ttm_tt_destroy()
94 static struct ttm_tt *
97 struct ttm_tt *tt; in lsdc_ttm_tt_create()
114 struct ttm_tt *ttm, in lsdc_ttm_tt_populate()
131 struct ttm_tt *ttm) in lsdc_ttm_tt_unpopulate()
/Linux-v6.6/drivers/gpu/drm/
Ddrm_gem_vram_helper.c853 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()

12