Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/include/drm/ttm/
Dttm_resource.h36 struct ttm_resource_manager;
70 int (*alloc)(struct ttm_resource_manager *man,
85 void (*free)(struct ttm_resource_manager *man,
98 void (*debug)(struct ttm_resource_manager *man,
119 struct ttm_resource_manager { struct
190 ttm_resource_manager_set_used(struct ttm_resource_manager *man, bool used) in ttm_resource_manager_set_used()
204 static inline bool ttm_resource_manager_used(struct ttm_resource_manager *man) in ttm_resource_manager_used()
217 ttm_resource_manager_cleanup(struct ttm_resource_manager *man) in ttm_resource_manager_cleanup()
228 void ttm_resource_manager_init(struct ttm_resource_manager *man,
232 struct ttm_resource_manager *man);
[all …]
Dttm_bo_driver.h326 struct ttm_resource_manager sysman;
327 struct ttm_resource_manager *man_drv[TTM_NUM_MEM_TYPES];
355 static inline struct ttm_resource_manager *ttm_manager_type(struct ttm_bo_device *bdev, in ttm_manager_type()
363 struct ttm_resource_manager *manager) in ttm_set_driver_manager()
Dttm_bo_api.h610 struct ttm_resource_manager *man,
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_gtt_mgr.c27 static inline struct amdgpu_gtt_mgr *to_gtt_mgr(struct ttm_resource_manager *man) in to_gtt_mgr()
50 struct ttm_resource_manager *man = ttm_manager_type(&adev->mman.bdev, TTM_PL_TT); in amdgpu_mem_info_gtt_total_show()
69 struct ttm_resource_manager *man = ttm_manager_type(&adev->mman.bdev, TTM_PL_TT); in amdgpu_mem_info_gtt_used_show()
92 struct ttm_resource_manager *man = &mgr->manager; in amdgpu_gtt_mgr_init()
134 struct ttm_resource_manager *man = &mgr->manager; in amdgpu_gtt_mgr_fini()
176 static int amdgpu_gtt_mgr_new(struct ttm_resource_manager *man, in amdgpu_gtt_mgr_new()
239 static void amdgpu_gtt_mgr_del(struct ttm_resource_manager *man, in amdgpu_gtt_mgr_del()
262 uint64_t amdgpu_gtt_mgr_usage(struct ttm_resource_manager *man) in amdgpu_gtt_mgr_usage()
270 int amdgpu_gtt_mgr_recover(struct ttm_resource_manager *man) in amdgpu_gtt_mgr_recover()
297 static void amdgpu_gtt_mgr_debug(struct ttm_resource_manager *man, in amdgpu_gtt_mgr_debug()
Damdgpu_ttm.h41 struct ttm_resource_manager manager;
49 struct ttm_resource_manager manager;
107 uint64_t amdgpu_gtt_mgr_usage(struct ttm_resource_manager *man);
108 int amdgpu_gtt_mgr_recover(struct ttm_resource_manager *man);
120 uint64_t amdgpu_vram_mgr_usage(struct ttm_resource_manager *man);
121 uint64_t amdgpu_vram_mgr_vis_usage(struct ttm_resource_manager *man);
Damdgpu_vram_mgr.c31 static inline struct amdgpu_vram_mgr *to_vram_mgr(struct ttm_resource_manager *man) in to_vram_mgr()
88 struct ttm_resource_manager *man = ttm_manager_type(&adev->mman.bdev, TTM_PL_VRAM); in amdgpu_mem_info_vram_used_show()
107 struct ttm_resource_manager *man = ttm_manager_type(&adev->mman.bdev, TTM_PL_VRAM); in amdgpu_mem_info_vis_vram_used_show()
178 struct ttm_resource_manager *man = &mgr->manager; in amdgpu_vram_mgr_init()
209 struct ttm_resource_manager *man = &mgr->manager; in amdgpu_vram_mgr_fini()
309 static int amdgpu_vram_mgr_new(struct ttm_resource_manager *man, in amdgpu_vram_mgr_new()
427 static void amdgpu_vram_mgr_del(struct ttm_resource_manager *man, in amdgpu_vram_mgr_del()
561 uint64_t amdgpu_vram_mgr_usage(struct ttm_resource_manager *man) in amdgpu_vram_mgr_usage()
575 uint64_t amdgpu_vram_mgr_vis_usage(struct ttm_resource_manager *man) in amdgpu_vram_mgr_vis_usage()
590 static void amdgpu_vram_mgr_debug(struct ttm_resource_manager *man, in amdgpu_vram_mgr_debug()
Damdgpu_amdkfd.c535 struct ttm_resource_manager *vram_man = ttm_manager_type(&adev->mman.bdev, TTM_PL_VRAM); in amdgpu_amdkfd_get_vram_usage()
Damdgpu_virt.c515 struct ttm_resource_manager *vram_man = ttm_manager_type(&adev->mman.bdev, TTM_PL_VRAM); in amdgpu_virt_write_vf2pf_data()
Damdgpu_kms.c637 struct ttm_resource_manager *vram_man = in amdgpu_info_ioctl()
639 struct ttm_resource_manager *gtt_man = in amdgpu_info_ioctl()
Damdgpu_ttm.c2059 struct ttm_resource_manager *man = ttm_manager_type(&adev->mman.bdev, TTM_PL_VRAM); in amdgpu_ttm_set_buffer_funcs_status()
2281 struct ttm_resource_manager *man = ttm_manager_type(&adev->mman.bdev, ttm_pl); in amdgpu_mm_dump_table()
Damdgpu_object.c454 struct ttm_resource_manager *man = NULL; in amdgpu_bo_validate_size()
Damdgpu_cs.c302 struct ttm_resource_manager *vram_man = ttm_manager_type(&adev->mman.bdev, TTM_PL_VRAM); in amdgpu_cs_get_threshold_for_moves()
/kernel/linux/linux-5.10/drivers/gpu/drm/ttm/
Dttm_range_manager.c47 struct ttm_resource_manager manager;
52 static inline struct ttm_range_manager *to_range_manager(struct ttm_resource_manager *man) in to_range_manager()
57 static int ttm_range_man_alloc(struct ttm_resource_manager *man, in ttm_range_man_alloc()
98 static void ttm_range_man_free(struct ttm_resource_manager *man, in ttm_range_man_free()
119 struct ttm_resource_manager *man; in ttm_range_man_init()
145 struct ttm_resource_manager *man = ttm_manager_type(bdev, type); in ttm_range_man_fini()
171 static void ttm_range_man_debug(struct ttm_resource_manager *man, in ttm_range_man_debug()
Dttm_resource.c32 struct ttm_resource_manager *man = in ttm_resource_alloc()
44 struct ttm_resource_manager *man = in ttm_resource_free()
63 void ttm_resource_manager_init(struct ttm_resource_manager *man, in ttm_resource_manager_init()
87 struct ttm_resource_manager *man) in ttm_resource_manager_force_list_clean()
137 void ttm_resource_manager_debug(struct ttm_resource_manager *man, in ttm_resource_manager_debug()
Dttm_bo.c71 struct ttm_resource_manager *man; in ttm_bo_mem_space_debug()
116 struct ttm_resource_manager *man; in ttm_bo_add_mem_to_lru()
191 struct ttm_resource_manager *man; in ttm_bo_bulk_move_lru_tail()
206 struct ttm_resource_manager *man; in ttm_bo_bulk_move_lru_tail()
240 struct ttm_resource_manager *old_man = ttm_manager_type(bdev, bo->mem.mem_type); in ttm_bo_handle_move_mem()
241 struct ttm_resource_manager *new_man = ttm_manager_type(bdev, mem->mem_type); in ttm_bo_handle_move_mem()
726 struct ttm_resource_manager *man, in ttm_mem_evict_first()
803 struct ttm_resource_manager *man, in ttm_bo_add_move_fence()
845 struct ttm_resource_manager *man = ttm_manager_type(bdev, mem->mem_type); in ttm_bo_mem_force_space()
865 static uint32_t ttm_bo_select_caching(struct ttm_resource_manager *man, in ttm_bo_select_caching()
[all …]
Dttm_bo_util.c222 struct ttm_resource_manager *man = ttm_manager_type(bdev, new_mem->mem_type); in ttm_bo_move_memcpy()
587 struct ttm_resource_manager *from = ttm_manager_type(bdev, bo->mem.mem_type); in ttm_bo_move_pipeline_evict()
613 struct ttm_resource_manager *from = ttm_manager_type(bdev, bo->mem.mem_type); in ttm_bo_move_accel_cleanup()
614 struct ttm_resource_manager *man = ttm_manager_type(bdev, new_mem->mem_type); in ttm_bo_move_accel_cleanup()
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/
Dvmwgfx_gmrid_manager.c40 struct ttm_resource_manager manager;
48 static struct vmwgfx_gmrid_man *to_gmrid_manager(struct ttm_resource_manager *man) in to_gmrid_manager()
53 static int vmw_gmrid_man_get_node(struct ttm_resource_manager *man, in vmw_gmrid_man_get_node()
87 static void vmw_gmrid_man_put_node(struct ttm_resource_manager *man, in vmw_gmrid_man_put_node()
105 struct ttm_resource_manager *man; in vmw_gmrid_man_init()
141 struct ttm_resource_manager *man = ttm_manager_type(&dev_priv->bdev, type); in vmw_gmrid_man_fini()
Dvmwgfx_thp.c19 struct ttm_resource_manager manager;
24 static struct vmw_thp_manager *to_thp_manager(struct ttm_resource_manager *man) in to_thp_manager()
49 static int vmw_thp_get_node(struct ttm_resource_manager *man, in vmw_thp_get_node()
111 static void vmw_thp_put_node(struct ttm_resource_manager *man, in vmw_thp_put_node()
148 struct ttm_resource_manager *man = ttm_manager_type(&dev_priv->bdev, TTM_PL_VRAM); in vmw_thp_fini()
167 static void vmw_thp_debug(struct ttm_resource_manager *man, in vmw_thp_debug()
Dvmwgfx_drv.c1189 struct ttm_resource_manager *man = ttm_manager_type(&dev_priv->bdev, TTM_PL_VRAM); in __vmw_svga_enable()
1220 struct ttm_resource_manager *man = ttm_manager_type(&dev_priv->bdev, TTM_PL_VRAM); in __vmw_svga_disable()
1241 struct ttm_resource_manager *man = ttm_manager_type(&dev_priv->bdev, TTM_PL_VRAM); in vmw_svga_disable()
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/
Dnouveau_ttm.c35 nouveau_manager_del(struct ttm_resource_manager *man, struct ttm_resource *reg) in nouveau_manager_del()
41 nouveau_vram_manager_new(struct ttm_resource_manager *man, in nouveau_vram_manager_new()
72 nouveau_gart_manager_new(struct ttm_resource_manager *man, in nouveau_gart_manager_new()
95 nv04_gart_manager_new(struct ttm_resource_manager *man, in nv04_gart_manager_new()
198 struct ttm_resource_manager *man = kzalloc(sizeof(*man), GFP_KERNEL); in nouveau_ttm_init_vram()
219 struct ttm_resource_manager *man = ttm_manager_type(&drm->ttm.bdev, TTM_PL_VRAM); in nouveau_ttm_fini_vram()
234 struct ttm_resource_manager *man; in nouveau_ttm_init_gtt()
261 struct ttm_resource_manager *man = ttm_manager_type(&drm->ttm.bdev, TTM_PL_TT); in nouveau_ttm_fini_gtt()
/kernel/linux/linux-5.10/drivers/gpu/drm/qxl/
Dqxl_ttm.c260 struct ttm_resource_manager *man = (struct ttm_resource_manager *)node->info_ent->data; in qxl_mm_dump_table()
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Dradeon_ttm.c898 struct ttm_resource_manager *man; in radeon_ttm_set_active_vram_size()
957 struct ttm_resource_manager *man = ttm_manager_type(&rdev->mman.bdev, ttm_pl); in radeon_mm_dump_table()
Dradeon_gem.c227 struct ttm_resource_manager *man; in radeon_gem_info_ioctl()
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_gem_vram_helper.c1020 struct ttm_resource_manager *man = ttm_manager_type(&vmm->bdev, TTM_PL_VRAM); in drm_vram_mm_debugfs()