Lines Matching refs:bt_mesh
140 LOG_DBG("%s -> %s", state2str(bt_mesh.lpn.state), state2str(state)); in lpn_set_state()
142 bt_mesh.lpn.state = state; in lpn_set_state()
150 for (i = 0; i < ARRAY_SIZE(bt_mesh.lpn.added); i++) { in group_zero()
163 for (i = 0; i < ARRAY_SIZE(bt_mesh.lpn.added); i++) { in group_set()
176 for (i = 0; i < ARRAY_SIZE(bt_mesh.lpn.added); i++) { in group_clear()
188 struct bt_mesh_lpn *lpn = &bt_mesh.lpn; in friend_clear_sent()
212 .net_idx = bt_mesh.lpn.sub->net_idx, in send_friend_clear()
214 .addr = bt_mesh.lpn.frnd, in send_friend_clear()
218 .sub = bt_mesh.lpn.sub, in send_friend_clear()
225 .lpn_counter = sys_cpu_to_be16(bt_mesh.lpn.lpn_counter), in send_friend_clear()
236 struct bt_mesh_lpn *lpn = &bt_mesh.lpn; in clear_friendship()
317 struct bt_mesh_lpn *lpn = &bt_mesh.lpn; in friend_req_send_end()
342 struct bt_mesh_lpn *lpn = &bt_mesh.lpn; in friend_req_send_start()
398 struct bt_mesh_lpn *lpn = &bt_mesh.lpn; in req_send_end()
444 struct bt_mesh_lpn *lpn = &bt_mesh.lpn; in req_send_start()
461 .net_idx = bt_mesh.lpn.sub->net_idx, in send_friend_poll()
463 .addr = bt_mesh.lpn.frnd, in send_friend_poll()
467 .sub = bt_mesh.lpn.sub, in send_friend_poll()
473 struct bt_mesh_lpn *lpn = &bt_mesh.lpn; in send_friend_poll()
499 if (bt_mesh.lpn.state == BT_MESH_LPN_DISABLED) { in bt_mesh_lpn_disable()
508 struct bt_mesh_lpn *lpn = &bt_mesh.lpn; in bt_mesh_lpn_set()
556 struct bt_mesh_lpn *lpn = &bt_mesh.lpn; in bt_mesh_lpn_friendship_end()
588 struct bt_mesh_lpn *lpn = &bt_mesh.lpn; in bt_mesh_lpn_msg_received()
618 struct bt_mesh_lpn *lpn = &bt_mesh.lpn; in friend_cred_create()
629 struct bt_mesh_lpn *lpn = &bt_mesh.lpn; in bt_mesh_lpn_friend_offer()
698 struct bt_mesh_lpn *lpn = &bt_mesh.lpn; in bt_mesh_lpn_friend_clear_cfm()
729 struct bt_mesh_lpn *lpn = &bt_mesh.lpn; in lpn_group_add()
755 struct bt_mesh_lpn *lpn = &bt_mesh.lpn; in lpn_group_del()
776 for (i = 0; i < ARRAY_SIZE(bt_mesh.lpn.added); i++) { in group_popcount()
786 struct bt_mesh_lpn *lpn = &bt_mesh.lpn; in sub_update()
883 struct bt_mesh_lpn *lpn = &bt_mesh.lpn; in lpn_timeout()
893 clear_friendship(false, bt_mesh.lpn.disable); in lpn_timeout()
960 if (!bt_mesh_lpn_established() || bt_mesh.lpn.sent_req) { in bt_mesh_lpn_group_add()
978 if (!bt_mesh_lpn_established() || bt_mesh.lpn.sent_req) { in bt_mesh_lpn_group_del()
989 struct bt_mesh_lpn *lpn = &bt_mesh.lpn; in bt_mesh_lpn_friend_sub_cfm()
1049 struct bt_mesh_lpn *lpn = &bt_mesh.lpn; in bt_mesh_lpn_friend_update()
1069 if (atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_INITIATOR) && in bt_mesh_lpn_friend_update()
1070 (atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS) == in bt_mesh_lpn_friend_update()
1136 if (!bt_mesh.lpn.established) { in bt_mesh_lpn_poll()
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()
1169 struct bt_mesh_lpn *lpn = &bt_mesh.lpn; in bt_mesh_lpn_init()