Lines Matching refs:subnet
90 return frnd->subnet != NULL; in friend_is_allocated()
121 (!frnd->subnet || frnd->subnet->net_idx != net_idx)) { in bt_mesh_friend_find()
138 &frnd->subnet->keys[idx].net); in friend_cred_create()
174 if (frnd->subnet->keys[i].valid) { in friend_clear()
196 cb->terminated(frnd->subnet->net_idx, frnd->lpn); in friend_clear()
201 frnd->subnet = NULL; in friend_clear()
243 frnd->subnet->net_idx == net_idx) { in bt_mesh_friend_sec_update()
372 struct bt_mesh_subnet *subnet; member
385 .net_idx = frnd->subnet->net_idx, in unseg_app_sdu_unpack()
390 meta->subnet = frnd->subnet; in unseg_app_sdu_unpack()
498 cred = &frnd->subnet->keys[SUBNET_KEY_TX_IDX(frnd->subnet)] in encrypt_friend_pdu()
501 cred = &frnd->cred[SUBNET_KEY_TX_IDX(frnd->subnet)]; in encrypt_friend_pdu()
576 upd->flags = bt_mesh_net_flags(frnd->subnet); in encode_update()
762 cb->polled(frnd->subnet->net_idx, frnd->lpn); in bt_mesh_friend_poll()
772 cb->established(frnd->subnet->net_idx, frnd->lpn, frnd->recv_delay, in bt_mesh_friend_poll()
812 .net_idx = frnd->subnet->net_idx, in send_friend_clear()
818 .sub = frnd->subnet, in send_friend_clear()
1033 if (!bt_mesh.frnd[i].subnet) { in bt_mesh_friend_req()
1047 frnd->subnet = rx->sub; in bt_mesh_friend_req()
1053 err = friend_cred_create(frnd, SUBNET_KEY_TX_IDX(frnd->subnet)); in bt_mesh_friend_req()
1309 if (frnd->subnet != sub) { in subnet_evt()
1544 if (net_idx != frnd->subnet->net_idx) { in friend_lpn_matches()