Home
last modified time | relevance | path

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

1234

/Zephyr-latest/kernel/
Dmempool.c83 void *k_malloc(size_t size) in k_malloc() function
85 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_heap_sys, k_malloc, _SYSTEM_HEAP); in k_malloc()
89 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_heap_sys, k_malloc, _SYSTEM_HEAP, ret); in k_malloc()
107 ret = k_malloc(bounds); in k_calloc()
127 return k_malloc(size); in k_realloc()
/Zephyr-latest/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-latest/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-latest/tests/benchmarks/footprints/src/
Dheap.c20 void *allocated_mem = k_malloc(10); in run_heap_malloc_free()
/Zephyr-latest/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-latest/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()
153 block1 = k_malloc(BLK_SIZE_MIN); in ZTEST()
/Zephyr-latest/drivers/tee/
Dtee.c24 p = k_malloc(size); in tee_add_shm()
32 shm = k_malloc(sizeof(struct tee_shm)); in tee_add_shm()
/Zephyr-latest/samples/boards/espressif/spiram_test/src/
Dmain.c26 m_int = k_malloc(4096); in main()
/Zephyr-latest/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-latest/modules/fatfs/
Dzfs_ffsystem.c21 return k_malloc(msize); in ff_memalloc()
/Zephyr-latest/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-latest/tests/bsim/bluetooth/host/gatt/settings_clear/src/
Dbt_settings_hook.c46 new_node = k_malloc(sizeof(struct settings_list_node)); in add_key()
49 new_node->key = k_malloc(sizeof(char) * key_size); in add_key()
/Zephyr-latest/drivers/misc/ethos_u/
Dethos_u.c31 mutex = k_malloc(sizeof(*mutex)); in ethosu_mutex_create()
65 sem = k_malloc(sizeof(*sem)); in ethosu_semaphore_create()
/Zephyr-latest/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-latest/samples/subsys/zbus/dyn_channel/src/
Dproducer.c21 msg = k_malloc(i + 1); in producer_thread()
/Zephyr-latest/tests/boards/nrf/nrf70/bustest/src/
Dmain.c84 buff = k_malloc(CONFIG_NRF70BUS_MEMTEST_LENGTH * 4); in memtest()
90 rxbuff = k_malloc(CONFIG_NRF70BUS_MEMTEST_LENGTH * 4); in memtest()
/Zephyr-latest/drivers/wifi/infineon/
Dairoc_whd_hal_common.c69 return k_malloc(size); in whd_mem_malloc()
/Zephyr-latest/drivers/xen/
DKconfig14 allocation with k_malloc(), so CONFIG_HEAP_MEM_POOL_SIZE should be
/Zephyr-latest/tests/benchmarks/latency_measure/src/
Dheap_malloc_free.c35 void *allocated_mem = k_malloc(TEST_SIZE); in heap_malloc_free()
/Zephyr-latest/drivers/fpga/
Dfpga_altera_agilex_bridge.c74 uint32_t *cmd_addr = (uint32_t *)k_malloc(cmd_size); in svc_client_close()
152 (uint32_t *)k_malloc(sizeof(uint32_t) * resp_len); in smc_callback()
209 cmd_addr = (uint32_t *)k_malloc(FPGA_MB_CMD_ADDR_MEM_SIZE); in smc_send()
216 resp_addr = (uint32_t *)k_malloc(FPGA_MB_RESPONSE_MEM_SIZE); in smc_send()
/Zephyr-latest/tests/posix/common/src/
Dkey.c26 value = k_malloc(sizeof(buffer)); in thread_top()
40 value = k_malloc(sizeof(buffer)); in thread_func()
/Zephyr-latest/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()

1234