Lines Matching refs:hashsize
1143 int hashsize; in maketcp_hashsize() local
1149 hashsize = 1 << fls(size); in maketcp_hashsize()
1151 if (hashsize < size) { in maketcp_hashsize()
1152 hashsize = 1 << (fls(size) - 1); in maketcp_hashsize()
1154 return (hashsize); in maketcp_hashsize()
1475 int hashsize; in tcp_init() local
1542 hashsize = tcp_tcbhashsize; in tcp_init()
1543 if (hashsize == 0) { in tcp_init()
1550 hashsize = maketcp_hashsize(maxsockets / 4); in tcp_init()
1555 if (hashsize < 512) in tcp_init()
1556 hashsize = 512; in tcp_init()
1559 "net.inet.tcp.tcbhashsize", hashsize); in tcp_init()
1569 if (!powerof2(hashsize)) { in tcp_init()
1570 int oldhashsize = hashsize; in tcp_init()
1572 hashsize = maketcp_hashsize(hashsize); in tcp_init()
1574 if (hashsize < 16) in tcp_init()
1575 hashsize = 16; in tcp_init()
1578 hashsize); in tcp_init()
1580 tcp_tcbhashsize = hashsize; in tcp_init()