Home
last modified time | relevance | path

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

12

/linux/include/drm/ttm/
H A Dttm_tt.h37 struct ttm_tt;
48 struct ttm_tt { struct
139 struct ttm_tt *tt;
143 static inline bool ttm_tt_is_populated(struct ttm_tt *tt) in ttm_tt_is_populated()
154 static inline bool ttm_tt_is_swapped(const struct ttm_tt *tt) in ttm_tt_is_swapped()
165 static inline bool ttm_tt_is_backed_up(const struct ttm_tt *tt) in ttm_tt_is_backed_up()
177 static inline void ttm_tt_clear_backed_up(struct ttm_tt *tt) in ttm_tt_clear_backed_up()
207 int ttm_tt_init(struct ttm_tt *ttm, struct ttm_buffer_object *bo,
210 int ttm_sg_tt_init(struct ttm_tt *ttm_dma, struct ttm_buffer_object *bo,
220 void ttm_tt_fini(struct ttm_tt *ttm);
[all …]
/linux/drivers/gpu/drm/ttm/
H A Dttm_tt.c118 static int ttm_tt_alloc_page_directory(struct ttm_tt *ttm) in ttm_tt_alloc_page_directory()
127 static int ttm_dma_tt_alloc_page_directory(struct ttm_tt *ttm) in ttm_dma_tt_alloc_page_directory()
138 static int ttm_sg_tt_alloc_page_directory(struct ttm_tt *ttm) in ttm_sg_tt_alloc_page_directory()
147 void ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in ttm_tt_destroy()
153 static void ttm_tt_init_fields(struct ttm_tt *ttm, in ttm_tt_init_fields()
169 int ttm_tt_init(struct ttm_tt *ttm, struct ttm_buffer_object *bo, in ttm_tt_init()
183 void ttm_tt_fini(struct ttm_tt *ttm) in ttm_tt_fini()
207 int ttm_sg_tt_init(struct ttm_tt *ttm, struct ttm_buffer_object *bo, in ttm_sg_tt_init()
226 int ttm_tt_swapin(struct ttm_tt *ttm) in ttm_tt_swapin()
281 long ttm_tt_backup(struct ttm_device *bdev, struct ttm_tt *tt, in ttm_tt_backup()
[all …]
H A Dttm_agp_backend.c46 struct ttm_tt ttm;
51 int ttm_agp_bind(struct ttm_tt *ttm, struct ttm_resource *bo_mem) in ttm_agp_bind()
88 void ttm_agp_unbind(struct ttm_tt *ttm) in ttm_agp_unbind()
103 bool ttm_agp_is_bound(struct ttm_tt *ttm) in ttm_agp_is_bound()
114 void ttm_agp_destroy(struct ttm_tt *ttm) in ttm_agp_destroy()
125 struct ttm_tt *ttm_agp_tt_create(struct ttm_buffer_object *bo, in ttm_agp_tt_create()
H A Dttm_pool.c663 static void ttm_pool_free_range(struct ttm_pool *pool, struct ttm_tt *tt, in ttm_pool_free_range()
689 static void ttm_pool_alloc_state_init(const struct ttm_tt *tt, in ttm_pool_alloc_state_init()
709 static int __ttm_pool_alloc(struct ttm_pool *pool, struct ttm_tt *tt, in __ttm_pool_alloc()
818 int ttm_pool_alloc(struct ttm_pool *pool, struct ttm_tt *tt, in ttm_pool_alloc()
845 int ttm_pool_restore_and_alloc(struct ttm_pool *pool, struct ttm_tt *tt, in ttm_pool_restore_and_alloc()
894 void ttm_pool_free(struct ttm_pool *pool, struct ttm_tt *tt) in ttm_pool_free()
910 void ttm_pool_drop_backed_up(struct ttm_tt *tt) in ttm_pool_drop_backed_up()
975 long ttm_pool_backup(struct ttm_pool *pool, struct ttm_tt *tt, in ttm_pool_backup()
H A Dttm_bo_util.c153 struct ttm_tt *ttm = bo->ttm; in ttm_bo_move_memcpy()
347 struct ttm_tt *ttm = bo->ttm; in ttm_bo_kmap_ttm()
532 struct ttm_tt *ttm = bo->ttm; in ttm_bo_vmap()
766 struct ttm_tt *ttm; in ttm_bo_pipeline_gutting()
H A Dttm_bo.c1115 struct ttm_tt *tt = bo->ttm; in ttm_bo_swapout_cb()
1265 struct ttm_tt *tt = bo->ttm; in ttm_bo_populate()
/linux/drivers/gpu/drm/nouveau/
H A 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 *
H A 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);
H A Dnouveau_mem.h4 struct ttm_tt;
35 int nouveau_mem_host(struct ttm_resource *, struct ttm_tt *);
H A 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);
695 struct ttm_tt *ttm_dma = (struct ttm_tt *)nvbo->bo.ttm; in nouveau_bo_sync_for_device()
731 struct ttm_tt *ttm_dma = (struct ttm_tt *)nvbo->bo.ttm; in nouveau_bo_sync_for_cpu()
841 static struct ttm_tt *
856 nouveau_ttm_tt_bind(struct ttm_device *bdev, struct ttm_tt *ttm, in nouveau_ttm_tt_bind()
872 nouveau_ttm_tt_unbind(struct ttm_device *bdev, struct ttm_tt *ttm) in nouveau_ttm_tt_unbind()
1420 struct ttm_tt *ttm, struct ttm_operation_ctx *ctx) in nouveau_ttm_tt_populate()
1422 struct ttm_tt *ttm_dma = (void *)ttm; in nouveau_ttm_tt_populate()
1442 struct ttm_tt *ttm) in nouveau_ttm_tt_unpopulate()
[all …]
H A Dnouveau_mem.c89 nouveau_mem_host(struct ttm_resource *reg, struct ttm_tt *tt) in nouveau_mem_host()
/linux/drivers/gpu/drm/radeon/
H A 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);
313 struct ttm_tt ttm;
323 static int radeon_ttm_tt_pin_userptr(struct ttm_device *bdev, struct ttm_tt *ttm) in radeon_ttm_tt_pin_userptr()
384 static void radeon_ttm_tt_unpin_userptr(struct ttm_device *bdev, struct ttm_tt *ttm) in radeon_ttm_tt_unpin_userptr()
413 static bool radeon_ttm_backend_is_bound(struct ttm_tt *ttm) in radeon_ttm_backend_is_bound()
421 struct ttm_tt *ttm, in radeon_ttm_backend_bind()
456 static void radeon_ttm_backend_unbind(struct ttm_device *bdev, struct ttm_tt *ttm) in radeon_ttm_backend_unbind()
472 static void radeon_ttm_backend_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in radeon_ttm_backend_destroy()
480 static struct ttm_tt *radeon_ttm_tt_create(struct ttm_buffer_object *bo, in radeon_ttm_tt_create()
[all …]
/linux/drivers/gpu/drm/ttm/tests/
H A Dttm_tt_test.c43 struct ttm_tt *tt; in ttm_tt_init_basic()
70 struct ttm_tt *tt; in ttm_tt_init_misaligned()
93 struct ttm_tt *tt; in ttm_tt_fini_basic()
113 struct ttm_tt *tt; in ttm_tt_fini_sg()
133 struct ttm_tt *tt; in ttm_tt_fini_shmem()
191 struct ttm_tt *tt; in ttm_tt_create_ttm_exists()
213 static struct ttm_tt *ttm_tt_null_create(struct ttm_buffer_object *bo, in ttm_tt_null_create()
274 struct ttm_tt *tt; in ttm_tt_populate_populated_ttm()
299 struct ttm_tt *tt; in ttm_tt_unpopulate_basic()
322 struct ttm_tt *tt; in ttm_tt_unpopulate_empty_ttm()
[all …]
H A Dttm_kunit_helpers.c48 static struct ttm_tt *ttm_tt_simple_create(struct ttm_buffer_object *bo, u32 page_flags) in ttm_tt_simple_create()
50 struct ttm_tt *tt; in ttm_tt_simple_create()
58 static void ttm_tt_simple_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in ttm_tt_simple_destroy()
/linux/drivers/gpu/drm/qxl/
H A Dqxl_ttm.c101 static void qxl_ttm_backend_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in qxl_ttm_backend_destroy()
107 static struct ttm_tt *qxl_ttm_tt_create(struct ttm_buffer_object *bo, in qxl_ttm_tt_create()
110 struct ttm_tt *ttm; in qxl_ttm_tt_create()
112 ttm = kzalloc_obj(struct ttm_tt); in qxl_ttm_tt_create()
/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_ttm_buffer.c274 struct ttm_tt *ttm, struct ttm_resource *bo_mem) in vmw_ttm_bind()
321 struct ttm_tt *ttm) in vmw_ttm_unbind()
348 static void vmw_ttm_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in vmw_ttm_destroy()
363 struct ttm_tt *ttm, struct ttm_operation_ctx *ctx) in vmw_ttm_populate()
379 struct ttm_tt *ttm) in vmw_ttm_unpopulate()
400 static struct ttm_tt *vmw_ttm_tt_create(struct ttm_buffer_object *bo, in vmw_ttm_tt_create()
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_ttm.c49 #include <drm/ttm/ttm_tt.h>
69 struct ttm_tt *ttm,
72 struct ttm_tt *ttm);
696 struct ttm_tt ttm;
720 struct ttm_tt *ttm = bo->tbo.ttm; in amdgpu_ttm_tt_get_user_pages()
771 void amdgpu_ttm_tt_set_user_pages(struct ttm_tt *ttm, struct amdgpu_hmm_range *range) in amdgpu_ttm_tt_set_user_pages()
785 struct ttm_tt *ttm) in amdgpu_ttm_tt_pin_userptr()
824 struct ttm_tt *ttm) in amdgpu_ttm_tt_unpin_userptr()
849 struct ttm_tt *ttm, uint64_t flags) in amdgpu_ttm_gart_bind_gfx9_mqd()
873 struct ttm_tt *tt in amdgpu_ttm_gart_bind_gfx9_mqd()
[all...]
H A Damdgpu_amdkfd_gpuvm.c569 struct ttm_tt *src_ttm = mem->bo->tbo.ttm; in kfd_mem_dmamap_userptr()
570 struct ttm_tt *ttm = bo->tbo.ttm; in kfd_mem_dmamap_userptr()
653 struct ttm_tt *ttm = bo->tbo.ttm; in kfd_mem_dmamap_sg_bo()
730 struct ttm_tt *ttm = bo->tbo.ttm; in kfd_mem_dmaunmap_userptr()
776 struct ttm_tt *ttm = bo->tbo.ttm; in kfd_mem_dmaunmap_sg_bo()
/linux/drivers/gpu/drm/i915/gem/
H A 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()
H A Di915_gem_ttm.c52 struct ttm_tt ttm;
184 struct ttm_tt *ttm, in i915_ttm_tt_shmem_populate()
243 static void i915_ttm_tt_shmem_unpopulate(struct ttm_tt *ttm) in i915_ttm_tt_shmem_unpopulate()
268 static struct ttm_tt *i915_ttm_tt_create(struct ttm_buffer_object *bo, in i915_ttm_tt_create()
319 struct ttm_tt *ttm, in i915_ttm_tt_populate()
330 static void i915_ttm_tt_unpopulate(struct ttm_device *bdev, struct ttm_tt *ttm) in i915_ttm_tt_unpopulate()
346 static void i915_ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in i915_ttm_tt_destroy()
522 static struct i915_refct_sgt *i915_ttm_tt_get_st(struct ttm_tt *ttm) in i915_ttm_tt_get_st()
H A Di915_gem_ttm_move.h16 struct ttm_tt;
/linux/drivers/gpu/drm/loongson/
H A Dlsdc_ttm.c87 static void lsdc_ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *tt) in lsdc_ttm_tt_destroy()
93 static struct ttm_tt *
96 struct ttm_tt *tt; in lsdc_ttm_tt_create()
113 struct ttm_tt *ttm, in lsdc_ttm_tt_populate()
130 struct ttm_tt *ttm) in lsdc_ttm_tt_unpopulate()
/linux/drivers/gpu/drm/xe/
H A Dxe_bo.c376 struct ttm_tt ttm;
383 static int xe_tt_map_sg(struct xe_device *xe, struct ttm_tt *tt) in xe_tt_map_sg()
415 static void xe_tt_unmap_sg(struct xe_device *xe, struct ttm_tt *tt) in xe_tt_unmap_sg()
429 struct ttm_tt *tt = bo->ttm.ttm; in xe_bo_sg()
439 static void xe_ttm_tt_account_add(struct xe_device *xe, struct ttm_tt *tt) in xe_ttm_tt_account_add()
449 static void xe_ttm_tt_account_subtract(struct xe_device *xe, struct ttm_tt *tt) in xe_ttm_tt_account_subtract()
472 static struct ttm_tt *xe_ttm_tt_create(struct ttm_buffer_object *ttm_bo, in xe_ttm_tt_create()
478 struct ttm_tt *tt; in xe_ttm_tt_create()
553 static int xe_ttm_tt_populate(struct ttm_device *ttm_dev, struct ttm_tt *tt, in xe_ttm_tt_populate()
583 static void xe_ttm_tt_unpopulate(struct ttm_device *ttm_dev, struct ttm_tt *tt) in xe_ttm_tt_unpopulate()
[all …]
/linux/drivers/gpu/drm/
H A Ddrm_gem_vram_helper.c708 static void bo_driver_ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *tt) in bo_driver_ttm_tt_destroy()
718 static struct ttm_tt *bo_driver_ttm_tt_create(struct ttm_buffer_object *bo, in bo_driver_ttm_tt_create()
721 struct ttm_tt *tt; in bo_driver_ttm_tt_create()
/linux/drivers/gpu/drm/xe/tests/
H A Dxe_bo.c30 struct ttm_tt *ttm; in ccs_test_migrate()

12