Lines Matching refs:inq
1858 struct tcp_zerocopy_receive *zc, int inq, in receive_fallback_to_copy() argument
1873 inq, &iov, &msg.msg_iter); in receive_fallback_to_copy()
1877 err = tcp_recvmsg_locked(sk, &msg, inq, /*nonblock=*/1, /*flags=*/0, in receive_fallback_to_copy()
2069 int inq = tcp_inq(sk); in tcp_zerocopy_receive() local
2083 if (inq && inq <= copybuf_len) in tcp_zerocopy_receive()
2084 return receive_fallback_to_copy(sk, zc, inq, tss); in tcp_zerocopy_receive()
2086 if (inq < PAGE_SIZE) { in tcp_zerocopy_receive()
2088 zc->recv_skip_hint = inq; in tcp_zerocopy_receive()
2089 if (!inq && sock_flag(sk, SOCK_DONE)) in tcp_zerocopy_receive()
2102 avail_len = min_t(u32, vma_len, inq); in tcp_zerocopy_receive()
2268 int inq; in tcp_inq_hint() local
2270 inq = rcv_nxt - copied_seq; in tcp_inq_hint()
2271 if (unlikely(inq < 0 || copied_seq != READ_ONCE(tp->copied_seq))) { in tcp_inq_hint()
2273 inq = tp->rcv_nxt - tp->copied_seq; in tcp_inq_hint()
2279 if (inq == 0 && sock_flag(sk, SOCK_DONE)) in tcp_inq_hint()
2280 inq = 1; in tcp_inq_hint()
2281 return inq; in tcp_inq_hint()
2537 int cmsg_flags = 0, ret, inq; in tcp_recvmsg() local
2557 inq = tcp_inq_hint(sk); in tcp_recvmsg()
2558 put_cmsg(msg, SOL_TCP, TCP_CM_INQ, sizeof(inq), &inq); in tcp_recvmsg()
4200 case offsetofend(struct tcp_zerocopy_receive, inq): in do_tcp_getsockopt()
4215 zc.inq = tcp_inq_hint(sk); in do_tcp_getsockopt()