Lines Matching refs:MemBlock
17 typedef struct MemBlock { struct
18 QTAILQ_ENTRY(MemBlock) MLIST_ENTNAME;
21 } MemBlock; argument
25 static void mlist_delete(MemList *list, MemBlock *node) in mlist_delete()
32 static MemBlock *mlist_find_key(MemList *head, uint64_t addr) in mlist_find_key()
34 MemBlock *node; in mlist_find_key()
43 static MemBlock *mlist_find_space(MemList *head, uint64_t size) in mlist_find_space()
45 MemBlock *node; in mlist_find_space()
55 static MemBlock *mlist_sort_insert(MemList *head, MemBlock *insr) in mlist_sort_insert()
57 MemBlock *node; in mlist_sort_insert()
71 static inline uint64_t mlist_boundary(MemBlock *node) in mlist_boundary()
76 static MemBlock *mlist_join(MemList *head, MemBlock *left, MemBlock *right) in mlist_join()
85 static void mlist_coalesce(MemList *head, MemBlock *node) in mlist_coalesce()
88 MemBlock *left; in mlist_coalesce()
89 MemBlock *right; in mlist_coalesce()
112 static MemBlock *mlist_new(uint64_t addr, uint64_t size) in mlist_new()
114 MemBlock *block; in mlist_new()
119 block = g_new0(MemBlock, 1); in mlist_new()
127 static uint64_t mlist_fulfill(QGuestAllocator *s, MemBlock *freenode, in mlist_fulfill()
131 MemBlock *usednode; in mlist_fulfill()
156 MemBlock *node; in mlist_check()
179 MemBlock *node; in mlist_alloc()
191 MemBlock *node; in mlist_free()
217 MemBlock *node; in alloc_destroy()
218 MemBlock *tmp; in alloc_destroy()
290 MemBlock *node; in alloc_init()
315 MemBlock *node, *tmp; in migrate_allocator()