/openbmc/linux/include/drm/ttm/ |
H A D | ttm_tt.h | 36 struct ttm_tt; 46 struct ttm_tt { struct 123 struct ttm_tt *tt; 127 static inline bool ttm_tt_is_populated(struct ttm_tt *tt) in ttm_tt_is_populated() 170 void ttm_tt_fini(struct ttm_tt *ttm); 189 int ttm_tt_swapin(struct ttm_tt *ttm); 223 static inline void ttm_tt_mark_for_clear(struct ttm_tt *ttm) in ttm_tt_mark_for_clear() 231 struct ttm_tt *tt); 252 void ttm_agp_unbind(struct ttm_tt *ttm); 253 void ttm_agp_destroy(struct ttm_tt *ttm); [all …]
|
H A D | ttm_pool.h | 35 struct ttm_tt; 81 int ttm_pool_alloc(struct ttm_pool *pool, struct ttm_tt *tt, 83 void ttm_pool_free(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);
|
H A D | ttm_bo.h | 52 struct ttm_tt; 118 struct ttm_tt *ttm;
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_ttm.h | 174 void amdgpu_ttm_tt_discard_user_pages(struct ttm_tt *ttm, 176 bool amdgpu_ttm_tt_get_user_pages_done(struct ttm_tt *ttm, 185 static inline void amdgpu_ttm_tt_discard_user_pages(struct ttm_tt *ttm, in amdgpu_ttm_tt_discard_user_pages() 189 static inline bool amdgpu_ttm_tt_get_user_pages_done(struct ttm_tt *ttm, in amdgpu_ttm_tt_get_user_pages_done() 196 void amdgpu_ttm_tt_set_user_pages(struct ttm_tt *ttm, struct page **pages); 201 bool amdgpu_ttm_tt_has_userptr(struct ttm_tt *ttm); 202 struct mm_struct *amdgpu_ttm_tt_get_usermm(struct ttm_tt *ttm); 203 bool amdgpu_ttm_tt_affect_userptr(struct ttm_tt *ttm, unsigned long start, 205 bool amdgpu_ttm_tt_userptr_invalidated(struct ttm_tt *ttm, 207 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); 655 struct ttm_tt ttm; 778 struct ttm_tt *ttm) in amdgpu_ttm_tt_pin_userptr() 815 struct ttm_tt *ttm) in amdgpu_ttm_tt_unpin_userptr() 875 struct ttm_tt *ttm = tbo->ttm; in amdgpu_ttm_gart_bind() 897 struct ttm_tt *ttm, in amdgpu_ttm_backend_bind() 1036 struct ttm_tt *ttm) in amdgpu_ttm_backend_unbind() 1064 struct ttm_tt *ttm) in amdgpu_ttm_backend_destroy() 1121 struct ttm_tt *ttm, in amdgpu_ttm_tt_populate() [all …]
|
/openbmc/linux/drivers/gpu/drm/ttm/ |
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_tt.c | 111 static int ttm_tt_alloc_page_directory(struct ttm_tt *ttm) in ttm_tt_alloc_page_directory() 120 static int ttm_dma_tt_alloc_page_directory(struct ttm_tt *ttm) in ttm_dma_tt_alloc_page_directory() 131 static int ttm_sg_tt_alloc_page_directory(struct ttm_tt *ttm) in ttm_sg_tt_alloc_page_directory() 141 void ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in ttm_tt_destroy() 146 static void ttm_tt_init_fields(struct ttm_tt *ttm, in ttm_tt_init_fields() 160 int ttm_tt_init(struct ttm_tt *ttm, struct ttm_buffer_object *bo, in ttm_tt_init() 174 void ttm_tt_fini(struct ttm_tt *ttm) in ttm_tt_fini() 210 int ttm_tt_swapin(struct ttm_tt *ttm) in ttm_tt_swapin() 262 int ttm_tt_swapout(struct ttm_device *bdev, struct ttm_tt *ttm, in ttm_tt_swapout() 310 struct ttm_tt *ttm, struct ttm_operation_ctx *ctx) in ttm_tt_populate() [all …]
|
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()
|
H A D | ttm_pool.c | 389 static void ttm_pool_free_range(struct ttm_pool *pool, struct ttm_tt *tt, in ttm_pool_free_range() 425 int ttm_pool_alloc(struct ttm_pool *pool, struct ttm_tt *tt, in ttm_pool_alloc() 540 void ttm_pool_free(struct ttm_pool *pool, struct ttm_tt *tt) in ttm_pool_free()
|
/openbmc/linux/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); 599 struct ttm_tt *ttm_dma = (struct ttm_tt *)nvbo->bo.ttm; in nouveau_bo_sync_for_device() 635 struct ttm_tt *ttm_dma = (struct ttm_tt *)nvbo->bo.ttm; in nouveau_bo_sync_for_cpu() 745 static struct ttm_tt * 760 nouveau_ttm_tt_bind(struct ttm_device *bdev, struct ttm_tt *ttm, in nouveau_ttm_tt_bind() 776 nouveau_ttm_tt_unbind(struct ttm_device *bdev, struct ttm_tt *ttm) in nouveau_ttm_tt_unbind() 1324 struct ttm_tt *ttm, struct ttm_operation_ctx *ctx) in nouveau_ttm_tt_populate() 1326 struct ttm_tt *ttm_dma = (void *)ttm; in nouveau_ttm_tt_populate() 1346 struct ttm_tt *ttm) in nouveau_ttm_tt_unpopulate() [all …]
|
H A D | nouveau_mem.c | 89 nouveau_mem_host(struct ttm_resource *reg, struct ttm_tt *tt) in nouveau_mem_host()
|
/openbmc/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_ttm.c | 321 struct ttm_tt ttm; 429 struct ttm_tt *ttm, in radeon_ttm_backend_bind() 523 struct ttm_tt *ttm) in radeon_ttm_tt_to_gtt() 536 struct ttm_tt *ttm, in radeon_ttm_tt_populate() 582 struct ttm_tt *ttm, uint64_t addr, in radeon_ttm_tt_set_userptr() 597 struct ttm_tt *ttm) in radeon_ttm_tt_is_bound() 608 struct ttm_tt *ttm, in radeon_ttm_tt_bind() 626 struct ttm_tt *ttm) in radeon_ttm_tt_unbind() 640 struct ttm_tt *ttm) in radeon_ttm_tt_destroy() 654 struct ttm_tt *ttm) in radeon_ttm_tt_has_userptr() [all …]
|
/openbmc/linux/drivers/gpu/drm/ttm/tests/ |
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() 140 struct ttm_tt *tt; in ttm_pool_alloc_basic() 201 struct ttm_tt *tt; in ttm_pool_alloc_basic_dma_addr() 241 struct ttm_tt *tt; in ttm_pool_alloc_order_caching_match() 269 struct ttm_tt *tt; in ttm_pool_alloc_caching_mismatch() 303 struct ttm_tt *tt; in ttm_pool_alloc_order_mismatch() 339 struct ttm_tt *tt; in ttm_pool_free_dma_alloc() 370 struct ttm_tt *tt; in ttm_pool_free_no_dma_alloc()
|
/openbmc/linux/drivers/gpu/drm/qxl/ |
H A D | qxl_ttm.c | 102 static void qxl_ttm_backend_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in qxl_ttm_backend_destroy() 108 static struct ttm_tt *qxl_ttm_tt_create(struct ttm_buffer_object *bo, in qxl_ttm_tt_create() 111 struct ttm_tt *ttm; in qxl_ttm_tt_create() 113 ttm = kzalloc(sizeof(struct ttm_tt), GFP_KERNEL); in qxl_ttm_tt_create()
|
/openbmc/linux/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_ttm_buffer.c | 306 struct ttm_tt *ttm, struct ttm_resource *bo_mem) in vmw_ttm_bind() 353 struct ttm_tt *ttm) in vmw_ttm_unbind() 380 static void vmw_ttm_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in vmw_ttm_destroy() 395 struct ttm_tt *ttm, struct ttm_operation_ctx *ctx) in vmw_ttm_populate() 411 struct ttm_tt *ttm) in vmw_ttm_unpopulate() 432 static struct ttm_tt *vmw_ttm_tt_create(struct ttm_buffer_object *bo, in vmw_ttm_tt_create()
|
/openbmc/linux/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; 189 struct ttm_tt *ttm, in i915_ttm_tt_shmem_populate() 247 static void i915_ttm_tt_shmem_unpopulate(struct ttm_tt *ttm) in i915_ttm_tt_shmem_unpopulate() 272 static struct ttm_tt *i915_ttm_tt_create(struct ttm_buffer_object *bo, in i915_ttm_tt_create() 323 struct ttm_tt *ttm, in i915_ttm_tt_populate() 334 static void i915_ttm_tt_unpopulate(struct ttm_device *bdev, struct ttm_tt *ttm) in i915_ttm_tt_unpopulate() 350 static void i915_ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in i915_ttm_tt_destroy() 526 static struct i915_refct_sgt *i915_ttm_tt_get_st(struct ttm_tt *ttm) in i915_ttm_tt_get_st()
|
/openbmc/linux/drivers/gpu/drm/loongson/ |
H A D | lsdc_ttm.c | 88 static void lsdc_ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *tt) in lsdc_ttm_tt_destroy() 94 static struct ttm_tt * 97 struct ttm_tt *tt; in lsdc_ttm_tt_create() 114 struct ttm_tt *ttm, in lsdc_ttm_tt_populate() 131 struct ttm_tt *ttm) in lsdc_ttm_tt_unpopulate()
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_gem_vram_helper.c | 853 static void bo_driver_ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *tt) in bo_driver_ttm_tt_destroy() 863 static struct ttm_tt *bo_driver_ttm_tt_create(struct ttm_buffer_object *bo, in bo_driver_ttm_tt_create() 866 struct ttm_tt *tt; in bo_driver_ttm_tt_create()
|