Lines Matching refs:recwin
114 long len, recwin, sendwin; in tcp_output() local
448 recwin = cbuf_free_space(&tp->recvbuf); in tcp_output()
521 if (recwin > 0 && !(tp->t_flags & TF_NEEDSYN) && in tcp_output()
532 adv = min(recwin, (long)TCP_MAXWIN << tp->rcv_scale); in tcp_output()
575 recwin <= (long)(so->so_rcv.sb_hiwat / 8) || in tcp_output()
1048 if (recwin < (long)(cbuf_size(&tp->recvbuf) / 4) && in tcp_output()
1049 recwin < (long)tp->t_maxseg) in tcp_output()
1050 recwin = 0; in tcp_output()
1052 recwin < (long)(tp->rcv_adv - tp->rcv_nxt)) in tcp_output()
1053 recwin = (long)(tp->rcv_adv - tp->rcv_nxt); in tcp_output()
1054 if (recwin > (long)TCP_MAXWIN << tp->rcv_scale) in tcp_output()
1055 recwin = (long)TCP_MAXWIN << tp->rcv_scale; in tcp_output()
1066 th->th_win = htons((uint16_t)(recwin >> tp->rcv_scale)); in tcp_output()
1300 if (recwin >= 0 && SEQ_GT(tp->rcv_nxt + recwin, tp->rcv_adv)) in tcp_output()
1301 tp->rcv_adv = tp->rcv_nxt + recwin; in tcp_output()