Lines Matching full:man

30 to_gtt_mgr(struct ttm_resource_manager *man)  in to_gtt_mgr()  argument
32 return container_of(man, struct amdgpu_gtt_mgr, manager); in to_gtt_mgr()
49 struct ttm_resource_manager *man; in amdgpu_mem_info_gtt_total_show() local
51 man = ttm_manager_type(&adev->mman.bdev, TTM_PL_TT); in amdgpu_mem_info_gtt_total_show()
52 return sysfs_emit(buf, "%llu\n", man->size); 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() local
71 return sysfs_emit(buf, "%llu\n", ttm_resource_manager_usage(man)); in amdgpu_mem_info_gtt_used_show()
106 * @man: TTM memory type manager
113 static int amdgpu_gtt_mgr_new(struct ttm_resource_manager *man, in amdgpu_gtt_mgr_new() argument
118 struct amdgpu_gtt_mgr *mgr = to_gtt_mgr(man); in amdgpu_gtt_mgr_new()
129 ttm_resource_manager_usage(man) > man->size) { in amdgpu_gtt_mgr_new()
155 ttm_resource_fini(man, &node->base); in amdgpu_gtt_mgr_new()
163 * @man: TTM memory type manager
168 static void amdgpu_gtt_mgr_del(struct ttm_resource_manager *man, in amdgpu_gtt_mgr_del() argument
172 struct amdgpu_gtt_mgr *mgr = to_gtt_mgr(man); in amdgpu_gtt_mgr_del()
179 ttm_resource_fini(man, res); in amdgpu_gtt_mgr_del()
210 * @man: Our manager object
217 static bool amdgpu_gtt_mgr_intersects(struct ttm_resource_manager *man, in amdgpu_gtt_mgr_intersects() argument
228 * @man: Our manager object
235 static bool amdgpu_gtt_mgr_compatible(struct ttm_resource_manager *man, in amdgpu_gtt_mgr_compatible() argument
246 * @man: TTM memory type manager
251 static void amdgpu_gtt_mgr_debug(struct ttm_resource_manager *man, in amdgpu_gtt_mgr_debug() argument
254 struct amdgpu_gtt_mgr *mgr = to_gtt_mgr(man); in amdgpu_gtt_mgr_debug()
280 struct ttm_resource_manager *man = &mgr->manager; in amdgpu_gtt_mgr_init() local
283 man->use_tt = true; in amdgpu_gtt_mgr_init()
284 man->func = &amdgpu_gtt_mgr_func; in amdgpu_gtt_mgr_init()
286 ttm_resource_manager_init(man, &adev->mman.bdev, gtt_size); in amdgpu_gtt_mgr_init()
294 ttm_resource_manager_set_used(man, true); in amdgpu_gtt_mgr_init()
309 struct ttm_resource_manager *man = &mgr->manager; in amdgpu_gtt_mgr_fini() local
312 ttm_resource_manager_set_used(man, false); in amdgpu_gtt_mgr_fini()
314 ret = ttm_resource_manager_evict_all(&adev->mman.bdev, man); in amdgpu_gtt_mgr_fini()
322 ttm_resource_manager_cleanup(man); in amdgpu_gtt_mgr_fini()