Lines Matching refs:mmalloc
70 if (mm->mmalloc == NULL) in RB_GENERATE()
73 tmp = mm_xmalloc(mm->mmalloc, sizeof(struct mm_share)); in RB_GENERATE()
88 mm_create(struct mm_master *mmalloc, size_t size) in mm_create() argument
93 if (mmalloc == NULL) in mm_create()
96 mm = mm_xmalloc(mmalloc, sizeof(struct mm_master)); in mm_create()
103 mm->mmalloc = mmalloc; in mm_create()
123 mm_freelist(struct mm_master *mmalloc, struct mmtree *head) in mm_freelist() argument
130 if (mmalloc == NULL) in mm_freelist()
133 mm_free(mmalloc, mms); in mm_freelist()
142 mm_freelist(mm->mmalloc, &mm->rb_free); in mm_destroy()
143 mm_freelist(mm->mmalloc, &mm->rb_allocated); in mm_destroy()
153 if (mm->mmalloc == NULL) in mm_destroy()
156 mm_free(mm->mmalloc, mm); in mm_destroy()
205 if (mm->mmalloc == NULL) in mm_malloc()
208 mm_free(mm->mmalloc, mms); in mm_malloc()
261 if (mm->mmalloc == NULL) in mm_free()
264 mm_free(mm->mmalloc, mms); in mm_free()
285 if (mm->mmalloc == NULL) in mm_free()
288 mm_free(mm->mmalloc, mms); in mm_free()
295 struct mm_master *mmalloc = mm->mmalloc; in mm_sync_list() local
304 new = mm_xmalloc(mmalloc, sizeof(struct mm_share)); in mm_sync_list()
314 struct mm_master *mmalloc; in mm_share_sync() local
321 mmold = mm->mmalloc; in mm_share_sync()
324 mmalloc = mm_create(NULL, mm->size); in mm_share_sync()
325 mm = mm_xmalloc(mmalloc, sizeof(struct mm_master)); in mm_share_sync()
327 mm->mmalloc = mmalloc; in mm_share_sync()
341 *pmmalloc = mmalloc; in mm_share_sync()