Searched refs:sa_manager (Results 1 – 6 of 6) sorted by relevance
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_suballoc.c | 76 sa_manager->size = size; in drm_suballoc_manager_init() 77 sa_manager->align = align; in drm_suballoc_manager_init() 78 sa_manager->hole = &sa_manager->olist; in drm_suballoc_manager_init() 97 if (!sa_manager->size) in drm_suballoc_manager_fini() 101 sa_manager->hole = &sa_manager->olist; in drm_suballoc_manager_fini() 110 sa_manager->size = 0; in drm_suballoc_manager_fini() 131 if (sa_manager->hole->next == &sa_manager->olist) in drm_suballoc_try_free() 159 return sa_manager->size; in drm_suballoc_hole_eoffset() 233 if (sa_manager->hole->next == &sa_manager->olist) { in drm_suballoc_next_hole() 235 sa_manager->hole = &sa_manager->olist; in drm_suballoc_next_hole() [all …]
|
/openbmc/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_sa.c | 61 sa_manager->domain = domain; in radeon_sa_bo_manager_init() 72 radeon_bo_unref(&sa_manager->bo); in radeon_sa_bo_manager_fini() 80 if (sa_manager->bo == NULL) { in radeon_sa_bo_manager_start() 91 r = radeon_bo_pin(sa_manager->bo, sa_manager->domain, &sa_manager->gpu_addr); in radeon_sa_bo_manager_start() 93 radeon_bo_unreserve(sa_manager->bo); in radeon_sa_bo_manager_start() 97 r = radeon_bo_kmap(sa_manager->bo, &sa_manager->cpu_ptr); in radeon_sa_bo_manager_start() 98 radeon_bo_unreserve(sa_manager->bo); in radeon_sa_bo_manager_start() 107 if (sa_manager->bo == NULL) { in radeon_sa_bo_manager_suspend() 114 radeon_bo_kunmap(sa_manager->bo); in radeon_sa_bo_manager_suspend() 115 radeon_bo_unpin(sa_manager->bo); in radeon_sa_bo_manager_suspend() [all …]
|
H A D | radeon_object.h | 191 struct radeon_sa_manager *sa_manager, 195 struct radeon_sa_manager *sa_manager); 197 struct radeon_sa_manager *sa_manager); 199 struct radeon_sa_manager *sa_manager); 200 extern int radeon_sa_bo_new(struct radeon_sa_manager *sa_manager, 206 extern void radeon_sa_bo_dump_debug_info(struct radeon_sa_manager *sa_manager,
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_sa.c | 48 struct amdgpu_sa_manager *sa_manager, in amdgpu_sa_bo_manager_init() argument 54 &sa_manager->bo, &sa_manager->gpu_addr, in amdgpu_sa_bo_manager_init() 55 &sa_manager->cpu_ptr); in amdgpu_sa_bo_manager_init() 61 memset(sa_manager->cpu_ptr, 0, size); in amdgpu_sa_bo_manager_init() 62 drm_suballoc_manager_init(&sa_manager->base, size, suballoc_align); in amdgpu_sa_bo_manager_init() 67 struct amdgpu_sa_manager *sa_manager) in amdgpu_sa_bo_manager_fini() argument 69 if (sa_manager->bo == NULL) { in amdgpu_sa_bo_manager_fini() 74 drm_suballoc_manager_fini(&sa_manager->base); in amdgpu_sa_bo_manager_fini() 76 amdgpu_bo_free_kernel(&sa_manager->bo, &sa_manager->gpu_addr, &sa_manager->cpu_ptr); in amdgpu_sa_bo_manager_fini() 79 int amdgpu_sa_bo_new(struct amdgpu_sa_manager *sa_manager, in amdgpu_sa_bo_new() argument [all …]
|
H A D | amdgpu_object.h | 374 struct amdgpu_sa_manager *sa_manager, 377 struct amdgpu_sa_manager *sa_manager); 379 struct amdgpu_sa_manager *sa_manager); 380 int amdgpu_sa_bo_new(struct amdgpu_sa_manager *sa_manager, 387 void amdgpu_sa_bo_dump_debug_info(struct amdgpu_sa_manager *sa_manager,
|
/openbmc/linux/include/drm/ |
H A D | drm_suballoc.h | 51 void drm_suballoc_manager_init(struct drm_suballoc_manager *sa_manager, 54 void drm_suballoc_manager_fini(struct drm_suballoc_manager *sa_manager); 57 drm_suballoc_new(struct drm_suballoc_manager *sa_manager, size_t size, 96 void drm_suballoc_dump_debug_info(struct drm_suballoc_manager *sa_manager, 101 drm_suballoc_dump_debug_info(struct drm_suballoc_manager *sa_manager, in drm_suballoc_dump_debug_info() argument
|