/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_core/ |
D | beacon.c | 59 struct bt_mesh_subnet *sub = bt_mesh_rx_netkey_get(i); in cache_check() local 61 if (sub == NULL || sub->net_idx == BLE_MESH_KEY_UNUSED) { in cache_check() 65 if (!memcmp(sub->beacon_cache, data, 21)) { in cache_check() 66 return sub; in cache_check() 73 static void cache_add(uint8_t data[21], struct bt_mesh_subnet *sub) in cache_add() argument 75 memcpy(sub->beacon_cache, data, 21); in cache_add() 80 struct bt_mesh_subnet *sub = NULL; in beacon_complete() local 95 sub = bt_mesh_subnet_get(net_idx); in beacon_complete() 98 sub = bt_mesh_provisioner_subnet_get(net_idx); in beacon_complete() 101 if (sub) { in beacon_complete() [all …]
|
D | net.c | 71 .sub = { 152 return &bt_mesh.sub[0]; in bt_mesh_subnet_get() 155 for (i = 0; i < ARRAY_SIZE(bt_mesh.sub); i++) { in bt_mesh_subnet_get() 156 if (bt_mesh.sub[i].net_idx == net_idx) { in bt_mesh_subnet_get() 157 return &bt_mesh.sub[i]; in bt_mesh_subnet_get() 273 int friend_cred_update(struct bt_mesh_subnet *sub) in friend_cred_update() argument 277 BT_DBG("net_idx 0x%04x", sub->net_idx); in friend_cred_update() 283 cred->net_idx != sub->net_idx) { in friend_cred_update() 287 err = friend_cred_set(cred, 1, sub->keys[1].net); in friend_cred_update() 296 struct friend_cred *friend_cred_create(struct bt_mesh_subnet *sub, uint16_t addr, in friend_cred_create() argument [all …]
|
D | local_operation.c | 127 struct bt_mesh_subnet *sub = NULL; in bt_mesh_node_get_local_net_key() local 134 sub = bt_mesh_subnet_get(net_idx); in bt_mesh_node_get_local_net_key() 135 if (!sub) { in bt_mesh_node_get_local_net_key() 140 return sub->kr_flag ? sub->keys[1].net : sub->keys[0].net; in bt_mesh_node_get_local_net_key() 163 struct bt_mesh_subnet *sub = NULL; in bt_mesh_node_local_net_key_add() local 177 sub = bt_mesh_subnet_get(net_idx); in bt_mesh_node_local_net_key_add() 178 if (sub) { in bt_mesh_node_local_net_key_add() 183 for (i = 0; i < ARRAY_SIZE(bt_mesh.sub); i++) { in bt_mesh_node_local_net_key_add() 184 if (bt_mesh.sub[i].net_idx != BLE_MESH_KEY_UNUSED) { in bt_mesh_node_local_net_key_add() 185 if ((bt_mesh.sub[i].kr_flag == false && in bt_mesh_node_local_net_key_add() [all …]
|
D | fast_prov.c | 41 struct bt_mesh_subnet *sub = NULL; in bt_mesh_fast_prov_subnet_get() local 44 for (i = 0; i < ARRAY_SIZE(bt_mesh.sub); i++) { in bt_mesh_fast_prov_subnet_get() 45 sub = &bt_mesh.sub[i]; in bt_mesh_fast_prov_subnet_get() 46 if (sub->net_idx == net_idx) { in bt_mesh_fast_prov_subnet_get() 47 return sub; in bt_mesh_fast_prov_subnet_get() 52 sub = bt_mesh.p_sub[i]; in bt_mesh_fast_prov_subnet_get() 53 if (sub && sub->net_idx == net_idx) { in bt_mesh_fast_prov_subnet_get() 54 return sub; in bt_mesh_fast_prov_subnet_get() 119 struct bt_mesh_subnet *sub = NULL; in bt_mesh_fast_prov_net_key_get() local 121 sub = bt_mesh_fast_prov_subnet_get(net_idx); in bt_mesh_fast_prov_net_key_get() [all …]
|
D | provisioner_main.c | 70 struct bt_mesh_subnet *sub = NULL; in bt_mesh_provisioner_net_create() local 86 sub = bt_mesh.p_sub[0]; in bt_mesh_provisioner_net_create() 96 sub = bt_mesh_calloc(sizeof(struct bt_mesh_subnet)); in bt_mesh_provisioner_net_create() 97 if (!sub) { in bt_mesh_provisioner_net_create() 102 sub->kr_flag = BLE_MESH_KEY_REFRESH(prov->flags); in bt_mesh_provisioner_net_create() 103 if (sub->kr_flag) { in bt_mesh_provisioner_net_create() 104 if (bt_mesh_net_keys_create(&sub->keys[1], p_key)) { in bt_mesh_provisioner_net_create() 106 bt_mesh_free(sub); in bt_mesh_provisioner_net_create() 109 sub->kr_phase = BLE_MESH_KR_PHASE_2; in bt_mesh_provisioner_net_create() 112 if (bt_mesh_net_keys_create(&sub->keys[0], p_key)) { in bt_mesh_provisioner_net_create() [all …]
|
D | proxy_server.c | 263 .sub = rx->sub, in send_filter_status() 373 static int beacon_send(struct bt_mesh_conn *conn, struct bt_mesh_subnet *sub) in beacon_send() argument 378 bt_mesh_beacon_create(sub, &buf); in beacon_send() 390 for (i = 0; i < ARRAY_SIZE(bt_mesh.sub); i++) { in proxy_send_beacons() 391 struct bt_mesh_subnet *sub = &bt_mesh.sub[i]; in proxy_send_beacons() local 393 if (sub->net_idx != BLE_MESH_KEY_UNUSED) { in proxy_send_beacons() 394 beacon_send(client->conn, sub); in proxy_send_beacons() 399 void bt_mesh_proxy_server_beacon_send(struct bt_mesh_subnet *sub) in bt_mesh_proxy_server_beacon_send() argument 403 if (!sub) { in bt_mesh_proxy_server_beacon_send() 405 for (i = 0; i < ARRAY_SIZE(bt_mesh.sub); i++) { in bt_mesh_proxy_server_beacon_send() [all …]
|
D | settings.c | 412 for (i = 0; i < ARRAY_SIZE(bt_mesh.sub); i++) { in subnet_alloc() 413 if (bt_mesh.sub[i].net_idx == BLE_MESH_KEY_UNUSED) { in subnet_alloc() 414 bt_mesh.sub[i].net_idx = net_idx; in subnet_alloc() 415 return &bt_mesh.sub[i]; in subnet_alloc() 425 struct bt_mesh_subnet *sub = NULL; in net_key_set() local 456 sub = bt_mesh_subnet_get(net_idx); in net_key_set() 457 if (!sub) { in net_key_set() 458 sub = subnet_alloc(net_idx); in net_key_set() 459 if (!sub) { in net_key_set() 466 sub->net_idx = net_idx; in net_key_set() [all …]
|
D | net.h | 261 struct bt_mesh_subnet sub[CONFIG_BLE_MESH_SUBNET_COUNT]; member 288 struct bt_mesh_subnet *sub; member 306 struct bt_mesh_subnet *sub; member 332 uint8_t bt_mesh_net_flags(struct bt_mesh_subnet *sub); 334 bool bt_mesh_kr_update(struct bt_mesh_subnet *sub, uint8_t new_kr, bool new_key); 336 void bt_mesh_net_revoke_keys(struct bt_mesh_subnet *sub); 338 int bt_mesh_net_beacon_update(struct bt_mesh_subnet *sub); 344 void bt_mesh_net_sec_update(struct bt_mesh_subnet *sub); 358 int bt_mesh_net_resend(struct bt_mesh_subnet *sub, struct net_buf *buf, 396 int friend_cred_get(struct bt_mesh_subnet *sub, uint16_t addr, uint8_t *nid, [all …]
|
D | cfg_srv.c | 372 struct bt_mesh_subnet *sub = NULL; in app_key_set() local 377 sub = bt_mesh_subnet_get(net_idx); in app_key_set() 378 if (!sub) { in app_key_set() 399 if (sub->kr_phase != BLE_MESH_KR_PHASE_1) { in app_key_set() 2178 struct bt_mesh_subnet *sub = NULL; in net_key_add() local 2190 sub = bt_mesh_subnet_get(idx); in net_key_add() 2191 if (!sub) { in net_key_add() 2194 for (i = 0; i < ARRAY_SIZE(bt_mesh.sub); i++) { in net_key_add() 2195 if (bt_mesh.sub[i].net_idx == BLE_MESH_KEY_UNUSED) { in net_key_add() 2196 sub = &bt_mesh.sub[i]; in net_key_add() [all …]
|
D | access.c | 199 tx.sub = bt_mesh_tx_netkey_get(pub->dev_role, key->net_idx); in publish_retransmit() 200 if (!tx.sub) { in publish_retransmit() 802 struct bt_mesh_subnet *sub = NULL; in bt_mesh_model_send() local 811 sub = bt_mesh_tx_netkey_get(role, ctx->net_idx); in bt_mesh_model_send() 812 if (!sub) { in bt_mesh_model_send() 820 .sub = sub, in bt_mesh_model_send() 839 .sub = NULL, in bt_mesh_model_publish() 883 tx.sub = bt_mesh_tx_netkey_get(pub->dev_role, ctx.net_idx); in bt_mesh_model_publish() 884 if (!tx.sub) { in bt_mesh_model_publish() 947 struct bt_mesh_subnet *sub = NULL; in bt_mesh_tx_netkey_get() local [all …]
|
D | proxy_client.c | 638 struct bt_mesh_subnet *sub = NULL; in bt_mesh_is_net_id_exist() local 644 sub = bt_mesh_rx_netkey_get(i); in bt_mesh_is_net_id_exist() 645 if (sub && !memcmp(sub->keys[sub->kr_flag].net_id, net_id, 8)) { in bt_mesh_is_net_id_exist() 646 return sub; in bt_mesh_is_net_id_exist() 674 struct bt_mesh_subnet *sub = NULL; in bt_mesh_proxy_client_gatt_adv_recv() local 675 sub = bt_mesh_is_net_id_exist(buf->data); in bt_mesh_proxy_client_gatt_adv_recv() 676 if (!sub) { in bt_mesh_proxy_client_gatt_adv_recv() 681 ctx.net_id.net_idx = sub->net_idx; in bt_mesh_proxy_client_gatt_adv_recv() 777 static int beacon_send(struct bt_mesh_conn *conn, struct bt_mesh_subnet *sub) in beacon_send() argument 782 bt_mesh_beacon_create(sub, &buf); in beacon_send() [all …]
|
D | proxy_server.h | 60 void bt_mesh_proxy_server_beacon_send(struct bt_mesh_subnet *sub); 67 void bt_mesh_proxy_server_identity_start(struct bt_mesh_subnet *sub); 68 void bt_mesh_proxy_server_identity_stop(struct bt_mesh_subnet *sub);
|
D | lpn.c | 183 .net_idx = bt_mesh.sub[0].net_idx, in send_friend_clear() 189 .sub = &bt_mesh.sub[0], in send_friend_clear() 223 friend_cred_del(bt_mesh.sub[0].net_idx, lpn->frnd); in clear_friendship() 306 .net_idx = bt_mesh.sub[0].net_idx, in send_friend_req() 312 .sub = &bt_mesh.sub[0], in send_friend_req() 377 .net_idx = bt_mesh.sub[0].net_idx, in send_friend_poll() 383 .sub = &bt_mesh.sub[0], in send_friend_poll() 509 struct bt_mesh_subnet *sub = rx->sub; in bt_mesh_lpn_friend_offer() local 537 cred = friend_cred_create(sub, lpn->frnd, lpn->counter, frnd_counter); in bt_mesh_lpn_friend_offer() 663 .net_idx = bt_mesh.sub[0].net_idx, in sub_update() [all …]
|
D | friend.c | 73 struct bt_mesh_subnet *sub = NULL; in friend_subnet_get() local 76 sub = bt_mesh_subnet_get(net_idx); in friend_subnet_get() 78 sub = bt_mesh_provisioner_subnet_get(net_idx); in friend_subnet_get() 81 return sub; in friend_subnet_get() 264 .sub = rx->sub, in bt_mesh_friend_clear() 281 frnd = bt_mesh_friend_find(rx->sub->net_idx, lpn_addr, false, false); in bt_mesh_friend_clear() 488 struct bt_mesh_subnet *sub = friend_subnet_get(frnd->net_idx); in encrypt_friend_pdu() local 495 if (!sub) { in encrypt_friend_pdu() 501 enc = sub->keys[sub->kr_flag].enc; in encrypt_friend_pdu() 502 priv = sub->keys[sub->kr_flag].privacy; in encrypt_friend_pdu() [all …]
|
D | settings.h | 29 void bt_mesh_store_subnet(struct bt_mesh_subnet *sub); 40 void bt_mesh_clear_subnet(struct bt_mesh_subnet *sub); 51 void bt_mesh_store_p_subnet(struct bt_mesh_subnet *sub);
|
D | transport.c | 73 struct bt_mesh_subnet *sub; member 89 struct bt_mesh_subnet *sub; member 214 if (!bt_mesh_friend_queue_has_space(tx->sub->net_idx, in send_unseg() 285 tx->sub = NULL; in seg_tx_reset() 408 err = bt_mesh_net_resend(tx->sub, seg, tx->new_key, in seg_tx_send_unacked() 473 tx->sub = net_tx->sub; in send_seg() 474 tx->new_key = net_tx->sub->kr_flag; in send_seg() 491 !bt_mesh_friend_queue_has_space(tx->sub->net_idx, net_tx->src, in send_seg() 614 BT_DBG("net_idx 0x%04x app_idx 0x%04x dst 0x%04x", tx->sub->net_idx, in bt_mesh_trans_send() 624 err = bt_mesh_app_key_get(tx->sub, tx->ctx->app_idx, &key, in bt_mesh_trans_send() [all …]
|
D | test.c | 37 struct bt_mesh_subnet *sub = NULL; in bt_mesh_device_auto_enter_network() local 57 sub = bt_mesh_subnet_get(info->net_idx); in bt_mesh_device_auto_enter_network() 58 if (!sub) { in bt_mesh_device_auto_enter_network() 74 keys = sub->kr_flag ? &key->keys[1] : &key->keys[0]; in bt_mesh_device_auto_enter_network()
|
D | beacon.h | 25 void bt_mesh_beacon_create(struct bt_mesh_subnet *sub,
|
D | friend.h | 41 void bt_mesh_friend_clear_incomplete(struct bt_mesh_subnet *sub, uint16_t src,
|
/hal_espressif-latest/tools/esptool_py/esptool/ |
D | util.py | 80 chip_name = re.sub(r"(esp32)(?!$)", r"\1-", chip_name) 82 chip_name = re.sub(r"(beta\d*)", r"(\1)", chip_name) 84 chip_name = re.sub(r"^[^\(]+", lambda x: x.group(0).upper(), chip_name) 90 return re.sub(r"[-()]", "", chip_name.lower())
|
/hal_espressif-latest/components/newlib/port/riscv/ |
D | port_stdatomic.S | 10 sub \offset, a0, \ptr 241 sub t3, a0, a1 263 sub t4, t4, a1 330 sub t1, a0, t0 346 sub t1, a0, t0 366 sub t1, a0, t0 388 sub t1, a0, t0 420 sub t1, a0, t0 434 sub t1, a0, t0 448 sub t1, a0, t0 [all …]
|
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/ |
D | csv_table_parser.py | 109 for sub in p.field_name.split(".")[:-1]: 110 name = sub if name == "" else name + "." + sub 159 for sub in p.field_name.split("."): 160 name = sub if name == "" else name + "." + sub
|
/hal_espressif-latest/components/newlib/ |
D | stdatomic.c | 371 SYNC_FETCH_OP(sub, 1, unsigned char) 372 SYNC_FETCH_OP(sub, 2, short unsigned int) 373 SYNC_FETCH_OP(sub, 4, unsigned int) 375 SYNC_OP_FETCH(sub, 1, unsigned char) 376 SYNC_OP_FETCH(sub, 2, short unsigned int) 377 SYNC_OP_FETCH(sub, 4, unsigned int) 485 SYNC_FETCH_OP(sub, 8, long long unsigned int) 497 SYNC_OP_FETCH(sub, 8, long long unsigned int)
|
/hal_espressif-latest/components/xtensa/include/xtensa/ |
D | cacheattrasm.h | 320 sub a3, a3, a5 // next segment (add 0x20000000) 339 sub a3, a3, a5 // next segment (add 0x20000000) 374 sub a3, a3, a5 // next segment (add 0x20000000)
|
/hal_espressif-latest/components/efuse/ |
D | efuse_table_gen.py | 141 for sub in p.field_name.split('.')[:-1]: 142 name = sub if name == '' else name + '.' + sub 186 for sub in p.field_name.split('.'): 187 name = sub if name == '' else name + '.' + sub
|