/hal_espressif-latest/components/bt/host/bluedroid/btc/profile/std/hf_ag/ |
D | btc_hf_ag.c | 113 #define CHECK_HF_INIT(idx) \ argument 115 if ((idx < 0) || (idx >= BTC_HF_NUM_CB)) { \ 118 if (!hf_local_param[idx].btc_hf_cb.initialized) { \ 126 #define CHECK_HF_SLC_CONNECTED(idx) \ argument 128 if ((idx < 0) || (idx >= BTC_HF_NUM_CB)) { \ 131 if (!hf_local_param[idx].btc_hf_cb.initialized || \ 132 hf_local_param[idx].btc_hf_cb.connection_state != ESP_HF_CONNECTION_STATE_SLC_CONNECTED) { \ 142 hf_local_param[idx].btc_hf_cb.call_state = ESP_HF_CALL_STATUS_NO_CALLS; \ 143 hf_local_param[idx].btc_hf_cb.call_setup_state = ESP_HF_CALL_SETUP_STATUS_IDLE;\ 144 hf_local_param[idx].btc_hf_cb.num_active = 0; \ [all …]
|
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_core/ |
D | provisioner_prov.c | 323 static void send_link_open(const uint8_t idx); 326 static void prov_gen_dh_key(const uint8_t idx); 328 static void send_pub_key(const uint8_t idx, uint8_t oob); 330 static void close_link(const uint8_t idx, uint8_t reason); 1236 static struct net_buf_simple *bt_mesh_pba_get_buf(const uint8_t idx) argument 1238 struct net_buf_simple *buf = &(adv_buf[idx].buf); 1246 static void prov_memory_free(const uint8_t idx) argument 1248 PROV_FREE_MEM(idx, dhkey); 1249 PROV_FREE_MEM(idx, auth); 1250 PROV_FREE_MEM(idx, rand); [all …]
|
D | settings_uid.c | 190 uint8_t idx = 0; in settings_index_get() local 199 idx = i; in settings_index_get() 205 idx = INVALID_SETTINGS_INDEX; in settings_index_get() 209 *index = idx; in settings_index_get() 211 return idx; in settings_index_get() 300 uint8_t idx = 0; in bt_mesh_provisioner_open_settings_with_uid() local 308 idx = settings_index_get(id, index); in bt_mesh_provisioner_open_settings_with_uid() 311 if (idx >= ARRAY_SIZE(user_ids)) { in bt_mesh_provisioner_open_settings_with_uid() 327 idx = i; in bt_mesh_provisioner_open_settings_with_uid() 330 return settings_open(idx); in bt_mesh_provisioner_open_settings_with_uid() [all …]
|
D | cfg_srv.c | 2160 uint16_t idx, uint8_t status) in send_net_key_status() argument 2167 net_buf_simple_add_le16(&msg, idx); in send_net_key_status() 2179 uint16_t idx = 0U; in net_key_add() local 2182 idx = net_buf_simple_pull_le16(buf); in net_key_add() 2183 if (idx > 0xfff) { in net_key_add() 2184 BT_ERR("Invalid NetKeyIndex 0x%04x", idx); in net_key_add() 2188 BT_DBG("idx 0x%04x", idx); in net_key_add() 2190 sub = bt_mesh_subnet_get(idx); in net_key_add() 2202 send_net_key_status(model, ctx, idx, in net_key_add() 2209 if (sub->net_idx == idx) { in net_key_add() [all …]
|
D | provisioner_prov.h | 345 int bt_mesh_provisioner_set_oob_input_data(const uint8_t idx, const uint8_t *val, bool num_flag); 357 int bt_mesh_provisioner_set_oob_output_data(const uint8_t idx, const uint8_t *num, 369 int bt_mesh_provisioner_read_oob_pub_key(const uint8_t idx, const uint8_t pub_key_x[32],
|
/hal_espressif-latest/components/esp_hw_support/ |
D | mac_addr.c | 74 for (int idx = 0; idx < ITEMS_IN_MAC_TABLE; idx++) { in get_idx() local 75 if (s_mac_table[idx].type == type) { in get_idx() 76 return idx; in get_idx() 83 static esp_err_t get_mac_addr_from_mac_table(uint8_t *mac, int idx, bool silent) in get_mac_addr_from_mac_table() argument 85 if (idx == -1) { in get_mac_addr_from_mac_table() 88 if (!(s_mac_table[idx].state & STATE_SET)) { in get_mac_addr_from_mac_table() 89 esp_mac_type_t type = s_mac_table[idx].type; in get_mac_addr_from_mac_table() 97 err = get_efuse_factory_mac(s_mac_table[idx].mac); in get_mac_addr_from_mac_table() 103 err = get_efuse_mac_custom(s_mac_table[idx].mac); in get_mac_addr_from_mac_table() 107 err = get_efuse_mac_ext(s_mac_table[idx].mac); in get_mac_addr_from_mac_table() [all …]
|
/hal_espressif-latest/components/efuse/src/efuse_controller/keys/with_key_purposes/ |
D | esp_efuse_api_key.c | 91 unsigned idx = blk - EFUSE_BLK_KEY0; in esp_efuse_set_write_protect() local 92 return esp_efuse_write_field_cnt(s_table[idx].key_wr_dis, 1); in esp_efuse_set_write_protect() 101 unsigned idx = blk - EFUSE_BLK_KEY0; in esp_efuse_set_read_protect() local 102 return esp_efuse_write_field_cnt(s_table[idx].key_rd_dis, 1); in esp_efuse_set_read_protect() 128 unsigned idx = block - EFUSE_BLK_KEY0; in esp_efuse_get_purpose_field() local 129 return s_table[idx].keypurpose; in esp_efuse_get_purpose_field() 137 unsigned idx = block - EFUSE_BLK_KEY0; in esp_efuse_get_key() local 138 return s_table[idx].key; in esp_efuse_get_key() 144 unsigned idx = block - EFUSE_BLK_KEY0; in esp_efuse_get_key_dis_read() local 145 return esp_efuse_read_field_bit(s_table[idx].key_rd_dis); in esp_efuse_get_key_dis_read() [all …]
|
/hal_espressif-latest/components/efuse/src/efuse_controller/keys/without_key_purposes/one_key_block/ |
D | esp_efuse_api_key.c | 45 unsigned idx = blk - EFUSE_BLK_KEY0; in esp_efuse_set_write_protect() local 46 … return esp_efuse_write_field_cnt(s_table[idx].key_wr_dis, s_table[idx].key_wr_dis[0]->bit_count); in esp_efuse_set_write_protect() 55 unsigned idx = blk - EFUSE_BLK_KEY0; in esp_efuse_set_read_protect() local 56 … return esp_efuse_write_field_cnt(s_table[idx].key_rd_dis, s_table[idx].key_rd_dis[0]->bit_count); in esp_efuse_set_read_protect() 95 unsigned idx = block - EFUSE_BLK_KEY0; in esp_efuse_get_key_dis_read() local 98 …esp_err_t err = esp_efuse_read_field_blob(s_table[idx].key_rd_dis, &value, s_table[idx].key_rd_dis… in esp_efuse_get_key_dis_read() 100 return (err == ESP_OK) && (value == ((1 << s_table[idx].key_rd_dis[0]->bit_count) - 1)); in esp_efuse_get_key_dis_read() 111 unsigned idx = block - EFUSE_BLK_KEY0; in esp_efuse_set_key_dis_read() local 112 uint8_t value = (1 << s_table[idx].key_rd_dis[0]->bit_count) - 1; in esp_efuse_set_key_dis_read() 113 …return esp_efuse_write_field_blob(s_table[idx].key_rd_dis, &value, s_table[idx].key_rd_dis[0]->bit… in esp_efuse_set_key_dis_read() [all …]
|
/hal_espressif-latest/components/bt/host/bluedroid/bta/hf_ag/ |
D | bta_ag_at.c | 81 UINT16 idx; in bta_ag_process_at() local 86 for (idx = 0; p_cb->p_at_tbl[idx].p_cmd[0] != 0; idx++) { in bta_ag_process_at() 87 if (!utl_strucmp(p_cb->p_at_tbl[idx].p_cmd, p_cb->p_cmd_buf)) { in bta_ag_process_at() 93 if (p_cb->p_at_tbl[idx].p_cmd[0] != 0) { in bta_ag_process_at() 95 p_arg = p_cb->p_cmd_buf + strlen(p_cb->p_at_tbl[idx].p_cmd); in bta_ag_process_at() 118 if ((arg_type & p_cb->p_at_tbl[idx].arg_type) != 0) { in bta_ag_process_at() 120 if (arg_type == BTA_AG_AT_SET && p_cb->p_at_tbl[idx].fmt == BTA_AG_AT_INT) { in bta_ag_process_at() 122 if (int_arg < (INT16) p_cb->p_at_tbl[idx].min || in bta_ag_process_at() 123 int_arg > (INT16) p_cb->p_at_tbl[idx].max) { in bta_ag_process_at() 127 (*p_cb->p_cmd_cback)(p_cb->p_user, idx, arg_type, p_arg, int_arg); in bta_ag_process_at() [all …]
|
D | bta_ag_api.c | 61 UINT8 idx; in BTA_AgEnable() local 64 for (idx = 0; idx < BTA_AG_NUM_SCB; idx++) { in BTA_AgEnable() 65 if (bta_ag_cb.scb[idx].in_use) { in BTA_AgEnable()
|
D | bta_ag_main.c | 467 UINT8 idx; in bta_ag_scb_dealloc() local 483 for (idx = 0; idx < BTA_AG_NUM_SCB; idx++) { in bta_ag_scb_dealloc() 484 if (bta_ag_cb.scb[idx].in_use) { in bta_ag_scb_dealloc() 521 tBTA_AG_SCB *bta_ag_scb_by_idx(UINT16 idx) in bta_ag_scb_by_idx() argument 525 if (idx > 0 && idx <= BTA_AG_NUM_SCB) { in bta_ag_scb_by_idx() 526 p_scb = &bta_ag_cb.scb[idx - 1]; in bta_ag_scb_by_idx() 529 APPL_TRACE_WARNING("ag scb idx %d not allocated", idx); in bta_ag_scb_by_idx() 533 APPL_TRACE_DEBUG("ag scb idx %d out of range", idx); in bta_ag_scb_by_idx()
|
/hal_espressif-latest/components/wpa_supplicant/src/ap/ |
D | comeback_token.c | 20 int comeback_token_hash(const u8 *comeback_key, const u8 *addr, u8 *idx) in comeback_token_hash() argument 27 *idx = hash[0]; in comeback_token_hash() 40 u8 idx; in check_comeback_token() local 43 comeback_token_hash(comeback_key, addr, &idx) < 0) { in check_comeback_token() 46 token_idx = comeback_pending_idx[idx]; in check_comeback_token() 65 comeback_pending_idx[idx] = 0; /* invalidate used token */ in check_comeback_token() 80 u8 idx[2]; in auth_build_token_req() local 126 WPA_PUT_BE16(idx, token_idx); in auth_build_token_req() 130 addrs[1] = idx; in auth_build_token_req() 131 len[1] = sizeof(idx); in auth_build_token_req()
|
/hal_espressif-latest/components/efuse/src/efuse_controller/keys/without_key_purposes/three_key_blocks/ |
D | esp_efuse_api_key.c | 44 unsigned idx = blk - EFUSE_BLK1; in esp_efuse_set_write_protect() local 45 return esp_efuse_write_field_cnt(s_table[idx].key_wr_dis, 1); in esp_efuse_set_write_protect() 54 unsigned idx = blk - EFUSE_BLK1; in esp_efuse_set_read_protect() local 55 return esp_efuse_write_field_cnt(s_table[idx].key_rd_dis, 1); in esp_efuse_set_read_protect() 104 unsigned idx = block - EFUSE_BLK_KEY0; in esp_efuse_get_key_dis_read() local 105 return esp_efuse_read_field_bit(s_table[idx].key_rd_dis); in esp_efuse_get_key_dis_read() 113 unsigned idx = block - EFUSE_BLK_KEY0; in esp_efuse_set_key_dis_read() local 114 return esp_efuse_write_field_bit(s_table[idx].key_rd_dis); in esp_efuse_set_key_dis_read() 120 unsigned idx = block - EFUSE_BLK_KEY0; in esp_efuse_get_key_dis_write() local 121 return esp_efuse_read_field_bit(s_table[idx].key_wr_dis); in esp_efuse_get_key_dis_write() [all …]
|
/hal_espressif-latest/components/bt/host/bluedroid/external/sbc/decoder/srce/ |
D | framing.c | 116 OI_UINT idx; in crc_iterate() local 117 idx = oldcrc ^ next; in crc_iterate() 118 crc = crc8_wide[idx >> 1]; in crc_iterate() 119 if (idx % 2) { in crc_iterate() 131 OI_UINT idx; in crc_iterate_top4() local 132 idx = (oldcrc ^ next) >> 4; in crc_iterate_top4() 133 crc = crc8_wide[idx >> 1]; in crc_iterate_top4() 134 if (idx % 2) { in crc_iterate_top4()
|
/hal_espressif-latest/components/bt/host/bluedroid/stack/avct/ |
D | avct_ccb.c | 125 tAVCT_CCB *avct_ccb_by_idx(UINT8 idx) in avct_ccb_by_idx() argument 130 if (idx < AVCT_NUM_CONN) { in avct_ccb_by_idx() 131 p_ccb = &avct_cb.ccb[idx]; in avct_ccb_by_idx() 136 AVCT_TRACE_WARNING("ccb %d not allocated", idx); in avct_ccb_by_idx() 140 AVCT_TRACE_WARNING("No ccb for idx %d", idx); in avct_ccb_by_idx()
|
/hal_espressif-latest/components/hal/esp32c2/include/hal/ |
D | adc_ll.h | 180 static inline void adc_ll_digi_filter_reset(adc_digi_iir_filter_t idx, adc_unit_t adc_n) in adc_ll_digi_filter_reset() argument 195 static inline void adc_ll_digi_filter_set_factor(adc_digi_iir_filter_t idx, adc_unit_t adc_n, adc_c… in adc_ll_digi_filter_set_factor() argument 218 if (idx == ADC_DIGI_IIR_FILTER_0) { in adc_ll_digi_filter_set_factor() 221 } else if (idx == ADC_DIGI_IIR_FILTER_1) { in adc_ll_digi_filter_set_factor() 235 static inline void adc_ll_digi_filter_enable(adc_digi_iir_filter_t idx, adc_unit_t adc_n, bool enab… in adc_ll_digi_filter_enable() argument 239 if (idx == ADC_DIGI_IIR_FILTER_0) { in adc_ll_digi_filter_enable() 242 } else if (idx == ADC_DIGI_IIR_FILTER_1) { in adc_ll_digi_filter_enable() 258 static inline void adc_ll_digi_monitor_set_mode(adc_digi_monitor_idx_t idx, adc_digi_monitor_t *cfg) in adc_ll_digi_monitor_set_mode() argument 260 if (idx == ADC_DIGI_MONITOR_IDX0) { in adc_ll_digi_monitor_set_mode() 277 static inline void adc_ll_digi_monitor_disable(adc_digi_monitor_idx_t idx) in adc_ll_digi_monitor_disable() argument [all …]
|
/hal_espressif-latest/components/bt/porting/mem/ |
D | os_msys_init.c | 116 IRAM_ATTR os_msys_sanity_min_count(int idx) in os_msys_sanity_min_count() argument 118 switch (idx) { in os_msys_sanity_min_count() 136 int idx; in os_msys_sanity() local 138 idx = 0; in os_msys_sanity() 140 min_count = os_msys_sanity_min_count(idx); in os_msys_sanity() 145 idx++; in os_msys_sanity()
|
/hal_espressif-latest/components/hal/esp32h2/include/hal/ |
D | adc_ll.h | 339 static inline void adc_ll_digi_filter_reset(adc_digi_iir_filter_t idx, adc_unit_t adc_n) in adc_ll_digi_filter_reset() argument 354 static inline void adc_ll_digi_filter_set_factor(adc_digi_iir_filter_t idx, adc_unit_t adc_n, adc_c… in adc_ll_digi_filter_set_factor() argument 377 if (idx == ADC_DIGI_IIR_FILTER_0) { in adc_ll_digi_filter_set_factor() 380 } else if (idx == ADC_DIGI_IIR_FILTER_1) { in adc_ll_digi_filter_set_factor() 394 static inline void adc_ll_digi_filter_enable(adc_digi_iir_filter_t idx, adc_unit_t adc_n, bool enab… in adc_ll_digi_filter_enable() argument 398 if (idx == ADC_DIGI_IIR_FILTER_0) { in adc_ll_digi_filter_enable() 401 } else if (idx == ADC_DIGI_IIR_FILTER_1) { in adc_ll_digi_filter_enable() 417 static inline void adc_ll_digi_monitor_set_mode(adc_digi_monitor_idx_t idx, adc_digi_monitor_t *cfg) in adc_ll_digi_monitor_set_mode() argument 419 if (idx == ADC_DIGI_MONITOR_IDX0) { in adc_ll_digi_monitor_set_mode() 436 static inline void adc_ll_digi_monitor_disable(adc_digi_monitor_idx_t idx) in adc_ll_digi_monitor_disable() argument [all …]
|
/hal_espressif-latest/components/hal/esp32c6/include/hal/ |
D | adc_ll.h | 339 static inline void adc_ll_digi_filter_reset(adc_digi_iir_filter_t idx, adc_unit_t adc_n) in adc_ll_digi_filter_reset() argument 354 static inline void adc_ll_digi_filter_set_factor(adc_digi_iir_filter_t idx, adc_unit_t adc_n, adc_c… in adc_ll_digi_filter_set_factor() argument 377 if (idx == ADC_DIGI_IIR_FILTER_0) { in adc_ll_digi_filter_set_factor() 380 } else if (idx == ADC_DIGI_IIR_FILTER_1) { in adc_ll_digi_filter_set_factor() 394 static inline void adc_ll_digi_filter_enable(adc_digi_iir_filter_t idx, adc_unit_t adc_n, bool enab… in adc_ll_digi_filter_enable() argument 398 if (idx == ADC_DIGI_IIR_FILTER_0) { in adc_ll_digi_filter_enable() 401 } else if (idx == ADC_DIGI_IIR_FILTER_1) { in adc_ll_digi_filter_enable() 417 static inline void adc_ll_digi_monitor_set_mode(adc_digi_monitor_idx_t idx, adc_digi_monitor_t *cfg) in adc_ll_digi_monitor_set_mode() argument 419 if (idx == ADC_DIGI_MONITOR_IDX0) { in adc_ll_digi_monitor_set_mode() 436 static inline void adc_ll_digi_monitor_disable(adc_digi_monitor_idx_t idx) in adc_ll_digi_monitor_disable() argument [all …]
|
/hal_espressif-latest/components/esp_hw_support/port/esp32c6/ |
D | pmu_init.c | 139 for (uint8_t idx = 0; idx < (sizeof(pmu_hp_domains) / sizeof(pmu_hp_power_domain_t)); idx++) { in pmu_power_domain_force_default() local 140 pmu_ll_hp_set_power_force_power_up (ctx->hal->dev, pmu_hp_domains[idx], false); in pmu_power_domain_force_default() 141 pmu_ll_hp_set_power_force_no_reset (ctx->hal->dev, pmu_hp_domains[idx], false); in pmu_power_domain_force_default() 142 pmu_ll_hp_set_power_force_no_isolate(ctx->hal->dev, pmu_hp_domains[idx], false); in pmu_power_domain_force_default() 143 pmu_ll_hp_set_power_force_power_down(ctx->hal->dev, pmu_hp_domains[idx], false); in pmu_power_domain_force_default() 144 pmu_ll_hp_set_power_force_isolate (ctx->hal->dev, pmu_hp_domains[idx], false); in pmu_power_domain_force_default() 145 pmu_ll_hp_set_power_force_reset (ctx->hal->dev, pmu_hp_domains[idx], false); in pmu_power_domain_force_default()
|
/hal_espressif-latest/components/esp_hw_support/port/esp32h2/ |
D | pmu_init.c | 138 for (uint8_t idx = 0; idx < (sizeof(pmu_hp_domains) / sizeof(pmu_hp_power_domain_t)); idx++) { in pmu_power_domain_force_default() local 139 pmu_ll_hp_set_power_force_power_up (ctx->hal->dev, pmu_hp_domains[idx], false); in pmu_power_domain_force_default() 140 pmu_ll_hp_set_power_force_no_reset (ctx->hal->dev, pmu_hp_domains[idx], false); in pmu_power_domain_force_default() 141 pmu_ll_hp_set_power_force_no_isolate(ctx->hal->dev, pmu_hp_domains[idx], false); in pmu_power_domain_force_default() 142 pmu_ll_hp_set_power_force_power_down(ctx->hal->dev, pmu_hp_domains[idx], false); in pmu_power_domain_force_default() 143 pmu_ll_hp_set_power_force_isolate (ctx->hal->dev, pmu_hp_domains[idx], false); in pmu_power_domain_force_default() 144 pmu_ll_hp_set_power_force_reset (ctx->hal->dev, pmu_hp_domains[idx], false); in pmu_power_domain_force_default()
|
/hal_espressif-latest/components/hal/esp32c3/include/hal/ |
D | adc_ll.h | 330 static inline void adc_ll_digi_filter_reset(adc_digi_iir_filter_t idx, adc_unit_t adc_n) in adc_ll_digi_filter_reset() argument 345 static inline void adc_ll_digi_filter_set_factor(adc_digi_iir_filter_t idx, adc_unit_t adc_n, adc_c… in adc_ll_digi_filter_set_factor() argument 368 if (idx == ADC_DIGI_IIR_FILTER_0) { in adc_ll_digi_filter_set_factor() 371 } else if (idx == ADC_DIGI_IIR_FILTER_1) { in adc_ll_digi_filter_set_factor() 385 static inline void adc_ll_digi_filter_enable(adc_digi_iir_filter_t idx, adc_unit_t adc_n, bool enab… in adc_ll_digi_filter_enable() argument 389 if (idx == ADC_DIGI_IIR_FILTER_0) { in adc_ll_digi_filter_enable() 392 } else if (idx == ADC_DIGI_IIR_FILTER_1) { in adc_ll_digi_filter_enable() 408 static inline void adc_ll_digi_monitor_set_mode(adc_digi_monitor_idx_t idx, adc_digi_monitor_t *cfg) in adc_ll_digi_monitor_set_mode() argument 410 if (idx == ADC_DIGI_MONITOR_IDX0) { in adc_ll_digi_monitor_set_mode() 427 static inline void adc_ll_digi_monitor_disable(adc_digi_monitor_idx_t idx) in adc_ll_digi_monitor_disable() argument [all …]
|
/hal_espressif-latest/components/wpa_supplicant/src/tls/ |
D | asn1.c | 560 int idx = 0; in asn1_put_oid() local 563 bytes[idx] = (idx ? 0x80 : 0x00) | (val & 0x7f); in asn1_put_oid() 564 idx++; in asn1_put_oid() 567 if (idx == 0) { in asn1_put_oid() 568 bytes[idx] = 0; in asn1_put_oid() 569 idx = 1; in asn1_put_oid() 571 while (idx > 0) { in asn1_put_oid() 572 idx--; in asn1_put_oid() 573 wpabuf_put_u8(buf, bytes[idx]); in asn1_put_oid()
|
/hal_espressif-latest/components/bt/host/bluedroid/stack/rfcomm/ |
D | rfc_l2cap_if.c | 163 UINT8 idx; in RFCOMM_ConnectCnf() local 179 if ((idx = p_mcb->port_inx[i]) != 0) { in RFCOMM_ConnectCnf() 181 p_mcb->port_inx[i + 1] = idx; in RFCOMM_ConnectCnf() 182 rfc_cb.port.port[idx - 1].dlci += 1; in RFCOMM_ConnectCnf() 183 … RFCOMM_TRACE_DEBUG ("RFCOMM MX - DLCI:%d -> %d", i, rfc_cb.port.port[idx - 1].dlci); in RFCOMM_ConnectCnf()
|
/hal_espressif-latest/components/heap/ |
D | heap_trace_standalone.c | 104 size_t idx = hash_idx(r_add->address); in map_add() local 105 TAILQ_INSERT_TAIL(&hash_map[idx], r_add, tailq_hashmap); in map_add() 110 size_t idx = hash_idx(r_remove->address); in map_remove() local 111 TAILQ_REMOVE(&hash_map[idx], r_remove, tailq_hashmap); in map_remove() 116 size_t idx = hash_idx(p); in map_find() local 118 TAILQ_FOREACH(r_cur, &hash_map[idx], tailq_hashmap) { in map_find()
|