/Zephyr-Core-3.5.0/kernel/ |
D | mempool.c | 82 void *k_malloc(size_t size) in k_malloc() function 84 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_heap_sys, k_malloc, _SYSTEM_HEAP); in k_malloc() 88 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_heap_sys, k_malloc, _SYSTEM_HEAP, ret); in k_malloc() 106 ret = k_malloc(bounds); in k_calloc()
|
/Zephyr-Core-3.5.0/samples/boards/esp32/spiram_test/src/ |
D | main.c | 38 while ((m1 = k_malloc(size))) { in test_heap_caps() 55 m1 = k_malloc(size); in test_heap_caps()
|
/Zephyr-Core-3.5.0/subsys/sip_svc/ |
D | sip_svc_id_mgr.c | 29 id_pool = k_malloc(sizeof(struct sip_svc_id_pool)); in sip_svc_id_mgr_create() 35 id_pool->id_list = k_malloc(size * sizeof(uint32_t)); in sip_svc_id_mgr_create() 46 id_pool->id_mask = k_malloc(mask_size * sizeof(uint32_t)); in sip_svc_id_mgr_create() 163 id_map = k_malloc(sizeof(struct sip_svc_id_map)); in sip_svc_id_map_create() 168 id_map->items = k_malloc(items_size); in sip_svc_id_map_create()
|
D | sip_svc_agilex_mailbox_shell.c | 127 uint32_t *cmd_addr = k_malloc(cmd_size); in cmd_close() 215 *cmd_addr = k_malloc(SIP_SVP_MB_MAX_WORD_SIZE * 4); in parse_mb_data() 292 resp_addr = k_malloc(SIP_SVP_MB_MAX_WORD_SIZE * 4); in cmd_send()
|
/Zephyr-Core-3.5.0/samples/net/sockets/coap_client/src/ |
D | coap-client.c | 95 data = (uint8_t *)k_malloc(MAX_COAP_MSG_LEN); in process_simple_coap_reply() 137 data = (uint8_t *)k_malloc(MAX_COAP_MSG_LEN); in send_simple_coap_request() 264 data = (uint8_t *)k_malloc(MAX_COAP_MSG_LEN); in process_large_coap_reply() 324 data = (uint8_t *)k_malloc(MAX_COAP_MSG_LEN); in send_large_coap_request() 397 data = (uint8_t *)k_malloc(MAX_COAP_MSG_LEN); in send_obs_reply_ack() 450 data = (uint8_t *)k_malloc(MAX_COAP_MSG_LEN); in process_obs_coap_reply() 496 data = (uint8_t *)k_malloc(MAX_COAP_MSG_LEN); in send_obs_coap_request() 546 data = (uint8_t *)k_malloc(MAX_COAP_MSG_LEN); in send_obs_reset_coap_request()
|
/Zephyr-Core-3.5.0/tests/kernel/mem_heap/mheap_api_concept/src/ |
D | test_mheap_concept.c | 43 block[i] = k_malloc(i); in ZTEST() 58 pool_blocks[thread_id] = k_malloc(BLOCK_SIZE); in tmheap_handler()
|
D | test_mheap_api.c | 78 block[nb] = k_malloc(BLK_SIZE_MIN); in ZTEST() 84 block_fail = k_malloc(BLK_SIZE_MIN); in ZTEST() 100 block_fail = k_malloc(OVERFLOW_SIZE); in ZTEST()
|
/Zephyr-Core-3.5.0/subsys/mgmt/updatehub/ |
D | shell.c | 60 char *device_id = k_malloc(DEVICE_ID_HEX_MAX_SIZE); in cmd_info() 61 char *firmware_version = k_malloc(FIRMWARE_IMG_VER_STRLEN_MAX); in cmd_info()
|
D | updatehub.c | 253 uint8_t *data = k_malloc(MAX_PAYLOAD_SIZE); in send_request() 415 uint8_t *data = k_malloc(MAX_DOWNLOAD_DATA); in install_update_cb() 603 char *device_id = k_malloc(DEVICE_ID_HEX_MAX_SIZE); in report() 604 char *firmware_version = k_malloc(FIRMWARE_IMG_VER_STRLEN_MAX); in report() 764 char *metadata = k_malloc(MAX_DOWNLOAD_DATA); in z_impl_updatehub_probe() 765 char *metadata_copy = k_malloc(MAX_DOWNLOAD_DATA); in z_impl_updatehub_probe() 766 char *device_id = k_malloc(DEVICE_ID_HEX_MAX_SIZE); in z_impl_updatehub_probe() 767 char *firmware_version = k_malloc(FIRMWARE_IMG_VER_STRLEN_MAX); in z_impl_updatehub_probe()
|
/Zephyr-Core-3.5.0/tests/benchmarks/footprints/src/ |
D | heap.c | 20 void *allocated_mem = k_malloc(10); in run_heap_malloc_free()
|
/Zephyr-Core-3.5.0/samples/modules/tflite-micro/tflm_ethosu/src/ |
D | main.cpp | 107 k_heap *heap = static_cast<k_heap *>(k_malloc(sizeof(k_heap))); in allocateHeap() 108 uint8_t *buf = static_cast<uint8_t *>(k_malloc(size)); in allocateHeap() 228 k_thread_stack_t *stack = static_cast<k_thread_stack_t *>(k_malloc(stackSize)); in main() 251 k_thread_stack_t *stack = static_cast<k_thread_stack_t *>(k_malloc(stackSize)); in main()
|
/Zephyr-Core-3.5.0/samples/subsys/sip_svc/src/ |
D | main.c | 58 resp_addr = (uint32_t *)k_malloc(resp_size); in main() 79 cmd_addr = (uint32_t *)k_malloc(cmd_size); in main()
|
/Zephyr-Core-3.5.0/modules/fatfs/ |
D | zfs_ffsystem.c | 21 return k_malloc(msize); in ff_memalloc()
|
/Zephyr-Core-3.5.0/drivers/misc/ethos_u/ |
D | ethos_u.c | 30 mutex = k_malloc(sizeof(*mutex)); in ethosu_mutex_create() 64 sem = k_malloc(sizeof(*sem)); in ethosu_semaphore_create()
|
/Zephyr-Core-3.5.0/samples/subsys/zbus/dyn_channel/src/ |
D | producer.c | 21 msg = k_malloc(i + 1); in producer_thread()
|
/Zephyr-Core-3.5.0/samples/net/sockets/coap_server/src/ |
D | coap-server.c | 189 data = (uint8_t *)k_malloc(MAX_COAP_MSG_LEN); in well_known_core_get() 237 data = (uint8_t *)k_malloc(MAX_COAP_MSG_LEN); in piggyback_get() 309 data = (uint8_t *)k_malloc(MAX_COAP_MSG_LEN); in test_del() 364 data = (uint8_t *)k_malloc(MAX_COAP_MSG_LEN); in test_put() 424 data = (uint8_t *)k_malloc(MAX_COAP_MSG_LEN); in test_post() 500 data = (uint8_t *)k_malloc(MAX_COAP_MSG_LEN); in query_get() 576 data = (uint8_t *)k_malloc(MAX_COAP_MSG_LEN); in location_query_post() 632 data = (uint8_t *)k_malloc(MAX_COAP_MSG_LEN); in separate_get() 730 data = (uint8_t *)k_malloc(MAX_COAP_MSG_LEN); in large_get() 846 data = (uint8_t *)k_malloc(MAX_COAP_MSG_LEN); in large_update_put() [all …]
|
/Zephyr-Core-3.5.0/tests/benchmarks/latency_measure/src/ |
D | heap_malloc_free.c | 34 void *allocated_mem = k_malloc(TEST_SIZE); in heap_malloc_free()
|
/Zephyr-Core-3.5.0/drivers/xen/ |
D | Kconfig | 14 allocation with k_malloc(), so CONFIG_HEAP_MEM_POOL_SIZE should be
|
/Zephyr-Core-3.5.0/tests/posix/common/src/ |
D | key.c | 31 value = k_malloc(sizeof(buffer)); in thread_top() 65 value = k_malloc(sizeof(buffer)); in thread_func()
|
/Zephyr-Core-3.5.0/lib/posix/ |
D | mqueue.c | 110 mq_desc_ptr = k_malloc(sizeof(struct mqueue_desc)); in mq_open() 129 mq_obj_ptr = k_malloc(sizeof(mqueue_object)); in mq_open() 139 mq_name_ptr = k_malloc(strlen(name) + 1); in mq_open() 150 mq_buf_ptr = k_malloc(msg_size * max_msgs * sizeof(uint8_t)); in mq_open()
|
/Zephyr-Core-3.5.0/subsys/net/ip/ |
D | tp.c | 48 struct tp_mem *mem = k_malloc(sizeof(struct tp_mem) + size + in tp_malloc() 150 struct tp_nbuf *tp_nbuf = k_malloc(sizeof(struct tp_nbuf)); in tp_nbuf_alloc() 170 struct tp_nbuf *tb = k_malloc(sizeof(struct tp_nbuf)); in tp_nbuf_clone() 221 struct tp_pkt *tp_pkt = k_malloc(sizeof(struct tp_pkt)); in tp_pkt_alloc() 235 struct tp_pkt *tp_pkt = k_malloc(sizeof(struct tp_pkt)); in tp_pkt_clone() 412 struct tp_pkt *tp_pkt = k_malloc(sizeof(struct tp_pkt)); in tp_output_pkt_alloc()
|
/Zephyr-Core-3.5.0/tests/subsys/settings/file/src/ |
D | settings_test_compress_file.c | 104 buf = (char *)k_malloc(len + 1); in file_str_cmp()
|
/Zephyr-Core-3.5.0/samples/basic/threads/src/ |
D | main.c | 78 char *mem_ptr = k_malloc(size); in blink()
|
/Zephyr-Core-3.5.0/tests/kernel/mem_protect/protection/src/ |
D | main.c | 187 uint8_t *heap_buf = k_malloc(BUF_SIZE); in ZTEST()
|
/Zephyr-Core-3.5.0/subsys/zbus/ |
D | zbus_runtime_observers.c | 49 struct zbus_observer_node *new_obs_nd = k_malloc(sizeof(struct zbus_observer_node)); in zbus_chan_add_obs()
|