• Home
  • Raw
  • Download

Lines Matching refs:space

212 	unsigned int space = (__space < 0 ? 0 : __space);  in tcp_select_initial_window()  local
217 space = min(*window_clamp, space); in tcp_select_initial_window()
220 if (space > mss) in tcp_select_initial_window()
221 space = rounddown(space, mss); in tcp_select_initial_window()
232 (*rcv_wnd) = min(space, MAX_TCP_WINDOW); in tcp_select_initial_window()
234 (*rcv_wnd) = min_t(u32, space, U16_MAX); in tcp_select_initial_window()
242 space = max_t(u32, space, sock_net(sk)->ipv4.sysctl_tcp_rmem[2]); in tcp_select_initial_window()
243 space = max_t(u32, space, sysctl_rmem_max); in tcp_select_initial_window()
244 space = min_t(u32, space, *window_clamp); in tcp_select_initial_window()
245 *rcv_wscale = clamp_t(int, ilog2(space) - 15, in tcp_select_initial_window()
2885 int space) in tcp_retrans_try_collapse() argument
2903 space -= skb->len; in tcp_retrans_try_collapse()
2910 if (space < 0) in tcp_retrans_try_collapse()
3533 int space, err = 0; in tcp_send_syn_data() local
3548 space = __tcp_mtu_to_mss(sk, icsk->icsk_pmtu_cookie) - in tcp_send_syn_data()
3551 space = min_t(size_t, space, fo->size); in tcp_send_syn_data()
3554 space = min_t(size_t, space, SKB_MAX_HEAD(MAX_TCP_HEADER)); in tcp_send_syn_data()
3556 syn_data = sk_stream_alloc_skb(sk, space, sk->sk_allocation, false); in tcp_send_syn_data()
3561 if (space) { in tcp_send_syn_data()
3562 int copied = copy_from_iter(skb_put(syn_data, space), space, in tcp_send_syn_data()
3569 if (copied != space) { in tcp_send_syn_data()
3571 space = copied; in tcp_send_syn_data()
3576 if (space == fo->size) in tcp_send_syn_data()
3578 fo->copied = space; in tcp_send_syn_data()