Lines Matching refs:space
201 * Based on the assumption that the given amount of space
203 * NOTE: for smooth operation initial space offering should
212 unsigned int space = (__space < 0 ? 0 : __space);
217 space = min(*window_clamp, space);
219 /* Quantize space offering to a multiple of mss if possible. */
220 if (space > mss)
221 space = rounddown(space, mss);
232 (*rcv_wnd) = min(space, MAX_TCP_WINDOW);
234 (*rcv_wnd) = min_t(u32, space, U16_MAX);
242 space = max_t(u32, space, READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_rmem[2]));
243 space = max_t(u32, space, READ_ONCE(sysctl_rmem_max));
244 space = min_t(u32, space, *window_clamp);
245 *rcv_wscale = clamp_t(int, ilog2(space) - 15,
942 * option space because a MPTCP connection would be forced to
944 * missing. SACK still gets a chance to use whatever space is
2231 * frame, so if we have space for more than 3 frames
2928 * If the free space is less than the 1/4 of the maximum
2929 * space available and the free space is less than 1/2 mss,
2942 * multiple of MSS, at least until the free space gets quite small.
2990 /* if free space is less than mss estimate, or is below 1/16th
3010 /* Advertise enough space so that it won't get scaled away.
3020 * free space we just keep it. This prevents the divide
3022 * We also don't do any window rounding when the free space
3113 int space)
3131 space -= skb->len;
3138 if (space < 0)
3480 /* Reserve space for headers and prepare control bits. */
3566 /* Reserve space for headers. */
3778 int space, err = 0;
3786 * user-MSS. Reserve maximum option space for middleboxes that add
3787 * private TCP options. The cost is reduced data space in SYN :(
3793 space = __tcp_mtu_to_mss(sk, icsk->icsk_pmtu_cookie) -
3796 space = min_t(size_t, space, fo->size);
3799 space = min_t(size_t, space, SKB_MAX_HEAD(MAX_TCP_HEADER));
3801 syn_data = sk_stream_alloc_skb(sk, space, sk->sk_allocation, false);
3806 if (space) {
3807 int copied = copy_from_iter(skb_put(syn_data, space), space,
3814 if (copied != space) {
3816 space = copied;
3821 if (space == fo->size)
3823 fo->copied = space;
4002 /* Reserve space for headers and prepare control bits. */
4044 /* Reserve space for headers and set control bits. */