Home
last modified time | relevance | path

Searched refs:k_malloc (Results 1 – 25 of 70) sorted by relevance

123

/Zephyr-Core-3.6.0/kernel/
Dmempool.c82 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.6.0/samples/boards/esp32/spiram_test/src/
Dmain.c38 while ((m1 = k_malloc(size))) { in test_heap_caps()
55 m1 = k_malloc(size); in test_heap_caps()
/Zephyr-Core-3.6.0/subsys/sip_svc/
Dsip_svc_id_mgr.c29 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()
Dsip_svc_agilex_mailbox_shell.c127 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.6.0/samples/net/sockets/coap_client/src/
Dcoap-client.c95 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.6.0/subsys/mgmt/updatehub/
Dshell.c60 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()
Dupdatehub.c253 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.6.0/tests/lib/multi_heap/src/
Dtest_mheap_concept.c43 block[i] = k_malloc(i); in ZTEST()
58 pool_blocks[thread_id] = k_malloc(BLOCK_SIZE); in tmheap_handler()
Dtest_mheap_api.c78 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.6.0/tests/benchmarks/footprints/src/
Dheap.c20 void *allocated_mem = k_malloc(10); in run_heap_malloc_free()
/Zephyr-Core-3.6.0/samples/modules/tflite-micro/tflm_ethosu/src/
Dmain.cpp107 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()
230 k_thread_stack_t *stack = static_cast<k_thread_stack_t *>(k_malloc(stackSize)); in main()
253 k_thread_stack_t *stack = static_cast<k_thread_stack_t *>(k_malloc(stackSize)); in main()
/Zephyr-Core-3.6.0/samples/subsys/sip_svc/src/
Dmain.c58 resp_addr = (uint32_t *)k_malloc(resp_size); in main()
79 cmd_addr = (uint32_t *)k_malloc(cmd_size); in main()
/Zephyr-Core-3.6.0/modules/fatfs/
Dzfs_ffsystem.c21 return k_malloc(msize); in ff_memalloc()
/Zephyr-Core-3.6.0/drivers/misc/ethos_u/
Dethos_u.c30 mutex = k_malloc(sizeof(*mutex)); in ethosu_mutex_create()
64 sem = k_malloc(sizeof(*sem)); in ethosu_semaphore_create()
/Zephyr-Core-3.6.0/samples/drivers/soc_flash_nand/src/
Dmain.c56 w_Page_buffer = (uint8_t *)k_malloc(page.size * NAND_NUM_PAGES); in main()
58 r_Page_buffer = (uint8_t *)k_malloc(page.size * NAND_NUM_PAGES); in main()
/Zephyr-Core-3.6.0/samples/subsys/zbus/dyn_channel/src/
Dproducer.c21 msg = k_malloc(i + 1); in producer_thread()
/Zephyr-Core-3.6.0/tests/posix/common/src/
Dkey.c26 value = k_malloc(sizeof(buffer)); in thread_top()
40 value = k_malloc(sizeof(buffer)); in thread_func()
/Zephyr-Core-3.6.0/drivers/xen/
DKconfig14 allocation with k_malloc(), so CONFIG_HEAP_MEM_POOL_SIZE should be
/Zephyr-Core-3.6.0/tests/benchmarks/latency_measure/src/
Dheap_malloc_free.c35 void *allocated_mem = k_malloc(TEST_SIZE); in heap_malloc_free()
/Zephyr-Core-3.6.0/subsys/net/ip/
Dtp.c48 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.6.0/lib/posix/options/
Dmqueue.c106 mq_desc_ptr = k_malloc(sizeof(struct mqueue_desc)); in mq_open()
125 mq_obj_ptr = k_malloc(sizeof(mqueue_object)); in mq_open()
135 mq_name_ptr = k_malloc(strlen(name) + 1); in mq_open()
146 mq_buf_ptr = k_malloc(msg_size * max_msgs * sizeof(uint8_t)); in mq_open()
/Zephyr-Core-3.6.0/tests/subsys/settings/file/src/
Dsettings_test_compress_file.c104 buf = (char *)k_malloc(len + 1); in file_str_cmp()
/Zephyr-Core-3.6.0/samples/basic/threads/src/
Dmain.c78 char *mem_ptr = k_malloc(size); in blink()
/Zephyr-Core-3.6.0/tests/kernel/mem_protect/protection/src/
Dmain.c186 uint8_t *heap_buf = k_malloc(BUF_SIZE); in ZTEST()
/Zephyr-Core-3.6.0/subsys/zbus/
Dzbus_runtime_observers.c49 struct zbus_observer_node *new_obs_nd = k_malloc(sizeof(struct zbus_observer_node)); in zbus_chan_add_obs()

123