Lines Matching refs:tss
735 struct tcp_splice_state *tss = rd_desc->arg.data; in tcp_splice_data_recv() local
738 ret = skb_splice_bits(skb, skb->sk, offset, tss->pipe, in tcp_splice_data_recv()
739 min(rd_desc->count, len), tss->flags); in tcp_splice_data_recv()
745 static int __tcp_splice_read(struct sock *sk, struct tcp_splice_state *tss) in __tcp_splice_read() argument
749 .arg.data = tss, in __tcp_splice_read()
750 .count = tss->len, in __tcp_splice_read()
773 struct tcp_splice_state tss = { in tcp_splice_read() local
794 while (tss.len) { in tcp_splice_read()
795 ret = __tcp_splice_read(sk, &tss); in tcp_splice_read()
834 tss.len -= ret; in tcp_splice_read()
1871 struct scm_timestamping_internal *tss) in tcp_update_recv_tstamps() argument
1874 tss->ts[0] = ktime_to_timespec64(skb->tstamp); in tcp_update_recv_tstamps()
1876 tss->ts[0] = (struct timespec64) {0}; in tcp_update_recv_tstamps()
1879 tss->ts[2] = ktime_to_timespec64(skb_hwtstamps(skb)->hwtstamp); in tcp_update_recv_tstamps()
1881 tss->ts[2] = (struct timespec64) {0}; in tcp_update_recv_tstamps()
1986 int flags, struct scm_timestamping_internal *tss,
1990 struct scm_timestamping_internal *tss) in receive_fallback_to_copy() argument
2009 tss, &zc->msg_flags); in receive_fallback_to_copy()
2055 struct scm_timestamping_internal *tss) in tcp_zc_handle_leftover() argument
2067 tcp_update_recv_tstamps(skb, tss); in tcp_zc_handle_leftover()
2160 struct scm_timestamping_internal *tss) in tcp_zc_finalize_rx_tstamp() argument
2175 tcp_recv_timestamp(&cmsg_dummy, sk, tss); in tcp_zc_finalize_rx_tstamp()
2187 struct scm_timestamping_internal *tss) in tcp_zerocopy_receive() argument
2215 return receive_fallback_to_copy(sk, zc, inq, tss); in tcp_zerocopy_receive()
2262 tcp_update_recv_tstamps(skb, tss); in tcp_zerocopy_receive()
2307 copylen = tcp_zc_handle_leftover(zc, sk, skb, &seq, copybuf_len, tss); in tcp_zerocopy_receive()
2330 struct scm_timestamping_internal *tss) in tcp_recv_timestamp() argument
2335 if (tss->ts[0].tv_sec || tss->ts[0].tv_nsec) { in tcp_recv_timestamp()
2340 .tv_sec = tss->ts[0].tv_sec, in tcp_recv_timestamp()
2341 .tv_nsec = tss->ts[0].tv_nsec, in tcp_recv_timestamp()
2347 .tv_sec = tss->ts[0].tv_sec, in tcp_recv_timestamp()
2348 .tv_nsec = tss->ts[0].tv_nsec, in tcp_recv_timestamp()
2356 .tv_sec = tss->ts[0].tv_sec, in tcp_recv_timestamp()
2357 .tv_usec = tss->ts[0].tv_nsec / 1000, in tcp_recv_timestamp()
2363 .tv_sec = tss->ts[0].tv_sec, in tcp_recv_timestamp()
2364 .tv_usec = tss->ts[0].tv_nsec / 1000, in tcp_recv_timestamp()
2375 tss->ts[0] = (struct timespec64) {0}; in tcp_recv_timestamp()
2378 if (tss->ts[2].tv_sec || tss->ts[2].tv_nsec) { in tcp_recv_timestamp()
2382 tss->ts[2] = (struct timespec64) {0}; in tcp_recv_timestamp()
2386 tss->ts[1] = (struct timespec64) {0}; in tcp_recv_timestamp()
2388 put_cmsg_scm_timestamping64(msg, tss); in tcp_recv_timestamp()
2390 put_cmsg_scm_timestamping(msg, tss); in tcp_recv_timestamp()
2424 int flags, struct scm_timestamping_internal *tss, in tcp_recvmsg_locked() argument
2623 tcp_update_recv_tstamps(skb, tss); in tcp_recvmsg_locked()
2668 struct scm_timestamping_internal tss; in tcp_recvmsg() local
2679 ret = tcp_recvmsg_locked(sk, msg, len, flags, &tss, &cmsg_flags); in tcp_recvmsg()
2684 tcp_recv_timestamp(msg, sk, &tss); in tcp_recvmsg()
4308 struct scm_timestamping_internal tss; in do_tcp_getsockopt() local
4333 err = tcp_zerocopy_receive(sk, &zc, &tss); in do_tcp_getsockopt()
4357 tcp_zc_finalize_rx_tstamp(sk, &zc, &tss); in do_tcp_getsockopt()