Lines Matching refs:win
70 register long len, win;
98 win = min(tp->snd_wnd, tp->snd_cwnd);
111 if (win == 0) {
130 win = 1;
137 len = min(so->so_snd.sb_cc, win) - off;
151 if (win == 0) {
164 win = sbspace(&so->so_rcv);
197 if (win > 0) {
203 long adv = min(win, (long)TCP_MAXWIN << tp->rcv_scale) -
437 if (win < (long)(so->so_rcv.sb_datalen / 4) && win < (long)tp->t_maxseg)
438 win = 0;
439 if (win > (long)TCP_MAXWIN << tp->rcv_scale)
440 win = (long)TCP_MAXWIN << tp->rcv_scale;
441 if (win < (long)(tp->rcv_adv - tp->rcv_nxt))
442 win = (long)(tp->rcv_adv - tp->rcv_nxt);
443 ti->ti_win = htons((u_int16_t) (win>>tp->rcv_scale));
573 if (win > 0 && SEQ_GT(tp->rcv_nxt+win, tp->rcv_adv))
574 tp->rcv_adv = tp->rcv_nxt + win;