Lines Matching refs:z_heap
17 static inline void increase_allocated_bytes(struct z_heap *h, size_t num_bytes) in increase_allocated_bytes()
24 static void *chunk_mem(struct z_heap *h, chunkid_t c) in chunk_mem()
34 static void free_list_remove_bidx(struct z_heap *h, chunkid_t c, int bidx) in free_list_remove_bidx()
60 static void free_list_remove(struct z_heap *h, chunkid_t c) in free_list_remove()
68 static void free_list_add_bidx(struct z_heap *h, chunkid_t c, int bidx) in free_list_add_bidx()
98 static void free_list_add(struct z_heap *h, chunkid_t c) in free_list_add()
109 static void split_chunks(struct z_heap *h, chunkid_t lc, chunkid_t rc) in split_chunks()
125 static void merge_chunks(struct z_heap *h, chunkid_t lc, chunkid_t rc) in merge_chunks()
133 static void free_chunk(struct z_heap *h, chunkid_t c) in free_chunk()
157 static chunkid_t mem_to_chunkid(struct z_heap *h, void *p) in mem_to_chunkid()
168 struct z_heap *h = heap->heap; in sys_heap_free()
202 struct z_heap *h = heap->heap; in sys_heap_usable_size()
211 static chunkid_t alloc_chunk(struct z_heap *h, chunksz_t sz) in alloc_chunk()
265 struct z_heap *h = heap->heap; in sys_heap_alloc()
303 struct z_heap *h = heap->heap; in sys_heap_aligned_alloc()
382 struct z_heap *h = heap->heap; in sys_heap_aligned_realloc()
507 __ASSERT(heap_sz > chunksz(sizeof(struct z_heap)), "heap size is too small"); in sys_heap_init()
509 struct z_heap *h = (struct z_heap *)addr; in sys_heap_init()
521 chunksz_t chunk0_size = chunksz(sizeof(struct z_heap) + in sys_heap_init()