Lines Matching defs:newcnt
99 sctp_assoc_t newcnt, oldcnt;
103 for (newcnt = 1; newcnt <= maxid; newcnt = (newcnt << 1) | 1) {
108 newlist = kmem_alloc(newcnt * sizeof (struct sctp_sa_id), kmflags);
114 if (newcnt <= oldcnt) {
115 kmem_free(newlist, newcnt * sizeof (struct sctp_sa_id));
118 ASSERT((newcnt & (newcnt + 1)) == 0);
121 ss->ss_maxassoc = newcnt;
125 (newcnt - oldcnt) * sizeof (struct sctp_sa_id));