Home
last modified time | relevance | path

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

12

/Linux-v4.19/include/drm/ttm/
Dttm_tt.h32 struct ttm_tt;
63 int (*bind) (struct ttm_tt *ttm, struct ttm_mem_reg *bo_mem);
73 int (*unbind) (struct ttm_tt *ttm);
83 void (*destroy) (struct ttm_tt *ttm);
105 struct ttm_tt { struct
133 struct ttm_tt ttm;
161 int ttm_tt_init(struct ttm_tt *ttm, struct ttm_buffer_object *bo,
175 void ttm_tt_fini(struct ttm_tt *ttm);
186 int ttm_tt_bind(struct ttm_tt *ttm, struct ttm_mem_reg *bo_mem,
196 void ttm_tt_destroy(struct ttm_tt *ttm);
[all …]
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_driver.h236 struct ttm_tt *(*ttm_tt_create)(struct ttm_buffer_object *bo,
248 int (*ttm_tt_populate)(struct ttm_tt *ttm,
258 void (*ttm_tt_unpopulate)(struct ttm_tt *ttm);
Dttm_bo_api.h123 struct ttm_tt;
193 struct ttm_tt *ttm;
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ttm.h106 int amdgpu_ttm_tt_get_user_pages(struct ttm_tt *ttm, struct page **pages);
107 void amdgpu_ttm_tt_set_user_pages(struct ttm_tt *ttm, struct page **pages);
108 void amdgpu_ttm_tt_mark_user_pages(struct ttm_tt *ttm);
109 int amdgpu_ttm_tt_set_userptr(struct ttm_tt *ttm, uint64_t addr,
111 bool amdgpu_ttm_tt_has_userptr(struct ttm_tt *ttm);
112 struct mm_struct *amdgpu_ttm_tt_get_usermm(struct ttm_tt *ttm);
113 bool amdgpu_ttm_tt_affect_userptr(struct ttm_tt *ttm, unsigned long start,
115 bool amdgpu_ttm_tt_userptr_invalidated(struct ttm_tt *ttm,
117 bool amdgpu_ttm_tt_userptr_needs_pages(struct ttm_tt *ttm);
118 bool amdgpu_ttm_tt_is_readonly(struct ttm_tt *ttm);
[all …]
Damdgpu_ttm.c806 int amdgpu_ttm_tt_get_user_pages(struct ttm_tt *ttm, struct page **pages) in amdgpu_ttm_tt_get_user_pages()
883 void amdgpu_ttm_tt_set_user_pages(struct ttm_tt *ttm, struct page **pages) in amdgpu_ttm_tt_set_user_pages()
902 void amdgpu_ttm_tt_mark_user_pages(struct ttm_tt *ttm) in amdgpu_ttm_tt_mark_user_pages()
925 static int amdgpu_ttm_tt_pin_userptr(struct ttm_tt *ttm) in amdgpu_ttm_tt_pin_userptr()
963 static void amdgpu_ttm_tt_unpin_userptr(struct ttm_tt *ttm) in amdgpu_ttm_tt_unpin_userptr()
990 struct ttm_tt *ttm = tbo->ttm; in amdgpu_ttm_gart_bind()
1030 static int amdgpu_ttm_backend_bind(struct ttm_tt *ttm, in amdgpu_ttm_backend_bind()
1154 static int amdgpu_ttm_backend_unbind(struct ttm_tt *ttm) in amdgpu_ttm_backend_unbind()
1175 static void amdgpu_ttm_backend_destroy(struct ttm_tt *ttm) in amdgpu_ttm_backend_destroy()
1199 static struct ttm_tt *amdgpu_ttm_tt_create(struct ttm_buffer_object *bo, in amdgpu_ttm_tt_create()
[all …]
/Linux-v4.19/drivers/gpu/drm/ttm/
Dttm_tt.c85 static int ttm_tt_alloc_page_directory(struct ttm_tt *ttm) in ttm_tt_alloc_page_directory()
147 static int ttm_tt_set_caching(struct ttm_tt *ttm, in ttm_tt_set_caching()
193 int ttm_tt_set_placement_caching(struct ttm_tt *ttm, uint32_t placement) in ttm_tt_set_placement_caching()
208 void ttm_tt_destroy(struct ttm_tt *ttm) in ttm_tt_destroy()
226 void ttm_tt_init_fields(struct ttm_tt *ttm, struct ttm_buffer_object *bo, in ttm_tt_init_fields()
238 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()
279 struct ttm_tt *ttm = &ttm_dma->ttm; in ttm_sg_tt_init()
300 struct ttm_tt *ttm = &ttm_dma->ttm; in ttm_dma_tt_fini()
[all …]
Dttm_agp_backend.c46 struct ttm_tt ttm;
51 static int ttm_agp_bind(struct ttm_tt *ttm, struct ttm_mem_reg *bo_mem) in ttm_agp_bind()
85 static int ttm_agp_unbind(struct ttm_tt *ttm) in ttm_agp_unbind()
98 static void ttm_agp_destroy(struct ttm_tt *ttm) in ttm_agp_destroy()
114 struct ttm_tt *ttm_agp_tt_create(struct ttm_buffer_object *bo, in ttm_agp_tt_create()
137 int ttm_agp_tt_populate(struct ttm_tt *ttm, struct ttm_operation_ctx *ctx) in ttm_agp_tt_populate()
146 void ttm_agp_tt_unpopulate(struct ttm_tt *ttm) in ttm_agp_tt_unpopulate()
DMakefile5 ttm-y := ttm_memory.o ttm_tt.o ttm_bo.o \
Dttm_bo_util.c57 struct ttm_tt *ttm = bo->ttm; in ttm_bo_move_ttm()
312 static int ttm_copy_io_ttm_page(struct ttm_tt *ttm, void *src, in ttm_copy_io_ttm_page()
334 static int ttm_copy_ttm_io_page(struct ttm_tt *ttm, void *dst, in ttm_copy_ttm_io_page()
362 struct ttm_tt *ttm = bo->ttm; in ttm_bo_move_memcpy()
585 struct ttm_tt *ttm = bo->ttm; in ttm_bo_kmap_ttm()
Dttm_page_alloc_dma.c841 struct ttm_tt *ttm = &ttm_dma->ttm; in ttm_dma_pool_get_pages()
861 struct ttm_tt *ttm = &ttm_dma->ttm; in ttm_dma_pool_gfp_flags()
891 struct ttm_tt *ttm = &ttm_dma->ttm; in ttm_dma_populate()
996 struct ttm_tt *ttm = &ttm_dma->ttm; in ttm_dma_unpopulate()
Dttm_page_alloc.c1028 ttm_pool_unpopulate_helper(struct ttm_tt *ttm, unsigned mem_count_update) in ttm_pool_unpopulate_helper()
1049 int ttm_pool_populate(struct ttm_tt *ttm, struct ttm_operation_ctx *ctx) in ttm_pool_populate()
1090 void ttm_pool_unpopulate(struct ttm_tt *ttm) in ttm_pool_unpopulate()
Dttm_bo_vm.c118 struct ttm_tt *ttm = NULL; in ttm_bo_vm_fault()
/Linux-v4.19/drivers/gpu/drm/nouveau/
Dnouveau_sgdma.c18 nouveau_sgdma_destroy(struct ttm_tt *ttm) in nouveau_sgdma_destroy()
29 nv04_sgdma_bind(struct ttm_tt *ttm, struct ttm_mem_reg *reg) in nv04_sgdma_bind()
50 nv04_sgdma_unbind(struct ttm_tt *ttm) in nv04_sgdma_unbind()
64 nv50_sgdma_bind(struct ttm_tt *ttm, struct ttm_mem_reg *reg) in nv50_sgdma_bind()
84 struct ttm_tt *
Dnouveau_ttm.h15 struct ttm_tt *nouveau_sgdma_create_ttm(struct ttm_buffer_object *bo,
/Linux-v4.19/drivers/gpu/drm/radeon/
Dradeon_ttm.c542 static int radeon_ttm_tt_pin_userptr(struct ttm_tt *ttm) in radeon_ttm_tt_pin_userptr()
604 static void radeon_ttm_tt_unpin_userptr(struct ttm_tt *ttm) in radeon_ttm_tt_unpin_userptr()
633 static int radeon_ttm_backend_bind(struct ttm_tt *ttm, in radeon_ttm_backend_bind()
663 static int radeon_ttm_backend_unbind(struct ttm_tt *ttm) in radeon_ttm_backend_unbind()
675 static void radeon_ttm_backend_destroy(struct ttm_tt *ttm) in radeon_ttm_backend_destroy()
689 static struct ttm_tt *radeon_ttm_tt_create(struct ttm_buffer_object *bo, in radeon_ttm_tt_create()
716 static struct radeon_ttm_tt *radeon_ttm_tt_to_gtt(struct ttm_tt *ttm) in radeon_ttm_tt_to_gtt()
723 static int radeon_ttm_tt_populate(struct ttm_tt *ttm, in radeon_ttm_tt_populate()
763 static void radeon_ttm_tt_unpopulate(struct ttm_tt *ttm) in radeon_ttm_tt_unpopulate()
796 int radeon_ttm_tt_set_userptr(struct ttm_tt *ttm, uint64_t addr, in radeon_ttm_tt_set_userptr()
[all …]
/Linux-v4.19/drivers/gpu/drm/virtio/
Dvirtgpu_ttm.c291 static int virtio_gpu_ttm_backend_bind(struct ttm_tt *ttm, in virtio_gpu_ttm_backend_bind()
305 static int virtio_gpu_ttm_backend_unbind(struct ttm_tt *ttm) in virtio_gpu_ttm_backend_unbind()
311 static void virtio_gpu_ttm_backend_destroy(struct ttm_tt *ttm) in virtio_gpu_ttm_backend_destroy()
325 static struct ttm_tt *virtio_gpu_ttm_tt_create(struct ttm_buffer_object *bo, in virtio_gpu_ttm_tt_create()
/Linux-v4.19/drivers/gpu/drm/vmwgfx/
Dvmwgfx_ttm_buffer.c586 static int vmw_ttm_bind(struct ttm_tt *ttm, struct ttm_mem_reg *bo_mem) in vmw_ttm_bind()
620 static int vmw_ttm_unbind(struct ttm_tt *ttm) in vmw_ttm_unbind()
643 static void vmw_ttm_destroy(struct ttm_tt *ttm) in vmw_ttm_destroy()
661 static int vmw_ttm_populate(struct ttm_tt *ttm, struct ttm_operation_ctx *ctx) in vmw_ttm_populate()
689 static void vmw_ttm_unpopulate(struct ttm_tt *ttm) in vmw_ttm_unpopulate()
719 static struct ttm_tt *vmw_ttm_tt_create(struct ttm_buffer_object *bo, in vmw_ttm_tt_create()
/Linux-v4.19/drivers/gpu/drm/mgag200/
Dmgag200_ttm.c191 static void mgag200_ttm_backend_destroy(struct ttm_tt *tt) in mgag200_ttm_backend_destroy()
202 static struct ttm_tt *mgag200_ttm_tt_create(struct ttm_buffer_object *bo, in mgag200_ttm_tt_create()
205 struct ttm_tt *tt; in mgag200_ttm_tt_create()
207 tt = kzalloc(sizeof(struct ttm_tt), GFP_KERNEL); in mgag200_ttm_tt_create()
/Linux-v4.19/drivers/gpu/drm/ast/
Dast_ttm.c191 static void ast_ttm_backend_destroy(struct ttm_tt *tt) in ast_ttm_backend_destroy()
202 static struct ttm_tt *ast_ttm_tt_create(struct ttm_buffer_object *bo, in ast_ttm_tt_create()
205 struct ttm_tt *tt; in ast_ttm_tt_create()
207 tt = kzalloc(sizeof(struct ttm_tt), GFP_KERNEL); in ast_ttm_tt_create()
/Linux-v4.19/drivers/gpu/drm/cirrus/
Dcirrus_ttm.c191 static void cirrus_ttm_backend_destroy(struct ttm_tt *tt) in cirrus_ttm_backend_destroy()
202 static struct ttm_tt *cirrus_ttm_tt_create(struct ttm_buffer_object *bo, in cirrus_ttm_tt_create()
205 struct ttm_tt *tt; in cirrus_ttm_tt_create()
207 tt = kzalloc(sizeof(struct ttm_tt), GFP_KERNEL); in cirrus_ttm_tt_create()
/Linux-v4.19/drivers/gpu/drm/qxl/
Dqxl_ttm.c260 static int qxl_ttm_backend_bind(struct ttm_tt *ttm, in qxl_ttm_backend_bind()
274 static int qxl_ttm_backend_unbind(struct ttm_tt *ttm) in qxl_ttm_backend_unbind()
280 static void qxl_ttm_backend_destroy(struct ttm_tt *ttm) in qxl_ttm_backend_destroy()
294 static struct ttm_tt *qxl_ttm_tt_create(struct ttm_buffer_object *bo, in qxl_ttm_tt_create()
/Linux-v4.19/drivers/gpu/drm/bochs/
Dbochs_mm.c169 static void bochs_ttm_backend_destroy(struct ttm_tt *tt) in bochs_ttm_backend_destroy()
179 static struct ttm_tt *bochs_ttm_tt_create(struct ttm_buffer_object *bo, in bochs_ttm_tt_create()
182 struct ttm_tt *tt; in bochs_ttm_tt_create()
184 tt = kzalloc(sizeof(struct ttm_tt), GFP_KERNEL); in bochs_ttm_tt_create()
/Linux-v4.19/drivers/staging/vboxvideo/
Dvbox_ttm.c186 static void vbox_ttm_backend_destroy(struct ttm_tt *tt) in vbox_ttm_backend_destroy()
196 static struct ttm_tt *vbox_ttm_tt_create(struct ttm_buffer_object *bo, in vbox_ttm_tt_create()
199 struct ttm_tt *tt; in vbox_ttm_tt_create()
/Linux-v4.19/drivers/gpu/drm/hisilicon/hibmc/
Dhibmc_ttm.c193 static void hibmc_ttm_backend_destroy(struct ttm_tt *tt) in hibmc_ttm_backend_destroy()
203 static struct ttm_tt *hibmc_ttm_tt_create(struct ttm_buffer_object *bo, in hibmc_ttm_tt_create()
206 struct ttm_tt *tt; in hibmc_ttm_tt_create()

12