Lines Matching refs:so_snd
569 if (off < so->so_snd.sb_cc)
582 * offset will be > 0 even if so_snd.sb_cc is 0, resulting in
597 len = min(so->so_snd.sb_cc, sendwin) - off;
606 len = min(so->so_snd.sb_cc, tp->snd_wnd)
722 (so->so_snd.sb_flags & (SB_AUTOSIZE | SB_TRIM)) == SB_AUTOSIZE &&
723 tcp_cansbgrow(&so->so_snd)) {
724 if ((tp->snd_wnd / 4 * 5) >= so->so_snd.sb_hiwat &&
725 so->so_snd.sb_cc >= (so->so_snd.sb_hiwat / 8 * 7) &&
726 sendwin >= (so->so_snd.sb_cc -
737 if (sbreserve(&so->so_snd,
738 min(so->so_snd.sb_hiwat + tcp_autosndbuf_inc,
740 so->so_snd.sb_idealsize = so->so_snd.sb_hiwat;
743 so->so_snd.sb_idealsize =
744 max(tcp_sendspace, so->so_snd.sb_hiwat -
746 so->so_snd.sb_flags |= SB_TRIM;
801 if (SEQ_LT(p->rxmit + len, tp->snd_una + so->so_snd.sb_cc))
804 if (SEQ_LT(tp->snd_nxt + len, tp->snd_una + so->so_snd.sb_cc))
850 len + off >= so->so_snd.sb_cc) {
961 if (so->so_snd.sb_cc && tp->t_timer[TCPT_REXMT] == 0 &&
1290 (so->so_snd.sb_cc - (tp->snd_max - tp->snd_una)) >=
1292 tp->t_bwmeas->bw_size = min((so->so_snd.sb_cc - (tp->snd_max - tp->snd_una)),
1371 if (so->so_snd.sb_mb == NULL || off < 0) {
1376 m_copydata(so->so_snd.sb_mb, off, (int) len,
1381 m->m_next = m_copy(so->so_snd.sb_mb, off, (int) len);
1398 if (m_head != so->so_snd.sb_mb || sack_rxmit || last_off != off)
1401 m_head = so->so_snd.sb_mb;
1413 if ((m = m_copym_with_hdrs(so->so_snd.sb_mb, off, len, M_DONTWAIT, &m_lastm, &m_off)) == NULL) {
1427 if (off + len == so->so_snd.sb_cc)