Lines Matching refs:so_snd
388 if (off < sbused(&so->so_snd)) in tcp_default_output()
414 len = imin(sbavail(&so->so_snd), sendwin) - off; in tcp_default_output()
422 imin(sbavail(&so->so_snd), sendwin) - in tcp_default_output()
498 (off < (int) sbavail(&so->so_snd)) && in tcp_default_output()
568 tp->snd_una + sbused(&so->so_snd))) { in tcp_default_output()
613 (uint32_t)len + (uint32_t)off >= sbavail(&so->so_snd) && in tcp_default_output()
747 if (sbavail(&so->so_snd) && !tcp_timer_active(tp, TT_REXMT) && in tcp_default_output()
946 sbavail(&so->so_snd)) { in tcp_default_output()
1078 mb = sbsndptr_noadv(&so->so_snd, off, &moff); in tcp_default_output()
1083 sbsndptr_adv(&so->so_snd, mb, len); in tcp_default_output()
1091 msb = &so->so_snd; in tcp_default_output()
1122 if (((uint32_t)off + (uint32_t)len == sbused(&so->so_snd)) && in tcp_default_output()
1423 lgb = tcp_log_event(tp, th, &so->so_rcv, &so->so_snd, in tcp_default_output()
1572 ulmin(sbavail(&so->so_snd) - off, sendwin); in tcp_default_output()
1595 } else if (len == 0 && sbavail(&so->so_snd) && in tcp_default_output()
2163 if (V_tcp_do_autosndbuf && so->so_snd.sb_flags & SB_AUTOSIZE) { in tcp_sndbuf_autoscale()
2166 lowat = V_tcp_sendbuf_auto_lowat ? so->so_snd.sb_lowat : 0; in tcp_sndbuf_autoscale()
2167 if ((tp->snd_wnd / 4 * 5) >= so->so_snd.sb_hiwat - lowat && in tcp_sndbuf_autoscale()
2168 sbused(&so->so_snd) >= in tcp_sndbuf_autoscale()
2169 (so->so_snd.sb_hiwat / 8 * 7) - lowat && in tcp_sndbuf_autoscale()
2170 sbused(&so->so_snd) < V_tcp_autosndbuf_max && in tcp_sndbuf_autoscale()
2171 sendwin >= (sbused(&so->so_snd) - in tcp_sndbuf_autoscale()
2174 min(so->so_snd.sb_hiwat + V_tcp_autosndbuf_inc, in tcp_sndbuf_autoscale()
2176 so->so_snd.sb_flags &= ~SB_AUTOSIZE; in tcp_sndbuf_autoscale()