Home
last modified time | relevance | path

Searched refs:ttm_resource_manager (Results 1 – 25 of 40) sorted by relevance

12

/linux-6.6.21/include/drm/ttm/
Dttm_resource.h42 struct ttm_resource_manager;
74 int (*alloc)(struct ttm_resource_manager *man,
88 void (*free)(struct ttm_resource_manager *man,
102 bool (*intersects)(struct ttm_resource_manager *man,
118 bool (*compatible)(struct ttm_resource_manager *man,
133 void (*debug)(struct ttm_resource_manager *man,
151 struct ttm_resource_manager { struct
308 ttm_resource_manager_set_used(struct ttm_resource_manager *man, bool used) in ttm_resource_manager_set_used()
326 static inline bool ttm_resource_manager_used(struct ttm_resource_manager *man) in ttm_resource_manager_used()
339 ttm_resource_manager_cleanup(struct ttm_resource_manager *man) in ttm_resource_manager_cleanup()
[all …]
Dttm_device.h232 struct ttm_resource_manager sysman;
237 struct ttm_resource_manager *man_drv[TTM_NUM_MEM_TYPES];
275 static inline struct ttm_resource_manager *
284 struct ttm_resource_manager *manager) in ttm_set_driver_manager()
Dttm_bo.h51 struct ttm_resource_manager;
381 struct ttm_resource_manager *man,
/linux-6.6.21/drivers/gpu/drm/ttm/
Dttm_range_manager.c47 struct ttm_resource_manager manager;
53 to_range_manager(struct ttm_resource_manager *man) in to_range_manager()
58 static int ttm_range_man_alloc(struct ttm_resource_manager *man, in ttm_range_man_alloc()
102 static void ttm_range_man_free(struct ttm_resource_manager *man, in ttm_range_man_free()
116 static bool ttm_range_man_intersects(struct ttm_resource_manager *man, in ttm_range_man_intersects()
132 static bool ttm_range_man_compatible(struct ttm_resource_manager *man, in ttm_range_man_compatible()
147 static void ttm_range_man_debug(struct ttm_resource_manager *man, in ttm_range_man_debug()
182 struct ttm_resource_manager *man; in ttm_range_man_init_nocheck()
217 struct ttm_resource_manager *man = ttm_manager_type(bdev, type); in ttm_range_man_fini_nocheck()
Dttm_resource.c60 struct ttm_resource_manager *man; in ttm_lru_bulk_move_tail()
162 struct ttm_resource_manager *man; in ttm_resource_move_to_lru_tail()
181 struct ttm_resource_manager *man; in ttm_resource_init()
214 void ttm_resource_fini(struct ttm_resource_manager *man, in ttm_resource_fini()
230 struct ttm_resource_manager *man = in ttm_resource_alloc()
246 struct ttm_resource_manager *man; in ttm_resource_free()
278 struct ttm_resource_manager *man; in ttm_resource_intersects()
307 struct ttm_resource_manager *man; in ttm_resource_compatible()
385 void ttm_resource_manager_init(struct ttm_resource_manager *man, in ttm_resource_manager_init()
412 struct ttm_resource_manager *man) in ttm_resource_manager_evict_all()
[all …]
Dttm_sys_manager.c10 static int ttm_sys_man_alloc(struct ttm_resource_manager *man, in ttm_sys_man_alloc()
23 static void ttm_sys_man_free(struct ttm_resource_manager *man, in ttm_sys_man_free()
37 struct ttm_resource_manager *man = &bdev->sysman; in ttm_sys_man_init()
Dttm_bo_util.c147 struct ttm_resource_manager *dst_man = in ttm_bo_move_memcpy()
151 struct ttm_resource_manager *src_man; in ttm_bo_move_memcpy()
293 struct ttm_resource_manager *man; in ttm_io_prot()
608 struct ttm_resource_manager *from; in ttm_bo_move_pipeline_evict()
649 struct ttm_resource_manager *from = ttm_manager_type(bdev, bo->resource->mem_type); in ttm_bo_move_accel_cleanup()
650 struct ttm_resource_manager *man = ttm_manager_type(bdev, new_mem->mem_type); in ttm_bo_move_accel_cleanup()
683 struct ttm_resource_manager *man = ttm_manager_type(bdev, new_mem->mem_type); in ttm_bo_move_sync_cleanup()
Dttm_device.c145 struct ttm_resource_manager *man; in ttm_device_swapout()
232 struct ttm_resource_manager *man; in ttm_device_fini()
284 struct ttm_resource_manager *man; in ttm_device_clear_dma_mappings()
Dttm_bo.c53 struct ttm_resource_manager *man; in ttm_bo_mem_space_debug()
590 struct ttm_resource_manager *man, in ttm_mem_evict_first()
695 struct ttm_resource_manager *man, in ttm_bo_add_move_fence()
732 struct ttm_resource_manager *man; in ttm_bo_mem_force_space()
786 struct ttm_resource_manager *man; in ttm_bo_mem_space()
812 struct ttm_resource_manager *man; in ttm_bo_mem_space()
/linux-6.6.21/drivers/gpu/drm/i915/
Di915_ttm_buddy_manager.h15 struct ttm_resource_manager;
59 int i915_ttm_buddy_man_reserve(struct ttm_resource_manager *man,
62 u64 i915_ttm_buddy_man_visible_size(struct ttm_resource_manager *man);
64 void i915_ttm_buddy_man_avail(struct ttm_resource_manager *man,
68 void i915_ttm_buddy_man_force_visible_size(struct ttm_resource_manager *man,
Di915_ttm_buddy_manager.c18 struct ttm_resource_manager manager;
29 to_buddy_manager(struct ttm_resource_manager *man) in to_buddy_manager()
34 static int i915_ttm_buddy_man_alloc(struct ttm_resource_manager *man, in i915_ttm_buddy_man_alloc()
154 static void i915_ttm_buddy_man_free(struct ttm_resource_manager *man, in i915_ttm_buddy_man_free()
169 static bool i915_ttm_buddy_man_intersects(struct ttm_resource_manager *man, in i915_ttm_buddy_man_intersects()
207 static bool i915_ttm_buddy_man_compatible(struct ttm_resource_manager *man, in i915_ttm_buddy_man_compatible()
240 static void i915_ttm_buddy_man_debug(struct ttm_resource_manager *man, in i915_ttm_buddy_man_debug()
305 struct ttm_resource_manager *man; in i915_ttm_buddy_man_init()
351 struct ttm_resource_manager *man = ttm_manager_type(bdev, type); in i915_ttm_buddy_man_fini()
387 int i915_ttm_buddy_man_reserve(struct ttm_resource_manager *man, in i915_ttm_buddy_man_reserve()
[all …]
Dintel_region_ttm.c110 struct ttm_resource_manager *man = mem->region_private; in intel_region_ttm_fini()
203 struct ttm_resource_manager *man = mem->region_private; in intel_region_ttm_resource_alloc()
258 struct ttm_resource_manager *man = mem->region_private; in intel_region_ttm_resource_free()
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/
Damdgpu_gtt_mgr.c30 to_gtt_mgr(struct ttm_resource_manager *man) in to_gtt_mgr()
49 struct ttm_resource_manager *man; in amdgpu_mem_info_gtt_total_show()
69 struct ttm_resource_manager *man = &adev->mman.gtt_mgr.manager; in amdgpu_mem_info_gtt_used_show()
113 static int amdgpu_gtt_mgr_new(struct ttm_resource_manager *man, in amdgpu_gtt_mgr_new()
168 static void amdgpu_gtt_mgr_del(struct ttm_resource_manager *man, in amdgpu_gtt_mgr_del()
217 static bool amdgpu_gtt_mgr_intersects(struct ttm_resource_manager *man, in amdgpu_gtt_mgr_intersects()
235 static bool amdgpu_gtt_mgr_compatible(struct ttm_resource_manager *man, in amdgpu_gtt_mgr_compatible()
251 static void amdgpu_gtt_mgr_debug(struct ttm_resource_manager *man, in amdgpu_gtt_mgr_debug()
280 struct ttm_resource_manager *man = &mgr->manager; in amdgpu_gtt_mgr_init()
309 struct ttm_resource_manager *man = &mgr->manager; in amdgpu_gtt_mgr_fini()
Damdgpu_preempt_mgr.c42 struct ttm_resource_manager *man = &adev->mman.preempt_mgr; in mem_info_preempt_used_show()
59 static int amdgpu_preempt_mgr_new(struct ttm_resource_manager *man, in amdgpu_preempt_mgr_new()
81 static void amdgpu_preempt_mgr_del(struct ttm_resource_manager *man, in amdgpu_preempt_mgr_del()
102 struct ttm_resource_manager *man = &adev->mman.preempt_mgr; in amdgpu_preempt_mgr_init()
131 struct ttm_resource_manager *man = &adev->mman.preempt_mgr; in amdgpu_preempt_mgr_fini()
Damdgpu_vram_mgr.c42 to_vram_mgr(struct ttm_resource_manager *man) in to_vram_mgr()
130 struct ttm_resource_manager *man = &adev->mman.vram_mgr.manager; in amdgpu_mem_info_vram_used_show()
269 static void amdgpu_vram_mgr_do_reserve(struct ttm_resource_manager *man) in amdgpu_vram_mgr_do_reserve()
373 static void amdgpu_dummy_vram_mgr_debug(struct ttm_resource_manager *man, in amdgpu_dummy_vram_mgr_debug()
379 static bool amdgpu_dummy_vram_mgr_compatible(struct ttm_resource_manager *man, in amdgpu_dummy_vram_mgr_compatible()
388 static bool amdgpu_dummy_vram_mgr_intersects(struct ttm_resource_manager *man, in amdgpu_dummy_vram_mgr_intersects()
397 static void amdgpu_dummy_vram_mgr_del(struct ttm_resource_manager *man, in amdgpu_dummy_vram_mgr_del()
403 static int amdgpu_dummy_vram_mgr_new(struct ttm_resource_manager *man, in amdgpu_dummy_vram_mgr_new()
422 static int amdgpu_vram_mgr_new(struct ttm_resource_manager *man, in amdgpu_vram_mgr_new()
615 static void amdgpu_vram_mgr_del(struct ttm_resource_manager *man, in amdgpu_vram_mgr_del()
[all …]
Damdgpu_ttm.h49 struct ttm_resource_manager manager;
73 struct ttm_resource_manager preempt_mgr;
124 uint64_t amdgpu_preempt_mgr_usage(struct ttm_resource_manager *man);
Damdgpu_vram_mgr.h30 struct ttm_resource_manager manager;
/linux-6.6.21/drivers/gpu/drm/vmwgfx/
Dvmwgfx_gmrid_manager.c38 struct ttm_resource_manager manager;
47 static struct vmwgfx_gmrid_man *to_gmrid_manager(struct ttm_resource_manager *man) in to_gmrid_manager()
52 static int vmw_gmrid_man_get_node(struct ttm_resource_manager *man, in vmw_gmrid_man_get_node()
124 static void vmw_gmrid_man_put_node(struct ttm_resource_manager *man, in vmw_gmrid_man_put_node()
137 static void vmw_gmrid_man_debug(struct ttm_resource_manager *man, in vmw_gmrid_man_debug()
153 struct ttm_resource_manager *man; in vmw_gmrid_man_init()
189 struct ttm_resource_manager *man = ttm_manager_type(&dev_priv->bdev, type); in vmw_gmrid_man_fini()
Dvmwgfx_system_manager.c35 static int vmw_sys_man_alloc(struct ttm_resource_manager *man, in vmw_sys_man_alloc()
48 static void vmw_sys_man_free(struct ttm_resource_manager *man, in vmw_sys_man_free()
63 struct ttm_resource_manager *man = in vmw_sys_man_init()
80 struct ttm_resource_manager *man = ttm_manager_type(&dev_priv->bdev, in vmw_sys_man_fini()
Dvmwgfx_ttm_buffer.c518 struct ttm_resource_manager *new_man; in vmw_move()
519 struct ttm_resource_manager *old_man = NULL; in vmw_move()
/linux-6.6.21/drivers/gpu/drm/nouveau/
Dnouveau_ttm.c39 nouveau_manager_del(struct ttm_resource_manager *man, in nouveau_manager_del()
46 nouveau_manager_intersects(struct ttm_resource_manager *man, in nouveau_manager_intersects()
55 nouveau_manager_compatible(struct ttm_resource_manager *man, in nouveau_manager_compatible()
64 nouveau_vram_manager_new(struct ttm_resource_manager *man, in nouveau_vram_manager_new()
99 nouveau_gart_manager_new(struct ttm_resource_manager *man, in nouveau_gart_manager_new()
125 nv04_gart_manager_new(struct ttm_resource_manager *man, in nv04_gart_manager_new()
184 struct ttm_resource_manager *man = kzalloc(sizeof(*man), GFP_KERNEL); in nouveau_ttm_init_vram()
205 struct ttm_resource_manager *man = ttm_manager_type(&drm->ttm.bdev, TTM_PL_VRAM); in nouveau_ttm_fini_vram()
220 struct ttm_resource_manager *man; in nouveau_ttm_init_gtt()
247 struct ttm_resource_manager *man = ttm_manager_type(&drm->ttm.bdev, TTM_PL_TT); in nouveau_ttm_fini_gtt()
Dnouveau_mem.h26 void nouveau_mem_del(struct ttm_resource_manager *man,
/linux-6.6.21/drivers/gpu/drm/ttm/tests/
Dttm_device_test.c22 struct ttm_resource_manager *ttm_sys_man; in ttm_device_init_basic()
78 struct ttm_resource_manager *man; in ttm_device_fini_basic()
/linux-6.6.21/drivers/gpu/drm/loongson/
Dlsdc_ttm.c412 struct ttm_resource_manager *man; in lsdc_bo_evict_vram()
585 struct ttm_resource_manager *vram_man; in lsdc_ttm_debugfs_init()
586 struct ttm_resource_manager *gtt_man; in lsdc_ttm_debugfs_init()
/linux-6.6.21/drivers/gpu/drm/qxl/
Dqxl_object.c403 struct ttm_resource_manager *man; in qxl_surf_evict()
411 struct ttm_resource_manager *man; in qxl_vram_evict()

12