Lines Matching refs:tss
739 struct tcp_splice_state *tss = rd_desc->arg.data; in tcp_splice_data_recv() local
742 ret = skb_splice_bits(skb, skb->sk, offset, tss->pipe, in tcp_splice_data_recv()
743 min(rd_desc->count, len), tss->flags); in tcp_splice_data_recv()
749 static int __tcp_splice_read(struct sock *sk, struct tcp_splice_state *tss) in __tcp_splice_read() argument
753 .arg.data = tss, in __tcp_splice_read()
754 .count = tss->len, in __tcp_splice_read()
777 struct tcp_splice_state tss = { in tcp_splice_read() local
798 while (tss.len) { in tcp_splice_read()
799 ret = __tcp_splice_read(sk, &tss); in tcp_splice_read()
838 tss.len -= ret; in tcp_splice_read()
1742 struct scm_timestamping_internal *tss) in tcp_update_recv_tstamps() argument
1745 tss->ts[0] = ktime_to_timespec64(skb->tstamp); in tcp_update_recv_tstamps()
1747 tss->ts[0] = (struct timespec64) {0}; in tcp_update_recv_tstamps()
1750 tss->ts[2] = ktime_to_timespec64(skb_hwtstamps(skb)->hwtstamp); in tcp_update_recv_tstamps()
1752 tss->ts[2] = (struct timespec64) {0}; in tcp_update_recv_tstamps()
1855 struct scm_timestamping_internal *tss,
1859 struct scm_timestamping_internal *tss) in receive_fallback_to_copy() argument
1878 tss, &zc->msg_flags); in receive_fallback_to_copy()
1924 struct scm_timestamping_internal *tss) in tcp_zc_handle_leftover() argument
1936 tcp_update_recv_tstamps(skb, tss); in tcp_zc_handle_leftover()
2029 struct scm_timestamping_internal *tss) in tcp_zc_finalize_rx_tstamp() argument
2044 tcp_recv_timestamp(&cmsg_dummy, sk, tss); in tcp_zc_finalize_rx_tstamp()
2056 struct scm_timestamping_internal *tss) in tcp_zerocopy_receive() argument
2084 return receive_fallback_to_copy(sk, zc, inq, tss); in tcp_zerocopy_receive()
2131 tcp_update_recv_tstamps(skb, tss); in tcp_zerocopy_receive()
2176 copylen = tcp_zc_handle_leftover(zc, sk, skb, &seq, copybuf_len, tss); in tcp_zerocopy_receive()
2199 struct scm_timestamping_internal *tss) in tcp_recv_timestamp() argument
2204 if (tss->ts[0].tv_sec || tss->ts[0].tv_nsec) { in tcp_recv_timestamp()
2209 .tv_sec = tss->ts[0].tv_sec, in tcp_recv_timestamp()
2210 .tv_nsec = tss->ts[0].tv_nsec, in tcp_recv_timestamp()
2216 .tv_sec = tss->ts[0].tv_sec, in tcp_recv_timestamp()
2217 .tv_nsec = tss->ts[0].tv_nsec, in tcp_recv_timestamp()
2225 .tv_sec = tss->ts[0].tv_sec, in tcp_recv_timestamp()
2226 .tv_usec = tss->ts[0].tv_nsec / 1000, in tcp_recv_timestamp()
2232 .tv_sec = tss->ts[0].tv_sec, in tcp_recv_timestamp()
2233 .tv_usec = tss->ts[0].tv_nsec / 1000, in tcp_recv_timestamp()
2244 tss->ts[0] = (struct timespec64) {0}; in tcp_recv_timestamp()
2247 if (tss->ts[2].tv_sec || tss->ts[2].tv_nsec) { in tcp_recv_timestamp()
2251 tss->ts[2] = (struct timespec64) {0}; in tcp_recv_timestamp()
2255 tss->ts[1] = (struct timespec64) {0}; in tcp_recv_timestamp()
2257 put_cmsg_scm_timestamping64(msg, tss); in tcp_recv_timestamp()
2259 put_cmsg_scm_timestamping(msg, tss); in tcp_recv_timestamp()
2294 struct scm_timestamping_internal *tss, in tcp_recvmsg_locked() argument
2493 tcp_update_recv_tstamps(skb, tss); in tcp_recvmsg_locked()
2538 struct scm_timestamping_internal tss; in tcp_recvmsg() local
2549 ret = tcp_recvmsg_locked(sk, msg, len, nonblock, flags, &tss, in tcp_recvmsg()
2555 tcp_recv_timestamp(msg, sk, &tss); in tcp_recvmsg()
4159 struct scm_timestamping_internal tss; in do_tcp_getsockopt() local
4184 err = tcp_zerocopy_receive(sk, &zc, &tss); in do_tcp_getsockopt()
4208 tcp_zc_finalize_rx_tstamp(sk, &zc, &tss); in do_tcp_getsockopt()