/hal_espressif-2.7.6/components/tcp_transport/ |
D | transport.c | 53 static esp_transport_handle_t esp_transport_get_default_parent(esp_transport_handle_t t) in esp_transport_get_default_parent() argument 58 return t; in esp_transport_get_default_parent() 70 esp_err_t esp_transport_list_add(esp_transport_list_handle_t h, esp_transport_handle_t t, const cha… in esp_transport_list_add() argument 72 if (h == NULL || t == NULL) { in esp_transport_list_add() 75 t->scheme = calloc(1, strlen(scheme) + 1); in esp_transport_list_add() 76 ESP_TRANSPORT_MEM_CHECK(TAG, t->scheme, return ESP_ERR_NO_MEM); in esp_transport_list_add() 77 strcpy(t->scheme, scheme); in esp_transport_list_add() 78 STAILQ_INSERT_TAIL(&h->list, t, next); in esp_transport_list_add() 80 t->error_handle = h->error_handle; in esp_transport_list_add() 124 esp_transport_handle_t t = calloc(1, sizeof(struct esp_transport_item_t)); in esp_transport_init() local [all …]
|
D | transport_ssl.c | 47 static int ssl_close(esp_transport_handle_t t); 49 static int ssl_connect_async(esp_transport_handle_t t, const char *host, int port, int timeout_ms) in ssl_connect_async() argument 51 transport_ssl_t *ssl = esp_transport_get_context_data(t); in ssl_connect_async() 68 static int ssl_connect(esp_transport_handle_t t, const char *host, int port, int timeout_ms) in ssl_connect() argument 70 transport_ssl_t *ssl = esp_transport_get_context_data(t); in ssl_connect() 77 esp_transport_set_errors(t, ssl->tls->error_handle); in ssl_connect() 86 static int ssl_poll_read(esp_transport_handle_t t, int timeout_ms) in ssl_poll_read() argument 88 transport_ssl_t *ssl = esp_transport_get_context_data(t); in ssl_poll_read() 108 esp_transport_capture_errno(t, sock_errno); in ssl_poll_read() 115 static int ssl_poll_write(esp_transport_handle_t t, int timeout_ms) in ssl_poll_write() argument [all …]
|
D | transport_ws.c | 75 static int esp_transport_ws_handle_control_frames(esp_transport_handle_t t, char *buffer, int len, … 82 static esp_transport_handle_t ws_get_payload_transport_handle(esp_transport_handle_t t) in ws_get_payload_transport_handle() argument 84 transport_ws_t *ws = esp_transport_get_context_data(t); in ws_get_payload_transport_handle() 129 static int ws_connect(esp_transport_handle_t t, const char *host, int port, int timeout_ms) in ws_connect() argument 131 transport_ws_t *ws = esp_transport_get_context_data(t); in ws_connect() 233 static int _ws_write(esp_transport_handle_t t, int opcode, int mask_flag, const char *b, int len, i… in _ws_write() argument 235 transport_ws_t *ws = esp_transport_get_context_data(t); in _ws_write() 297 int esp_transport_ws_send_raw(esp_transport_handle_t t, ws_transport_opcodes_t opcode, const char *… in esp_transport_ws_send_raw() argument 300 if (t == NULL) { in esp_transport_ws_send_raw() 305 return _ws_write(t, op_code, WS_MASK, b, len, timeout_ms); in esp_transport_ws_send_raw() [all …]
|
D | transport_tcp.c | 83 static int tcp_connect(esp_transport_handle_t t, const char *host, int port, int timeout_ms) in tcp_connect() argument 87 transport_tcp_t *tcp = esp_transport_get_context_data(t); in tcp_connect() 113 if (t->keep_alive_cfg && t->keep_alive_cfg->keep_alive_enable) { in tcp_connect() 114 if (tcp_enable_keep_alive(tcp->sock, t->keep_alive_cfg) < 0) { in tcp_connect() 144 esp_transport_capture_errno(t, errno); in tcp_connect() 149 … esp_transport_capture_errno(t, EINPROGRESS); // errno=EINPROGRESS indicates connection timeout in tcp_connect() 160 esp_transport_capture_errno(t, sockerr); in tcp_connect() 186 static int tcp_write(esp_transport_handle_t t, const char *buffer, int len, int timeout_ms) in tcp_write() argument 189 transport_tcp_t *tcp = esp_transport_get_context_data(t); in tcp_write() 190 if ((poll = esp_transport_poll_write(t, timeout_ms)) <= 0) { in tcp_write() [all …]
|
/hal_espressif-2.7.6/components/efuse/test_efuse_host/ |
D | efuse_tests.py | 41 t = efuse_table_gen.FuseTable.from_csv(csv) 42 t.verify() 44 self.assertEqual(t[0].field_name, 'name1') 45 self.assertEqual(t[0].efuse_block, 'EFUSE_BLK3') 46 self.assertEqual(t[0].bit_start, 0) 47 self.assertEqual(t[0].bit_count, 5) 48 self.assertEqual(t[0].comment, 'Use for test name 1') 50 self.assertEqual(t[1].field_name, 'name2') 51 self.assertEqual(t[1].efuse_block, 'EFUSE_BLK3') 52 self.assertEqual(t[1].bit_start, 5) [all …]
|
/hal_espressif-2.7.6/components/tcp_transport/include/ |
D | esp_transport.h | 38 typedef int (*connect_func)(esp_transport_handle_t t, const char *host, int port, int timeout_ms); 39 typedef int (*io_func)(esp_transport_handle_t t, const char *buffer, int len, int timeout_ms); 40 typedef int (*io_read_func)(esp_transport_handle_t t, char *buffer, int len, int timeout_ms); 41 typedef int (*trans_func)(esp_transport_handle_t t); 42 typedef int (*poll_func)(esp_transport_handle_t t, int timeout_ms); 43 typedef int (*connect_async_func)(esp_transport_handle_t t, const char *host, int port, int timeout… 77 esp_err_t esp_transport_list_add(esp_transport_list_handle_t list, esp_transport_handle_t t, const … 117 esp_err_t esp_transport_destroy(esp_transport_handle_t t); 126 int esp_transport_get_default_port(esp_transport_handle_t t); 138 esp_err_t esp_transport_set_default_port(esp_transport_handle_t t, int port); [all …]
|
D | esp_transport_ssl.h | 42 void esp_transport_ssl_set_cert_data(esp_transport_handle_t t, const char *data, int len); 53 void esp_transport_ssl_set_cert_data_der(esp_transport_handle_t t, const char *data, int len); 60 void esp_transport_ssl_enable_global_ca_store(esp_transport_handle_t t); 71 void esp_transport_ssl_set_client_cert_data(esp_transport_handle_t t, const char *data, int len); 82 void esp_transport_ssl_set_client_cert_data_der(esp_transport_handle_t t, const char *data, int len… 93 void esp_transport_ssl_set_client_key_data(esp_transport_handle_t t, const char *data, int len); 103 void esp_transport_ssl_set_client_key_password(esp_transport_handle_t t, const char *password, int … 114 void esp_transport_ssl_set_client_key_data_der(esp_transport_handle_t t, const char *data, int len); 124 void esp_transport_ssl_set_alpn_protocol(esp_transport_handle_t t, const char **alpn_protos); 133 void esp_transport_ssl_skip_common_name_check(esp_transport_handle_t t); [all …]
|
D | esp_transport_ws.h | 58 void esp_transport_ws_set_path(esp_transport_handle_t t, const char *path); 70 esp_err_t esp_transport_ws_set_subprotocol(esp_transport_handle_t t, const char *sub_protocol); 82 esp_err_t esp_transport_ws_set_user_agent(esp_transport_handle_t t, const char *user_agent); 94 esp_err_t esp_transport_ws_set_headers(esp_transport_handle_t t, const char *headers); 106 esp_err_t esp_transport_ws_set_config(esp_transport_handle_t t, const esp_transport_ws_config_t *co… 127 int esp_transport_ws_send_raw(esp_transport_handle_t t, ws_transport_opcodes_t opcode, const char *… 137 ws_transport_opcodes_t esp_transport_ws_get_read_opcode(esp_transport_handle_t t); 147 int esp_transport_ws_get_read_payload_len(esp_transport_handle_t t); 163 int esp_transport_ws_poll_connection_closed(esp_transport_handle_t t, int timeout_ms);
|
/hal_espressif-2.7.6/components/freertos/test/ |
D | test_suspend_scheduler.c | 142 for (int t = 0; t < TASKS_PER_PROC; t++) { variable 143 counters[p][t].trigger_sem = xSemaphoreCreateMutex(); 144 TEST_ASSERT_NOT_NULL( counters[p][t].trigger_sem ); 145 TEST_ASSERT( xSemaphoreTake(counters[p][t].trigger_sem, 0) ); 147 &counters[p][t], UNITY_FREERTOS_PRIORITY + 1, 148 &tasks[p][t], p); 149 TEST_ASSERT_NOT_NULL( tasks[p][t] ); 158 for (int t = 0; t < TASKS_PER_PROC; t++) { variable 159 TEST_ASSERT_EQUAL(0, counters[p][t].counter); 170 for (int t = 0; t < TASKS_PER_PROC; t++) { variable [all …]
|
/hal_espressif-2.7.6/components/bt/esp_ble_mesh/mesh_common/tinycrypt/src/ |
D | aes_encrypt.c | 77 unsigned int t; in tc_aes128_set_encrypt_key() local 91 t = s->words[i - 1]; in tc_aes128_set_encrypt_key() 93 t = subword(rotword(t)) ^ rconst[i / Nk]; in tc_aes128_set_encrypt_key() 95 s->words[i] = s->words[i - Nk] ^ t; in tc_aes128_set_encrypt_key() 134 uint8_t t[Nb * Nk]; in mix_columns() local 136 mult_row_column(t, s); in mix_columns() 137 mult_row_column(&t[Nb], s + Nb); in mix_columns() 138 mult_row_column(&t[2 * Nb], s + (2 * Nb)); in mix_columns() 139 mult_row_column(&t[3 * Nb], s + (3 * Nb)); in mix_columns() 140 (void) _copy(s, sizeof(t), t, sizeof(t)); in mix_columns() [all …]
|
D | aes_decrypt.c | 83 uint8_t t[Nb * Nk]; in inv_mix_columns() local 85 mult_row_column(t, s); in inv_mix_columns() 86 mult_row_column(&t[Nb], s + Nb); in inv_mix_columns() 87 mult_row_column(&t[2 * Nb], s + (2 * Nb)); in inv_mix_columns() 88 mult_row_column(&t[3 * Nb], s + (3 * Nb)); in inv_mix_columns() 89 (void)_copy(s, sizeof(t), t, sizeof(t)); in inv_mix_columns() 120 uint8_t t[Nb * Nk]; in inv_shift_rows() local 122 t[0] = s[0]; t[1] = s[13]; t[2] = s[10]; t[3] = s[7]; in inv_shift_rows() 123 t[4] = s[4]; t[5] = s[1]; t[6] = s[14]; t[7] = s[11]; in inv_shift_rows() 124 t[8] = s[8]; t[9] = s[5]; t[10] = s[2]; t[11] = s[15]; in inv_shift_rows() [all …]
|
/hal_espressif-2.7.6/components/esp32/test/ |
D | test_dport.c | 239 test_performance_t t[5] = {0}; variable 243 t[0].apb = apb_counter; 244 t[0].dport = 0; 245 t[0].summ = t[0].apb + t[0].dport; 248 t[1].apb = 0; 249 t[1].dport = stall_other_cpu_counter; 250 t[1].summ = t[1].apb + t[1].dport; 253 t[2].apb = 0; 254 t[2].dport = pre_reading_apb_counter; 255 t[2].summ = t[2].apb + t[2].dport; [all …]
|
/hal_espressif-2.7.6/tools/unit-test-app/components/test_utils/test/ |
D | ccomp_timer_test_api.c | 26 int64_t *t = (int64_t *)param; in stop_timer() local 27 *t = ccomp_timer_stop(); in stop_timer() 43 int64_t t; variable 55 t = ccomp_timer_stop(); 56 TEST_ASSERT_GREATER_OR_EQUAL(0, t); 59 t = ccomp_timer_stop(); 60 TEST_ASSERT_EQUAL(-1, t); 72 t = ccomp_timer_stop(); 73 TEST_ASSERT_GREATER_OR_EQUAL(0, t); 75 esp_ipc_call_blocking(xPortGetCoreID(), stop_timer, &t); [all …]
|
/hal_espressif-2.7.6/components/partition_table/test_gen_esp32part_host/ |
D | gen_esp32part_tests.py | 136 t = gen_esp32part.PartitionTable.from_csv(csv) 137 t.verify() 138 self.assertEqual(t[0].offset, 64 * 1024) 139 self.assertEqual(t[0].size, 1 * 1024 * 1024) 149 t = gen_esp32part.PartitionTable.from_csv(csv) 151 self.assertEqual(t[0].offset, 0x010000) # 64KB boundary as it's an app image 152 self.assertEqual(t[0].size, 0x100000) # Size specified in CSV 154 self.assertEqual(t[1].offset, 0x110000) # prev offset+size 155 self.assertEqual(t[1].size, 0x100000) # Size specified in CSV 157 self.assertEqual(t[2].offset, 0x210000) [all …]
|
/hal_espressif-2.7.6/examples/peripherals/spi_master/lcd/main/ |
D | spi_master_example_main.c | 193 spi_transaction_t t; in lcd_cmd() local 194 memset(&t, 0, sizeof(t)); //Zero out the transaction in lcd_cmd() 195 t.length=8; //Command is 8 bits in lcd_cmd() 196 t.tx_buffer=&cmd; //The data is the cmd itself in lcd_cmd() 197 t.user=(void*)0; //D/C needs to be set to 0 in lcd_cmd() 198 ret=spi_device_polling_transmit(spi, &t); //Transmit! in lcd_cmd() 212 spi_transaction_t t; in lcd_data() local 214 memset(&t, 0, sizeof(t)); //Zero out the transaction in lcd_data() 215 t.length=len*8; //Len is in bytes, transaction length is in bits. in lcd_data() 216 t.tx_buffer=data; //Data in lcd_data() [all …]
|
/hal_espressif-2.7.6/components/esp32c3/test/ |
D | test_ds.c | 80 const encrypt_testcase_t *t = &test_cases[i]; variable 84 memcpy(p_data.Y, t->p_data.Y, ESP_DS_SIGNATURE_MAX_BIT_LEN/8); 85 memcpy(p_data.M, t->p_data.M, ESP_DS_SIGNATURE_MAX_BIT_LEN/8); 86 memcpy(p_data.Rb, t->p_data.Rb, ESP_DS_SIGNATURE_MAX_BIT_LEN/8); 87 p_data.M_prime = t->p_data.M_prime; 88 p_data.length = t->p_data.length; 90 esp_err_t r = esp_ds_encrypt_params(&result, t->iv, &p_data, 91 test_hmac_keys[t->hmac_key_idx]); 95 TEST_ASSERT_EQUAL(t->p_data.length, result.rsa_length); 96 TEST_ASSERT_EQUAL_HEX8_ARRAY(t->iv, result.iv, ETS_DS_IV_LEN); [all …]
|
/hal_espressif-2.7.6/components/esp32s2/test/ |
D | test_ds.c | 81 const encrypt_testcase_t *t = &test_cases[i]; variable 85 memcpy(p_data.Y, t->p_data.Y, 4096/8); 86 memcpy(p_data.M, t->p_data.M, 4096/8); 87 memcpy(p_data.Rb, t->p_data.Rb, 4096/8); 88 p_data.M_prime = t->p_data.M_prime; 89 p_data.length = t->p_data.length; 91 esp_err_t r = esp_ds_encrypt_params(&result, t->iv, &p_data, 92 test_hmac_keys[t->hmac_key_idx]); 95 TEST_ASSERT_EQUAL(t->p_data.length, result.rsa_length); 96 TEST_ASSERT_EQUAL_HEX8_ARRAY(t->iv, result.iv, ETS_DS_IV_LEN); [all …]
|
/hal_espressif-2.7.6/components/wpa_supplicant/src/crypto/ |
D | aes-internal-enc.c | 55 ROUND(1,t,s); in rijndaelEncrypt() 56 ROUND(2,s,t); in rijndaelEncrypt() 57 ROUND(3,t,s); in rijndaelEncrypt() 58 ROUND(4,s,t); in rijndaelEncrypt() 59 ROUND(5,t,s); in rijndaelEncrypt() 60 ROUND(6,s,t); in rijndaelEncrypt() 61 ROUND(7,t,s); in rijndaelEncrypt() 62 ROUND(8,s,t); in rijndaelEncrypt() 63 ROUND(9,t,s); in rijndaelEncrypt() 65 ROUND(10,s,t); in rijndaelEncrypt() [all …]
|
D | aes-internal-dec.c | 111 ROUND(1,t,s); in rijndaelDecrypt() 112 ROUND(2,s,t); in rijndaelDecrypt() 113 ROUND(3,t,s); in rijndaelDecrypt() 114 ROUND(4,s,t); in rijndaelDecrypt() 115 ROUND(5,t,s); in rijndaelDecrypt() 116 ROUND(6,s,t); in rijndaelDecrypt() 117 ROUND(7,t,s); in rijndaelDecrypt() 118 ROUND(8,s,t); in rijndaelDecrypt() 119 ROUND(9,t,s); in rijndaelDecrypt() 121 ROUND(10,s,t); in rijndaelDecrypt() [all …]
|
/hal_espressif-2.7.6/components/driver/test/ |
D | test_common_spi.c | 81 spi_slave_transaction_t t = {}; in spitest_slave_task() local 82 t.length = txdata.len; in spitest_slave_task() 83 t.tx_buffer = txdata.start; in spitest_slave_task() 84 t.rx_buffer = recvbuf+8; in spitest_slave_task() 87 TEST_ESP_OK( spi_slave_transmit( context->spi, &t, portMAX_DELAY ) ); in spitest_slave_task() 88 } while ( t.trans_len <= 2 ); in spitest_slave_task() 89 memcpy(recvbuf, &t.trans_len, sizeof(uint32_t)); in spitest_slave_task() 91 ESP_LOGD( SLAVE_TAG, "received: %d", t.trans_len ); in spitest_slave_task() 92 xRingbufferSend( ringbuf, recvbuf, 8+(t.trans_len+7)/8, portMAX_DELAY ); in spitest_slave_task() 149 void spitest_master_print_data(spi_transaction_t *t, int rxlength) in spitest_master_print_data() argument [all …]
|
D | test_spi_slave.c | 112 spi_transaction_t t = {}; variable 113 t.length = 32*(i+1); 114 if ( t.length != 0 ) { 115 t.tx_buffer = master_txbuf+i; 116 t.rx_buffer = master_rxbuf+i; 118 spi_device_transmit( spi, (spi_transaction_t*)&t ); 125 ESP_LOG_BUFFER_HEX( "master tx", t.tx_buffer, t.length/8 ); 126 ESP_LOG_BUFFER_HEX( "master rx", t.rx_buffer, t.length/8 ); 130 TEST_ASSERT_EQUAL_HEX8_ARRAY( t.tx_buffer, slave_t.rx_buffer, t.length/8 ); 131 TEST_ASSERT_EQUAL_HEX8_ARRAY( slave_t.tx_buffer, t.rx_buffer, t.length/8 ); [all …]
|
/hal_espressif-2.7.6/components/spi_flash/ |
D | memspi_host_driver.c | 93 spi_flash_trans_t t = { in memspi_host_read_id_hs() local 98 host->driver->common_command(host, &t); in memspi_host_read_id_hs() 118 spi_flash_trans_t t = { in memspi_host_read_status_hs() local 123 esp_err_t err = host->driver->common_command(host, &t); in memspi_host_read_status_hs() 141 spi_flash_trans_t t = { 0 }; in memspi_host_erase_chip() local 142 t.command = CMD_CHIP_ERASE; in memspi_host_erase_chip() 143 host->driver->common_command(host, &t); in memspi_host_erase_chip() 150 spi_flash_trans_t t = { in memspi_host_erase_sector() local 155 host->driver->common_command(host, &t); in memspi_host_erase_sector() 162 spi_flash_trans_t t = { in memspi_host_erase_block() local [all …]
|
/hal_espressif-2.7.6/docs/en/api-guides/ |
D | SYSVIEW_FreeRTOS.txt | 1 128 vTaskAllocateMPURegions xTask=%t pxRegions=%u 2 33 vTaskDelete xTaskToDelete=%t 5 129 uxTaskPriorityGet xTask=%t 6 56 uxTaskPriorityGetFromISR xTask=%t 7 130 eTaskGetState xTask=%t 8 55 vTaskPrioritySet xTask=%t uxNewPriority=%u 9 36 vTaskSuspend xTaskToSuspend=%t 10 40 vTaskResume xTaskToResume=%t 11 43 xTaskResumeFromISR xTaskToResume=%t 19 137 pcTaskGetTaskName xTaskToQuery=%t [all …]
|
/hal_espressif-2.7.6/docs/zh_CN/api-guides/ |
D | SYSVIEW_FreeRTOS.txt | 1 128 vTaskAllocateMPURegions xTask=%t pxRegions=%u 2 33 vTaskDelete xTaskToDelete=%t 5 129 uxTaskPriorityGet xTask=%t 6 56 uxTaskPriorityGetFromISR xTask=%t 7 130 eTaskGetState xTask=%t 8 55 vTaskPrioritySet xTask=%t uxNewPriority=%u 9 36 vTaskSuspend xTaskToSuspend=%t 10 40 vTaskResume xTaskToResume=%t 11 43 xTaskResumeFromISR xTaskToResume=%t 19 137 pcTaskGetTaskName xTaskToQuery=%t [all …]
|
/hal_espressif-2.7.6/components/bt/host/bluedroid/bta/jv/ |
D | bta_jv_act.c | 2494 struct fc_channel *t = fc_channels; in fcchan_get() local 2509 while (t && t->chan != chan) { in fcchan_get() 2510 t = t->next; in fcchan_get() 2513 if (t) { in fcchan_get() 2514 return t; in fcchan_get() 2519 t = osi_calloc(sizeof(*t)); in fcchan_get() 2520 if (!t) { in fcchan_get() 2524 t->chan = chan; in fcchan_get() 2527 osi_free(t); in fcchan_get() 2532 t->next = fc_channels; in fcchan_get() [all …]
|