| /lib/heap/ |
| A D | multi_heap.c | 44 void *sys_multi_heap_alloc(struct sys_multi_heap *mheap, void *cfg, size_t bytes) in sys_multi_heap_alloc() argument 46 return mheap->choice(mheap, cfg, 0, bytes); in sys_multi_heap_alloc() 50 void *cfg, size_t align, size_t bytes) in sys_multi_heap_aligned_alloc() argument 52 return mheap->choice(mheap, cfg, align, bytes); in sys_multi_heap_aligned_alloc() 96 void *ptr, size_t align, size_t bytes) in sys_multi_heap_aligned_realloc() argument 100 return sys_multi_heap_aligned_alloc(mheap, cfg, align, bytes); in sys_multi_heap_aligned_realloc() 102 if (bytes == 0) { in sys_multi_heap_aligned_realloc() 112 void *new_ptr = sys_heap_aligned_realloc(rec->heap, ptr, align, bytes); in sys_multi_heap_aligned_realloc() 121 new_ptr = sys_multi_heap_aligned_alloc(mheap, cfg, align, bytes); in sys_multi_heap_aligned_realloc() 123 memcpy(new_ptr, ptr, MIN(old_size, bytes)); in sys_multi_heap_aligned_realloc()
|
| A D | heap.c | 268 if (bytes == 0U) { in sys_heap_alloc() 306 return sys_heap_alloc(heap, bytes); in sys_heap_noalign_alloc() 327 return sys_heap_alloc(heap, bytes); in sys_heap_aligned_alloc() 334 if (bytes == 0) { in sys_heap_aligned_alloc() 468 return sys_heap_alloc(heap, bytes); in sys_heap_realloc() 470 if (bytes == 0) { in sys_heap_realloc() 475 if (inplace_realloc(heap, ptr, bytes)) { in sys_heap_realloc() 492 size_t align, size_t bytes) in sys_heap_aligned_realloc() argument 498 if (bytes == 0) { in sys_heap_aligned_realloc() 538 __ASSERT(bytes > heap_footer_bytes(bytes), "heap size is too small"); in sys_heap_init() [all …]
|
| A D | heap_listener.c | 31 void heap_listener_notify_alloc(uintptr_t heap_id, void *mem, size_t bytes) in heap_listener_notify_alloc() argument 40 listener->alloc_cb(heap_id, mem, bytes); in heap_listener_notify_alloc() 47 void heap_listener_notify_free(uintptr_t heap_id, void *mem, size_t bytes) in heap_listener_notify_free() argument 56 listener->free_cb(heap_id, mem, bytes); in heap_listener_notify_free()
|
| A D | shared_multi_heap.c | 85 void *shared_multi_heap_alloc(enum shared_multi_heap_attr attr, size_t bytes) in shared_multi_heap_alloc() argument 91 return sys_multi_heap_alloc(&shared_multi_heap, (void *)(long) attr, bytes); in shared_multi_heap_alloc() 95 size_t align, size_t bytes) in shared_multi_heap_aligned_alloc() argument 102 align, bytes); in shared_multi_heap_aligned_alloc()
|
| A D | heap.h | 58 typedef struct { char bytes[CHUNK_UNIT]; } chunk_unit_t; member 91 static inline bool big_heap_bytes(size_t bytes) in big_heap_bytes() argument 93 return big_heap_chunks(bytes / CHUNK_UNIT); in big_heap_bytes() 230 static inline chunksz_t chunksz(size_t bytes) in chunksz() argument 232 return (bytes + CHUNK_UNIT - 1U) / CHUNK_UNIT; in chunksz() 242 static ALWAYS_INLINE chunksz_t bytes_to_chunksz(struct z_heap *h, size_t bytes, size_t extra) in bytes_to_chunksz() argument 244 size_t chunks = (bytes / CHUNK_UNIT) + (extra / CHUNK_UNIT); in bytes_to_chunksz() 245 size_t oddments = ((bytes % CHUNK_UNIT) + (extra % CHUNK_UNIT) + in bytes_to_chunksz()
|
| A D | heap_stress.c | 12 void *(*alloc_fn)(void *arg, size_t bytes); 107 void sys_heap_stress(void *(*alloc_fn)(void *arg, size_t bytes), in sys_heap_stress() argument
|
| A D | Kconfig | 88 "small" heaps with a total size of 262136 bytes or less. 111 heaps are 262136 bytes or less.
|
| /lib/posix/options/ |
| A D | net.c | 80 unsigned char *bytes = (unsigned char *)&in.s_addr; in inet_ntoa() local 82 snprintf(buf, sizeof(buf), "%d.%d.%d.%d", bytes[0], bytes[1], bytes[2], bytes[3]); in inet_ntoa()
|
| A D | Kconfig.mqueue | 29 Mention maximum size of message in bytes.
|
| A D | Kconfig.signal | 36 Will use 256 bytes of ROM.
|
| /lib/hash/ |
| A D | Kconfig.hash_func | 38 either 1, 2, 4, or 8 bytes in length and so is suitable for scalar
|
| /lib/net_buf/ |
| A D | Kconfig | 60 any other value will force the alignment of a net buffer in bytes.
|
| /lib/libc/minimal/ |
| A D | Kconfig | 28 memset. On the Cortex-M0+ this reduces the total code size by 120 bytes.
|
| /lib/utils/ |
| A D | Kconfig | 35 all struct ring_buf instances become 12 bytes bigger.
|
| A D | json.c | 1239 char bytes[2] = { '\\', escaped }; in json_escape_internal() local 1241 ret = append_bytes(bytes, 2, data); in json_escape_internal() 1724 static int append_bytes_to_buf(const char *bytes, size_t len, void *data) in append_bytes_to_buf() argument 1732 memcpy(appender->buffer + appender->used, bytes, len); in append_bytes_to_buf() 1756 static int measure_bytes(const char *bytes, size_t len, void *data) in measure_bytes() argument 1762 ARG_UNUSED(bytes); in measure_bytes()
|
| /lib/libc/common/ |
| A D | Kconfig | 66 Indicate the size in bytes of the memory arena used for
|
| /lib/os/ |
| A D | Kconfig.cbprintf | 137 requires buffer to be 16 bytes aligned. Long doubles are rarely used
|