Lines Matching refs:hole
61 sa_manager->hole = &sa_manager->olist; in amdgpu_sa_bo_manager_init()
88 sa_manager->hole = &sa_manager->olist, in amdgpu_sa_bo_manager_fini()
105 if (sa_manager->hole == &sa_bo->olist) { in amdgpu_sa_bo_remove_locked()
106 sa_manager->hole = sa_bo->olist.prev; in amdgpu_sa_bo_remove_locked()
118 if (sa_manager->hole->next == &sa_manager->olist) in amdgpu_sa_bo_try_free()
121 sa_bo = list_entry(sa_manager->hole->next, struct amdgpu_sa_bo, olist); in amdgpu_sa_bo_try_free()
133 struct list_head *hole = sa_manager->hole; in amdgpu_sa_bo_hole_soffset() local
135 if (hole != &sa_manager->olist) { in amdgpu_sa_bo_hole_soffset()
136 return list_entry(hole, struct amdgpu_sa_bo, olist)->eoffset; in amdgpu_sa_bo_hole_soffset()
143 struct list_head *hole = sa_manager->hole; in amdgpu_sa_bo_hole_eoffset() local
145 if (hole->next != &sa_manager->olist) { in amdgpu_sa_bo_hole_eoffset()
146 return list_entry(hole->next, struct amdgpu_sa_bo, olist)->soffset; in amdgpu_sa_bo_hole_eoffset()
167 list_add(&sa_bo->olist, sa_manager->hole); in amdgpu_sa_bo_try_alloc()
169 sa_manager->hole = &sa_bo->olist; in amdgpu_sa_bo_try_alloc()
214 if (sa_manager->hole->next == &sa_manager->olist) { in amdgpu_sa_bo_next_hole()
216 sa_manager->hole = &sa_manager->olist; in amdgpu_sa_bo_next_hole()
265 sa_manager->hole = best_bo->olist.prev; in amdgpu_sa_bo_next_hole()
382 if (&i->olist == sa_manager->hole) { in amdgpu_sa_bo_dump_debug_info()