Lines Matching refs:tss

736 	struct tcp_splice_state *tss = rd_desc->arg.data;  in tcp_splice_data_recv()  local
739 ret = skb_splice_bits(skb, skb->sk, offset, tss->pipe, in tcp_splice_data_recv()
740 min(rd_desc->count, len), tss->flags); in tcp_splice_data_recv()
746 static int __tcp_splice_read(struct sock *sk, struct tcp_splice_state *tss) in __tcp_splice_read() argument
750 .arg.data = tss, in __tcp_splice_read()
751 .count = tss->len, in __tcp_splice_read()
774 struct tcp_splice_state tss = { in tcp_splice_read() local
795 while (tss.len) { in tcp_splice_read()
796 ret = __tcp_splice_read(sk, &tss); in tcp_splice_read()
835 tss.len -= ret; in tcp_splice_read()
1872 struct scm_timestamping_internal *tss) in tcp_update_recv_tstamps() argument
1875 tss->ts[0] = ktime_to_timespec64(skb->tstamp); in tcp_update_recv_tstamps()
1877 tss->ts[0] = (struct timespec64) {0}; in tcp_update_recv_tstamps()
1880 tss->ts[2] = ktime_to_timespec64(skb_hwtstamps(skb)->hwtstamp); in tcp_update_recv_tstamps()
1882 tss->ts[2] = (struct timespec64) {0}; in tcp_update_recv_tstamps()
1987 int flags, struct scm_timestamping_internal *tss,
1991 struct scm_timestamping_internal *tss) in receive_fallback_to_copy() argument
2010 tss, &zc->msg_flags); in receive_fallback_to_copy()
2056 struct scm_timestamping_internal *tss) in tcp_zc_handle_leftover() argument
2068 tcp_update_recv_tstamps(skb, tss); in tcp_zc_handle_leftover()
2161 struct scm_timestamping_internal *tss) in tcp_zc_finalize_rx_tstamp() argument
2176 tcp_recv_timestamp(&cmsg_dummy, sk, tss); in tcp_zc_finalize_rx_tstamp()
2188 struct scm_timestamping_internal *tss) in tcp_zerocopy_receive() argument
2216 return receive_fallback_to_copy(sk, zc, inq, tss); in tcp_zerocopy_receive()
2263 tcp_update_recv_tstamps(skb, tss); in tcp_zerocopy_receive()
2308 copylen = tcp_zc_handle_leftover(zc, sk, skb, &seq, copybuf_len, tss); in tcp_zerocopy_receive()
2331 struct scm_timestamping_internal *tss) in tcp_recv_timestamp() argument
2336 if (tss->ts[0].tv_sec || tss->ts[0].tv_nsec) { in tcp_recv_timestamp()
2341 .tv_sec = tss->ts[0].tv_sec, in tcp_recv_timestamp()
2342 .tv_nsec = tss->ts[0].tv_nsec, in tcp_recv_timestamp()
2348 .tv_sec = tss->ts[0].tv_sec, in tcp_recv_timestamp()
2349 .tv_nsec = tss->ts[0].tv_nsec, in tcp_recv_timestamp()
2357 .tv_sec = tss->ts[0].tv_sec, in tcp_recv_timestamp()
2358 .tv_usec = tss->ts[0].tv_nsec / 1000, in tcp_recv_timestamp()
2364 .tv_sec = tss->ts[0].tv_sec, in tcp_recv_timestamp()
2365 .tv_usec = tss->ts[0].tv_nsec / 1000, in tcp_recv_timestamp()
2376 tss->ts[0] = (struct timespec64) {0}; in tcp_recv_timestamp()
2379 if (tss->ts[2].tv_sec || tss->ts[2].tv_nsec) { in tcp_recv_timestamp()
2383 tss->ts[2] = (struct timespec64) {0}; in tcp_recv_timestamp()
2387 tss->ts[1] = (struct timespec64) {0}; in tcp_recv_timestamp()
2389 put_cmsg_scm_timestamping64(msg, tss); in tcp_recv_timestamp()
2391 put_cmsg_scm_timestamping(msg, tss); in tcp_recv_timestamp()
2425 int flags, struct scm_timestamping_internal *tss, in tcp_recvmsg_locked() argument
2624 tcp_update_recv_tstamps(skb, tss); in tcp_recvmsg_locked()
2669 struct scm_timestamping_internal tss; in tcp_recvmsg() local
2680 ret = tcp_recvmsg_locked(sk, msg, len, flags, &tss, &cmsg_flags); in tcp_recvmsg()
2685 tcp_recv_timestamp(msg, sk, &tss); in tcp_recvmsg()
4310 struct scm_timestamping_internal tss; in do_tcp_getsockopt() local
4335 err = tcp_zerocopy_receive(sk, &zc, &tss); in do_tcp_getsockopt()
4359 tcp_zc_finalize_rx_tstamp(sk, &zc, &tss); in do_tcp_getsockopt()