| /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()
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_ttm.h | 243 void amdgpu_ttm_tt_set_user_pages(struct ttm_tt *ttm, struct amdgpu_hmm_range *range); 248 bool amdgpu_ttm_tt_has_userptr(struct ttm_tt *ttm); 249 struct mm_struct *amdgpu_ttm_tt_get_usermm(struct ttm_tt *ttm); 250 bool amdgpu_ttm_tt_affect_userptr(struct ttm_tt *ttm, unsigned long start, 252 bool amdgpu_ttm_tt_userptr_invalidated(struct ttm_tt *ttm, 254 bool amdgpu_ttm_tt_is_userptr(struct ttm_tt *ttm); 255 bool amdgpu_ttm_tt_is_readonly(struct ttm_tt *ttm); 256 uint64_t amdgpu_ttm_tt_pde_flags(struct ttm_tt *ttm, struct ttm_resource *mem); 257 uint64_t amdgpu_ttm_tt_pte_flags(struct amdgpu_device *adev, struct ttm_tt *ttm,
|
| H A D | amdgpu_ttm.c | 49 #include <drm/ttm/ttm_tt.h> 70 struct ttm_tt *ttm, 73 struct ttm_tt *ttm); 732 struct ttm_tt ttm; 756 struct ttm_tt *ttm = bo->tbo.ttm; in amdgpu_ttm_tt_get_user_pages() 807 void amdgpu_ttm_tt_set_user_pages(struct ttm_tt *ttm, struct amdgpu_hmm_range *range) 821 struct ttm_tt *ttm) in amdgpu_ttm_tt_pin_userptr() 860 struct ttm_tt *ttm) in amdgpu_ttm_tt_unpin_userptr() 885 struct ttm_tt *ttm, uint64_t flags) in amdgpu_ttm_gart_bind_gfx9_mqd() 909 struct ttm_tt *tt in amdgpu_ttm_gart_bind() [all...] |
| /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_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()
|
| /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.c | 52 struct ttm_tt ttm; 184 struct ttm_tt *ttm, in i915_ttm_tt_shmem_populate() 243 static void i915_ttm_tt_shmem_unpopulate(struct ttm_tt *ttm) in i915_ttm_tt_shmem_unpopulate() 268 static struct ttm_tt *i915_ttm_tt_create(struct ttm_buffer_object *bo, in i915_ttm_tt_create() 319 struct ttm_tt *ttm, in i915_ttm_tt_populate() 330 static void i915_ttm_tt_unpopulate(struct ttm_device *bdev, struct ttm_tt *ttm) in i915_ttm_tt_unpopulate() 346 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()
|
| H A D | i915_gem_ttm_move.h | 16 struct ttm_tt;
|