Lines Matching refs:heap
46 util_vma_heap_init(struct util_vma_heap *heap,
49 list_inithead(&heap->holes);
50 util_vma_heap_free(heap, start, size);
53 heap->alloc_high = true;
57 util_vma_heap_finish(struct util_vma_heap *heap)
59 util_vma_foreach_hole_safe(hole, heap)
65 util_vma_heap_validate(struct util_vma_heap *heap)
68 util_vma_foreach_hole(hole, heap) {
72 if (&hole->link == heap->holes.next) {
91 #define util_vma_heap_validate(heap)
142 util_vma_heap_alloc(struct util_vma_heap *heap,
149 util_vma_heap_validate(heap);
151 if (heap->alloc_high) {
152 util_vma_foreach_hole_safe(hole, heap) {
173 util_vma_heap_validate(heap);
177 util_vma_foreach_hole_safe_rev(hole, heap) {
194 util_vma_heap_validate(heap);
204 util_vma_heap_alloc_addr(struct util_vma_heap *heap,
221 util_vma_foreach_hole_safe(hole, heap) {
242 util_vma_heap_free(struct util_vma_heap *heap,
258 util_vma_heap_validate(heap);
262 util_vma_foreach_hole(hole, heap) {
303 list_add(&hole->link, &heap->holes);
306 util_vma_heap_validate(heap);
310 util_vma_heap_print(struct util_vma_heap *heap, FILE *fp,
316 util_vma_foreach_hole(hole, heap) {