Home
last modified time | relevance | path

Searched refs:CHUNK_UNIT (Results 1 – 3 of 3) sorted by relevance

/Zephyr-Core-3.4.0/lib/os/
Dheap.h56 #define CHUNK_UNIT 8U macro
58 typedef struct { char bytes[CHUNK_UNIT]; } chunk_unit_t;
93 return big_heap_chunks(bytes / CHUNK_UNIT); in big_heap_bytes()
232 return (bytes + CHUNK_UNIT - 1U) / CHUNK_UNIT; in chunksz()
247 return chunksz_in * CHUNK_UNIT - chunk_header_bytes(h); in chunksz_to_bytes()
262 return (bytes / CHUNK_UNIT) >= h->end_chunk; in size_too_big()
Dheap.c160 return (mem - chunk_header_bytes(h) - base) / CHUNK_UNIT; in mem_to_chunkid()
206 size_t chunk_sz = chunk_size(h, c) * CHUNK_UNIT; in sys_heap_usable_size()
345 chunk_unit_t *end = (chunk_unit_t *) ROUND_UP(mem + bytes, CHUNK_UNIT); in sys_heap_aligned_alloc()
417 (chunk_size(h, c) - chunks_need) * CHUNK_UNIT; in sys_heap_aligned_realloc()
442 increase_allocated_bytes(h, split_size * CHUNK_UNIT); in sys_heap_aligned_realloc()
491 __ASSERT(bytes / CHUNK_UNIT <= 0x7fffU, "heap size is too big"); in sys_heap_init()
494 __ASSERT(bytes / CHUNK_UNIT <= 0x7fffffffU, "heap size is too big"); in sys_heap_init()
502 uintptr_t addr = ROUND_UP(mem, CHUNK_UNIT); in sys_heap_init()
503 uintptr_t end = ROUND_DOWN((uint8_t *)mem + bytes, CHUNK_UNIT); in sys_heap_init()
504 chunksz_t heap_sz = (end - addr) / CHUNK_UNIT; in sys_heap_init()
Dheap-validate.c401 total = h->end_chunk * CHUNK_UNIT + chunk_header_bytes(h); in heap_print_info()