Home
last modified time | relevance | path

Searched refs:heap_caps_malloc (Results 1 – 25 of 105) sorted by relevance

12345

/hal_espressif-3.4.0/components/mbedtls/test/
Dtest_aes.c80 uint8_t *chipertext = heap_caps_malloc(SZ, MALLOC_CAP_8BIT|MALLOC_CAP_INTERNAL);
81 uint8_t *plaintext = heap_caps_malloc(SZ, MALLOC_CAP_8BIT|MALLOC_CAP_INTERNAL);
82 uint8_t *decryptedtext = heap_caps_malloc(SZ, MALLOC_CAP_8BIT|MALLOC_CAP_INTERNAL);
129 uint8_t *chipertext = heap_caps_malloc(SZ, MALLOC_CAP_8BIT|MALLOC_CAP_INTERNAL);
130 uint8_t *plaintext = heap_caps_malloc(SZ, MALLOC_CAP_8BIT|MALLOC_CAP_INTERNAL);
131 uint8_t *decryptedtext = heap_caps_malloc(SZ, MALLOC_CAP_8BIT|MALLOC_CAP_INTERNAL);
177 uint8_t *chipertext = heap_caps_malloc(SZ, MALLOC_CAP_8BIT|MALLOC_CAP_INTERNAL);
178 uint8_t *plaintext = heap_caps_malloc(SZ, MALLOC_CAP_8BIT|MALLOC_CAP_INTERNAL);
179 uint8_t *decryptedtext = heap_caps_malloc(SZ, MALLOC_CAP_8BIT|MALLOC_CAP_INTERNAL);
224 uint8_t *chipertext = heap_caps_malloc(SZ, MALLOC_CAP_8BIT|MALLOC_CAP_INTERNAL);
[all …]
Dtest_aes_gcm.c82 …uint8_t *chipertext = heap_caps_malloc(SZ, MALLOC_CAP_DMA | MALLOC_CAP_8BIT | MALLOC_CAP_INTERNAL);
83 … uint8_t *plaintext = heap_caps_malloc(SZ, MALLOC_CAP_DMA | MALLOC_CAP_8BIT | MALLOC_CAP_INTERNAL);
84 …uint8_t *decryptedtext = heap_caps_malloc(SZ, MALLOC_CAP_DMA | MALLOC_CAP_8BIT | MALLOC_CAP_INTERN…
174 uint8_t *ciphertext = heap_caps_malloc(cfg->plaintext_length, cfg->output_caps); in aes_gcm_test()
175 …uint8_t *output = heap_caps_malloc(cfg->plaintext_length, MALLOC_CAP_DMA | MALLOC_CAP_8BIT | MALLO… in aes_gcm_test()
287 …uint8_t *input = heap_caps_malloc(length[i], MALLOC_CAP_DMA | MALLOC_CAP_8BIT | MALLOC_CAP_INTERNA…
309 …uint8_t *input = heap_caps_malloc(CALL_SZ, MALLOC_CAP_DMA | MALLOC_CAP_8BIT | MALLOC_CAP_INTERNAL);
357 …uint8_t *add = heap_caps_malloc(add_len[i], MALLOC_CAP_DMA | MALLOC_CAP_8BIT | MALLOC_CAP_INTERNAL…
391 … uint8_t *buf = heap_caps_malloc(CALL_SZ, MALLOC_CAP_DMA | MALLOC_CAP_8BIT | MALLOC_CAP_INTERNAL);
452 … uint8_t *buf = heap_caps_malloc(CALL_SZ, MALLOC_CAP_DMA | MALLOC_CAP_8BIT | MALLOC_CAP_INTERNAL);
Dtest_aes_sha_parallel.c74 uint8_t *chipertext = heap_caps_malloc(SZ, MALLOC_CAP_8BIT|MALLOC_CAP_INTERNAL); in tskRunAES256Test()
75 uint8_t *plaintext = heap_caps_malloc(SZ, MALLOC_CAP_8BIT|MALLOC_CAP_INTERNAL); in tskRunAES256Test()
76 uint8_t *decryptedtext = heap_caps_malloc(SZ, MALLOC_CAP_8BIT|MALLOC_CAP_INTERNAL); in tskRunAES256Test()
Dtest_aes_perf.c28 … uint8_t *buf = heap_caps_malloc(CALL_SZ, MALLOC_CAP_DMA | MALLOC_CAP_8BIT | MALLOC_CAP_INTERNAL);
Dtest_sha_perf.c23 … uint8_t *buf = heap_caps_malloc(CALL_SZ, MALLOC_CAP_DMA | MALLOC_CAP_8BIT | MALLOC_CAP_INTERNAL);
/hal_espressif-3.4.0/components/heap/test/
Dtest_malloc_caps.c32 m1= heap_caps_malloc(10*1024, MALLOC_CAP_8BIT);
51 m1 = heap_caps_malloc(alloc32, MALLOC_CAP_32BIT);
67 m1= heap_caps_malloc(10*1024, MALLOC_CAP_8BIT|MALLOC_CAP_EXEC);
75 m2[x]= heap_caps_malloc(alloc32, MALLOC_CAP_32BIT);
89 m1= heap_caps_malloc(MIN(free_iram / 2, 10*1024), MALLOC_CAP_EXEC);
97 m1= heap_caps_malloc(MIN(free_iram / 2, 10*1024), MALLOC_CAP_EXEC);
121 ptr = heap_caps_malloc(largest_free_size, MALLOC_CAP_IRAM_8BIT);
141 void *b = heap_caps_malloc(original.largest_free_block, MALLOC_CAP_8BIT);
174 void *x = heap_caps_malloc(64, MALLOC_CAP_EXEC); in iram_malloc_test()
195 void *ptr = heap_caps_malloc(stupid_allocation_size, MALLOC_CAP_DEFAULT);
[all …]
Dtest_malloc.c72 dmaMem[i]=heap_caps_malloc(1024, MALLOC_CAP_DMA);
115 TEST_ASSERT_NULL(heap_caps_malloc(SIZE_MAX-1, MALLOC_CAP_32BIT));
117 TEST_ASSERT_NULL(heap_caps_malloc(SIZE_MAX-1, MALLOC_CAP_EXEC));
Dtest_runtime_heap_reg.c41 TEST_ASSERT_NULL( heap_caps_malloc(ALLOC_SZ, MALLOC_CAP_INVENTED) );
49 TEST_ASSERT_NOT_NULL( heap_caps_malloc(ALLOC_SZ, MALLOC_CAP_INVENTED) );
/hal_espressif-3.4.0/components/spi_flash/test/
Dtest_flash_encryption.c39 …uint8_t *readback = (uint8_t *)heap_caps_malloc(SPI_FLASH_SEC_SIZE, MALLOC_CAP_32BIT | MALLOC_CAP_… in verify_erased_flash()
125 …uint8_t *cmp_buf = heap_caps_malloc(SPI_FLASH_SEC_SIZE, MALLOC_CAP_32BIT | MALLOC_CAP_8BIT | MALLO…
184 …uint8_t *readback = (uint8_t *)heap_caps_malloc(SPI_FLASH_SEC_SIZE, MALLOC_CAP_32BIT | MALLOC_CAP_… in test_encrypted_write_new_impl()
255 …uint8_t *cmp_encrypt_buf = heap_caps_malloc(SPI_FLASH_SEC_SIZE, MALLOC_CAP_32BIT | MALLOC_CAP_8BIT…
261 …uint8_t *cmp_normal_buf = heap_caps_malloc(SPI_FLASH_SEC_SIZE, MALLOC_CAP_32BIT | MALLOC_CAP_8BIT …
287 …uint8_t *cmp_encrypt_buf = heap_caps_malloc(SPI_FLASH_SEC_SIZE, MALLOC_CAP_32BIT | MALLOC_CAP_8BIT…
293 …uint8_t *cmp_normal_buf = heap_caps_malloc(SPI_FLASH_SEC_SIZE, MALLOC_CAP_32BIT | MALLOC_CAP_8BIT …
324 …uint8_t *buf = (uint8_t*)heap_caps_malloc(sizeof(large_const_buffer), MALLOC_CAP_32BIT | MALLOC_CA…
Dtest_read_write.c314 …uint8_t* buf_ext = (uint8_t*) heap_caps_malloc(SPI_FLASH_SEC_SIZE, MALLOC_CAP_SPIRAM | MALLOC_CAP_…
317 …uint8_t* buf_int = (uint8_t*) heap_caps_malloc(SPI_FLASH_SEC_SIZE, MALLOC_CAP_INTERNAL | MALLOC_CA…
330 …uint32_t* buf_ext = (uint32_t*) heap_caps_malloc(SPI_FLASH_SEC_SIZE, MALLOC_CAP_SPIRAM | MALLOC_CA…
340 …uint8_t* buf_int = (uint8_t*) heap_caps_malloc(SPI_FLASH_SEC_SIZE, MALLOC_CAP_INTERNAL | MALLOC_CA…
358 …uint8_t *buf_ext_8 = (uint8_t *) heap_caps_malloc(MIN_BLOCK_SIZE, MALLOC_CAP_SPIRAM | MALLOC_CAP_8…
361 …uint8_t *buf_int_8 = (uint8_t *) heap_caps_malloc(MIN_BLOCK_SIZE, MALLOC_CAP_INTERNAL | MALLOC_CAP…
/hal_espressif-3.4.0/components/esp_hw_support/test/
Dtest_spiram_cache_flush.c64 mem[0]=heap_caps_malloc(TSTSZ, MALLOC_CAP_SPIRAM);
65 mem[1]=heap_caps_malloc(TSTSZ, MALLOC_CAP_SPIRAM);
108 mem[0]=heap_caps_malloc(TSTSZ, MALLOC_CAP_SPIRAM);
109 mem[1]=heap_caps_malloc(TSTSZ, MALLOC_CAP_SPIRAM);
152 char *mem2=heap_caps_malloc(0x10000, MALLOC_CAP_SPIRAM);
Dtest_async_memcpy.c51 src_buf = heap_caps_malloc(buffer_size, MALLOC_CAP_SPIRAM); in async_memcpy_setup_testbench()
53 … src_buf = heap_caps_malloc(buffer_size, MALLOC_CAP_8BIT | MALLOC_CAP_DMA | MALLOC_CAP_INTERNAL); in async_memcpy_setup_testbench()
61 src_buf = heap_caps_malloc(buffer_size, MALLOC_CAP_8BIT | MALLOC_CAP_DMA | MALLOC_CAP_INTERNAL); in async_memcpy_setup_testbench()
/hal_espressif-3.4.0/docs/zh_CN/api-guides/
Dexternal-ram.rst61 在 :ref:`CONFIG_SPIRAM_USE` 中选择 "Make RAM allocatable using heap_caps_malloc(..., MALLOC_CAP_SPIRAM)…
65 程序如果想从片外存储器分配存储空间,则需要调用 ``heap_caps_malloc(size, MALLOC_CAP_SPIRAM)``,之后可以调用 ``free()`` 函数释放这部分存储空间。
77 这允许应用程序使用片外 RAM,无需重写代码就能使用 ``heap_caps_malloc(..., MALLOC_CAP_SPIRAM)``。
115 …能用作 DMA 读写操作的缓冲区 (Buffer)。因此,当片外 RAM 启用时,与 DMA 搭配使用的 Buffer 必须先使用 ``heap_caps_malloc(size, MALLOC_…
/hal_espressif-3.4.0/tools/unit-test-app/components/test_utils/test/
Dccomp_timer_test_data.c147 uint8_t *mem = heap_caps_malloc(2 * CACHE_SIZE, MALLOC_CAP_INTERNAL | MALLOC_CAP_DEFAULT); in ccomp_test_ref_time()
149 uint8_t *mem = heap_caps_malloc(sizeof(flash_mem), MALLOC_CAP_INTERNAL | MALLOC_CAP_DEFAULT); in ccomp_test_ref_time()
162 flash_mem = heap_caps_malloc(2 * CACHE_SIZE, MALLOC_CAP_8BIT | MALLOC_CAP_SPIRAM);
/hal_espressif-3.4.0/components/bt/host/nimble/port/src/
Desp_nimble_mem.c30 return heap_caps_malloc(size, MALLOC_CAP_INTERNAL|MALLOC_CAP_8BIT); in nimble_platform_mem_malloc()
32 return heap_caps_malloc(size, MALLOC_CAP_SPIRAM|MALLOC_CAP_8BIT); in nimble_platform_mem_malloc()
/hal_espressif-3.4.0/components/driver/test/
Dtest_spi_slave.c293 uint8_t *master_send_buf = heap_caps_malloc(BUF_SIZE, MALLOC_CAP_DMA); in unaligned_test_master()
296 uint8_t *slave_send_buf = heap_caps_malloc(BUF_SIZE, MALLOC_CAP_DMA); in unaligned_test_master()
341 uint8_t *slave_send_buf = heap_caps_malloc(BUF_SIZE, MALLOC_CAP_DMA); in unaligned_test_slave()
344 uint8_t *master_send_buf = heap_caps_malloc(BUF_SIZE, MALLOC_CAP_DMA); in unaligned_test_slave()
Dtest_spi_master.c138 char *sendbuf = heap_caps_malloc((num_bytes + 3) & (~3), MALLOC_CAP_DMA); in spi_test()
139 char *recvbuf = heap_caps_malloc((num_bytes + 3) & (~3), MALLOC_CAP_DMA); in spi_test()
616 uint32_t *data_malloc = (uint32_t *)heap_caps_malloc(324, MALLOC_CAP_SPIRAM);
619 uint32_t *data_malloc = (uint32_t *)heap_caps_malloc(324, MALLOC_CAP_DMA);
629 uint32_t *data_iram = (uint32_t *)heap_caps_malloc(324, MALLOC_CAP_EXEC);
1052 uint8_t *mst_send_buf = heap_caps_malloc(buf_size, MALLOC_CAP_DMA);
1054 uint8_t *slv_send_buf = heap_caps_malloc(buf_size, MALLOC_CAP_DMA);
1172 uint8_t *mst_send_buf = heap_caps_malloc(FD_TEST_BUF_SIZE, MALLOC_CAP_DMA); in fd_master()
1174 uint8_t *slv_send_buf = heap_caps_malloc(FD_TEST_BUF_SIZE, MALLOC_CAP_DMA); in fd_master()
1255 uint8_t *slv_send_buf = heap_caps_malloc(FD_TEST_BUF_SIZE, MALLOC_CAP_DMA); in fd_slave()
[all …]
/hal_espressif-3.4.0/components/spi_flash/
Dspi_flash_os_func_app.c166 ret = heap_caps_malloc(read_chunk_size, MALLOC_CAP_INTERNAL | MALLOC_CAP_8BIT); in get_buffer_malloc()
242 chip->os_func_data = heap_caps_malloc(sizeof(spi1_app_func_arg_t), in esp_flash_init_os_functions()
256 chip->os_func_data = heap_caps_malloc(sizeof(app_func_arg_t), in esp_flash_init_os_functions()
/hal_espressif-3.4.0/tools/test_apps/system/flash_psram/main/
Dtest_flash_psram.c36 …uint8_t *psram_wr_buf = (uint8_t *)heap_caps_malloc(LENGTH_PER_TIME, MALLOC_CAP_32BIT | MALLOC_CAP… in spi0_psram_test()
42 …uint32_t *psram_rd_buf = (uint32_t *)heap_caps_malloc(SPI0_PSRAM_TEST_LEN, MALLOC_CAP_32BIT | MALL… in spi0_psram_test()
/hal_espressif-3.4.0/components/esp_lcd/test/
Dtest_lvgl_port_v7.c81 lv_color_t *buf1 = heap_caps_malloc(h_res * 20 * sizeof(lv_color_t), MALLOC_CAP_DMA); in test_lvgl_task_loop()
83 lv_color_t *buf2 = heap_caps_malloc(h_res * 20 * sizeof(lv_color_t), MALLOC_CAP_DMA); in test_lvgl_task_loop()
/hal_espressif-3.4.0/examples/peripherals/lcd/lvgl/main/
Dlvgl_example_main.c148 … lv_color_t *buf1 = heap_caps_malloc(EXAMPLE_LCD_H_RES * 20 * sizeof(lv_color_t), MALLOC_CAP_DMA); in app_main()
150 … lv_color_t *buf2 = heap_caps_malloc(EXAMPLE_LCD_H_RES * 20 * sizeof(lv_color_t), MALLOC_CAP_DMA); in app_main()
/hal_espressif-3.4.0/components/heap/
Dheap_caps.c165 IRAM_ATTR void *heap_caps_malloc( size_t size, uint32_t caps){ in heap_caps_malloc() function
192 return heap_caps_malloc( size, MALLOC_CAP_DEFAULT | MALLOC_CAP_INTERNAL); in heap_caps_malloc_default()
261 r = heap_caps_malloc( size, caps ); in heap_caps_malloc_prefer()
441 result = heap_caps_malloc(size_bytes, caps); in heap_caps_calloc()
Dcomponent.mk25 WRAP_FUNCTIONS = calloc malloc free realloc heap_caps_malloc heap_caps_free heap_caps_realloc heap_…
/hal_espressif-3.4.0/zephyr/esp_shared/include/
Desp_heap_caps_adapter.h54 void *heap_caps_malloc(size_t size, uint32_t caps);
/hal_espressif-3.4.0/components/usb/
Dusb_private.c14 uint8_t *data_buffer = heap_caps_malloc(data_buffer_size + header_size, MALLOC_CAP_DMA); in urb_alloc()

12345