Home
last modified time | relevance | path

Searched refs:total_len (Results 1 – 14 of 14) sorted by relevance

/hal_espressif-3.6.0/components/spi_flash/test/
Dtest_spi_flash.c238 const int total_len = SPI_FLASH_SEC_SIZE * TEST_SECTORS; in measure_erase() local
239 time_meas_ctx_t time_ctx = {.name = "erase", .len = total_len}; in measure_erase()
242 esp_err_t err = spi_flash_erase_range(part->address, total_len); in measure_erase()
250 const int total_len = SPI_FLASH_SEC_SIZE; in measure_write() local
251 time_meas_ctx_t time_ctx = {.name = name, .len = total_len * TEST_TIMES}; in measure_write()
256 size_t len = total_len; in measure_write()
273 const int total_len = SPI_FLASH_SEC_SIZE; in measure_read() local
274 time_meas_ctx_t time_ctx = {.name = name, .len = total_len * TEST_TIMES}; in measure_read()
278 size_t len = total_len; in measure_read()
300 const int total_len = SPI_FLASH_SEC_SIZE; variable
[all …]
Dtest_esp_flash.c1010 const int total_len = SPI_FLASH_SEC_SIZE * TEST_SECTORS; in measure_erase() local
1011 time_meas_ctx_t time_ctx = {.name = "erase", .len = total_len}; in measure_erase()
1014 esp_err_t err = esp_flash_erase_region(part->flash_chip, part->address, total_len); in measure_erase()
1022 const int total_len = SPI_FLASH_SEC_SIZE; in measure_write() local
1023 time_meas_ctx_t time_ctx = {.name = name, .len = total_len * TEST_TIMES}; in measure_write()
1028 size_t len = total_len; in measure_write()
1045 const int total_len = SPI_FLASH_SEC_SIZE; in measure_read() local
1046 time_meas_ctx_t time_ctx = {.name = name, .len = total_len * TEST_TIMES}; in measure_read()
1050 size_t len = total_len; in measure_read()
1102 const int total_len = SPI_FLASH_SEC_SIZE; in test_flash_read_write_performance() local
[all …]
/hal_espressif-3.6.0/components/wpa_supplicant/src/crypto/
Daes-omac1.c49 size_t i, e, left, total_len; in omac1_aes_vector() local
59 total_len = 0; in omac1_aes_vector()
61 total_len += len[e]; in omac1_aes_vector()
62 left = total_len; in omac1_aes_vector()
93 if (left || total_len == 0) { in omac1_aes_vector()
/hal_espressif-3.6.0/examples/protocols/http_server/restful_server/main/
Drest_server.c111 int total_len = req->content_len; in light_brightness_post_handler() local
115 if (total_len >= SCRATCH_BUFSIZE) { in light_brightness_post_handler()
120 while (cur_len < total_len) { in light_brightness_post_handler()
121 received = httpd_req_recv(req, buf + cur_len, total_len); in light_brightness_post_handler()
129 buf[total_len] = '\0'; in light_brightness_post_handler()
/hal_espressif-3.6.0/components/bt/host/bluedroid/stack/sdp/
Dsdp_discovery.c816 UINT32 total_len; in add_attr() local
833 total_len = attr_len - 4 + (UINT16)sizeof (tSDP_DISC_ATTR); in add_attr()
835 total_len = sizeof (tSDP_DISC_ATTR); in add_attr()
839 total_len = (total_len + 3) & ~3; in add_attr()
842 if (p_db->mem_free < total_len) { in add_attr()
863 total_len = 0; in add_attr()
946 total_len = 0; in add_attr()
988 p_db->p_free_mem += total_len; in add_attr()
989 p_db->mem_free -= total_len; in add_attr()
/hal_espressif-3.6.0/components/bt/esp_ble_mesh/mesh_models/server/
Dsensor_server.c32 uint16_t total_len = 5U; in send_sensor_descriptor_status() local
47 total_len += SENSOR_DESCRIPTOR_LEN; in send_sensor_descriptor_status()
48 if (total_len > MIN(BLE_MESH_TX_SDU_MAX, BLE_MESH_SERVER_RSP_MAX_LEN)) { in send_sensor_descriptor_status()
66 total_len += SENSOR_DESCRIPTOR_LEN; in send_sensor_descriptor_status()
67 if (total_len > MIN(BLE_MESH_TX_SDU_MAX, BLE_MESH_SERVER_RSP_MAX_LEN)) { in send_sensor_descriptor_status()
99 uint16_t total_len = 5U; in send_sensor_data_status() local
116 total_len += (mpid_len + (state->sensor_data.raw_value ? in send_sensor_data_status()
118 if (total_len > MIN(BLE_MESH_TX_SDU_MAX, BLE_MESH_SERVER_RSP_MAX_LEN)) { in send_sensor_data_status()
145 total_len += (mpid_len + (state->sensor_data.raw_value ? in send_sensor_data_status()
147 if (total_len > MIN(BLE_MESH_TX_SDU_MAX, BLE_MESH_SERVER_RSP_MAX_LEN)) { in send_sensor_data_status()
[all …]
Dtime_scene_server.c493 uint16_t total_len = 9U; in send_scene_register_status() local
521 total_len += SCENE_NUMBER_LEN; in send_scene_register_status()
522 … if ((publish == false && total_len > MIN(BLE_MESH_TX_SDU_MAX, BLE_MESH_SERVER_RSP_MAX_LEN)) || in send_scene_register_status()
523 (publish == true && total_len > msg->size + BLE_MESH_SERVER_TRANS_MIC_SIZE)) { in send_scene_register_status()
Dgeneric_server.c2156 uint16_t total_len = 5U; in gen_client_prop_get() local
2198 total_len += sizeof(uint16_t); in gen_client_prop_get()
2199 if (total_len > MIN(BLE_MESH_TX_SDU_MAX, BLE_MESH_SERVER_RSP_MAX_LEN)) { in gen_client_prop_get()
/hal_espressif-3.6.0/components/bt/common/btc/profile/esp/blufi/
Dblufi_prf.c147 blufi_env.total_len = hdr->data[0] | (((uint16_t) hdr->data[1]) << 8); in btc_blufi_recv_handler()
148 blufi_env.aggr_buf = osi_malloc(blufi_env.total_len); in btc_blufi_recv_handler()
150 BTC_TRACE_ERROR("%s no mem, len %d\n", __func__, blufi_env.total_len); in btc_blufi_recv_handler()
155 if (blufi_env.offset + hdr->data_len - 2 <= blufi_env.total_len){ in btc_blufi_recv_handler()
159 …C_TRACE_ERROR("%s payload is longer than packet length, len %d \n", __func__, blufi_env.total_len); in btc_blufi_recv_handler()
168 btc_blufi_protocol_handler(hdr->type, blufi_env.aggr_buf, blufi_env.total_len); in btc_blufi_recv_handler()
/hal_espressif-3.6.0/components/bt/common/btc/profile/esp/blufi/include/
Dblufi_int.h52 uint16_t total_len; member
71 uint16_t total_len; member
/hal_espressif-3.6.0/components/esp_websocket_client/
Desp_websocket_client.c578 …cket_client_handle_t client, int code, const char *additional_data, int total_len, TickType_t time…
762 …cket_client_handle_t client, int code, const char *additional_data, int total_len, TickType_t time… in esp_websocket_client_send_close() argument
766 if (total_len >= 2) { in esp_websocket_client_send_close()
767 close_status_data = calloc(1, total_len); in esp_websocket_client_send_close()
772 memcpy(close_status_data + 2, additional_data, total_len - 2); in esp_websocket_client_send_close()
774 …client_send_with_opcode(client, WS_TRANSPORT_OPCODES_CLOSE, close_status_data, total_len, timeout); in esp_websocket_client_send_close()
/hal_espressif-3.6.0/examples/peripherals/usb/host/msc/components/msc/src/
Dmsc_host.c115 size_t total_len = cfg_desc->wTotalLength; in extract_config_from_descriptor() local
123 next_desc = next_endpoint_desc(next_desc, total_len, &offset); in extract_config_from_descriptor()
134 next_desc = next_endpoint_desc(next_desc, total_len, &offset); in extract_config_from_descriptor()
/hal_espressif-3.6.0/components/bt/host/bluedroid/stack/gatt/
Dgatt_sr.c163 UINT16 ii, total_len, len; in process_read_multi_rsp() local
224 total_len = (p_buf->len + p_rsp->attr_value.len); in process_read_multi_rsp()
226 if (total_len > mtu) { in process_read_multi_rsp()
228 len = p_rsp->attr_value.len - (total_len - mtu); in process_read_multi_rsp()
/hal_espressif-3.6.0/components/bt/host/bluedroid/stack/include/stack/
Dbtm_ble_api.h533 UINT8 num_records, UINT16 total_len,