/hal_espressif-latest/components/bt/porting/transport/driver/common/ |
D | hci_driver_h4.c | 106 int rc; in hci_h4_sm_w4_header() local 108 rc = hci_h4_ib_pull_min_len(h4sm, ib); in hci_h4_sm_w4_header() 109 if (rc) { in hci_h4_sm_w4_header() 141 rc = hci_h4_ib_pull_min_len(h4sm, ib); in hci_h4_sm_w4_header() 142 if (rc) { in hci_h4_sm_w4_header() 193 int rc; in hci_h4_sm_w4_payload() local 210 rc = os_mbuf_append(h4sm->om, ib->buf, len); in hci_h4_sm_w4_payload() 211 if (rc) { in hci_h4_sm_w4_payload() 237 int rc; in hci_h4_sm_completed() local 244 rc = h4sm->frame_cb(h4sm->pkt_type, h4sm->buf); in hci_h4_sm_completed() [all …]
|
/hal_espressif-latest/components/wpa_supplicant/src/eap_peer/ |
D | eap_fast_pac.c | 189 static int eap_fast_read_line(struct eap_fast_read_ctx *rc, char **value) in eap_fast_read_line() argument 193 rc->line++; in eap_fast_read_line() 194 if (rc->f) { in eap_fast_read_line() 195 if (fgets(rc->buf, rc->buf_len, rc->f) == NULL) in eap_fast_read_line() 200 if (rc->pos >= rc->end) in eap_fast_read_line() 202 l_end = rc->pos; in eap_fast_read_line() 203 while (l_end < rc->end && *l_end != '\n') in eap_fast_read_line() 205 len = l_end - rc->pos; in eap_fast_read_line() 206 if (len >= rc->buf_len) in eap_fast_read_line() 207 len = rc->buf_len - 1; in eap_fast_read_line() [all …]
|
/hal_espressif-latest/components/bt/host/nimble/esp-hci/src/ |
D | esp_nimble_hci.c | 77 uint8_t rc = 0; in ble_hci_trans_hs_cmd_tx() local 89 rc = BLE_HS_ETIMEOUT_HCI; in ble_hci_trans_hs_cmd_tx() 93 return rc; in ble_hci_trans_hs_cmd_tx() 98 int rc = ESP_FAIL; in ble_hci_trans_ll_evt_tx() local 100 rc = ble_transport_to_hs_evt((void *)hci_ev); in ble_hci_trans_ll_evt_tx() 101 return rc; in ble_hci_trans_ll_evt_tx() 107 uint8_t data[MYNEWT_VAL(BLE_TRANSPORT_ACL_SIZE) + 1], rc = 0; in ble_hci_trans_hs_acl_tx() local 126 rc = BLE_HS_ETIMEOUT_HCI; in ble_hci_trans_hs_acl_tx() 131 return rc; in ble_hci_trans_hs_acl_tx() 136 int rc = ESP_FAIL; in ble_hci_trans_ll_acl_tx() local [all …]
|
/hal_espressif-latest/components/bt/common/btc/profile/esp/blufi/nimble_host/ |
D | esp_blufi.c | 116 int rc; in write_value() local 152 rc = ble_hs_mbuf_to_flat(ctxt->om, value->buf->om_data, in write_value() 154 if (rc != 0) { in write_value() 169 int rc; in read_value() local 187 rc = os_mbuf_append(ctxt->om, value->buf->om_data, value->buf->om_len); in read_value() 188 return rc == 0 ? 0 : BLE_ATT_ERR_INSUFFICIENT_RES; in read_value() 271 int rc; in esp_blufi_gatt_svr_init() local 275 rc = ble_gatts_count_cfg(gatt_svr_svcs); in esp_blufi_gatt_svr_init() 276 if (rc != 0) { in esp_blufi_gatt_svr_init() 277 return rc; in esp_blufi_gatt_svr_init() [all …]
|
/hal_espressif-latest/components/esp_system/ |
D | esp_err.c | 27 static void esp_error_check_failed_print(const char *msg, esp_err_t rc, const char *file, int line,… in esp_error_check_failed_print() argument 29 esp_rom_printf("%s failed: esp_err_t 0x%x", msg, rc); in esp_error_check_failed_print() 31 esp_rom_printf(" (%s)", esp_err_to_name(rc)); in esp_error_check_failed_print() 42 void _esp_error_check_failed_without_abort(esp_err_t rc, const char *file, int line, const char *fu… in _esp_error_check_failed_without_abort() argument 44 …esp_error_check_failed_print("ESP_ERROR_CHECK_WITHOUT_ABORT", rc, file, line, function, expression… in _esp_error_check_failed_without_abort() 47 void _esp_error_check_failed(esp_err_t rc, const char *file, int line, const char *function, const … in _esp_error_check_failed() argument 49 …esp_error_check_failed_print("ESP_ERROR_CHECK", rc, file, line, function, expression, (intptr_t)__… in _esp_error_check_failed()
|
/hal_espressif-latest/zephyr/esp32/include/ |
D | esp_nvs_adapter.h | 36 static inline int32_t esp_get_nvs_error(int32_t rc) { in esp_get_nvs_error() argument 37 if (rc == 0) return ESP_OK; in esp_get_nvs_error() 38 if (rc == -ENOENT) return ESP_ERR_NVS_NOT_FOUND; in esp_get_nvs_error() 39 if (rc == -ENOMEM) return ESP_ERR_NVS_NOT_ENOUGH_SPACE; in esp_get_nvs_error() 40 if (rc == -ENODEV) return ESP_ERR_NVS_INVALID_STATE; in esp_get_nvs_error() 41 if (rc == -EINVAL) return ESP_ERR_NVS_INVALID_NAME; in esp_get_nvs_error() 42 if (rc == -ENOSPC) return ESP_ERR_NVS_NOT_ENOUGH_SPACE; in esp_get_nvs_error()
|
/hal_espressif-latest/zephyr/esp32s3/include/ |
D | esp_nvs_adapter.h | 36 static inline int32_t esp_get_nvs_error(int32_t rc) { in esp_get_nvs_error() argument 37 if (rc == 0) return ESP_OK; in esp_get_nvs_error() 38 if (rc == -ENOENT) return ESP_ERR_NVS_NOT_FOUND; in esp_get_nvs_error() 39 if (rc == -ENOMEM) return ESP_ERR_NVS_NOT_ENOUGH_SPACE; in esp_get_nvs_error() 40 if (rc == -ENODEV) return ESP_ERR_NVS_INVALID_STATE; in esp_get_nvs_error() 41 if (rc == -EINVAL) return ESP_ERR_NVS_INVALID_NAME; in esp_get_nvs_error() 42 if (rc == -ENOSPC) return ESP_ERR_NVS_NOT_ENOUGH_SPACE; in esp_get_nvs_error()
|
/hal_espressif-latest/components/bt/porting/transport/driver/vhci/ |
D | hci_driver_tamplete.c | 22 int rc; in hci_driver_vhci_controller_tx() local 57 rc = s_hci_driver_vhci_env.forward_cb(data_type, buf, len, HCI_DRIVER_DIR_C2H); in hci_driver_vhci_controller_tx() 60 return rc; in hci_driver_vhci_controller_tx() 105 int rc; in hci_driver_vhci_tx() local 108 rc = hci_driver_vhci_controller_tx(data_type, data, length); in hci_driver_vhci_tx() 110 rc = hci_driver_vhci_host_tx(data_type, data, length); in hci_driver_vhci_tx() 112 return rc; in hci_driver_vhci_tx()
|
D | hci_driver_standard.c | 24 int rc; in hci_driver_vhci_controller_tx() local 48 rc = s_hci_driver_vhci_env.forward_cb(data_type, buf, buf_len, HCI_DRIVER_DIR_C2H); in hci_driver_vhci_controller_tx() 51 return rc; in hci_driver_vhci_controller_tx() 79 int rc; in hci_driver_vhci_tx() local 82 rc = hci_driver_vhci_controller_tx(data_type, data, length); in hci_driver_vhci_tx() 84 rc = hci_driver_vhci_host_tx(data_type, data, length); in hci_driver_vhci_tx() 86 return rc; in hci_driver_vhci_tx()
|
D | hci_driver_nimble.c | 34 int rc; in hci_driver_vhci_tx() local 37 rc = hci_driver_vhci_controller_tx(data_type, data); in hci_driver_vhci_tx() 39 rc = hci_driver_vhci_host_tx(data_type, data, length); in hci_driver_vhci_tx() 41 return rc; in hci_driver_vhci_tx()
|
/hal_espressif-latest/components/bt/porting/mem/ |
D | os_msys_init.c | 20 #define SYSINIT_PANIC_ASSERT(rc) assert(rc); argument 157 int rc; in os_msys_init_once() local 159 rc = mem_init_mbuf_pool(data, mempool, mbuf_pool, block_count, block_size, in os_msys_init_once() 161 SYSINIT_PANIC_ASSERT(rc == 0); in os_msys_init_once() 163 rc = os_msys_register(mbuf_pool); in os_msys_init_once() 164 SYSINIT_PANIC_ASSERT(rc == 0); in os_msys_init_once() 209 int rc; in os_msys_init() local 236 rc = os_sanity_check_register(&os_msys_sc); in os_msys_init() 237 SYSINIT_PANIC_ASSERT(rc == 0); in os_msys_init()
|
/hal_espressif-latest/components/bt/porting/transport/src/ |
D | hci_transport.c | 48 int rc; in hci_transport_packet_rx() local 54 rc = hci_transport_host_packet_rx(data_type, data, length); in hci_transport_packet_rx() 56 rc = hci_transport_controller_packet_rx(data_type, data); in hci_transport_packet_rx() 59 return rc; in hci_transport_packet_rx() 123 int rc; in hci_transport_init() local 149 rc = ops->hci_driver_init(hci_transport_packet_rx); in hci_transport_init() 150 if (rc) { in hci_transport_init() 161 return rc; in hci_transport_init()
|
/hal_espressif-latest/components/bt/porting/transport/driver/uart/ |
D | hci_driver_uart.c | 174 int rc; in hci_driver_uart_init() local 180 rc = hci_driver_util_init(); in hci_driver_uart_init() 181 if (rc) { in hci_driver_uart_init() 201 rc = hci_driver_uart_task_create(); in hci_driver_uart_init() 202 if (rc) { in hci_driver_uart_init() 210 return rc; in hci_driver_uart_init() 216 int rc; in hci_driver_uart_reconfig_pin() local 231 rc = hci_driver_uart_task_create(); in hci_driver_uart_reconfig_pin() 232 if (rc) { in hci_driver_uart_reconfig_pin()
|
D | hci_driver_uart_dma.c | 161 int rc = 0; in hci_driver_uart_dma_memory_init() local 169 rc = os_mempool_init(&s_hci_driver_uart_dma_env.lldesc_mem_pool, HCI_LLDESCS_POOL_NUM, in hci_driver_uart_dma_memory_init() 171 if (rc) { in hci_driver_uart_dma_memory_init() 189 rc = os_mempool_init(s_hci_driver_uart_dma_env.hci_rx_data_pool, HCI_RX_DATA_POOL_NUM, in hci_driver_uart_dma_memory_init() 192 if (rc) { in hci_driver_uart_dma_memory_init() 212 rc = os_mempool_init(s_hci_driver_uart_dma_env.hci_rxinfo_pool, HCI_RX_INFO_POOL_NUM, in hci_driver_uart_dma_memory_init() 215 if (rc) { in hci_driver_uart_dma_memory_init() 219 return rc; in hci_driver_uart_dma_memory_init() 222 return rc; in hci_driver_uart_dma_memory_init() 607 int rc; in hci_driver_uart_dma_init() local [all …]
|
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_core/nimble_host/ |
D | mesh_bearer_adapt.c | 89 int rc; in bt_mesh_host_init() local 96 rc = btc_init(); in bt_mesh_host_init() 97 if (rc != 0) { in bt_mesh_host_init() 101 rc = osi_alarm_create_mux(); in bt_mesh_host_init() 102 if (rc != 0) { in bt_mesh_host_init() 114 int rc; in bt_mesh_host_deinit() local 122 rc = osi_alarm_delete_mux(); in bt_mesh_host_deinit() 123 if (rc != 0) { in bt_mesh_host_deinit() 230 int rc = 0, j, i = (int)arg; /* char index */ in dsc_disced() local 264 rc = 0; in dsc_disced() [all …]
|
/hal_espressif-latest/components/esp_common/src/ |
D | esp_err_check_linux.c | 15 void _esp_error_check_failed(esp_err_t rc, const char *file, int line, const char *function, const … in _esp_error_check_failed() argument 17 printf("ESP_ERROR_CHECK failed: esp_err_t 0x%x", rc); in _esp_error_check_failed() 19 printf(" (%s)", esp_err_to_name(rc)); in _esp_error_check_failed()
|
/hal_espressif-latest/components/bt/controller/esp32h2/ |
D | bt.c | 478 int rc = -1; in esp_ecc_gen_key_pair() local 480 rc = ble_sm_alg_gen_key_pair(pub, priv); in esp_ecc_gen_key_pair() 482 return rc; in esp_ecc_gen_key_pair() 488 int rc = -1; in esp_ecc_gen_dh_key() local 490 rc = ble_sm_alg_gen_dhkey(peer_pub_key_x, peer_pub_key_y, our_priv_key, out_dhkey); in esp_ecc_gen_dh_key() 492 return rc; in esp_ecc_gen_dh_key() 498 int rc = esp_intr_alloc(source, flags | ESP_INTR_FLAG_IRAM, handler, in esp_intr_alloc_wrapper() local 500 return rc; in esp_intr_alloc_wrapper() 505 int rc = 0; in esp_intr_free_wrapper() local 506 rc = esp_intr_free((intr_handle_t) * ret_handle); in esp_intr_free_wrapper() [all …]
|
/hal_espressif-latest/components/bt/controller/esp32c2/ |
D | bt.c | 534 int rc = -1; in esp_ecc_gen_key_pair() local 536 rc = ble_sm_alg_gen_key_pair(pub, priv); in esp_ecc_gen_key_pair() 538 return rc; in esp_ecc_gen_key_pair() 544 int rc = -1; in esp_ecc_gen_dh_key() local 546 rc = ble_sm_alg_gen_dhkey(peer_pub_key_x, peer_pub_key_y, our_priv_key, out_dhkey); in esp_ecc_gen_dh_key() 548 return rc; in esp_ecc_gen_dh_key() 554 int rc = esp_intr_alloc(source, flags, handler, arg, (intr_handle_t *)ret_handle_in); in esp_intr_alloc_wrapper() local 556 …int rc = esp_intr_alloc(source, flags | ESP_INTR_FLAG_IRAM, handler, arg, (intr_handle_t *)ret_han… in esp_intr_alloc_wrapper() 559 return rc; in esp_intr_alloc_wrapper() 564 int rc = 0; in esp_intr_free_wrapper() local [all …]
|
/hal_espressif-latest/components/bt/controller/esp32c6/ |
D | bt.c | 481 int rc = -1; in esp_ecc_gen_key_pair() local 483 rc = ble_sm_alg_gen_key_pair(pub, priv); in esp_ecc_gen_key_pair() 485 return rc; in esp_ecc_gen_key_pair() 491 int rc = -1; in esp_ecc_gen_dh_key() local 493 rc = ble_sm_alg_gen_dhkey(peer_pub_key_x, peer_pub_key_y, our_priv_key, out_dhkey); in esp_ecc_gen_dh_key() 495 return rc; in esp_ecc_gen_dh_key() 501 int rc = esp_intr_alloc(source, flags | ESP_INTR_FLAG_IRAM, handler, in esp_intr_alloc_wrapper() local 503 return rc; in esp_intr_alloc_wrapper() 508 int rc = 0; in esp_intr_free_wrapper() local 509 rc = esp_intr_free((intr_handle_t) * ret_handle); in esp_intr_free_wrapper() [all …]
|
/hal_espressif-latest/components/bt/host/bluedroid/stack/smp/ |
D | aes.c | 515 uint_8t cc, rc, hi; local 537 for ( cc = keylen, rc = 1; cc < hi; cc += 4 ) { 546 t0 = s_box(t1) ^ rc; 550 rc = f2(rc); 677 static void update_encrypt_key_128( uint_8t k[N_BLOCK], uint_8t *rc ) argument 681 k[0] ^= s_box(k[13]) ^ *rc; 685 *rc = f2( *rc ); 700 uint_8t s1[N_BLOCK], r, rc = 1; local 711 update_encrypt_key_128( o_key, &rc ); 718 update_encrypt_key_128( o_key, &rc ); [all …]
|
/hal_espressif-latest/components/spi_flash/sim/ |
D | flash_mock.cpp | 112 esp_rom_spiflash_result_t rc = ESP_ROM_SPIFLASH_RESULT_OK; in esp_flash_erase_region() local 113 for (size_t sector = start; sector != end && rc == ESP_ROM_SPIFLASH_RESULT_OK; ) { in esp_flash_erase_region() 114 rc = spiflash.erase_sector(sector); in esp_flash_erase_region() 117 return rc; in esp_flash_erase_region()
|
/hal_espressif-latest/zephyr/port/boot/ |
D | esp_image_loader.c | 80 int rc; in esp_app_image_load() local 83 rc = flash_area_open(area_id, &fap); in esp_app_image_load() 84 if (rc != 0) { in esp_app_image_load() 85 BOOT_LOG_ERR("%s: flash_area_open failed with %d", __func__, rc); in esp_app_image_load()
|
/hal_espressif-latest/components/esp_common/include/ |
D | esp_err.h | 81 void _esp_error_check_failed(esp_err_t rc, const char *file, int line, const char *function, const … 83 void _esp_error_check_failed_without_abort(esp_err_t rc, const char *file, int line, const char *fu…
|
/hal_espressif-latest/components/bt/host/bluedroid/stack/rfcomm/ |
D | port_api.c | 1441 int rc; in PORT_Write() local 1465 rc = port_write (p_port, p_buf); in PORT_Write() 1468 switch (rc) { in PORT_Write() 1505 int rc = 0; in PORT_WriteDataCO() local 1573 rc = port_write (p_port, p_buf); in PORT_WriteDataCO() 1578 if (rc == PORT_SUCCESS) { in PORT_WriteDataCO() 1582 if ((rc != PORT_SUCCESS) && (rc != PORT_CMD_PENDING)) { in PORT_WriteDataCO() 1590 if (!available && (rc != PORT_CMD_PENDING) && (rc != PORT_TX_QUEUE_DISABLED)) { in PORT_WriteDataCO() 1625 int rc = 0; in PORT_WriteData() local 1701 rc = port_write (p_port, p_buf); in PORT_WriteData() [all …]
|
/hal_espressif-latest/components/wpa_supplicant/esp_supplicant/src/ |
D | esp_dpp.c | 142 int rc; in esp_dpp_rx_auth_req() local 150 rc = ESP_ERR_DPP_INVALID_ATTR; in esp_dpp_rx_auth_req() 159 rc = ESP_ERR_DPP_INVALID_ATTR; in esp_dpp_rx_auth_req() 169 rc = ESP_ERR_DPP_INVALID_ATTR; in esp_dpp_rx_auth_req() 189 esp_dpp_call_cb(ESP_SUPP_DPP_FAIL, (void *)rc); in esp_dpp_rx_auth_req() 254 int rc; in esp_dpp_rx_auth_conf() local 261 rc = ESP_ERR_DPP_FAILURE; in esp_dpp_rx_auth_conf() 268 rc = ESP_ERR_DPP_FAILURE; in esp_dpp_rx_auth_conf() 277 rc = ESP_ERR_DPP_FAILURE; in esp_dpp_rx_auth_conf() 287 esp_dpp_call_cb(ESP_SUPP_DPP_FAIL, (void *)rc); in esp_dpp_rx_auth_conf()
|