Lines Matching defs:hole
30 * We store the last allocated bo in "hole", we always try to allocate
80 sa_manager->hole = &sa_manager->olist;
103 sa_manager->hole = &sa_manager->olist;
120 if (sa_manager->hole == &sa->olist)
121 sa_manager->hole = sa->olist.prev;
133 if (sa_manager->hole->next == &sa_manager->olist)
136 sa = list_entry(sa_manager->hole->next, struct drm_suballoc, olist);
147 struct list_head *hole = sa_manager->hole;
149 if (hole != &sa_manager->olist)
150 return list_entry(hole, struct drm_suballoc, olist)->eoffset;
157 struct list_head *hole = sa_manager->hole;
159 if (hole->next != &sa_manager->olist)
160 return list_entry(hole->next, struct drm_suballoc, olist)->soffset;
180 list_add(&sa->olist, sa_manager->hole);
182 sa_manager->hole = &sa->olist;
234 /* if hole points to the end of the buffer */
235 if (sa_manager->hole->next == &sa_manager->olist) {
237 sa_manager->hole = &sa_manager->olist;
283 sa_manager->hole = best_bo->olist.prev;
437 if (&i->olist == sa_manager->hole)