Lines Matching refs:sub
212 .net_idx = bt_mesh.lpn.sub->net_idx, in send_friend_clear()
218 .sub = bt_mesh.lpn.sub, in send_friend_clear()
239 uint16_t net_idx = lpn->sub->net_idx; in clear_friendship()
268 if (lpn->sub->keys[i].valid) { in clear_friendship()
282 lpn->sub = NULL; in clear_friendship()
383 lpn->sub = bt_mesh_subnet_next(NULL); in send_friend_req()
384 if (!lpn->sub) { in send_friend_req()
389 ctx.net_idx = lpn->sub->net_idx; in send_friend_req()
390 tx.sub = lpn->sub; in send_friend_req()
437 cb->polled(lpn->sub->net_idx, lpn->frnd, retry); in req_send_end()
461 .net_idx = bt_mesh.lpn.sub->net_idx, in send_friend_poll()
467 .sub = bt_mesh.lpn.sub, in send_friend_poll()
660 if (!lpn->sub->keys[i].valid) { in bt_mesh_lpn_friend_offer()
664 err = friend_cred_create(&lpn->cred[i], &lpn->sub->keys[i].net); in bt_mesh_lpn_friend_offer()
680 if (lpn->sub->keys[i].valid) { in bt_mesh_lpn_friend_offer()
685 lpn->sub = NULL; in bt_mesh_lpn_friend_offer()
789 .net_idx = lpn->sub->net_idx, in sub_update()
795 .sub = lpn->sub, in sub_update()
1050 struct bt_mesh_subnet *sub = rx->sub; in bt_mesh_lpn_friend_update() local
1064 if (sub->kr_phase == BT_MESH_KR_PHASE_2 && !rx->new_key) { in bt_mesh_lpn_friend_update()
1105 bt_mesh_kr_update(sub, BT_MESH_KEY_REFRESH(msg->flags), rx->new_key); in bt_mesh_lpn_friend_update()
1125 cb->established(lpn->sub->net_idx, lpn->frnd, lpn->queue_size, in bt_mesh_lpn_friend_update()
1145 static void subnet_evt(struct bt_mesh_subnet *sub, enum bt_mesh_key_evt evt) in subnet_evt() argument
1149 if (sub == bt_mesh.lpn.sub) { in subnet_evt()
1156 friend_cred_create(&bt_mesh.lpn.cred[1], &sub->keys[1].net); in subnet_evt()