| /linux-6.15/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() 220 void ttm_tt_fini(struct ttm_tt *ttm); 239 int ttm_tt_swapin(struct ttm_tt *ttm); 281 struct ttm_tt *tt); 301 int ttm_tt_setup_backup(struct ttm_tt *tt); 322 void ttm_agp_unbind(struct ttm_tt *ttm); 323 void ttm_agp_destroy(struct ttm_tt *ttm); [all …]
|
| H A D | ttm_pool.h | 39 struct ttm_tt; 83 int ttm_pool_alloc(struct ttm_pool *pool, struct ttm_tt *tt, 85 void ttm_pool_free(struct ttm_pool *pool, struct ttm_tt *tt); 93 void ttm_pool_drop_backed_up(struct ttm_tt *tt); 95 long ttm_pool_backup(struct ttm_pool *pool, struct ttm_tt *ttm, 97 int ttm_pool_restore_and_alloc(struct ttm_pool *pool, struct ttm_tt *tt,
|
| H A D | ttm_device.h | 73 struct ttm_tt *(*ttm_tt_create)(struct ttm_buffer_object *bo, 86 struct ttm_tt *ttm, 97 struct ttm_tt *ttm); 108 void (*ttm_tt_destroy)(struct ttm_device *bdev, struct ttm_tt *ttm);
|
| /linux-6.15/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_ttm.h | 192 void amdgpu_ttm_tt_discard_user_pages(struct ttm_tt *ttm, 194 bool amdgpu_ttm_tt_get_user_pages_done(struct ttm_tt *ttm, 203 static inline void amdgpu_ttm_tt_discard_user_pages(struct ttm_tt *ttm, in amdgpu_ttm_tt_discard_user_pages() 207 static inline bool amdgpu_ttm_tt_get_user_pages_done(struct ttm_tt *ttm, in amdgpu_ttm_tt_get_user_pages_done() 214 void amdgpu_ttm_tt_set_user_pages(struct ttm_tt *ttm, struct page **pages); 219 bool amdgpu_ttm_tt_has_userptr(struct ttm_tt *ttm); 220 struct mm_struct *amdgpu_ttm_tt_get_usermm(struct ttm_tt *ttm); 221 bool amdgpu_ttm_tt_affect_userptr(struct ttm_tt *ttm, unsigned long start, 223 bool amdgpu_ttm_tt_userptr_invalidated(struct ttm_tt *ttm, 225 bool amdgpu_ttm_tt_is_userptr(struct ttm_tt *ttm); [all …]
|
| H A D | amdgpu_ttm.c | 69 struct ttm_tt *ttm, 72 struct ttm_tt *ttm); 677 struct ttm_tt ttm; 800 struct ttm_tt *ttm) in amdgpu_ttm_tt_pin_userptr() 839 struct ttm_tt *ttm) in amdgpu_ttm_tt_unpin_userptr() 898 struct ttm_tt *ttm = tbo->ttm; in amdgpu_ttm_gart_bind() 920 struct ttm_tt *ttm, in amdgpu_ttm_backend_bind() 1055 struct ttm_tt *ttm) in amdgpu_ttm_backend_unbind() 1083 struct ttm_tt *ttm) in amdgpu_ttm_backend_destroy() 1140 struct ttm_tt *ttm, in amdgpu_ttm_tt_populate() [all …]
|
| /linux-6.15/drivers/gpu/drm/ttm/ |
| H A D | ttm_tt.c | 114 static int ttm_tt_alloc_page_directory(struct ttm_tt *ttm) in ttm_tt_alloc_page_directory() 123 static int ttm_dma_tt_alloc_page_directory(struct ttm_tt *ttm) in ttm_dma_tt_alloc_page_directory() 134 static int ttm_sg_tt_alloc_page_directory(struct ttm_tt *ttm) in ttm_sg_tt_alloc_page_directory() 150 static void ttm_tt_init_fields(struct ttm_tt *ttm, in ttm_tt_init_fields() 180 void ttm_tt_fini(struct ttm_tt *ttm) in ttm_tt_fini() 223 int ttm_tt_swapin(struct ttm_tt *ttm) in ttm_tt_swapin() 278 long ttm_tt_backup(struct ttm_device *bdev, struct ttm_tt *tt, in ttm_tt_backup() 295 int ttm_tt_restore(struct ttm_device *bdev, struct ttm_tt *tt, in ttm_tt_restore() 368 struct ttm_tt *ttm, struct ttm_operation_ctx *ctx) in ttm_tt_populate() 516 struct ttm_tt *tt) in ttm_kmap_iter_tt_init() [all …]
|
| H A D | ttm_agp_backend.c | 45 struct ttm_tt ttm; 50 int ttm_agp_bind(struct ttm_tt *ttm, struct ttm_resource *bo_mem) in ttm_agp_bind() 87 void ttm_agp_unbind(struct ttm_tt *ttm) in ttm_agp_unbind() 102 bool ttm_agp_is_bound(struct ttm_tt *ttm) in ttm_agp_is_bound() 113 void ttm_agp_destroy(struct ttm_tt *ttm) in ttm_agp_destroy() 124 struct ttm_tt *ttm_agp_tt_create(struct ttm_buffer_object *bo, in ttm_agp_tt_create()
|
| H A D | ttm_pool.c | 653 static void ttm_pool_free_range(struct ttm_pool *pool, struct ttm_tt *tt, in ttm_pool_free_range() 679 static void ttm_pool_alloc_state_init(const struct ttm_tt *tt, in ttm_pool_alloc_state_init() 699 static int __ttm_pool_alloc(struct ttm_pool *pool, struct ttm_tt *tt, in __ttm_pool_alloc() 808 int ttm_pool_alloc(struct ttm_pool *pool, struct ttm_tt *tt, in ttm_pool_alloc() 835 int ttm_pool_restore_and_alloc(struct ttm_pool *pool, struct ttm_tt *tt, in ttm_pool_restore_and_alloc() 882 void ttm_pool_free(struct ttm_pool *pool, struct ttm_tt *tt) in ttm_pool_free() 898 void ttm_pool_drop_backed_up(struct ttm_tt *tt) in ttm_pool_drop_backed_up() 963 long ttm_pool_backup(struct ttm_pool *pool, struct ttm_tt *tt, in ttm_pool_backup()
|
| H A D | Makefile | 5 ttm-y := ttm_tt.o ttm_bo.o ttm_bo_util.o ttm_bo_vm.o ttm_module.o \
|
| H A D | ttm_bo_util.c | 149 struct ttm_tt *ttm = bo->ttm; in ttm_bo_move_memcpy() 345 struct ttm_tt *ttm = bo->ttm; in ttm_bo_kmap_ttm() 506 struct ttm_tt *ttm = bo->ttm; in ttm_bo_vmap() 717 struct ttm_tt *ttm; in ttm_bo_pipeline_gutting() 1082 struct ttm_tt *tt = bo->ttm; in ttm_bo_shrink()
|
| /linux-6.15/drivers/gpu/drm/nouveau/ |
| 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_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_mem.h | 4 struct ttm_tt; 35 int nouveau_mem_host(struct ttm_resource *, struct ttm_tt *);
|
| H A D | nouveau_bo.c | 47 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); 618 struct ttm_tt *ttm_dma = (struct ttm_tt *)nvbo->bo.ttm; in nouveau_bo_sync_for_device() 654 struct ttm_tt *ttm_dma = (struct ttm_tt *)nvbo->bo.ttm; in nouveau_bo_sync_for_cpu() 764 static struct ttm_tt * 779 nouveau_ttm_tt_bind(struct ttm_device *bdev, struct ttm_tt *ttm, in nouveau_ttm_tt_bind() 795 nouveau_ttm_tt_unbind(struct ttm_device *bdev, struct ttm_tt *ttm) in nouveau_ttm_tt_unbind() 1340 struct ttm_tt *ttm, struct ttm_operation_ctx *ctx) in nouveau_ttm_tt_populate() 1342 struct ttm_tt *ttm_dma = (void *)ttm; in nouveau_ttm_tt_populate() 1362 struct ttm_tt *ttm) in nouveau_ttm_tt_unpopulate() [all …]
|
| /linux-6.15/drivers/gpu/drm/radeon/ |
| H A D | radeon_ttm.c | 313 struct ttm_tt ttm; 421 struct ttm_tt *ttm, in radeon_ttm_backend_bind() 515 struct ttm_tt *ttm) in radeon_ttm_tt_to_gtt() 528 struct ttm_tt *ttm, in radeon_ttm_tt_populate() 574 struct ttm_tt *ttm, uint64_t addr, in radeon_ttm_tt_set_userptr() 589 struct ttm_tt *ttm) in radeon_ttm_tt_is_bound() 600 struct ttm_tt *ttm, in radeon_ttm_tt_bind() 618 struct ttm_tt *ttm) in radeon_ttm_tt_unbind() 632 struct ttm_tt *ttm) in radeon_ttm_tt_destroy() 646 struct ttm_tt *ttm) in radeon_ttm_tt_has_userptr() [all …]
|
| /linux-6.15/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_pool_test.c | 50 static struct ttm_tt *ttm_tt_kunit_init(struct kunit *test, in ttm_tt_kunit_init() 57 struct ttm_tt *tt; in ttm_tt_kunit_init() 80 struct ttm_tt *tt; in ttm_pool_pre_populated() 139 struct ttm_tt *tt; in ttm_pool_alloc_basic() 200 struct ttm_tt *tt; in ttm_pool_alloc_basic_dma_addr() 240 struct ttm_tt *tt; in ttm_pool_alloc_order_caching_match() 268 struct ttm_tt *tt; in ttm_pool_alloc_caching_mismatch() 302 struct ttm_tt *tt; in ttm_pool_alloc_order_mismatch() 338 struct ttm_tt *tt; in ttm_pool_free_dma_alloc() 369 struct ttm_tt *tt; in ttm_pool_free_no_dma_alloc()
|
| H A D | ttm_kunit_helpers.c | 45 static struct ttm_tt *ttm_tt_simple_create(struct ttm_buffer_object *bo, u32 page_flags) in ttm_tt_simple_create() 47 struct ttm_tt *tt; in ttm_tt_simple_create() 55 static void ttm_tt_simple_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in ttm_tt_simple_destroy()
|
| /linux-6.15/drivers/gpu/drm/qxl/ |
| H A D | qxl_ttm.c | 100 static void qxl_ttm_backend_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in qxl_ttm_backend_destroy() 106 static struct ttm_tt *qxl_ttm_tt_create(struct ttm_buffer_object *bo, in qxl_ttm_tt_create() 109 struct ttm_tt *ttm; in qxl_ttm_tt_create() 111 ttm = kzalloc(sizeof(struct ttm_tt), GFP_KERNEL); in qxl_ttm_tt_create()
|
| /linux-6.15/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()
|
| /linux-6.15/drivers/gpu/drm/i915/gem/ |
| H A D | i915_gem_ttm_move.c | 53 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 D | i915_gem_ttm_move.h | 16 struct ttm_tt;
|
| H A D | i915_gem_ttm.c | 50 struct ttm_tt ttm; 182 struct ttm_tt *ttm, in i915_ttm_tt_shmem_populate() 240 static void i915_ttm_tt_shmem_unpopulate(struct ttm_tt *ttm) in i915_ttm_tt_shmem_unpopulate() 265 static struct ttm_tt *i915_ttm_tt_create(struct ttm_buffer_object *bo, in i915_ttm_tt_create() 316 struct ttm_tt *ttm, in i915_ttm_tt_populate() 327 static void i915_ttm_tt_unpopulate(struct ttm_device *bdev, struct ttm_tt *ttm) in i915_ttm_tt_unpopulate() 343 static void i915_ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in i915_ttm_tt_destroy() 519 static struct i915_refct_sgt *i915_ttm_tt_get_st(struct ttm_tt *ttm) in i915_ttm_tt_get_st()
|
| /linux-6.15/drivers/gpu/drm/loongson/ |
| H A D | lsdc_ttm.c | 86 static void lsdc_ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *tt) in lsdc_ttm_tt_destroy() 92 static struct ttm_tt * 95 struct ttm_tt *tt; in lsdc_ttm_tt_create() 112 struct ttm_tt *ttm, in lsdc_ttm_tt_populate() 129 struct ttm_tt *ttm) in lsdc_ttm_tt_unpopulate()
|
| /linux-6.15/drivers/gpu/drm/xe/ |
| H A D | xe_bo.c | 322 struct ttm_tt ttm; 331 static int xe_tt_map_sg(struct ttm_tt *tt) in xe_tt_map_sg() 363 static void xe_tt_unmap_sg(struct ttm_tt *tt) in xe_tt_unmap_sg() 377 struct ttm_tt *tt = bo->ttm.ttm; in xe_bo_sg() 387 static void xe_ttm_tt_account_add(struct ttm_tt *tt) in xe_ttm_tt_account_add() 397 static void xe_ttm_tt_account_subtract(struct ttm_tt *tt) in xe_ttm_tt_account_subtract() 407 static struct ttm_tt *xe_ttm_tt_create(struct ttm_buffer_object *ttm_bo, in xe_ttm_tt_create() 413 struct ttm_tt *tt; in xe_ttm_tt_create() 490 static int xe_ttm_tt_populate(struct ttm_device *ttm_dev, struct ttm_tt *tt, in xe_ttm_tt_populate() 754 struct ttm_tt *ttm = ttm_bo->ttm; in xe_bo_move() [all …]
|