Home
last modified time | relevance | path

Searched refs:buffer_len (Results 1 – 12 of 12) sorted by relevance

/hal_espressif-3.6.0/components/mbedtls/port/dynamic/
Desp_ssl_srv.c44 size_t buffer_len = MBEDTLS_SSL_OUT_BUFFER_LEN; in manage_resource() local
46 CHECK_OK(esp_mbedtls_add_tx_buffer(ssl, buffer_len)); in manage_resource()
51 size_t buffer_len = 3; in manage_resource() local
57 buffer_len += esp_mbedtls_get_crt_size(key_cert->cert, &num); in manage_resource()
58 buffer_len += num * 3; in manage_resource()
63 buffer_len = MAX(buffer_len, MBEDTLS_SSL_OUT_BUFFER_LEN); in manage_resource()
65 CHECK_OK(esp_mbedtls_add_tx_buffer(ssl, buffer_len)); in manage_resource()
74 size_t buffer_len = MBEDTLS_SSL_OUT_BUFFER_LEN; in manage_resource() local
76 CHECK_OK(esp_mbedtls_add_tx_buffer(ssl, buffer_len)); in manage_resource()
87 size_t buffer_len = MBEDTLS_SSL_OUT_BUFFER_LEN; in manage_resource() local
[all …]
Desp_ssl_cli.c35 size_t buffer_len = MBEDTLS_SSL_OUT_BUFFER_LEN; in manage_resource() local
37 CHECK_OK(esp_mbedtls_add_tx_buffer(ssl, buffer_len)); in manage_resource()
93 size_t buffer_len = 3; in manage_resource() local
99 buffer_len += esp_mbedtls_get_crt_size(key_cert->cert, &num); in manage_resource()
100 buffer_len += num * 3; in manage_resource()
105 buffer_len = MAX(buffer_len, MBEDTLS_SSL_OUT_BUFFER_LEN); in manage_resource()
107 CHECK_OK(esp_mbedtls_add_tx_buffer(ssl, buffer_len)); in manage_resource()
112 size_t buffer_len = MBEDTLS_SSL_OUT_BUFFER_LEN; in manage_resource() local
114 CHECK_OK(esp_mbedtls_add_tx_buffer(ssl, buffer_len)); in manage_resource()
119 size_t buffer_len = MBEDTLS_SSL_OUT_BUFFER_LEN; in manage_resource() local
[all …]
Desp_mbedtls_dynamic_impl.c235 int esp_mbedtls_add_tx_buffer(mbedtls_ssl_context *ssl, size_t buffer_len) in esp_mbedtls_add_tx_buffer() argument
257 buffer_len = tx_buffer_len(ssl, buffer_len); in esp_mbedtls_add_tx_buffer()
259 esp_buf = mbedtls_calloc(1, SSL_BUF_HEAD_OFFSET_SIZE + buffer_len); in esp_mbedtls_add_tx_buffer()
261 ESP_LOGE(TAG, "alloc(%zu bytes) failed", SSL_BUF_HEAD_OFFSET_SIZE + buffer_len); in esp_mbedtls_add_tx_buffer()
266 ESP_LOGV(TAG, "add out buffer %zu bytes @ %p", buffer_len, esp_buf->buf); in esp_mbedtls_add_tx_buffer()
268 esp_mbedtls_init_ssl_buf(esp_buf, buffer_len); in esp_mbedtls_add_tx_buffer()
324 int buffer_len; in esp_mbedtls_add_rx_buffer() local
361 buffer_len = tx_buffer_len(ssl, in_msglen); in esp_mbedtls_add_rx_buffer()
364 (int)in_msglen, (int)buffer_len, (int)ssl->in_left); in esp_mbedtls_add_rx_buffer()
372 esp_buf = mbedtls_calloc(1, SSL_BUF_HEAD_OFFSET_SIZE + buffer_len); in esp_mbedtls_add_rx_buffer()
[all …]
Desp_mbedtls_dynamic_impl.h65 int esp_mbedtls_add_tx_buffer(mbedtls_ssl_context *ssl, size_t buffer_len);
/hal_espressif-3.6.0/examples/protocols/slip/slip_udp/components/slip_modem/library/
Dslip_modem.c60 uint32_t buffer_len; member
92 slip_modem->buffer_len = modem_config->rx_buffer_len; in esp_slip_modem_create()
113 slip_modem->buffer = malloc(slip_modem->buffer_len); in esp_slip_driver_start()
136 …uart_driver_install(slip_modem->uart.uart_dev, slip_modem->buffer_len, slip_modem->buffer_len, 10,… in esp_slip_driver_start()
208 …%d, buffer: %p (%d bytes)", slip_modem->uart.uart_dev, slip_modem->buffer, slip_modem->buffer_len); in esp_slip_modem_uart_rx_task()
212 …_read_bytes(slip_modem->uart.uart_dev, slip_modem->buffer, slip_modem->buffer_len, 1 / portTICK_RA… in esp_slip_modem_uart_rx_task()
/hal_espressif-3.6.0/components/esp_http_client/lib/
Dhttp_header.c167 … http_header_generate_string(http_header_handle_t header, int index, char *buffer, int *buffer_len) in http_header_generate_string() argument
184 if (siz + 1 > *buffer_len - 2) { in http_header_generate_string()
206 …str_len += snprintf(buffer + str_len, *buffer_len - str_len, "%s: %s\r\n", item->key, item->value); in http_header_generate_string()
212 str_len += snprintf(buffer + str_len, *buffer_len - str_len, "\r\n"); in http_header_generate_string()
214 *buffer_len = str_len; in http_header_generate_string()
/hal_espressif-3.6.0/tools/unit-test-app/components/test_utils/
Dtest_utils.c70 uint8_t buffer_len = buf_len - 1; in wait_user_control() local
74 buffer_len = sizeof(sign) - 1; in wait_user_control()
77 bzero(buffer, buffer_len); in wait_user_control()
79 unity_gets(buffer, buffer_len); in wait_user_control()
/hal_espressif-3.6.0/examples/peripherals/rmt/ir_protocols/components/infrared_tools/src/
Dir_parser_rmt_rc5.c41 uint32_t buffer_len; member
57 rc5_parser->buffer_len = length; in rc5_parser_input()
88 for (int i = 0; i < rc5_parser->buffer_len; i++) { in rc5_parser_get_scan_code()
/hal_espressif-3.6.0/examples/common_components/iperf/
Diperf.c25 uint32_t buffer_len; member
123 want_recv = s_iperf_ctrl.buffer_len; in socket_recv()
164 want_send = s_iperf_ctrl.buffer_len; in socket_send()
502 s_iperf_ctrl.buffer_len = iperf_get_buffer_len(); in iperf_start()
503 s_iperf_ctrl.buffer = (uint8_t *)malloc(s_iperf_ctrl.buffer_len); in iperf_start()
508 memset(s_iperf_ctrl.buffer, 0, s_iperf_ctrl.buffer_len); in iperf_start()
/hal_espressif-3.6.0/components/esp_http_client/lib/include/
Dhttp_header.h102 …http_header_generate_string(http_header_handle_t header, int index, char *buffer, int *buffer_len);
/hal_espressif-3.6.0/examples/cxx/experimental/experimental_cpp_component/
Di2c_cxx.cpp116 int I2CSlave::read_raw(uint8_t *buffer, size_t buffer_len, chrono::milliseconds timeout) in read_raw() argument
118 …return i2c_slave_read_buffer(i2c_num, buffer, buffer_len, (TickType_t) timeout.count() / portTICK_… in read_raw()
/hal_espressif-3.6.0/examples/cxx/experimental/experimental_cpp_component/include/
Di2c_cxx.hpp302 virtual int read_raw(uint8_t* buffer, size_t buffer_len, std::chrono::milliseconds timeout);