Home
last modified time | relevance | path

Searched refs:buf_size (Results 1 – 25 of 40) sorted by relevance

12

/hal_espressif-3.6.0/components/fatfs/test/
Dtest_fatfs_sdmmc.c202 static void sdmmc_speed_test(void *buf, size_t buf_size, size_t file_size, bool write);
209 const size_t buf_size = 16 * 1024; variable
210 uint32_t* buf = (uint32_t*) calloc(1, buf_size);
211 esp_fill_random(buf, buf_size);
227 static void sdmmc_speed_test(void *buf, size_t buf_size, size_t file_size, bool write) in sdmmc_speed_test() argument
239 test_fatfs_rw_speed("/sdcard/4mb.bin", buf, buf_size, file_size, write); in sdmmc_speed_test()
325 static void sdspi_speed_test(void *buf, size_t buf_size, size_t file_size, bool write);
332 const size_t buf_size = 16 * 1024; variable
333 uint32_t* buf = (uint32_t*) calloc(1, buf_size);
334 esp_fill_random(buf, buf_size);
[all …]
Dtest_fatfs_spiflash.c185 const size_t buf_size = 16 * 1024; variable
186 uint32_t* buf = (uint32_t*) calloc(1, buf_size);
187 esp_fill_random(buf, buf_size);
Dtest_fatfs_common.c800 void test_fatfs_rw_speed(const char* filename, void* buf, size_t buf_size, size_t file_size, bool i… in test_fatfs_rw_speed() argument
802 const size_t buf_count = file_size / buf_size; in test_fatfs_rw_speed()
811 TEST_ASSERT_EQUAL(buf_size, write(fileno(f), buf, buf_size)); in test_fatfs_rw_speed()
813 if (read(fileno(f), buf, buf_size) != buf_size) { in test_fatfs_rw_speed()
827 (is_write)?"Wrote":"Read", file_size, buf_size, t_s * 1e3, in test_fatfs_rw_speed()
/hal_espressif-3.6.0/components/driver/test/
Dtest_uart.c402 const int buf_size = 256; in uart_test_custom_isr_core0() local
407 TEST_ESP_OK(uart_driver_install(uart_echo, buf_size * 2, 0, 0, NULL, intr_alloc_flags)); in uart_test_custom_isr_core0()
485 const int buf_size = 256; variable
488 TEST_ESP_OK(uart_driver_install(uart_echo, buf_size * 2, 0, 0, NULL, intr_alloc_flags));
496 uint8_t *data = (uint8_t *) malloc(buf_size);
498 uart_write_bytes(uart_echo, (const char *) data, buf_size);
501 int len = uart_read_bytes(uart_echo, data, buf_size, 1000 / portTICK_RATE_MS);
502 TEST_ASSERT_EQUAL(len, buf_size);
505 int written = uart_write_bytes(uart_echo, (const char *) data, buf_size);
507 written = uart_write_bytes(uart_echo, (const char *) data, buf_size);
[all …]
Dtest_spi_param.c535 const int buf_size = 20; in TEST_SPI_LOCAL() local
537 WORD_ALIGNED_ATTR uint8_t slave_sendbuf[buf_size]; in TEST_SPI_LOCAL()
538 WORD_ALIGNED_ATTR uint8_t slave_recvbuf[buf_size]; in TEST_SPI_LOCAL()
539 WORD_ALIGNED_ATTR uint8_t master_sendbuf[buf_size]; in TEST_SPI_LOCAL()
540 WORD_ALIGNED_ATTR uint8_t master_recvbuf[buf_size]; in TEST_SPI_LOCAL()
542 uint8_t master_cmpbuf[buf_size]; in TEST_SPI_LOCAL()
543 uint8_t slave_cmpbuf[buf_size]; in TEST_SPI_LOCAL()
565 memset(master_sendbuf, 0xcc, buf_size); in TEST_SPI_LOCAL()
566 memset(slave_sendbuf, 0x55, buf_size); in TEST_SPI_LOCAL()
567 memset(master_recvbuf, 0xaa, buf_size); in TEST_SPI_LOCAL()
[all …]
Dtest_spi_master.c1051 uint32_t buf_size = 32; variable
1052 uint8_t *mst_send_buf = heap_caps_malloc(buf_size, MALLOC_CAP_DMA);
1053 uint8_t *mst_recv_buf = heap_caps_calloc(buf_size, 1, MALLOC_CAP_DMA);
1054 uint8_t *slv_send_buf = heap_caps_malloc(buf_size, MALLOC_CAP_DMA);
1055 uint8_t *slv_recv_buf = heap_caps_calloc(buf_size, 1, MALLOC_CAP_DMA);
1058 for (int i = 0; i < buf_size; i++) {
1065 .length = buf_size * 8,
1071 .length = buf_size * 8,
1078 spitest_cmp_or_dump(mst_send_buf, slv_recv_buf, buf_size);
1084 for (int j = 0; j < buf_size; j++) {
[all …]
/hal_espressif-3.6.0/components/wpa_supplicant/src/utils/
Dwpa_debug.c20 _wpa_snprintf_hex(char *buf, size_t buf_size, const u8 *data, size_t len, in _wpa_snprintf_hex() argument
24 char *pos = buf, *end = buf + buf_size; in _wpa_snprintf_hex()
34 if (buf_size == 0) in _wpa_snprintf_hex()
49 int wpa_snprintf_hex_uppercase(char *buf, size_t buf_size, const u8 *data, size_t len) in wpa_snprintf_hex_uppercase() argument
51 return _wpa_snprintf_hex(buf, buf_size, data, len, 1, 0); in wpa_snprintf_hex_uppercase()
54 int wpa_snprintf_hex(char *buf, size_t buf_size, const u8 *data, size_t len) in wpa_snprintf_hex() argument
56 return _wpa_snprintf_hex(buf, buf_size, data, len, 0, 0); in wpa_snprintf_hex()
/hal_espressif-3.6.0/components/driver/
Di2s.c68 int buf_size; member
394 memset((void *) dummy, 0, p_i2s->tx->buf_size); in i2s_dma_tx_callback()
450 memset((void *) dummy, 0, p_i2s->tx->buf_size); in i2s_intr_handler_default()
710 … dma_obj->buf[cnt] = (char *) heap_caps_calloc(dma_obj->buf_size, sizeof(char), MALLOC_CAP_DMA); in i2s_alloc_dma_buffer()
713 memset(dma_obj->buf[cnt], 0, dma_obj->buf_size); in i2s_alloc_dma_buffer()
726 dma_obj->desc[cnt]->length = dma_obj->buf_size; in i2s_alloc_dma_buffer()
727 dma_obj->desc[cnt]->size = dma_obj->buf_size; in i2s_alloc_dma_buffer()
733 …ESP_LOGI(TAG, "DMA Malloc info, datalen=blocksize=%d, dma_buf_count=%d", dma_obj->buf_size, buf_cn… in i2s_alloc_dma_buffer()
865 … if (p_i2s[i2s_num]->rx && p_i2s[i2s_num]->rx->buf != NULL && p_i2s[i2s_num]->rx->buf_size != 0) { in i2s_zero_dma_buffer()
867 memset(p_i2s[i2s_num]->rx->buf[i], 0, p_i2s[i2s_num]->rx->buf_size); in i2s_zero_dma_buffer()
[all …]
/hal_espressif-3.6.0/components/wpa_supplicant/src/tls/
Dtlsv1_record.c155 size_t buf_size, const u8 *payload, size_t payload_len, in tlsv1_record_send() argument
164 if (pos + TLS_RECORD_HEADER_LEN > buf + buf_size) in tlsv1_record_send()
183 if (pos + rl->iv_size > buf + buf_size) in tlsv1_record_send()
200 if (pos + payload_len > buf + buf_size) in tlsv1_record_send()
221 clen = buf + buf_size - pos; in tlsv1_record_send()
244 if (pos + pad + 1 > buf + buf_size) { in tlsv1_record_send()
/hal_espressif-3.6.0/components/bt/controller/esp32/
Dhli_api.c199 static void queue_init(hli_queue_handle_t queue, size_t buf_size, size_t elem_size, QueueHandle_t d… in queue_init() argument
204 queue->bufend = queue->buf + buf_size; in queue_init()
234 size_t buf_size = buf_elem * elem_size; in hli_queue_create() local
235 …i_queue_handle_t res = (hli_queue_handle_t) heap_caps_malloc(sizeof(struct hli_queue_t) + buf_size, in hli_queue_create()
240 queue_init(res, buf_size, elem_size, downstream); in hli_queue_create()
/hal_espressif-3.6.0/examples/protocols/https_server/simple/main/
Dmain.c50 const size_t buf_size = 1024; in https_server_user_callback() local
51 char *buf = calloc(buf_size, sizeof(char)); in https_server_user_callback()
59 mbedtls_x509_crt_info((char *) buf, buf_size - 1, " ", cert); in https_server_user_callback()
/hal_espressif-3.6.0/components/esptool_py/esptool/flasher_stub/include/
Dminiz.h1186 …m_no_alloc(mz_zip_archive *pZip, mz_uint file_index, void *pBuf, size_t buf_size, mz_uint flags, v…
1187 …o_alloc(mz_zip_archive *pZip, const char *pFilename, void *pBuf, size_t buf_size, mz_uint flags, v…
1190 …tract_to_mem(mz_zip_archive *pZip, mz_uint file_index, void *pBuf, size_t buf_size, mz_uint flags);
1191 …le_to_mem(mz_zip_archive *pZip, const char *pFilename, void *pBuf, size_t buf_size, mz_uint flags);
1206 …p_reader_extract_iter_read(mz_zip_reader_extract_iter_state* pState, void* pvBuf, size_t buf_size);
1227 …read(mz_zip_archive *pZip, mz_zip_streaming_extract_state_ptr pState, void *pBuf, size_t buf_size);
1276 …_zip_archive *pZip, const char *pArchive_name, const void *pBuf, size_t buf_size, mz_uint level_an…
1280 …_zip_archive *pZip, const char *pArchive_name, const void *pBuf, size_t buf_size, const void *pCom…
1283 …_zip_archive *pZip, const char *pArchive_name, const void *pBuf, size_t buf_size, const void *pCom…
1327 …har *pZip_filename, const char *pArchive_name, const void *pBuf, size_t buf_size, const void *pCom…
[all …]
/hal_espressif-3.6.0/examples/openthread/ot_br/main/
Desp_ot_br.c67 static size_t hex_string_to_binary(const char *hex_string, uint8_t *buf, size_t buf_size) in hex_string_to_binary() argument
71 if (num_char != buf_size * 2) { in hex_string_to_binary()
84 return buf_size; in hex_string_to_binary()
/hal_espressif-3.6.0/components/esp_rom/include/esp32/rom/
Dminiz.h446 …m_no_alloc(mz_zip_archive *pZip, mz_uint file_index, void *pBuf, size_t buf_size, mz_uint flags, v…
447 …o_alloc(mz_zip_archive *pZip, const char *pFilename, void *pBuf, size_t buf_size, mz_uint flags, v…
450 …tract_to_mem(mz_zip_archive *pZip, mz_uint file_index, void *pBuf, size_t buf_size, mz_uint flags);
451 …le_to_mem(mz_zip_archive *pZip, const char *pFilename, void *pBuf, size_t buf_size, mz_uint flags);
494 …_zip_archive *pZip, const char *pArchive_name, const void *pBuf, size_t buf_size, mz_uint level_an…
495 …_zip_archive *pZip, const char *pArchive_name, const void *pBuf, size_t buf_size, const void *pCom…
521 …har *pZip_filename, const char *pArchive_name, const void *pBuf, size_t buf_size, const void *pCom…
/hal_espressif-3.6.0/components/esp_rom/include/esp32c3/rom/
Dminiz.h440 …m_no_alloc(mz_zip_archive *pZip, mz_uint file_index, void *pBuf, size_t buf_size, mz_uint flags, v…
441 …o_alloc(mz_zip_archive *pZip, const char *pFilename, void *pBuf, size_t buf_size, mz_uint flags, v…
444 …tract_to_mem(mz_zip_archive *pZip, mz_uint file_index, void *pBuf, size_t buf_size, mz_uint flags);
445 …le_to_mem(mz_zip_archive *pZip, const char *pFilename, void *pBuf, size_t buf_size, mz_uint flags);
488 …_zip_archive *pZip, const char *pArchive_name, const void *pBuf, size_t buf_size, mz_uint level_an…
489 …_zip_archive *pZip, const char *pArchive_name, const void *pBuf, size_t buf_size, const void *pCom…
515 …har *pZip_filename, const char *pArchive_name, const void *pBuf, size_t buf_size, const void *pCom…
/hal_espressif-3.6.0/components/esp_rom/include/esp32s2/rom/
Dminiz.h446 …m_no_alloc(mz_zip_archive *pZip, mz_uint file_index, void *pBuf, size_t buf_size, mz_uint flags, v…
447 …o_alloc(mz_zip_archive *pZip, const char *pFilename, void *pBuf, size_t buf_size, mz_uint flags, v…
450 …tract_to_mem(mz_zip_archive *pZip, mz_uint file_index, void *pBuf, size_t buf_size, mz_uint flags);
451 …le_to_mem(mz_zip_archive *pZip, const char *pFilename, void *pBuf, size_t buf_size, mz_uint flags);
494 …_zip_archive *pZip, const char *pArchive_name, const void *pBuf, size_t buf_size, mz_uint level_an…
495 …_zip_archive *pZip, const char *pArchive_name, const void *pBuf, size_t buf_size, const void *pCom…
521 …har *pZip_filename, const char *pArchive_name, const void *pBuf, size_t buf_size, const void *pCom…
/hal_espressif-3.6.0/components/esp_rom/include/esp32s3/rom/
Dminiz.h439 …m_no_alloc(mz_zip_archive *pZip, mz_uint file_index, void *pBuf, size_t buf_size, mz_uint flags, v…
440 …o_alloc(mz_zip_archive *pZip, const char *pFilename, void *pBuf, size_t buf_size, mz_uint flags, v…
443 …tract_to_mem(mz_zip_archive *pZip, mz_uint file_index, void *pBuf, size_t buf_size, mz_uint flags);
444 …le_to_mem(mz_zip_archive *pZip, const char *pFilename, void *pBuf, size_t buf_size, mz_uint flags);
487 …_zip_archive *pZip, const char *pArchive_name, const void *pBuf, size_t buf_size, mz_uint level_an…
488 …_zip_archive *pZip, const char *pArchive_name, const void *pBuf, size_t buf_size, const void *pCom…
514 …har *pZip_filename, const char *pArchive_name, const void *pBuf, size_t buf_size, const void *pCom…
/hal_espressif-3.6.0/components/esp_rom/include/esp32h2/rom/
Dminiz.h440 …m_no_alloc(mz_zip_archive *pZip, mz_uint file_index, void *pBuf, size_t buf_size, mz_uint flags, v…
441 …o_alloc(mz_zip_archive *pZip, const char *pFilename, void *pBuf, size_t buf_size, mz_uint flags, v…
444 …tract_to_mem(mz_zip_archive *pZip, mz_uint file_index, void *pBuf, size_t buf_size, mz_uint flags);
445 …le_to_mem(mz_zip_archive *pZip, const char *pFilename, void *pBuf, size_t buf_size, mz_uint flags);
488 …_zip_archive *pZip, const char *pArchive_name, const void *pBuf, size_t buf_size, mz_uint level_an…
489 …_zip_archive *pZip, const char *pArchive_name, const void *pBuf, size_t buf_size, const void *pCom…
515 …har *pZip_filename, const char *pArchive_name, const void *pBuf, size_t buf_size, const void *pCom…
/hal_espressif-3.6.0/examples/bluetooth/esp_ble_mesh/ble_mesh_sensor_model/sensor_server/main/
Dmain.c398 uint16_t buf_size = 0; in example_ble_mesh_send_sensor_status() local
418 buf_size += ESP_BLE_MESH_SENSOR_DATA_FORMAT_B_MPID_LEN; in example_ble_mesh_send_sensor_status()
422buf_size += ESP_BLE_MESH_SENSOR_DATA_FORMAT_A_MPID_LEN + state->sensor_data.length + 1; in example_ble_mesh_send_sensor_status()
424buf_size += ESP_BLE_MESH_SENSOR_DATA_FORMAT_B_MPID_LEN + state->sensor_data.length + 1; in example_ble_mesh_send_sensor_status()
429 status = calloc(1, buf_size); in example_ble_mesh_send_sensor_status()
/hal_espressif-3.6.0/components/bt/host/bluedroid/bta/hh/
Dbta_hh_api.c207 void BTA_HhGetReport(UINT8 dev_handle, tBTA_HH_RPT_TYPE r_type, UINT8 rpt_id, UINT16 buf_size) in BTA_HhGetReport() argument
209 UINT8 param = (buf_size) ? (r_type | 0x08) : r_type; in BTA_HhGetReport()
212 buf_size, rpt_id, NULL); in BTA_HhGetReport()
/hal_espressif-3.6.0/components/esp_timer/src/
Desp_timer.c563 size_t buf_size = TIMER_INFO_LINE_LEN * (timer_count + 3); in esp_timer_dump() local
564 char* print_buf = k_calloc(1, buf_size + 1); in esp_timer_dump()
574 print_timer_info(it, &pos, &buf_size); in esp_timer_dump()
578 print_timer_info(it, &pos, &buf_size); in esp_timer_dump()
/hal_espressif-3.6.0/components/bt/host/bluedroid/stack/hid/
Dhidd_conn.c711 uint16_t buf_size; in hidd_conn_send_data() local
721 buf_size = HID_CONTROL_BUF_SIZE; in hidd_conn_send_data()
726 buf_size = HID_CONTROL_BUF_SIZE; in hidd_conn_send_data()
729 buf_size = HID_INTERRUPT_BUF_SIZE; in hidd_conn_send_data()
735 p_buf = (BT_HDR *)osi_malloc(buf_size); in hidd_conn_send_data()
/hal_espressif-3.6.0/components/spi_flash/test/
Dtest_spi_flash.c128 size_t buf_size; member
156 ESP_ERROR_CHECK( spi_flash_read(arg->flash_addr, arg->buf, arg->buf_size) ); in read_task()
167 .buf_size = size,
/hal_espressif-3.6.0/components/esp_system/port/soc/esp32s3/
Dusb_console.c340 ssize_t esp_usb_console_read_buf(char *buf, size_t buf_size) in esp_usb_console_read_buf() argument
348 int bytes_read = cdc_acm_fifo_read(s_cdc_acm_device, (uint8_t*) buf, buf_size); in esp_usb_console_read_buf()
/hal_espressif-3.6.0/components/console/
Dcommands.c117 size_t buf_size = 0; in esp_console_cmd_register() local
118 FILE *f = open_memstream(&buf, &buf_size); in esp_console_cmd_register()

12