Lines Matching refs:space

199  * Based on the assumption that the given amount of space
201 * NOTE: for smooth operation initial space offering should
210 unsigned int space = (__space < 0 ? 0 : __space);
215 space = min(*window_clamp, space);
217 /* Quantize space offering to a multiple of mss if possible. */
218 if (space > mss)
219 space = rounddown(space, mss);
230 (*rcv_wnd) = min(space, MAX_TCP_WINDOW);
232 (*rcv_wnd) = min_t(u32, space, U16_MAX);
240 space = max_t(u32, space, READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_rmem[2]));
241 space = max_t(u32, space, READ_ONCE(sysctl_rmem_max));
242 space = min_t(u32, space, *window_clamp);
243 *rcv_wscale = clamp_t(int, ilog2(space) - 15,
952 * option space because a MPTCP connection would be forced to
954 * missing. SACK still gets a chance to use whatever space is
2236 * frame, so if we have space for more than 3 frames
2991 * If the free space is less than the 1/4 of the maximum
2992 * space available and the free space is less than 1/2 mss,
3005 * multiple of MSS, at least until the free space gets quite small.
3062 /* if free space is less than mss estimate, or is below 1/16th
3082 /* Advertise enough space so that it won't get scaled away.
3092 * free space we just keep it. This prevents the divide
3094 * We also don't do any window rounding when the free space
3116 /* if free space is too low, return a zero window */
3211 int space)
3229 space -= skb->len;
3236 if (space < 0)
3569 /* Reserve space for headers and prepare control bits. */
3655 /* Reserve space for headers. */
3862 int space, err = 0;
3869 * user-MSS. Reserve maximum option space for middleboxes that add
3870 * private TCP options. The cost is reduced data space in SYN :(
3876 space = __tcp_mtu_to_mss(sk, icsk->icsk_pmtu_cookie) -
3879 space = min_t(size_t, space, fo->size);
3881 if (space &&
3882 !skb_page_frag_refill(min_t(size_t, space, PAGE_SIZE),
3889 if (space) {
3890 space = min_t(size_t, space, pfrag->size - pfrag->offset);
3891 space = tcp_wmem_schedule(sk, space);
3893 if (space) {
3894 space = copy_page_from_iter(pfrag->page, pfrag->offset,
3895 space, &fo->data->msg_iter);
3896 if (unlikely(!space)) {
3902 pfrag->offset, space);
3904 pfrag->offset += space;
3905 skb_len_add(syn_data, space);
3909 if (space == fo->size)
3911 fo->copied = space;
4104 /* Reserve space for headers and prepare control bits. */
4146 /* Reserve space for headers and set control bits. */