/hal_espressif-latest/components/esp_phy/src/ |
D | lib_printf.c | 49 int res = lib_printf("phy", format, arg); in phy_printf() local 51 return res; in phy_printf() 59 int res = lib_printf("rtc", format, arg); in rtc_printf() local 61 return res; in rtc_printf() 68 int res = lib_printf("wpa", format, arg); in wpa_printf() local 70 return res; in wpa_printf() 77 int res = lib_printf("wpa2", format, arg); in wpa2_printf() local 79 return res; in wpa2_printf() 86 int res = lib_printf("wps", format, arg); in wps_printf() local 88 return res; in wps_printf() [all …]
|
/hal_espressif-latest/components/wpa_supplicant/src/tls/ |
D | libtommath.h | 214 int olduse, res, min, max; in s_mp_add() local 231 if ((res = mp_grow (c, max + 1)) != MP_OKAY) { in s_mp_add() 232 return res; in s_mp_add() 302 int olduse, res, min, max; in s_mp_sub() local 310 if ((res = mp_grow (c, max)) != MP_OKAY) { in s_mp_sub() 311 return res; in s_mp_sub() 421 int sa, sb, res; in mp_add() local 432 res = s_mp_add (a, b, c); in mp_add() 440 res = s_mp_sub (b, a, c); in mp_add() 443 res = s_mp_sub (a, b, c); in mp_add() [all …]
|
D | tlsv1_client_ocsp.c | 114 enum tls_ocsp_result *res) in tls_process_ocsp_single_response() argument 301 *res = TLS_OCSP_GOOD; in tls_process_ocsp_single_response() 303 *res = TLS_OCSP_REVOKED; in tls_process_ocsp_single_response() 318 enum tls_ocsp_result res; in tls_process_ocsp_responses() local 332 &res) == 0) in tls_process_ocsp_responses() 333 return res; in tls_process_ocsp_responses() 360 enum tls_ocsp_result res; in tls_process_basic_ocsp_response() local 628 res = tls_process_ocsp_responses(conn, srv_cert, issuer, in tls_process_basic_ocsp_response() 630 if (res == TLS_OCSP_REVOKED) in tls_process_basic_ocsp_response() 632 else if (res == TLS_OCSP_GOOD) in tls_process_basic_ocsp_response() [all …]
|
/hal_espressif-latest/components/wpa_supplicant/esp_supplicant/src/ |
D | esp_scan.c | 118 struct wpa_scan_res *res; in esp_handle_beacon_probe() local 126 res = os_zalloc(sizeof(struct wpa_scan_res) + len - 12); in esp_handle_beacon_probe() 127 if (!res) { in esp_handle_beacon_probe() 132 ptr = (u8 *)res; in esp_handle_beacon_probe() 134 os_memcpy(res->bssid, sender, ETH_ALEN); in esp_handle_beacon_probe() 135 res->tsf = WPA_GET_LE64(frame); in esp_handle_beacon_probe() 142 wpa_s->scan_start_tsf = res->tsf; in esp_handle_beacon_probe() 145 res->beacon_int = WPA_GET_LE16(frame); in esp_handle_beacon_probe() 149 res->caps = WPA_GET_LE16(frame); in esp_handle_beacon_probe() 153 res->chan = channel; in esp_handle_beacon_probe() [all …]
|
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/ |
D | csv_table_parser.py | 15 res = CSVFuseTable() 30 res.append(FuseDefinition.from_csv(line)) 39 for i in res: 47 res.verify_duplicate_name() 51 for i in res: 62 names = [p.field_name for p in res] 66 for p in res: 77 for p in res: 81 res.verify_duplicate_name() 82 return res [all …]
|
/hal_espressif-latest/components/bt/controller/esp32/ |
D | hli_api.c | 145 int res = pdPASS; in queue_isr_handler() local 149 res = xSemaphoreGiveFromISR((SemaphoreHandle_t) queue->downstream, &do_yield); in queue_isr_handler() 151 res = xQueueSendFromISR(queue->downstream, scratch, &do_yield); in queue_isr_handler() 153 if (res == pdFAIL) { in queue_isr_handler() 181 bool res = hli_queue_put(s_meta_queue_ptr, &queue); in queue_signal() local 182 if (!res) { in queue_signal() 226 …hli_queue_handle_t res = (hli_queue_handle_t) heap_caps_malloc(sizeof(struct hli_queue_t) + buf_si… in hli_queue_create() local 228 if (res == NULL) { in hli_queue_create() 231 queue_init(res, buf_size, elem_size, downstream); in hli_queue_create() 232 return res; in hli_queue_create() [all …]
|
/hal_espressif-latest/components/wpa_supplicant/src/common/ |
D | bss.c | 180 struct wpa_scan_res *res, in wpa_bss_add() argument 192 bss = os_zalloc(sizeof(*bss) + res->ie_len + res->beacon_ie_len); in wpa_bss_add() 197 wpa_bss_copy_res(bss, res, fetch_time); in wpa_bss_add() 200 bss->ie_len = res->ie_len; in wpa_bss_add() 201 bss->beacon_ie_len = res->beacon_ie_len; in wpa_bss_add() 202 os_memcpy(bss->ies, res + 1, res->ie_len + res->beacon_ie_len); in wpa_bss_add() 216 struct wpa_scan_res *res, struct os_reltime *fetch_time) in wpa_bss_update() argument 231 calculate_update_time(fetch_time, res->age, &update_time); in wpa_bss_update() 237 wpa_bss_copy_res(bss, res, fetch_time); in wpa_bss_update() 241 res->ie_len + res->beacon_ie_len) { in wpa_bss_update() [all …]
|
D | dragonfly.c | 61 int res; in dragonfly_get_random_qr_qnr() local 69 res = crypto_bignum_legendre(tmp, prime); in dragonfly_get_random_qr_qnr() 70 if (res == 1 && !(*qr)) in dragonfly_get_random_qr_qnr() 72 else if (res == -1 && !(*qnr)) in dragonfly_get_random_qr_qnr() 114 int check, res = -1; in dragonfly_is_quadratic_residue_blind() local 165 res = crypto_bignum_legendre(num, prime); in dragonfly_is_quadratic_residue_blind() 166 if (res == -2) { in dragonfly_is_quadratic_residue_blind() 167 res = -1; in dragonfly_is_quadratic_residue_blind() 172 mask = const_time_eq(res, check); in dragonfly_is_quadratic_residue_blind() 173 res = const_time_select_int(mask, 1, 0); in dragonfly_is_quadratic_residue_blind() [all …]
|
D | scan.c | 85 const u8 * wpa_scan_get_ie(const struct wpa_scan_res *res, u8 ie) in wpa_scan_get_ie() argument 87 size_t ie_len = res->ie_len; in wpa_scan_get_ie() 91 ie_len = res->beacon_ie_len; in wpa_scan_get_ie() 93 return get_ie((const u8 *) (res + 1), ie_len, ie); in wpa_scan_get_ie()
|
/hal_espressif-latest/components/esp_rom/linux/ |
D | esp_rom_sys.c | 65 int res = 0, length = 0; in esp_rom_vprintf() local 183 res++; in esp_rom_vprintf() 209 res += 2; in esp_rom_vprintf() 219 res++; in esp_rom_vprintf() 228 res++; in esp_rom_vprintf() 233 res++; in esp_rom_vprintf() 238 res++; in esp_rom_vprintf() 243 res++; in esp_rom_vprintf() 248 res++; in esp_rom_vprintf() 251 return (res); in esp_rom_vprintf()
|
/hal_espressif-latest/components/wpa_supplicant/src/crypto/ |
D | crypto_internal-rsa.c | 42 struct crypto_private_key *res; in crypto_private_key_import() local 45 res = pkcs8_key_import(key, len); in crypto_private_key_import() 46 if (res) in crypto_private_key_import() 47 return res; in crypto_private_key_import() 51 res = pkcs8_enc_key_import(key, len, passwd); in crypto_private_key_import() 52 if (res) in crypto_private_key_import() 53 return res; in crypto_private_key_import()
|
D | tls_internal.c | 489 u8 *res, *ad; in tls_connection_handshake2() local 497 res = tlsv1_client_handshake(conn->client, in tls_connection_handshake2() 501 if (res == NULL) in tls_connection_handshake2() 503 out = wpabuf_alloc_ext_data(res, res_len); in tls_connection_handshake2() 505 os_free(res); in tls_connection_handshake2() 532 u8 *res; in tls_connection_server_handshake() local 542 res = tlsv1_server_handshake(conn->server, wpabuf_head(in_data), in tls_connection_server_handshake() 544 if (res == NULL && tlsv1_server_established(conn->server)) in tls_connection_server_handshake() 546 if (res == NULL) in tls_connection_server_handshake() 548 out = wpabuf_alloc_ext_data(res, res_len); in tls_connection_server_handshake() [all …]
|
/hal_espressif-latest/components/wpa_supplicant/esp_supplicant/src/crypto/ |
D | crypto_mbedtls-bignum.c | 173 int res; in crypto_bignum_sqrmod() local 179 res = mbedtls_mpi_copy((mbedtls_mpi *) tmp,(const mbedtls_mpi *) a); in crypto_bignum_sqrmod() 180 res = crypto_bignum_mulmod(a,tmp,b,c); in crypto_bignum_sqrmod() 183 return res ? -1 : 0; in crypto_bignum_sqrmod() 190 int res; in crypto_bignum_rshift() local 191 res = mbedtls_mpi_copy((mbedtls_mpi *) r,(const mbedtls_mpi *) a); in crypto_bignum_rshift() 192 if (res) { in crypto_bignum_rshift() 196 res = mbedtls_mpi_shift_r((mbedtls_mpi *)r, n); in crypto_bignum_rshift() 197 return res ? -1 : 0; in crypto_bignum_rshift() 241 int res = -2, ret; in crypto_bignum_legendre() local [all …]
|
/hal_espressif-latest/components/wpa_supplicant/src/utils/ |
D | const_time.h | 83 u8 res = 0; in const_time_eq_bin() local 86 res |= aa[i] ^ bb[i]; in const_time_eq_bin() 88 return const_time_is_zero(res); in const_time_eq_bin() 176 int diff, res = 0; in const_time_memcmp() local 185 res = const_time_select_int(mask, res, diff); in const_time_memcmp() 188 return res; in const_time_memcmp()
|
D | common.c | 407 size_t wpa_merge_byte_arrays(u8 *res, size_t res_len, in wpa_merge_byte_arrays() argument 413 os_memset(res, 0, res_len); in wpa_merge_byte_arrays() 417 os_memcpy(res, src1, res_len); in wpa_merge_byte_arrays() 421 os_memcpy(res, src1, src1_len); in wpa_merge_byte_arrays() 427 os_memcpy(res + len, src2, res_len - len); in wpa_merge_byte_arrays() 431 os_memcpy(res + len, src2, src2_len); in wpa_merge_byte_arrays() 441 char *res; in dup_binstr() local 445 res = os_malloc(len + 1); in dup_binstr() 446 if (res == NULL) in dup_binstr() 448 os_memcpy(res, src, len); in dup_binstr() [all …]
|
/hal_espressif-latest/tools/esptool_py/flasher_stub/ |
D | stub_commands.c | 101 uint8_t res = 0; in handle_flash_read() local 116 res = SPIRead4B(1, addr, buf, n); in handle_flash_read() 118 res = SPIRead(addr, (uint32_t *)buf, n); in handle_flash_read() 121 res = SPIRead(addr, (uint32_t *)buf, n); in handle_flash_read() 123 if (res != 0) { in handle_flash_read() 146 uint8_t res = 0; in handle_flash_get_md5sum() local 156 res = SPIRead4B(1, addr, buf, n); in handle_flash_get_md5sum() 158 res = SPIRead(addr, (uint32_t *)buf, n); in handle_flash_get_md5sum() 161 res = SPIRead(addr, (uint32_t *)buf, n); in handle_flash_get_md5sum() 163 if (res != 0) { in handle_flash_get_md5sum() [all …]
|
/hal_espressif-latest/components/esp_system/port/arch/riscv/ |
D | panic_arch.c | 181 …esp_err_t res = esp_mprot_get_violate_addr(s_memp_intr.mem_type, &faulting_addr, s_memp_intr.core); in print_memprot_err_details() local 182 if (res == ESP_OK) { in print_memprot_err_details() 186 PRINT_MEMPROT_ERROR(res); in print_memprot_err_details() 191 res = esp_mprot_get_violate_world(s_memp_intr.mem_type, &world, s_memp_intr.core); in print_memprot_err_details() 192 if (res == ESP_OK) { in print_memprot_err_details() 195 PRINT_MEMPROT_ERROR(res); in print_memprot_err_details() 200 res = esp_mprot_get_violate_operation(s_memp_intr.mem_type, &operation, s_memp_intr.core); in print_memprot_err_details() 201 if (res == ESP_OK) { in print_memprot_err_details() 204 PRINT_MEMPROT_ERROR(res); in print_memprot_err_details() 210 … res = esp_mprot_get_violate_byte_enables(s_memp_intr.mem_type, &byte_enables, s_memp_intr.core); in print_memprot_err_details() [all …]
|
/hal_espressif-latest/components/wpa_supplicant/src/ap/ |
D | wpa_auth_ie.c | 92 int num_suites, res; in wpa_write_rsn_ie() local 123 res = rsn_cipher_put_suites(pos, conf->rsn_pairwise); in wpa_write_rsn_ie() 124 num_suites += res; in wpa_write_rsn_ie() 125 pos += res * RSN_SELECTOR_LEN; in wpa_write_rsn_ie() 332 int res; in wpa_auth_gen_wpa_ie() local 337 res = wpa_write_rsn_ie(&wpa_auth->conf, in wpa_auth_gen_wpa_ie() 339 if (res < 0) in wpa_auth_gen_wpa_ie() 340 return res; in wpa_auth_gen_wpa_ie() 341 pos += res; in wpa_auth_gen_wpa_ie() 342 res = wpa_write_rsnxe(&wpa_auth->conf, pos, in wpa_auth_gen_wpa_ie() [all …]
|
/hal_espressif-latest/components/wpa_supplicant/src/wps/ |
D | wps_enrollee.c | 807 int res; in wps_process_creds() local 808 res = wps_process_cred_e(wps, cred[i], cred_len[i], wps2); in wps_process_creds() 809 if (res == 0) in wps_process_creds() 811 else if (res == -2) in wps_process_creds() 1135 enum wps_process_res res; in wps_process_m4() local 1142 res = WPS_CONTINUE; in wps_process_m4() 1150 res = WPS_CONTINUE; in wps_process_m4() 1159 res = WPS_CONTINUE; in wps_process_m4() 1169 res = WPS_CONTINUE; in wps_process_m4() 1176 res = WPS_CONTINUE; in wps_process_m4() [all …]
|
/hal_espressif-latest/components/bt/host/bluedroid/bta/hf_client/ |
D | bta_hf_client_at.c | 630 int res; in bta_hf_client_parse_uint32() local 633 res = sscanf(buffer, "%u%n", &value, &offset); in bta_hf_client_parse_uint32() 634 if (res < 1) { in bta_hf_client_parse_uint32() 660 int res; in bta_hf_client_parse_cind_values() local 662 while ((res = sscanf(buffer, "%u%n", &value, &offset)) > 0) { in bta_hf_client_parse_cind_values() 677 if (res > 0) { in bta_hf_client_parse_cind_values() 691 int res; in bta_hf_client_parse_cind_list() local 698 … while ((res = sscanf(buffer, "(\"%128[^\"]\",(%u%*[-,]%u))%n", name, &min, &max, &offset)) > 2) { in bta_hf_client_parse_cind_list() 712 if (res > 2) { in bta_hf_client_parse_cind_list() 788 int res; in bta_hf_client_parse_ciev() local [all …]
|
/hal_espressif-latest/components/efuse/ |
D | efuse_table_gen.py | 55 res = FuseTable() 70 res.append(FuseDefinition.from_csv(line)) 79 for i in res: 87 res.verify_duplicate_name() 91 for i in res: 99 names = [p.field_name for p in res] 103 for p in res: 111 res.verify_duplicate_name() 114 res.calc_md5() 116 return res [all …]
|
/hal_espressif-latest/tools/esptool_py/test/ |
D | test_esptool.py | 771 res = self.run_esptool("get_security_info") 772 assert "Flags" in res 773 assert "Crypt Count" in res 775 assert "Key Purposes" in res 781 assert f"Chip ID: {esp.IMAGE_CHIP_ID}" in res 782 assert "API Version" in res 785 assert "Secure Boot" in res 786 assert "Flash Encryption" in res 874 res = self.run_esptool("flash_id") 875 assert "Manufacturer:" in res [all …]
|
/hal_espressif-latest/components/bt/host/bluedroid/stack/smp/ |
D | smp_api.c | 259 void SMP_SecurityGrant(BD_ADDR bd_addr, UINT8 res) in SMP_SecurityGrant() argument 274 smp_br_state_machine_event(&smp_cb, SMP_BR_API_SEC_GRANT_EVT, &res); in SMP_SecurityGrant() 287 smp_sm_event(&smp_cb, SMP_API_SEC_GRANT_EVT, &res); in SMP_SecurityGrant() 303 void SMP_PasskeyReply (BD_ADDR bd_addr, UINT8 res, UINT32 passkey) in SMP_PasskeyReply() argument 309 passkey, res); in SMP_PasskeyReply() 327 if (passkey > BTM_MAX_PASSKEY_VAL || res != SMP_SUCCESS) { in SMP_PasskeyReply() 379 void SMP_ConfirmReply (BD_ADDR bd_addr, UINT8 res) in SMP_ConfirmReply() argument 384 SMP_TRACE_EVENT ("%s: Result:%d", __FUNCTION__, res); in SMP_ConfirmReply() 402 if (res != SMP_SUCCESS) { in SMP_ConfirmReply() 423 void SMP_OobDataReply(BD_ADDR bd_addr, tSMP_STATUS res, UINT8 len, UINT8 *p_data) in SMP_OobDataReply() argument [all …]
|
/hal_espressif-latest/components/wpa_supplicant/src/eap_peer/ |
D | eap_tls.c | 76 struct eap_method_ret *ret, int res, in eap_tls_failure() argument 84 if (res == -1) { in eap_tls_failure() 151 int res; in eap_tls_process() local 170 res = eap_peer_tls_process_helper(sm, &data->ssl, data->eap_type, 0, in eap_tls_process() 173 if (res < 0) { in eap_tls_process() 174 return eap_tls_failure(sm, data, ret, res, resp, id); in eap_tls_process() 180 if (res == 1) { in eap_tls_process()
|
/hal_espressif-latest/components/esp_hw_support/port/esp32c3/ |
D | esp_memprot.c | 464 esp_err_t res; in esp_mprot_is_conf_locked_any() local 466 …ESP_MEMPROT_ERR_CHECK(res, esp_mprot_get_split_addr_lock(MEMPROT_TYPE_IRAM0_SRAM, &lock_on, DEFAUL… in esp_mprot_is_conf_locked_any() 468 …ESP_MEMPROT_ERR_CHECK(res, esp_mprot_get_split_addr_lock(MEMPROT_TYPE_DRAM0_SRAM, &lock_on, DEFAUL… in esp_mprot_is_conf_locked_any() 470 …ESP_MEMPROT_ERR_CHECK(res, esp_mprot_get_pms_lock(MEMPROT_TYPE_IRAM0_SRAM, &lock_on, DEFAULT_CPU_N… in esp_mprot_is_conf_locked_any() 472 …ESP_MEMPROT_ERR_CHECK(res, esp_mprot_get_pms_lock(MEMPROT_TYPE_DRAM0_SRAM, &lock_on, DEFAULT_CPU_N… in esp_mprot_is_conf_locked_any() 474 …ESP_MEMPROT_ERR_CHECK(res, esp_mprot_get_monitor_lock(MEMPROT_TYPE_IRAM0_SRAM, &lock_on, DEFAULT_C… in esp_mprot_is_conf_locked_any() 476 …ESP_MEMPROT_ERR_CHECK(res, esp_mprot_get_monitor_lock(MEMPROT_TYPE_DRAM0_SRAM, &lock_on, DEFAULT_C… in esp_mprot_is_conf_locked_any() 478 …ESP_MEMPROT_ERR_CHECK(res, esp_mprot_get_monitor_lock(MEMPROT_TYPE_IRAM0_RTCFAST, &lock_on, DEFAUL… in esp_mprot_is_conf_locked_any() 491 esp_err_t res; in esp_mprot_is_intr_ena_any() local 493 …ESP_MEMPROT_ERR_CHECK(res, esp_mprot_get_monitor_en(MEMPROT_TYPE_IRAM0_SRAM, &ena_on, DEFAULT_CPU_… in esp_mprot_is_intr_ena_any() [all …]
|