/hal_espressif-3.6.0/tools/esp_app_trace/test/sysview/ |
D | blink.c | 30 void *a = malloc(65); in blink_task2() 32 void *b = malloc(97); in blink_task2() 36 b = malloc(11); in blink_task2() 38 b = malloc(24); in blink_task2() 65 void *a = malloc(64); in blink_task() 67 void *b = malloc(96); in blink_task() 71 b = malloc(10); in blink_task() 73 b = malloc(23); in blink_task()
|
/hal_espressif-3.6.0/components/heap/test/ |
D | test_malloc.c | 2 Generic test for malloc/free 26 allocatedMem=malloc(sizeof(int *)*allocateMaxK); in tryAllocMem() 30 allocatedMem[i]=malloc(1024); in tryAllocMem() 51 TEST_CASE("Malloc/overwrite, then free all available DRAM", "[heap]") 65 TEST_CASE("Check if reserved DMA pool still can allocate even when malloc()'ed memory is exhausted"… 67 char** dmaMem=malloc(sizeof(char*)*512); 91 void* (*g_test_malloc_ptr)(size_t) = &malloc; 129 TEST_CASE("malloc(0) should return a NULL pointer", "[heap]") 132 p = malloc(0);
|
D | test_heap_trace.c | 32 void *a = malloc(64); 35 void *b = malloc(96); 79 ptrs[i] = malloc(i*3); 95 void *other = malloc(6);
|
/hal_espressif-3.6.0/examples/bluetooth/hci/ble_adv_scan_combined/main/ |
D | app_bt.c | 70 data_pkt = (uint8_t *)malloc(sizeof(uint8_t) * len); in host_rcv_pkt() 72 ESP_LOGE(TAG, "Malloc data_pkt failed!"); in host_rcv_pkt() 217 host_rcv_data_t *rcv_data = (host_rcv_data_t *)malloc(sizeof(host_rcv_data_t)); in hci_evt_process() 219 ESP_LOGE(TAG, "Malloc rcv_data failed!"); in hci_evt_process() 252 event_type = (uint8_t *)malloc(sizeof(uint8_t) * num_responses); in hci_evt_process() 254 ESP_LOGE(TAG, "Malloc event_type failed!"); in hci_evt_process() 262 addr_type = (uint8_t *)malloc(sizeof(uint8_t) * num_responses); in hci_evt_process() 264 ESP_LOGE(TAG, "Malloc addr_type failed!"); in hci_evt_process() 274 addr = (uint8_t *)malloc(sizeof(uint8_t) * 6 * num_responses); in hci_evt_process() 276 ESP_LOGE(TAG, "Malloc addr failed!"); in hci_evt_process() [all …]
|
/hal_espressif-3.6.0/components/esp_hw_support/ |
D | Kconfig.spiram.common | 32 … needing heap_caps_malloc to allocate, or by fully integrating it making malloc() also able to 40 bool "Make RAM allocatable using malloc() as well" 53 int "Maximum malloc() size, in bytes, to always put in internal memory" 58 …If malloc() is capable of also allocating SPI-connected ram, its allocation strategy will prefer to 61 … from the non-preferred region instead, so malloc() will not suddenly fail when either internal or 82 like that; the memory in this pool is not given out when a normal malloc() is called.
|
/hal_espressif-3.6.0/components/spiffs/test_spiffs_host/ |
D | test_spiffs.cpp | 44 uint8_t *work = (uint8_t*) malloc(work_sz); in init_spiffs() 47 uint8_t *fds = (uint8_t*) malloc(fds_sz); in init_spiffs() 52 uint8_t *cache = (uint8_t*) malloc(cache_sz); in init_spiffs() 128 char *f_contents = (char*) malloc(sz); in check_spiffs_files() 145 char *spiffs_f_contents = (char*) malloc(stat.size); in check_spiffs_files() 180 char *data = (char*) malloc(data_size); 181 char *read = (char*) malloc(data_size); 231 char *img = (char*) malloc(img_size);
|
/hal_espressif-3.6.0/examples/wifi/espnow/main/ |
D | espnow_example_main.c | 92 recv_cb->data = malloc(len); in example_espnow_recv_cb() 94 ESP_LOGE(TAG, "Malloc receive data fail"); in example_espnow_recv_cb() 218 esp_now_peer_info_t *peer = malloc(sizeof(esp_now_peer_info_t)); in example_espnow_task() 220 ESP_LOGE(TAG, "Malloc peer information fail"); in example_espnow_task() 304 esp_now_peer_info_t *peer = malloc(sizeof(esp_now_peer_info_t)); in example_espnow_init() 306 ESP_LOGE(TAG, "Malloc peer information fail"); in example_espnow_init() 320 send_param = malloc(sizeof(example_espnow_send_param_t)); in example_espnow_init() 323 ESP_LOGE(TAG, "Malloc send parameter fail"); in example_espnow_init() 335 send_param->buffer = malloc(CONFIG_ESPNOW_SEND_LEN); in example_espnow_init() 337 ESP_LOGE(TAG, "Malloc send buffer fail"); in example_espnow_init()
|
/hal_espressif-3.6.0/components/newlib/ |
D | heap.c | 11 #include <malloc.h> 16 …These contain the business logic for the malloc() and realloc() implementation. Because of heap tr… 22 void* malloc(size_t size) in malloc() function 132 void* valloc(size_t n) __attribute__((alias("malloc"))); 133 void* pvalloc(size_t n) __attribute__((alias("malloc")));
|
/hal_espressif-3.6.0/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/ |
D | ble_mesh_adapter.c | 143 ble_mesh_node_statistics.package_index = malloc(sizeof(uint16_t) * package_num); in ble_mesh_node_statistics_init() 146 ESP_LOGE(TAG, " %s, %d malloc fail\n", __func__, __LINE__); in ble_mesh_node_statistics_init() 225 statistics_time_percent = malloc(sizeof(statistics_time_performance) * time_level_num); in ble_mesh_test_performance_client_model_get_received_percent() 227 ESP_LOGI(TAG, "malloc error"); in ble_mesh_test_performance_client_model_get_received_percent() 304 test_perf_statistics.time = malloc(test_num * sizeof(uint16_t)); in ble_mesh_test_performance_client_model_init() 306 ESP_LOGE(TAG, " %s %d, malloc fail\n", __func__, __LINE__); in ble_mesh_test_performance_client_model_init() 310 test_perf_statistics.package_index = malloc(test_num * sizeof(uint16_t)); in ble_mesh_test_performance_client_model_init() 312 ESP_LOGE(TAG, " %s %d, malloc fail\n", __func__, __LINE__); in ble_mesh_test_performance_client_model_init()
|
/hal_espressif-3.6.0/components/wpa_supplicant/esp_supplicant/include/ |
D | esp_wpa2.h | 40 * - ESP_ERR_NO_MEM: fail(internal memory malloc fail) 66 * - ESP_ERR_NO_MEM: fail(internal memory malloc fail) 86 * - ESP_ERR_NO_MEM: fail(internal memory malloc fail) 106 * - ESP_ERR_NO_MEM: fail(internal memory malloc fail) 127 * - ESP_ERR_NO_MEM: fail(internal memory malloc fail) 231 * - ESP_ERR_NO_MEM: fail(internal memory malloc fail) 245 * - ESP_ERR_NO_MEM: fail(internal memory malloc fail)
|
/hal_espressif-3.6.0/components/driver/test/ |
D | test_i2c.c | 208 uint8_t *data_wr = (uint8_t *) malloc(DATA_LENGTH); 236 uint8_t *data_wr = (uint8_t *) malloc(DATA_LENGTH); 296 uint8_t *data_wr = (uint8_t *) malloc(DATA_LENGTH); in i2c_master_write_test() 320 uint8_t *data_rd = (uint8_t *) malloc(DATA_LENGTH); in i2c_slave_read_test() 352 uint8_t *data_rd = (uint8_t *) malloc(DATA_LENGTH); in master_read_slave_test() 384 uint8_t *data_wr = (uint8_t *) malloc(DATA_LENGTH); in slave_write_buffer_test() 412 uint8_t *data_rd = (uint8_t *) malloc(DATA_LENGTH); in i2c_master_write_read_test() 414 uint8_t *data_wr = (uint8_t *) malloc(DATA_LENGTH); in i2c_master_write_read_test() 454 uint8_t *data_rd = (uint8_t *) malloc(DATA_LENGTH); in i2c_slave_read_write_test() 456 uint8_t *data_wr = (uint8_t *) malloc(DATA_LENGTH); in i2c_slave_read_write_test() [all …]
|
D | test_uart.c | 60 char* data = (char *) malloc(256); in test_task() 131 char *psend = (char *)malloc(buf_len); 233 uint8_t *tx_buf = (uint8_t *)malloc(1024); in uart_write_task() 235 TEST_FAIL_MESSAGE("tx buffer malloc fail"); in uart_write_task() 263 uint8_t *rd_data = (uint8_t *)malloc(1024); 265 TEST_FAIL_MESSAGE("rx buffer malloc fail"); 330 uint8_t *rd_data = (uint8_t *)malloc(1024); 331 uint8_t *wr_data = (uint8_t *)malloc(1024); 333 TEST_FAIL_MESSAGE("buffer malloc fail"); 496 uint8_t *data = (uint8_t *) malloc(buf_size);
|
/hal_espressif-3.6.0/components/esp_hid/src/ |
D | bt_hidh.c | 273 conn_item = malloc(sizeof(conn_item_t)); in esp_hh_cb() 275 ESP_LOGE(TAG, "conn_item malloc failed!"); in esp_hh_cb() 336 …(esp_hid_raw_report_map_t *)malloc(dev->config.report_maps_len * sizeof(esp_hid_raw_report_map_t)); in esp_hh_cb() 339 ESP_LOGE(TAG, "malloc report maps failed"); in esp_hh_cb() 344 dev->config.report_maps[0].data = (uint8_t *)malloc(param->dscp.dl_len); in esp_hh_cb() 346 ESP_LOGE(TAG, "Malloc Report Map Failed"); in esp_hh_cb() 366 report = (esp_hidh_dev_report_t *)malloc(sizeof(esp_hidh_dev_report_t)); in esp_hh_cb() 368 ESP_LOGE(TAG, "Malloc Report Failed"); in esp_hh_cb() 517 if ((p_param = (esp_hidh_event_data_t *)malloc(event_data_size)) != NULL) { in esp_hh_cb() 540 ESP_LOGE(TAG, "GET_RPT ERROR: malloc event data failed!"); in esp_hh_cb() [all …]
|
D | bt_hidd.c | 106 dev->devices = (hidd_dev_map_t *)malloc(config->report_maps_len * sizeof(hidd_dev_map_t)); in bt_hidd_init_config() 108 ESP_LOGE(TAG, "devices malloc(%d) failed", config->report_maps_len); in bt_hidd_init_config() 116 uint8_t *map = (uint8_t *)malloc(config->report_maps[d].len); in bt_hidd_init_config() 118 ESP_LOGE(TAG, "report map malloc(%d) failed", config->report_maps[d].len); in bt_hidd_init_config() 133 …dev->devices[d].reports = (hidd_report_item_t *)malloc(rmap->reports_len * sizeof(hidd_report_item… in bt_hidd_init_config() 135 … ESP_LOGE(TAG, "reports malloc(%d) failed", rmap->reports_len * sizeof(hidd_report_item_t)); in bt_hidd_init_config() 664 if ((p_cb_param = (esp_hidd_event_data_t *)malloc(event_data_size)) == NULL) { in bt_hidd_cb() 665 ESP_LOGE(TAG, "%s malloc event data failed!", __func__); in bt_hidd_cb() 705 if ((p_cb_param = (esp_hidd_event_data_t *)malloc(event_data_size)) == NULL) { in bt_hidd_cb() 706 ESP_LOGE(TAG, "%s malloc event data failed!", __func__); in bt_hidd_cb() [all …]
|
/hal_espressif-3.6.0/docs/en/api-reference/system/ |
D | mem_alloc.rst | 13 For most purposes, the standard libc ``malloc()`` and ``free()`` functions can be used for heap all… 33 …accessible in single byte reads and writes). When calling ``malloc()``, the ESP-IDF ``malloc()`` i… 35 Because malloc uses the capabilities-based allocation system, memory allocated using :cpp:func:`hea… 106 which it can't do for a normal malloc() call. This can help to use all the available memory in the … 116 …d, external SPI RAM under 4MiB in size can be allocated using standard ``malloc`` calls, or via ``… 133 It is technically possible to call ``malloc``, ``free``, and related functions from interrupt handl…
|
/hal_espressif-3.6.0/components/lwip/test_afl_host/ |
D | network_mock.c | 94 p = (struct pbuf *)malloc(MEMP_PBUF_POOL); in pbuf_alloc() 99 p->payload = malloc(length); in pbuf_alloc() 131 return malloc(sizeof(struct udp_pcb)); in udp_new() 173 uint8_t *buf = malloc(size); in pbuf_realloc() 235 return malloc(size); in mem_malloc()
|
/hal_espressif-3.6.0/components/wifi_provisioning/src/ |
D | wifi_scan.c | 69 RespScanStart *resp_payload = (RespScanStart *) malloc(sizeof(RespScanStart)); in cmd_scan_start_handler() 99 RespScanStatus *resp_payload = (RespScanStatus *) malloc(sizeof(RespScanStatus)); in cmd_scan_status_handler() 127 RespScanResult *resp_payload = (RespScanResult *) malloc(sizeof(RespScanResult)); in cmd_scan_result_handler() 160 results[i] = (WiFiScanResult *) malloc(sizeof(WiFiScanResult)); in cmd_scan_result_handler() 179 results[i]->bssid.data = malloc(results[i]->bssid.len); in cmd_scan_result_handler() 287 *outbuf = (uint8_t *) malloc(*outlen); in wifi_prov_scan_handler()
|
/hal_espressif-3.6.0/examples/protocols/http_server/advanced_tests/main/ |
D | tests.c | 41 buf = malloc(++buf_len); in test_header_get_handler() 72 buf = malloc(++buf_len); in test_header_get_handler() 102 buf = malloc(++buf_len); in test_header_get_handler() 142 char* buf = malloc(req->content_len + 1); in echo_post_handler() 176 req_hdr = malloc(hdr_len + 1); in echo_post_handler() 223 req->sess_ctx = malloc(sizeof(int)); in adder_post_handler() 288 struct async_resp_arg *resp_arg = malloc(sizeof(struct async_resp_arg)); in async_get_handler()
|
/hal_espressif-3.6.0/components/protocomm/src/security/ |
D | security1.c | 119 Sec1Payload *out = (Sec1Payload *) malloc(sizeof(Sec1Payload)); in handle_session_command1() 120 SessionResp1 *out_resp = (SessionResp1 *) malloc(sizeof(SessionResp1)); in handle_session_command1() 133 uint8_t *outbuf = (uint8_t *) malloc(PUBLIC_KEY_LEN); in handle_session_command1() 194 mbedtls_ecdh_context *ctx_server = malloc(sizeof(mbedtls_ecdh_context)); in handle_session_command0() 195 mbedtls_entropy_context *entropy = malloc(sizeof(mbedtls_entropy_context)); in handle_session_command0() 196 mbedtls_ctr_drbg_context *ctr_drbg = malloc(sizeof(mbedtls_ctr_drbg_context)); in handle_session_command0() 308 Sec1Payload *out = (Sec1Payload *) malloc(sizeof(Sec1Payload)); in handle_session_command0() 309 SessionResp0 *out_resp = (SessionResp0 *) malloc(sizeof(SessionResp0)); in handle_session_command0() 560 *outbuf = (uint8_t *) malloc(*outlen); in sec1_req_handler()
|
D | security0.c | 35 Sec0Payload *out = (Sec0Payload *) malloc(sizeof(Sec0Payload)); in sec0_session_setup() 36 S0SessionResp *s0resp = (S0SessionResp *) malloc(sizeof(S0SessionResp)); in sec0_session_setup() 102 *outbuf = (uint8_t *) malloc(*outlen); in sec0_req_handler()
|
/hal_espressif-3.6.0/examples/bluetooth/esp_ble_mesh/ble_mesh_coex_test/components/case/ |
D | wifi_unit.c | 109 buffer = malloc(2920); in wifi_unit_tcp_recv() 112 ESP_LOGE(TAG, "%s malloc fail\n", __func__); in wifi_unit_tcp_recv() 142 buffer = malloc(len); in wifi_util_tcp_send() 144 ESP_LOGE(TAG, "%s malloc fail\n", __func__); in wifi_util_tcp_send()
|
/hal_espressif-3.6.0/docs/zh_CN/api-guides/ |
D | external-ram.rst | 70 调用 malloc() 分配片外 RAM 73 在 :ref:`CONFIG_SPIRAM_USE` 中选择 "Make RAM allocatable using malloc() as well" 选项,该选项为默认选项。 75 启用此选项后,片外存储器将被添加到内存分配程序(与上一选项相同),同时也将被添加到由标准 ``malloc()`` 函数返回的 RAM 中。 86 …AM_MALLOC_RESERVE_INTERNAL` 定义一个内部存储池,仅限显式的内部存储器分配使用(例如用于 DMA 的存储器)。常规 ``malloc()`` 将不会从该池中分配,但可以使…
|
/hal_espressif-3.6.0/components/heap/include/ |
D | esp_heap_caps.h | 34 …emory can be returned in a non-capability-specific memory allocation (e.g. malloc(), calloc()) call 59 * Equivalent semantics to libc malloc(), for capability-aware memory. 61 * In IDF, ``malloc(p)`` is equivalent to ``heap_caps_malloc(p, MALLOC_CAP_8BIT)``. 303 * @brief Enable malloc() in external memory and set limit below which 304 * malloc() attempts are placed in internal memory. 359 * - Block address (the data buffer returned by malloc is 4 bytes after this 361 * - Data size (the data size may be larger than the size requested by malloc, 385 * returned by heap_caps_malloc,malloc,calloc, etc. and not yet freed.
|
/hal_espressif-3.6.0/examples/peripherals/i2s/i2s_basic/ |
D | README.md | 41 I2S: DMA Malloc info, datalen=blocksize=480, dma_buf_count=6 45 I2S: DMA Malloc info, datalen=blocksize=480, dma_buf_count=6 49 I2S: DMA Malloc info, datalen=blocksize=240, dma_buf_count=6
|
/hal_espressif-3.6.0/zephyr/esp_shared/include/ |
D | esp_heap_caps_adapter.h | 36 …emory can be returned in a non-capability-specific memory allocation (e.g. malloc(), calloc()) call 44 * Equivalent semantics to libc malloc(), for capability-aware memory. 46 * In IDF, ``malloc(p)`` is equivalent to ``heap_caps_malloc(p, MALLOC_CAP_8BIT)``.
|