Lines Matching refs:heap

163 void sys_heap_free(struct sys_heap *heap, void *mem)  in sys_heap_free()  argument
168 struct z_heap *h = heap->heap; in sys_heap_free()
193 heap_listener_notify_free(HEAP_ID_FROM_POINTER(heap), mem, in sys_heap_free()
200 size_t sys_heap_usable_size(struct sys_heap *heap, void *mem) in sys_heap_usable_size() argument
202 struct z_heap *h = heap->heap; in sys_heap_usable_size()
263 void *sys_heap_alloc(struct sys_heap *heap, size_t bytes) in sys_heap_alloc() argument
265 struct z_heap *h = heap->heap; in sys_heap_alloc()
293 heap_listener_notify_alloc(HEAP_ID_FROM_POINTER(heap), mem, in sys_heap_alloc()
301 void *sys_heap_aligned_alloc(struct sys_heap *heap, size_t align, size_t bytes) in sys_heap_aligned_alloc() argument
303 struct z_heap *h = heap->heap; in sys_heap_aligned_alloc()
319 return sys_heap_alloc(heap, bytes); in sys_heap_aligned_alloc()
371 heap_listener_notify_alloc(HEAP_ID_FROM_POINTER(heap), mem, in sys_heap_aligned_alloc()
379 void *sys_heap_aligned_realloc(struct sys_heap *heap, void *ptr, in sys_heap_aligned_realloc() argument
382 struct z_heap *h = heap->heap; in sys_heap_aligned_realloc()
386 return sys_heap_aligned_alloc(heap, align, bytes); in sys_heap_aligned_realloc()
389 sys_heap_free(heap, ptr); in sys_heap_aligned_realloc()
425 heap_listener_notify_alloc(HEAP_ID_FROM_POINTER(heap), ptr, in sys_heap_aligned_realloc()
427 heap_listener_notify_free(HEAP_ID_FROM_POINTER(heap), ptr, in sys_heap_aligned_realloc()
456 heap_listener_notify_alloc(HEAP_ID_FROM_POINTER(heap), ptr, in sys_heap_aligned_realloc()
458 heap_listener_notify_free(HEAP_ID_FROM_POINTER(heap), ptr, in sys_heap_aligned_realloc()
474 void *ptr2 = sys_heap_aligned_alloc(heap, align, bytes); in sys_heap_aligned_realloc()
480 sys_heap_free(heap, ptr); in sys_heap_aligned_realloc()
485 void sys_heap_init(struct sys_heap *heap, void *mem, size_t bytes) in sys_heap_init() argument
510 heap->heap = h; in sys_heap_init()