Lines Matching refs:tss
732 struct tcp_splice_state *tss = rd_desc->arg.data; in tcp_splice_data_recv() local
735 ret = skb_splice_bits(skb, skb->sk, offset, tss->pipe, in tcp_splice_data_recv()
736 min(rd_desc->count, len), tss->flags); in tcp_splice_data_recv()
742 static int __tcp_splice_read(struct sock *sk, struct tcp_splice_state *tss) in __tcp_splice_read() argument
746 .arg.data = tss, in __tcp_splice_read()
747 .count = tss->len, in __tcp_splice_read()
770 struct tcp_splice_state tss = { in tcp_splice_read() local
791 while (tss.len) { in tcp_splice_read()
792 ret = __tcp_splice_read(sk, &tss); in tcp_splice_read()
831 tss.len -= ret; in tcp_splice_read()
1841 struct scm_timestamping_internal *tss) in tcp_update_recv_tstamps() argument
1844 tss->ts[0] = ktime_to_timespec64(skb->tstamp); in tcp_update_recv_tstamps()
1846 tss->ts[0] = (struct timespec64) {0}; in tcp_update_recv_tstamps()
1849 tss->ts[2] = ktime_to_timespec64(skb_hwtstamps(skb)->hwtstamp); in tcp_update_recv_tstamps()
1851 tss->ts[2] = (struct timespec64) {0}; in tcp_update_recv_tstamps()
1856 struct scm_timestamping_internal *tss) in tcp_recv_timestamp() argument
1861 if (tss->ts[0].tv_sec || tss->ts[0].tv_nsec) { in tcp_recv_timestamp()
1865 struct __kernel_timespec kts = {tss->ts[0].tv_sec, tss->ts[0].tv_nsec}; in tcp_recv_timestamp()
1870 struct timespec ts_old = timespec64_to_timespec(tss->ts[0]); in tcp_recv_timestamp()
1879 stv.tv_sec = tss->ts[0].tv_sec; in tcp_recv_timestamp()
1880 stv.tv_usec = tss->ts[0].tv_nsec / 1000; in tcp_recv_timestamp()
1886 tv.tv_sec = tss->ts[0].tv_sec; in tcp_recv_timestamp()
1887 tv.tv_usec = tss->ts[0].tv_nsec / 1000; in tcp_recv_timestamp()
1897 tss->ts[0] = (struct timespec64) {0}; in tcp_recv_timestamp()
1900 if (tss->ts[2].tv_sec || tss->ts[2].tv_nsec) { in tcp_recv_timestamp()
1904 tss->ts[2] = (struct timespec64) {0}; in tcp_recv_timestamp()
1908 tss->ts[1] = (struct timespec64) {0}; in tcp_recv_timestamp()
1910 put_cmsg_scm_timestamping64(msg, tss); in tcp_recv_timestamp()
1912 put_cmsg_scm_timestamping(msg, tss); in tcp_recv_timestamp()
1958 struct scm_timestamping_internal tss; in tcp_recvmsg() local
2156 tcp_update_recv_tstamps(skb, &tss); in tcp_recvmsg()
2184 tcp_recv_timestamp(msg, sk, &tss); in tcp_recvmsg()