Lines Matching full:groups
290 * Friendship is created, in case lpn->groups doesn't get in clear_friendship()
735 for (i = 0; i < ARRAY_SIZE(lpn->groups); i++) { in lpn_group_add()
736 if (lpn->groups[i] == group) { in lpn_group_add()
741 if (!free_slot && lpn->groups[i] == BT_MESH_ADDR_UNASSIGNED) { in lpn_group_add()
742 free_slot = &lpn->groups[i]; in lpn_group_add()
760 for (i = 0; i < ARRAY_SIZE(lpn->groups); i++) { in lpn_group_del()
761 if (lpn->groups[i] == group) { in lpn_group_del()
767 lpn->groups[i] = BT_MESH_ADDR_UNASSIGNED; in lpn_group_del()
812 for (i = 0, g = 0; i < ARRAY_SIZE(lpn->groups); i++) { in sub_update()
813 if (lpn->groups[i] == BT_MESH_ADDR_UNASSIGNED) { in sub_update()
832 req.addr_list[g++] = sys_cpu_to_be16(lpn->groups[i]); in sub_update()
969 void bt_mesh_lpn_group_del(const uint16_t *groups, size_t group_count) in bt_mesh_lpn_group_del() argument
974 if (groups[i] != BT_MESH_ADDR_UNASSIGNED) { in bt_mesh_lpn_group_del()
975 LOG_DBG("group 0x%04x", groups[i]); in bt_mesh_lpn_group_del()
976 lpn_group_del(groups[i]); in bt_mesh_lpn_group_del()
1018 for (i = 0; i < ARRAY_SIZE(lpn->groups); i++) { in bt_mesh_lpn_friend_sub_cfm()
1021 lpn->groups[i] = BT_MESH_ADDR_UNASSIGNED; in bt_mesh_lpn_friend_sub_cfm()