Lines Matching defs:nmax
1545 u_long nmax;
1549 nmax = so->so_snd.sb_hiwat;
1553 if (tcp_sendspace < nmax)
1554 nmax = tcp_sendspace;
1557 nmax = so->so_snd.sb_wat;
1560 nmax = MIN(sb_max, so->so_snd.sb_wat + tp->snd_max -
1566 if (nmax < so->so_snd.sb_cc + so->so_snd.sb_lowat)
1567 nmax = so->so_snd.sb_cc + so->so_snd.sb_lowat;
1569 if (nmax * 8 < so->so_snd.sb_mbcnt + so->so_snd.sb_lowat)
1570 nmax = (so->so_snd.sb_mbcnt+so->so_snd.sb_lowat+7) / 8;
1574 nmax = roundup(nmax, tp->t_maxseg);
1576 if (nmax != so->so_snd.sb_hiwat)
1577 sbreserve(so, &so->so_snd, nmax);
1592 u_long nmax;
1596 nmax = so->so_rcv.sb_hiwat;
1600 if (tcp_recvspace < nmax)
1601 nmax = tcp_recvspace;
1604 nmax = so->so_rcv.sb_wat;
1608 nmax = MIN(sb_max, so->so_rcv.sb_hiwat +
1615 nmax < so->so_snd.sb_lowat)
1616 nmax = so->so_snd.sb_lowat;
1619 if (nmax != so->so_rcv.sb_hiwat) {
1621 nmax = roundup(nmax, tp->t_maxseg);
1622 sbreserve(so, &so->so_rcv, nmax);