/Zephyr-latest/kernel/ |
D | mempool.c | 83 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/ |
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-latest/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-latest/tests/benchmarks/footprints/src/ |
D | heap.c | 20 void *allocated_mem = k_malloc(10); in run_heap_malloc_free()
|
/Zephyr-latest/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-latest/tests/lib/multi_heap/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() 153 block1 = k_malloc(BLK_SIZE_MIN); in ZTEST()
|
/Zephyr-latest/drivers/tee/ |
D | tee.c | 24 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/ |
D | main.c | 26 m_int = k_malloc(4096); in main()
|
/Zephyr-latest/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() 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/ |
D | zfs_ffsystem.c | 21 return k_malloc(msize); in ff_memalloc()
|
/Zephyr-latest/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-latest/tests/bsim/bluetooth/host/gatt/settings_clear/src/ |
D | bt_settings_hook.c | 46 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/ |
D | ethos_u.c | 31 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/ |
D | main.c | 56 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/ |
D | producer.c | 21 msg = k_malloc(i + 1); in producer_thread()
|
/Zephyr-latest/tests/boards/nrf/nrf70/bustest/src/ |
D | main.c | 84 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/ |
D | airoc_whd_hal_common.c | 69 return k_malloc(size); in whd_mem_malloc()
|
/Zephyr-latest/drivers/xen/ |
D | Kconfig | 14 allocation with k_malloc(), so CONFIG_HEAP_MEM_POOL_SIZE should be
|
/Zephyr-latest/tests/benchmarks/latency_measure/src/ |
D | heap_malloc_free.c | 35 void *allocated_mem = k_malloc(TEST_SIZE); in heap_malloc_free()
|
/Zephyr-latest/drivers/fpga/ |
D | fpga_altera_agilex_bridge.c | 74 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/ |
D | key.c | 26 value = k_malloc(sizeof(buffer)); in thread_top() 40 value = k_malloc(sizeof(buffer)); in thread_func()
|
/Zephyr-latest/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()
|