Home
last modified time | relevance | path

Searched refs:sub (Results 1 – 25 of 89) sorted by relevance

1234

/hal_espressif-3.6.0/components/bt/esp_ble_mesh/mesh_core/
Dbeacon.c54 struct bt_mesh_subnet *sub = bt_mesh_rx_netkey_get(i); in cache_check() local
56 if (sub == NULL || sub->net_idx == BLE_MESH_KEY_UNUSED) { in cache_check()
60 if (!memcmp(sub->beacon_cache, data, 21)) { in cache_check()
61 return sub; in cache_check()
68 static void cache_add(uint8_t data[21], struct bt_mesh_subnet *sub) in cache_add() argument
70 memcpy(sub->beacon_cache, data, 21); in cache_add()
75 struct bt_mesh_subnet *sub = NULL; in beacon_complete() local
90 sub = bt_mesh_subnet_get(net_idx); in beacon_complete()
93 sub = bt_mesh_provisioner_subnet_get(net_idx); in beacon_complete()
96 if (sub) { in beacon_complete()
[all …]
Dnet.c71 .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 …]
Dlocal_operation.c127 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 …]
Dprovisioner_main.c70 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 …]
Dfast_prov.c41 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 …]
Dproxy_server.c266 .sub = rx->sub, in send_filter_status()
376 static int beacon_send(struct bt_mesh_conn *conn, struct bt_mesh_subnet *sub) in beacon_send() argument
381 bt_mesh_beacon_create(sub, &buf); in beacon_send()
393 for (i = 0; i < ARRAY_SIZE(bt_mesh.sub); i++) { in proxy_send_beacons()
394 struct bt_mesh_subnet *sub = &bt_mesh.sub[i]; in proxy_send_beacons() local
396 if (sub->net_idx != BLE_MESH_KEY_UNUSED) { in proxy_send_beacons()
397 beacon_send(client->conn, sub); in proxy_send_beacons()
402 void bt_mesh_proxy_server_beacon_send(struct bt_mesh_subnet *sub) in bt_mesh_proxy_server_beacon_send() argument
406 if (!sub) { in bt_mesh_proxy_server_beacon_send()
408 for (i = 0; i < ARRAY_SIZE(bt_mesh.sub); i++) { in bt_mesh_proxy_server_beacon_send()
[all …]
Dsettings.c412 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 …]
Dcfg_srv.c353 struct bt_mesh_subnet *sub = NULL; in app_key_set() local
358 sub = bt_mesh_subnet_get(net_idx); in app_key_set()
359 if (!sub) { in app_key_set()
380 if (sub->kr_phase != BLE_MESH_KR_PHASE_1) { in app_key_set()
2150 struct bt_mesh_subnet *sub = NULL; in net_key_add() local
2162 sub = bt_mesh_subnet_get(idx); in net_key_add()
2163 if (!sub) { in net_key_add()
2166 for (i = 0; i < ARRAY_SIZE(bt_mesh.sub); i++) { in net_key_add()
2167 if (bt_mesh.sub[i].net_idx == BLE_MESH_KEY_UNUSED) { in net_key_add()
2168 sub = &bt_mesh.sub[i]; in net_key_add()
[all …]
Dnet.h262 struct bt_mesh_subnet sub[CONFIG_BLE_MESH_SUBNET_COUNT]; member
289 struct bt_mesh_subnet *sub; member
304 struct bt_mesh_subnet *sub; member
330 uint8_t bt_mesh_net_flags(struct bt_mesh_subnet *sub);
332 bool bt_mesh_kr_update(struct bt_mesh_subnet *sub, uint8_t new_kr, bool new_key);
334 void bt_mesh_net_revoke_keys(struct bt_mesh_subnet *sub);
336 int bt_mesh_net_beacon_update(struct bt_mesh_subnet *sub);
342 void bt_mesh_net_sec_update(struct bt_mesh_subnet *sub);
356 int bt_mesh_net_resend(struct bt_mesh_subnet *sub, struct net_buf *buf,
394 int friend_cred_get(struct bt_mesh_subnet *sub, uint16_t addr, uint8_t *nid,
[all …]
Daccess.c199 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 …]
Dproxy_client.c638 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 …]
Dlpn.c183 .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 …]
Dfriend.c72 struct bt_mesh_subnet *sub = NULL; in friend_subnet_get() local
75 sub = bt_mesh_subnet_get(net_idx); in friend_subnet_get()
77 sub = bt_mesh_provisioner_subnet_get(net_idx); in friend_subnet_get()
80 return sub; in friend_subnet_get()
247 .sub = rx->sub, in bt_mesh_friend_clear()
264 frnd = bt_mesh_friend_find(rx->sub->net_idx, lpn_addr, false, false); in bt_mesh_friend_clear()
471 struct bt_mesh_subnet *sub = friend_subnet_get(frnd->net_idx); in encrypt_friend_pdu() local
478 if (!sub) { in encrypt_friend_pdu()
484 enc = sub->keys[sub->kr_flag].enc; in encrypt_friend_pdu()
485 priv = sub->keys[sub->kr_flag].privacy; in encrypt_friend_pdu()
[all …]
Dtransport.c73 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()
277 tx->sub = NULL; in seg_tx_reset()
400 err = bt_mesh_net_resend(tx->sub, seg, tx->new_key, in seg_tx_send_unacked()
465 tx->sub = net_tx->sub; in send_seg()
466 tx->new_key = net_tx->sub->kr_flag; in send_seg()
483 !bt_mesh_friend_queue_has_space(tx->sub->net_idx, net_tx->src, in send_seg()
606 BT_DBG("net_idx 0x%04x app_idx 0x%04x dst 0x%04x", tx->sub->net_idx, in bt_mesh_trans_send()
616 err = bt_mesh_app_key_get(tx->sub, tx->ctx->app_idx, &key, in bt_mesh_trans_send()
[all …]
Dproxy_server.h60 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);
Dsettings.h29 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);
Dtest.c37 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()
/hal_espressif-3.6.0/components/newlib/
Dstdatomic.c356 SYNC_FETCH_OP(sub, 1, uint8_t)
357 SYNC_FETCH_OP(sub, 2, uint16_t)
358 SYNC_FETCH_OP(sub, 4, uint32_t)
360 SYNC_OP_FETCH(sub, 1, uint8_t)
361 SYNC_OP_FETCH(sub, 2, uint16_t)
362 SYNC_OP_FETCH(sub, 4, uint32_t)
456 SYNC_FETCH_OP(sub, 8, uint64_t)
468 SYNC_OP_FETCH(sub, 8, uint64_t)
/hal_espressif-3.6.0/examples/system/ulp_fsm/ulp/main/ulp/
Dpulse_cnt.S88 sub r3, r3, 16
117 sub r2, r2, 1
143 sub r3, r3, r2
/hal_espressif-3.6.0/components/xtensa/include/xtensa/
Dcacheattrasm.h320 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-3.6.0/examples/system/ulp_fsm/ulp_adc/main/ulp/
Dadc.S91 sub r3, r0, r3
97 sub r3, r3, r0
/hal_espressif-3.6.0/components/efuse/
Defuse_table_gen.py141 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
/hal_espressif-3.6.0/components/bootloader/subproject/components/micro-ecc/micro-ecc/
Dasm_arm_mult_square_umaal.inc74 "sub r0, #20 \n\t" \
75 "sub r1, #20 \n\t" \
76 "sub r2, #20 \n\t" \
95 "sub r0, #20 \n\t" \
172 "sub r0, #24 \n\t" \
173 "sub r1, #24 \n\t" \
232 "sub r0, #24 \n\t" \
233 "sub r1, #24 \n\t" \
234 "sub r2, #24 \n\t" \
256 "sub r0, #24 \n\t" \
[all …]
/hal_espressif-3.6.0/components/wpa_supplicant/test/
Dtest_crypto.c116 crypto_bignum *bn1, *bn2, *sub; variable
119 sub = crypto_bignum_init();
134 TEST_ASSERT(crypto_bignum_sub(bn1, bn2, sub) == 0);
136 TEST_ASSERT(crypto_bignum_to_bin(sub, buf4, 32, 0) == 32);
141 crypto_bignum_deinit(sub, 1);
/hal_espressif-3.6.0/tools/kconfig_new/test/confserver/
Dtestcases_v2.txt33 * Disabling all items in a submenu causes all sub-items to have visible:False
37 * Re-enabling submenu causes that menu to be visible again, and refreshes sub-items

1234