| /linux/include/drm/ttm/ |
| H A D | ttm_tt.h | 37 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 D | ttm_tt.c | 118 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 D | ttm_agp_backend.c | 46 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 D | ttm_pool.c | 717 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 D | ttm_bo_util.c | 153 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 D | ttm_bo.c | 1114 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 D | nouveau_sgdma.c | 15 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 D | nouveau_ttm.h | 15 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 D | nouveau_mem.h | 4 struct ttm_tt; 35 int nouveau_mem_host(struct ttm_resource *, struct ttm_tt *);
|
| H A D | nouveau_mem.c | 89 nouveau_mem_host(struct ttm_resource *reg, struct ttm_tt *tt) in nouveau_mem_host()
|
| /linux/drivers/gpu/drm/radeon/ |
| H A D | radeon_ttm.c | 56 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 D | ttm_tt_test.c | 43 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 D | ttm_kunit_helpers.c | 48 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 D | qxl_ttm.c | 101 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 D | vmwgfx_ttm_buffer.c | 274 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 D | vmwgfx_drv.h | 336 struct ttm_tt dma_ttm;
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_ttm.c | 69 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 D | amdgpu_amdkfd_gpuvm.c | 569 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 D | lsdc_ttm.c | 87 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 D | i915_gem_ttm_move.h | 16 struct ttm_tt;
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_bo.c | 376 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 D | xe_bo.c | 30 struct ttm_tt *ttm; in ccs_test_migrate()
|