Lines Matching refs:rcv_wscale
101 ((tp->snd_nxt - tcp_wnd_end(tp)) < (1 << tp->rx_opt.rcv_wscale)))) in tcp_acceptable_seq()
207 int wscale_ok, __u8 *rcv_wscale, in tcp_select_initial_window() argument
237 *rcv_wscale = 0; in tcp_select_initial_window()
243 *rcv_wscale = clamp_t(int, ilog2(space) - 15, in tcp_select_initial_window()
247 (*window_clamp) = min_t(__u32, U16_MAX << (*rcv_wscale), *window_clamp); in tcp_select_initial_window()
275 new_win = ALIGN(cur_win, 1 << tp->rx_opt.rcv_wscale); in tcp_select_window()
283 if (!tp->rx_opt.rcv_wscale && in tcp_select_window()
287 new_win = min(new_win, (65535U << tp->rx_opt.rcv_wscale)); in tcp_select_window()
290 new_win >>= tp->rx_opt.rcv_wscale; in tcp_select_window()
796 opts->ws = tp->rx_opt.rcv_wscale; in tcp_syn_options()
870 opts->ws = ireq->rcv_wscale; in tcp_synack_options()
2994 free_space = round_down(free_space, 1 << tp->rx_opt.rcv_wscale); in __tcp_select_window()
3013 if (tp->rx_opt.rcv_wscale) { in __tcp_select_window()
3020 window = ALIGN(window, (1 << tp->rx_opt.rcv_wscale)); in __tcp_select_window()
3675 __u8 rcv_wscale; in tcp_connect_init() local
3719 &rcv_wscale, in tcp_connect_init()
3722 tp->rx_opt.rcv_wscale = rcv_wscale; in tcp_connect_init()