Lines Matching refs:heap
188 void *multi_heap_aligned_alloc(multi_heap_handle_t heap, size_t size, size_t alignment) in multi_heap_aligned_alloc() argument
198 multi_heap_internal_lock(heap); in multi_heap_aligned_alloc()
199 poison_head_t *head = multi_heap_aligned_alloc_impl_offs(heap, size + POISON_OVERHEAD, in multi_heap_aligned_alloc()
210 multi_heap_internal_unlock(heap); in multi_heap_aligned_alloc()
214 multi_heap_internal_unlock(heap); in multi_heap_aligned_alloc()
219 void *multi_heap_malloc(multi_heap_handle_t heap, size_t size) in multi_heap_malloc() argument
229 multi_heap_internal_lock(heap); in multi_heap_malloc()
230 poison_head_t *head = multi_heap_malloc_impl(heap, size + POISON_OVERHEAD); in multi_heap_malloc()
241 multi_heap_internal_unlock(heap); in multi_heap_malloc()
245 void multi_heap_free(multi_heap_handle_t heap, void *p) in multi_heap_free() argument
250 multi_heap_internal_lock(heap); in multi_heap_free()
260 multi_heap_free_impl(heap, head); in multi_heap_free()
262 multi_heap_internal_unlock(heap); in multi_heap_free()
265 void multi_heap_aligned_free(multi_heap_handle_t heap, void *p) in multi_heap_aligned_free() argument
267 multi_heap_free(heap, p); in multi_heap_aligned_free()
270 void *multi_heap_realloc(multi_heap_handle_t heap, void *p, size_t size) in multi_heap_realloc() argument
280 return multi_heap_malloc(heap, size); in multi_heap_realloc()
283 multi_heap_free(heap, p); in multi_heap_realloc()
291 multi_heap_internal_lock(heap); in multi_heap_realloc()
294 new_head = multi_heap_realloc_impl(heap, head, size + POISON_OVERHEAD); in multi_heap_realloc()
312 new_head = multi_heap_malloc_impl(heap, size + POISON_OVERHEAD); in multi_heap_realloc()
316 multi_heap_free(heap, p); in multi_heap_realloc()
320 multi_heap_internal_unlock(heap); in multi_heap_realloc()
354 size_t multi_heap_get_allocated_size(multi_heap_handle_t heap, void *p) in multi_heap_get_allocated_size() argument
358 size_t result = multi_heap_get_allocated_size_impl(heap, head); in multi_heap_get_allocated_size()
362 void multi_heap_get_info(multi_heap_handle_t heap, multi_heap_info_t *info) in multi_heap_get_info() argument
364 multi_heap_get_info_impl(heap, info); in multi_heap_get_info()
375 size_t multi_heap_free_size(multi_heap_handle_t heap) in multi_heap_free_size() argument
377 size_t r = multi_heap_free_size_impl(heap); in multi_heap_free_size()
382 size_t multi_heap_minimum_free_size(multi_heap_handle_t heap) in multi_heap_minimum_free_size() argument
384 size_t r = multi_heap_minimum_free_size_impl(heap); in multi_heap_minimum_free_size()