Home
last modified time | relevance | path

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

/Linux-v5.10/include/drm/ttm/
Dttm_tt.h32 struct ttm_tt;
68 struct ttm_tt { struct
77 static inline bool ttm_tt_is_populated(struct ttm_tt *tt) in ttm_tt_is_populated() argument
82 static inline void ttm_tt_set_unpopulated(struct ttm_tt *tt) in ttm_tt_set_unpopulated()
87 static inline void ttm_tt_set_populated(struct ttm_tt *tt) in ttm_tt_set_populated()
104 struct ttm_tt ttm;
132 int ttm_tt_init(struct ttm_tt *ttm, struct ttm_buffer_object *bo,
146 void ttm_tt_fini(struct ttm_tt *ttm);
156 void ttm_tt_destroy(struct ttm_bo_device *bdev, struct ttm_tt *ttm);
163 void ttm_tt_destroy_common(struct ttm_bo_device *bdev, struct ttm_tt *ttm);
[all …]
Dttm_bo_driver.h68 struct ttm_tt *(*ttm_tt_create)(struct ttm_buffer_object *bo,
81 struct ttm_tt *ttm,
91 void (*ttm_tt_unpopulate)(struct ttm_bo_device *bdev, struct ttm_tt *ttm);
105 int (*ttm_tt_bind)(struct ttm_bo_device *bdev, struct ttm_tt *ttm, struct ttm_resource *bo_mem);
116 void (*ttm_tt_unbind)(struct ttm_bo_device *bdev, struct ttm_tt *ttm);
127 void (*ttm_tt_destroy)(struct ttm_bo_device *bdev, struct ttm_tt *ttm);
Dttm_page_alloc.h50 int ttm_pool_populate(struct ttm_tt *ttm, struct ttm_operation_ctx *ctx);
59 void ttm_pool_unpopulate(struct ttm_tt *ttm);
Dttm_bo_api.h79 struct ttm_tt;
143 struct ttm_tt *ttm;
/Linux-v5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ttm.h152 bool amdgpu_ttm_tt_get_user_pages_done(struct ttm_tt *ttm);
159 static inline bool amdgpu_ttm_tt_get_user_pages_done(struct ttm_tt *ttm) in amdgpu_ttm_tt_get_user_pages_done()
165 void amdgpu_ttm_tt_set_user_pages(struct ttm_tt *ttm, struct page **pages);
168 bool amdgpu_ttm_tt_has_userptr(struct ttm_tt *ttm);
169 struct mm_struct *amdgpu_ttm_tt_get_usermm(struct ttm_tt *ttm);
170 bool amdgpu_ttm_tt_affect_userptr(struct ttm_tt *ttm, unsigned long start,
172 bool amdgpu_ttm_tt_userptr_invalidated(struct ttm_tt *ttm,
174 bool amdgpu_ttm_tt_is_userptr(struct ttm_tt *ttm);
175 bool amdgpu_ttm_tt_is_readonly(struct ttm_tt *ttm);
176 uint64_t amdgpu_ttm_tt_pde_flags(struct ttm_tt *ttm, struct ttm_resource *mem);
[all …]
Damdgpu_ttm.c67 struct ttm_tt *ttm,
836 struct ttm_tt *ttm = bo->tbo.ttm; in amdgpu_ttm_tt_get_user_pages()
938 bool amdgpu_ttm_tt_get_user_pages_done(struct ttm_tt *ttm) in amdgpu_ttm_tt_get_user_pages_done()
975 void amdgpu_ttm_tt_set_user_pages(struct ttm_tt *ttm, struct page **pages) in amdgpu_ttm_tt_set_user_pages()
989 struct ttm_tt *ttm) in amdgpu_ttm_tt_pin_userptr()
1027 struct ttm_tt *ttm) in amdgpu_ttm_tt_unpin_userptr()
1064 struct ttm_tt *ttm = tbo->ttm; in amdgpu_ttm_gart_bind()
1111 struct ttm_tt *ttm, in amdgpu_ttm_backend_bind()
1251 struct ttm_tt *ttm) in amdgpu_ttm_backend_unbind()
1276 struct ttm_tt *ttm) in amdgpu_ttm_backend_destroy()
[all …]
/Linux-v5.10/drivers/gpu/drm/ttm/
Dttm_tt.c87 static int ttm_tt_alloc_page_directory(struct ttm_tt *ttm) in ttm_tt_alloc_page_directory()
149 static int ttm_tt_set_caching(struct ttm_tt *ttm, in ttm_tt_set_caching()
195 int ttm_tt_set_placement_caching(struct ttm_tt *ttm, uint32_t placement) in ttm_tt_set_placement_caching()
210 void ttm_tt_destroy_common(struct ttm_bo_device *bdev, struct ttm_tt *ttm) in ttm_tt_destroy_common()
222 void ttm_tt_destroy(struct ttm_bo_device *bdev, struct ttm_tt *ttm) in ttm_tt_destroy()
227 static void ttm_tt_init_fields(struct ttm_tt *ttm, in ttm_tt_init_fields()
239 int ttm_tt_init(struct ttm_tt *ttm, struct ttm_buffer_object *bo, in ttm_tt_init()
252 void ttm_tt_fini(struct ttm_tt *ttm) in ttm_tt_fini()
262 struct ttm_tt *ttm = &ttm_dma->ttm; in ttm_dma_tt_init()
278 struct ttm_tt *ttm = &ttm_dma->ttm; in ttm_sg_tt_init()
[all …]
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()
89 void ttm_agp_unbind(struct ttm_tt *ttm) in ttm_agp_unbind()
104 bool ttm_agp_is_bound(struct ttm_tt *ttm) in ttm_agp_is_bound()
115 void ttm_agp_destroy(struct ttm_tt *ttm) in ttm_agp_destroy()
126 struct ttm_tt *ttm_agp_tt_create(struct ttm_buffer_object *bo, in ttm_agp_tt_create()
Dttm_bo_util.c57 struct ttm_tt *ttm = bo->ttm; in ttm_bo_move_ttm()
173 static int ttm_copy_io_ttm_page(struct ttm_tt *ttm, void *src, in ttm_copy_io_ttm_page()
195 static int ttm_copy_ttm_io_page(struct ttm_tt *ttm, void *dst, in ttm_copy_ttm_io_page()
223 struct ttm_tt *ttm = bo->ttm; in ttm_bo_move_memcpy()
445 struct ttm_tt *ttm = bo->ttm; in ttm_bo_kmap_ttm()
DMakefile5 ttm-y := ttm_memory.o ttm_tt.o ttm_bo.o \
Dttm_page_alloc_dma.c838 struct ttm_tt *ttm = &ttm_dma->ttm; in ttm_dma_pool_get_pages()
858 struct ttm_tt *ttm = &ttm_dma->ttm; in ttm_dma_pool_gfp_flags()
889 struct ttm_tt *ttm = &ttm_dma->ttm; in ttm_dma_populate()
994 struct ttm_tt *ttm = &ttm_dma->ttm; in ttm_dma_unpopulate()
Dttm_bo_vm.c188 struct ttm_tt *ttm = bo->ttm; in ttm_bo_vm_insert_huge()
277 struct ttm_tt *ttm = NULL; in ttm_bo_vm_fault_reserved()
Dttm_page_alloc.c1029 ttm_pool_unpopulate_helper(struct ttm_tt *ttm, unsigned mem_count_update) in ttm_pool_unpopulate_helper()
1050 int ttm_pool_populate(struct ttm_tt *ttm, struct ttm_operation_ctx *ctx) in ttm_pool_populate()
1091 void ttm_pool_unpopulate(struct ttm_tt *ttm) in ttm_pool_unpopulate()
Dttm_bo.c1263 size += ttm_round_pot(sizeof(struct ttm_tt)); in ttm_bo_acc_size()
/Linux-v5.10/drivers/gpu/drm/nouveau/
Dnouveau_ttm.h15 struct ttm_tt *nouveau_sgdma_create_ttm(struct ttm_buffer_object *bo,
25 int nouveau_sgdma_bind(struct ttm_bo_device *bdev, struct ttm_tt *ttm, struct ttm_resource *reg);
26 void nouveau_sgdma_unbind(struct ttm_bo_device *bdev, struct ttm_tt *ttm);
27 void nouveau_sgdma_destroy(struct ttm_bo_device *bdev, struct ttm_tt *ttm);
Dnouveau_sgdma.c18 nouveau_sgdma_destroy(struct ttm_bo_device *bdev, struct ttm_tt *ttm) in nouveau_sgdma_destroy()
31 nouveau_sgdma_bind(struct ttm_bo_device *bdev, struct ttm_tt *ttm, struct ttm_resource *reg) in nouveau_sgdma_bind()
58 nouveau_sgdma_unbind(struct ttm_bo_device *bdev, struct ttm_tt *ttm) in nouveau_sgdma_unbind()
67 struct ttm_tt *
Dnouveau_bo.c47 static int nouveau_ttm_tt_bind(struct ttm_bo_device *bdev, struct ttm_tt *ttm,
703 static struct ttm_tt *
718 nouveau_ttm_tt_bind(struct ttm_bo_device *bdev, struct ttm_tt *ttm, in nouveau_ttm_tt_bind()
734 nouveau_ttm_tt_unbind(struct ttm_bo_device *bdev, struct ttm_tt *ttm) in nouveau_ttm_tt_unbind()
1303 struct ttm_tt *ttm, struct ttm_operation_ctx *ctx) in nouveau_ttm_tt_populate()
1340 struct ttm_tt *ttm) in nouveau_ttm_tt_unpopulate()
1372 struct ttm_tt *ttm) in nouveau_ttm_tt_destroy()
/Linux-v5.10/drivers/gpu/drm/radeon/
Dradeon_ttm.c60 struct ttm_tt *ttm,
431 static int radeon_ttm_tt_pin_userptr(struct ttm_bo_device *bdev, struct ttm_tt *ttm) in radeon_ttm_tt_pin_userptr()
492 static void radeon_ttm_tt_unpin_userptr(struct ttm_bo_device *bdev, struct ttm_tt *ttm) in radeon_ttm_tt_unpin_userptr()
521 static bool radeon_ttm_backend_is_bound(struct ttm_tt *ttm) in radeon_ttm_backend_is_bound()
529 struct ttm_tt *ttm, in radeon_ttm_backend_bind()
564 static void radeon_ttm_backend_unbind(struct ttm_bo_device *bdev, struct ttm_tt *ttm) in radeon_ttm_backend_unbind()
579 static void radeon_ttm_backend_destroy(struct ttm_bo_device *bdev, struct ttm_tt *ttm) in radeon_ttm_backend_destroy()
590 static struct ttm_tt *radeon_ttm_tt_create(struct ttm_buffer_object *bo, in radeon_ttm_tt_create()
616 struct ttm_tt *ttm) in radeon_ttm_tt_to_gtt()
629 struct ttm_tt *ttm, in radeon_ttm_tt_populate()
[all …]
Dradeon.h2819 struct ttm_tt *ttm, uint64_t addr,
2821 extern bool radeon_ttm_tt_has_userptr(struct radeon_device *rdev, struct ttm_tt *ttm);
2822 extern bool radeon_ttm_tt_is_readonly(struct radeon_device *rdev, struct ttm_tt *ttm);
2823 bool radeon_ttm_tt_is_bound(struct ttm_bo_device *bdev, struct ttm_tt *ttm);
/Linux-v5.10/drivers/gpu/drm/qxl/
Dqxl_ttm.c102 struct ttm_tt ttm;
108 struct ttm_tt *ttm, in qxl_ttm_backend_bind()
123 struct ttm_tt *ttm) in qxl_ttm_backend_unbind()
129 struct ttm_tt *ttm) in qxl_ttm_backend_destroy()
138 static struct ttm_tt *qxl_ttm_tt_create(struct ttm_buffer_object *bo, in qxl_ttm_tt_create()
/Linux-v5.10/drivers/gpu/drm/vmwgfx/
Dvmwgfx_ttm_buffer.c559 struct ttm_tt *ttm, struct ttm_resource *bo_mem) in vmw_ttm_bind()
603 struct ttm_tt *ttm) in vmw_ttm_unbind()
628 static void vmw_ttm_destroy(struct ttm_bo_device *bdev, struct ttm_tt *ttm) in vmw_ttm_destroy()
649 struct ttm_tt *ttm, struct ttm_operation_ctx *ctx) in vmw_ttm_populate()
678 struct ttm_tt *ttm) in vmw_ttm_unpopulate()
702 static struct ttm_tt *vmw_ttm_tt_create(struct ttm_buffer_object *bo, in vmw_ttm_tt_create()
/Linux-v5.10/drivers/gpu/drm/
Ddrm_gem_vram_helper.c923 static void bo_driver_ttm_tt_destroy(struct ttm_bo_device *bdev, struct ttm_tt *tt) in bo_driver_ttm_tt_destroy()
934 static struct ttm_tt *bo_driver_ttm_tt_create(struct ttm_buffer_object *bo, in bo_driver_ttm_tt_create()
937 struct ttm_tt *tt; in bo_driver_ttm_tt_create()