Lines Matching refs:hole
30 * We store the last allocated bo in "hole", we always try to allocate
78 sa_manager->hole = &sa_manager->olist;
101 sa_manager->hole = &sa_manager->olist;
118 if (sa_manager->hole == &sa->olist)
119 sa_manager->hole = sa->olist.prev;
131 if (sa_manager->hole->next == &sa_manager->olist)
134 sa = list_entry(sa_manager->hole->next, struct drm_suballoc, olist);
145 struct list_head *hole = sa_manager->hole;
147 if (hole != &sa_manager->olist)
148 return list_entry(hole, struct drm_suballoc, olist)->eoffset;
155 struct list_head *hole = sa_manager->hole;
157 if (hole->next != &sa_manager->olist)
158 return list_entry(hole->next, struct drm_suballoc, olist)->soffset;
178 list_add(&sa->olist, sa_manager->hole);
180 sa_manager->hole = &sa->olist;
232 /* if hole points to the end of the buffer */
233 if (sa_manager->hole->next == &sa_manager->olist) {
235 sa_manager->hole = &sa_manager->olist;
281 sa_manager->hole = best_bo->olist.prev;
435 if (&i->olist == sa_manager->hole)