Home
last modified time | relevance | path

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

/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.c717 static void ttm_pool_free_range(struct ttm_pool *pool, struct ttm_tt *tt, in ttm_pool_free_range()
743 static void ttm_pool_alloc_state_init(const struct ttm_tt *tt, in ttm_pool_alloc_state_init()
763 static int __ttm_pool_alloc(struct ttm_pool *pool, struct ttm_tt *tt, in __ttm_pool_alloc()
873 int ttm_pool_alloc(struct ttm_pool *pool, struct ttm_tt *tt, in ttm_pool_alloc()
900 int ttm_pool_restore_and_alloc(struct ttm_pool *pool, struct ttm_tt *tt, in ttm_pool_restore_and_alloc()
949 void ttm_pool_free(struct ttm_pool *pool, struct ttm_tt *tt) in ttm_pool_free()
969 void ttm_pool_drop_backed_up(struct ttm_tt *tt) in ttm_pool_drop_backed_up()
1034 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.c1114 struct ttm_tt *tt = bo->ttm; in ttm_bo_swapout_cb()
1261 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_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()
H A Dvmwgfx_drv.h336 struct ttm_tt dma_ttm;
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_ttm.c69 struct ttm_tt *ttm,
72 struct ttm_tt *ttm);
704 struct ttm_tt ttm;
728 struct ttm_tt *ttm = bo->tbo.ttm; in amdgpu_ttm_tt_get_user_pages()
779 void amdgpu_ttm_tt_set_user_pages(struct ttm_tt *ttm, struct amdgpu_hmm_range *range) in amdgpu_ttm_tt_set_user_pages()
793 struct ttm_tt *ttm) in amdgpu_ttm_tt_pin_userptr()
832 struct ttm_tt *ttm) in amdgpu_ttm_tt_unpin_userptr()
857 struct ttm_tt *ttm, uint64_t flags) in amdgpu_ttm_gart_bind_gfx9_mqd()
881 struct ttm_tt *ttm = tbo->ttm; in amdgpu_ttm_gart_bind()
903 struct ttm_tt *ttm, in amdgpu_ttm_backend_bind()
[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/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/i915/gem/
H A Di915_gem_ttm_move.h16 struct ttm_tt;
/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()
551 static int xe_ttm_tt_populate(struct ttm_device *ttm_dev, struct ttm_tt *tt, in xe_ttm_tt_populate()
581 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/xe/tests/
H A Dxe_bo.c30 struct ttm_tt *ttm; in ccs_test_migrate()