/linux/include/drm/ttm/ |
H A D | ttm_resource.h | 42 struct ttm_resource_manager; 111 int (*alloc)(struct ttm_resource_manager *man, 125 void (*free)(struct ttm_resource_manager *man, 139 bool (*intersects)(struct ttm_resource_manager *man, 155 bool (*compatible)(struct ttm_resource_manager *man, 170 void (*debug)(struct ttm_resource_manager *man, 188 struct ttm_resource_manager { struct 320 struct ttm_resource_manager *man; 379 ttm_resource_manager_set_used(struct ttm_resource_manager *man, bool used) in ttm_resource_manager_set_used() 397 static inline bool ttm_resource_manager_used(struct ttm_resource_manager *man) in ttm_resource_manager_used() [all …]
|
H A D | ttm_bo.h | 51 struct ttm_resource_manager; 226 struct ttm_resource_manager *man, s64 target); 417 struct ttm_resource_manager *man, gfp_t gfp_flags, 422 struct ttm_resource_manager *man,
|
/linux/drivers/gpu/drm/ttm/tests/ |
H A D | ttm_mock_manager.c | 12 to_mock_mgr(struct ttm_resource_manager *man) in to_mock_mgr() 23 static int ttm_mock_manager_alloc(struct ttm_resource_manager *man, in ttm_mock_manager_alloc() 73 static void ttm_mock_manager_free(struct ttm_resource_manager *man, in ttm_mock_manager_free() 96 struct ttm_resource_manager *base; in ttm_mock_manager_init() 127 struct ttm_resource_manager *man; in ttm_mock_manager_fini() 148 static int ttm_bad_manager_alloc(struct ttm_resource_manager *man, in ttm_bad_manager_alloc() 156 static int ttm_busy_manager_alloc(struct ttm_resource_manager *man, in ttm_busy_manager_alloc() 164 static void ttm_bad_manager_free(struct ttm_resource_manager *man, in ttm_bad_manager_free() 169 static bool ttm_bad_manager_compatible(struct ttm_resource_manager *man, in ttm_bad_manager_compatible() 191 struct ttm_resource_manager *man; in ttm_bad_manager_init() [all …]
|
H A D | ttm_resource_test.c | 66 struct ttm_resource_manager *man; in ttm_init_test_manager() 114 struct ttm_resource_manager *man; in ttm_resource_init_basic() 157 struct ttm_resource_manager *man; in ttm_resource_init_pinned() 187 struct ttm_resource_manager *man; in ttm_resource_fini_basic() 208 struct ttm_resource_manager *man; in ttm_resource_manager_init_basic() 232 struct ttm_resource_manager *man; in ttm_resource_manager_usage_basic() 255 struct ttm_resource_manager *man; in ttm_resource_manager_set_used_basic() 267 struct ttm_resource_manager *man; in ttm_sys_man_alloc_basic() 292 struct ttm_resource_manager *man; in ttm_sys_man_free_basic()
|
H A D | ttm_mock_manager.h | 11 struct ttm_resource_manager man;
|
H A D | ttm_device_test.c | 22 struct ttm_resource_manager *ttm_sys_man; in ttm_device_init_basic() 78 struct ttm_resource_manager *man; in ttm_device_fini_basic()
|
/linux/drivers/gpu/drm/ttm/ |
H A D | ttm_range_manager.c | 47 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()
|
H A D | ttm_resource.c | 145 struct ttm_resource_manager *man; in ttm_lru_bulk_move_tail() 287 struct ttm_resource_manager *man; in ttm_resource_move_to_lru_tail() 306 struct ttm_resource_manager *man; in ttm_resource_init() 339 void ttm_resource_fini(struct ttm_resource_manager *man, in ttm_resource_fini() 355 struct ttm_resource_manager *man = in ttm_resource_alloc() 372 struct ttm_resource_manager *man; in ttm_resource_free() 404 struct ttm_resource_manager *man; in ttm_resource_intersects() 438 struct ttm_resource_manager *man; in ttm_resource_compatible() 478 void ttm_resource_manager_init(struct ttm_resource_manager *man, in ttm_resource_manager_init() 505 struct ttm_resource_manager *man) in ttm_resource_manager_evict_all() [all …]
|
H A D | ttm_sys_manager.c | 10 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()
|
H A D | ttm_bo_util.c | 147 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() 346 struct ttm_resource_manager *man = in ttm_bo_kmap_ttm() 617 struct ttm_resource_manager *from; in ttm_bo_move_pipeline_evict() 658 struct ttm_resource_manager *from = ttm_manager_type(bdev, bo->resource->mem_type); in ttm_bo_move_accel_cleanup() 659 struct ttm_resource_manager *man = ttm_manager_type(bdev, new_mem->mem_type); in ttm_bo_move_accel_cleanup() 692 struct ttm_resource_manager *man = ttm_manager_type(bdev, new_mem->mem_type); in ttm_bo_move_sync_cleanup() 860 struct ttm_resource_manager *man, s64 target) in ttm_lru_walk_for_evict()
|
H A D | ttm_device.c | 151 struct ttm_resource_manager *man; in ttm_device_swapout() 231 struct ttm_resource_manager *man; in ttm_device_fini() 283 struct ttm_resource_manager *man; in ttm_device_clear_dma_mappings()
|
H A D | ttm_bo.c | 53 struct ttm_resource_manager *man; in ttm_bo_mem_space_debug() 443 int ttm_bo_evict_first(struct ttm_device *bdev, struct ttm_resource_manager *man, in ttm_bo_evict_first() 543 struct ttm_resource_manager *man, in ttm_bo_evict_alloc() 630 struct ttm_resource_manager *man, in ttm_bo_add_move_fence() 692 struct ttm_resource_manager *man; in ttm_bo_alloc_resource() 1172 struct ttm_resource_manager *man, gfp_t gfp_flags, in ttm_bo_swapout()
|
/linux/drivers/gpu/drm/i915/ |
H A D | i915_ttm_buddy_manager.h | 15 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,
|
H A D | i915_ttm_buddy_manager.c | 18 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() 137 static void i915_ttm_buddy_man_free(struct ttm_resource_manager *man, in i915_ttm_buddy_man_free() 152 static bool i915_ttm_buddy_man_intersects(struct ttm_resource_manager *man, in i915_ttm_buddy_man_intersects() 190 static bool i915_ttm_buddy_man_compatible(struct ttm_resource_manager *man, in i915_ttm_buddy_man_compatible() 223 static void i915_ttm_buddy_man_debug(struct ttm_resource_manager *man, in i915_ttm_buddy_man_debug() 288 struct ttm_resource_manager *man; in i915_ttm_buddy_man_init() 334 struct ttm_resource_manager *man = ttm_manager_type(bdev, type); in i915_ttm_buddy_man_fini() 370 int i915_ttm_buddy_man_reserve(struct ttm_resource_manager *man, in i915_ttm_buddy_man_reserve() [all …]
|
H A D | intel_region_ttm.c | 110 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/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_gtt_mgr.c | 30 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() 215 static bool amdgpu_gtt_mgr_intersects(struct ttm_resource_manager *man, in amdgpu_gtt_mgr_intersects() 233 static bool amdgpu_gtt_mgr_compatible(struct ttm_resource_manager *man, in amdgpu_gtt_mgr_compatible() 249 static void amdgpu_gtt_mgr_debug(struct ttm_resource_manager *man, in amdgpu_gtt_mgr_debug() 278 struct ttm_resource_manager *man = &mgr->manager; in amdgpu_gtt_mgr_init() 307 struct ttm_resource_manager *man = &mgr->manager; in amdgpu_gtt_mgr_fini()
|
H A D | amdgpu_vram_mgr.c | 44 to_vram_mgr(struct ttm_resource_manager *man) in to_vram_mgr() 141 struct ttm_resource_manager *man = &adev->mman.vram_mgr.manager; in amdgpu_mem_info_vram_used_show() 295 static void amdgpu_vram_mgr_do_reserve(struct ttm_resource_manager *man) in amdgpu_vram_mgr_do_reserve() 399 static void amdgpu_dummy_vram_mgr_debug(struct ttm_resource_manager *man, in amdgpu_dummy_vram_mgr_debug() 405 static bool amdgpu_dummy_vram_mgr_compatible(struct ttm_resource_manager *man, in amdgpu_dummy_vram_mgr_compatible() 414 static bool amdgpu_dummy_vram_mgr_intersects(struct ttm_resource_manager *man, in amdgpu_dummy_vram_mgr_intersects() 423 static void amdgpu_dummy_vram_mgr_del(struct ttm_resource_manager *man, in amdgpu_dummy_vram_mgr_del() 429 static int amdgpu_dummy_vram_mgr_new(struct ttm_resource_manager *man, in amdgpu_dummy_vram_mgr_new() 448 static int amdgpu_vram_mgr_new(struct ttm_resource_manager *man, in amdgpu_vram_mgr_new() 637 static void amdgpu_vram_mgr_del(struct ttm_resource_manager *man, in amdgpu_vram_mgr_del() [all …]
|
H A D | amdgpu_vram_mgr.h | 30 struct ttm_resource_manager manager;
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_ttm_vram_mgr.h | 28 u64 xe_ttm_vram_get_avail(struct ttm_resource_manager *man); 29 u64 xe_ttm_vram_get_cpu_visible_size(struct ttm_resource_manager *man); 30 void xe_ttm_vram_get_used(struct ttm_resource_manager *man, 40 to_xe_ttm_vram_mgr(struct ttm_resource_manager *man) in to_xe_ttm_vram_mgr()
|
H A D | xe_ttm_sys_mgr.c | 29 static int xe_ttm_sys_mgr_new(struct ttm_resource_manager *man, in xe_ttm_sys_mgr_new() 64 static void xe_ttm_sys_mgr_del(struct ttm_resource_manager *man, in xe_ttm_sys_mgr_del() 73 static void xe_ttm_sys_mgr_debug(struct ttm_resource_manager *man, in xe_ttm_sys_mgr_debug() 91 struct ttm_resource_manager *man = &xe->mem.sys_mgr; in ttm_sys_mgr_fini() 106 struct ttm_resource_manager *man = &xe->mem.sys_mgr; in xe_ttm_sys_mgr_init()
|
H A D | xe_ttm_vram_mgr.c | 47 static int xe_ttm_vram_mgr_new(struct ttm_resource_manager *man, in xe_ttm_vram_mgr_new() 208 static void xe_ttm_vram_mgr_del(struct ttm_resource_manager *man, in xe_ttm_vram_mgr_del() 226 static void xe_ttm_vram_mgr_debug(struct ttm_resource_manager *man, in xe_ttm_vram_mgr_debug() 245 static bool xe_ttm_vram_mgr_intersects(struct ttm_resource_manager *man, in xe_ttm_vram_mgr_intersects() 275 static bool xe_ttm_vram_mgr_compatible(struct ttm_resource_manager *man, in xe_ttm_vram_mgr_compatible() 317 struct ttm_resource_manager *man = &mgr->manager; in ttm_vram_mgr_fini() 339 struct ttm_resource_manager *man = &mgr->manager; in __xe_ttm_vram_mgr_init() 464 u64 xe_ttm_vram_get_cpu_visible_size(struct ttm_resource_manager *man) in xe_ttm_vram_get_cpu_visible_size() 471 void xe_ttm_vram_get_used(struct ttm_resource_manager *man, in xe_ttm_vram_get_used() 482 u64 xe_ttm_vram_get_avail(struct ttm_resource_manager *man) in xe_ttm_vram_get_avail()
|
H A D | xe_ttm_stolen_mgr.c | 41 to_stolen_mgr(struct ttm_resource_manager *man) in to_stolen_mgr() 256 struct ttm_resource_manager *ttm_mgr = ttm_manager_type(&xe->ttm, XE_PL_STOLEN); in xe_ttm_stolen_io_offset() 322 struct ttm_resource_manager *ttm_mgr = ttm_manager_type(&xe->ttm, XE_PL_STOLEN); in xe_ttm_stolen_io_mem_reserve()
|
H A D | xe_ttm_vram_mgr_types.h | 21 struct ttm_resource_manager manager;
|
/linux/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_system_manager.c | 35 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()
|
/linux/drivers/gpu/drm/nouveau/ |
H A D | nouveau_ttm.c | 39 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()
|