Lines Matching refs:inq
1989 struct tcp_zerocopy_receive *zc, int inq, in receive_fallback_to_copy() argument
2004 inq, &iov, &msg.msg_iter); in receive_fallback_to_copy()
2008 err = tcp_recvmsg_locked(sk, &msg, inq, MSG_DONTWAIT, in receive_fallback_to_copy()
2200 int inq = tcp_inq(sk); in tcp_zerocopy_receive() local
2214 if (inq && inq <= copybuf_len) in tcp_zerocopy_receive()
2215 return receive_fallback_to_copy(sk, zc, inq, tss); in tcp_zerocopy_receive()
2217 if (inq < PAGE_SIZE) { in tcp_zerocopy_receive()
2219 zc->recv_skip_hint = inq; in tcp_zerocopy_receive()
2220 if (!inq && sock_flag(sk, SOCK_DONE)) in tcp_zerocopy_receive()
2233 avail_len = min_t(u32, vma_len, inq); in tcp_zerocopy_receive()
2399 int inq; in tcp_inq_hint() local
2401 inq = rcv_nxt - copied_seq; in tcp_inq_hint()
2402 if (unlikely(inq < 0 || copied_seq != READ_ONCE(tp->copied_seq))) { in tcp_inq_hint()
2404 inq = tp->rcv_nxt - tp->copied_seq; in tcp_inq_hint()
2410 if (inq == 0 && sock_flag(sk, SOCK_DONE)) in tcp_inq_hint()
2411 inq = 1; in tcp_inq_hint()
2412 return inq; in tcp_inq_hint()
4349 case offsetofend(struct tcp_zerocopy_receive, inq): in do_tcp_getsockopt()
4364 zc.inq = tcp_inq_hint(sk); in do_tcp_getsockopt()