Lines Matching refs:hole
61 sa_manager->hole = &sa_manager->olist; in amdgpu_sa_bo_manager_init()
83 sa_manager->hole = &sa_manager->olist, in amdgpu_sa_bo_manager_fini()
145 if (sa_manager->hole == &sa_bo->olist) { in amdgpu_sa_bo_remove_locked()
146 sa_manager->hole = sa_bo->olist.prev; in amdgpu_sa_bo_remove_locked()
158 if (sa_manager->hole->next == &sa_manager->olist) in amdgpu_sa_bo_try_free()
161 sa_bo = list_entry(sa_manager->hole->next, struct amdgpu_sa_bo, olist); in amdgpu_sa_bo_try_free()
173 struct list_head *hole = sa_manager->hole; in amdgpu_sa_bo_hole_soffset() local
175 if (hole != &sa_manager->olist) { in amdgpu_sa_bo_hole_soffset()
176 return list_entry(hole, struct amdgpu_sa_bo, olist)->eoffset; in amdgpu_sa_bo_hole_soffset()
183 struct list_head *hole = sa_manager->hole; in amdgpu_sa_bo_hole_eoffset() local
185 if (hole->next != &sa_manager->olist) { in amdgpu_sa_bo_hole_eoffset()
186 return list_entry(hole->next, struct amdgpu_sa_bo, olist)->soffset; in amdgpu_sa_bo_hole_eoffset()
207 list_add(&sa_bo->olist, sa_manager->hole); in amdgpu_sa_bo_try_alloc()
209 sa_manager->hole = &sa_bo->olist; in amdgpu_sa_bo_try_alloc()
256 if (sa_manager->hole->next == &sa_manager->olist) { in amdgpu_sa_bo_next_hole()
258 sa_manager->hole = &sa_manager->olist; in amdgpu_sa_bo_next_hole()
304 sa_manager->hole = best_bo->olist.prev; in amdgpu_sa_bo_next_hole()
438 if (&i->olist == sa_manager->hole) { in amdgpu_sa_bo_dump_debug_info()