Lines Matching refs:groups
733 for (i = 0; i < ARRAY_SIZE(lpn->groups); i++) { in lpn_group_add()
734 if (lpn->groups[i] == group) { in lpn_group_add()
739 if (!free_slot && lpn->groups[i] == BT_MESH_ADDR_UNASSIGNED) { in lpn_group_add()
740 free_slot = &lpn->groups[i]; in lpn_group_add()
758 for (i = 0; i < ARRAY_SIZE(lpn->groups); i++) { in lpn_group_del()
759 if (lpn->groups[i] == group) { in lpn_group_del()
765 lpn->groups[i] = BT_MESH_ADDR_UNASSIGNED; in lpn_group_del()
810 for (i = 0, g = 0; i < ARRAY_SIZE(lpn->groups); i++) { in sub_update()
811 if (lpn->groups[i] == BT_MESH_ADDR_UNASSIGNED) { in sub_update()
830 req.addr_list[g++] = sys_cpu_to_be16(lpn->groups[i]); in sub_update()
967 void bt_mesh_lpn_group_del(const uint16_t *groups, size_t group_count) in bt_mesh_lpn_group_del() argument
972 if (groups[i] != BT_MESH_ADDR_UNASSIGNED) { in bt_mesh_lpn_group_del()
973 LOG_DBG("group 0x%04x", groups[i]); in bt_mesh_lpn_group_del()
974 lpn_group_del(groups[i]); in bt_mesh_lpn_group_del()
1016 for (i = 0; i < ARRAY_SIZE(lpn->groups); i++) { in bt_mesh_lpn_friend_sub_cfm()
1019 lpn->groups[i] = BT_MESH_ADDR_UNASSIGNED; in bt_mesh_lpn_friend_sub_cfm()