/net/9p/ |
D | trans_fd.c | 227 struct p9_trans_fd *ts = NULL; in p9_fd_poll() local 230 ts = client->trans; in p9_fd_poll() 232 if (!ts) { in p9_fd_poll() 238 ret = vfs_poll(ts->rd, pt); in p9_fd_poll() 239 if (ts->rd != ts->wr) in p9_fd_poll() 240 ret = (ret & ~EPOLLOUT) | (vfs_poll(ts->wr, pt) & ~EPOLLIN); in p9_fd_poll() 255 struct p9_trans_fd *ts = NULL; in p9_fd_read() local 259 ts = client->trans; in p9_fd_read() 261 if (!ts) in p9_fd_read() 264 if (!(ts->rd->f_flags & O_NONBLOCK)) in p9_fd_read() [all …]
|
/net/netfilter/ |
D | nf_conntrack_amanda.c | 61 struct ts_config *ts; member 119 search[SEARCH_CONNECT].ts); in amanda_help() 125 search[SEARCH_NEWLINE].ts); in amanda_help() 131 off = skb_find_text(skb, start, stop, search[i].ts); in amanda_help() 208 textsearch_destroy(search[i].ts); in nf_conntrack_amanda_fini() 218 search[i].ts = textsearch_prepare(ts_algo, search[i].string, in nf_conntrack_amanda_init() 221 if (IS_ERR(search[i].ts)) { in nf_conntrack_amanda_init() 222 ret = PTR_ERR(search[i].ts); in nf_conntrack_amanda_init() 234 textsearch_destroy(search[i].ts); in nf_conntrack_amanda_init()
|
D | xt_IDLETIMER.c | 69 struct timespec64 *ts) in check_for_delayed_trigger() argument 75 if ((ts->tv_sec - timer->last_modified_timer.tv_sec) > timer->timeout || in check_for_delayed_trigger() 83 ts->tv_sec = temp.tv_sec; in check_for_delayed_trigger() 84 ts->tv_nsec = temp.tv_nsec; in check_for_delayed_trigger() 90 ts->tv_sec = temp.tv_sec; in check_for_delayed_trigger() 91 ts->tv_nsec = temp.tv_nsec; in check_for_delayed_trigger() 108 struct timespec64 ts; in notify_netlink_uevent() local 119 ts = ktime_to_timespec64(ktime_get_boottime()); in notify_netlink_uevent() 120 state = check_for_delayed_trigger(timer, &ts); in notify_netlink_uevent() 139 time_ns = timespec64_to_ns(&ts); in notify_netlink_uevent() [all …]
|
D | nfnetlink_log.c | 593 struct nfulnl_msg_packet_timestamp ts; in __build_packet_message() local 594 ts.sec = cpu_to_be64(kts.tv_sec); in __build_packet_message() 595 ts.usec = cpu_to_be64(kts.tv_nsec / NSEC_PER_USEC); in __build_packet_message() 597 if (nla_put(inst->skb, NFULA_TIMESTAMP, sizeof(ts), &ts)) in __build_packet_message()
|
D | nfnetlink_queue.c | 588 struct nfqnl_msg_packet_timestamp ts; in nfqnl_build_packet_message() local 591 ts.sec = cpu_to_be64(kts.tv_sec); in nfqnl_build_packet_message() 592 ts.usec = cpu_to_be64(kts.tv_nsec / NSEC_PER_USEC); in nfqnl_build_packet_message() 594 if (nla_put(skb, NFQA_TIMESTAMP, sizeof(ts), &ts)) in nfqnl_build_packet_message()
|
/net/ipv4/ |
D | ip_options.c | 59 ip_rt_get_source(iph + opt->ts + iph[opt->ts + 2] - 9, skb, rt); in ip_options_build() 64 memcpy(iph + opt->ts + iph[opt->ts + 2] - 5, &midtime, 4); in ip_options_build() 106 if (sopt->ts) { in __ip_options_echo() 107 optlen = sptr[sopt->ts+1]; in __ip_options_echo() 108 soffset = sptr[sopt->ts+2]; in __ip_options_echo() 109 dopt->ts = dopt->optlen + sizeof(struct iphdr); in __ip_options_echo() 110 memcpy(dptr, sptr+sopt->ts, optlen); in __ip_options_echo() 219 opt->ts = 0; in ip_options_fragment() 340 if (opt->ts) { in __ip_options_compile() 420 opt->ts = optptr - iph; in __ip_options_compile() [all …]
|
D | syncookies.c | 65 u64 ts, ts_now = tcp_ns_to_ts(now); in cookie_init_timestamp() local 74 ts = (ts_now >> TSBITS) << TSBITS; in cookie_init_timestamp() 75 ts |= options; in cookie_init_timestamp() 76 if (ts > ts_now) in cookie_init_timestamp() 77 ts -= (1UL << TSBITS); in cookie_init_timestamp() 79 return ts * (NSEC_PER_SEC / TCP_TS_HZ); in cookie_init_timestamp()
|
D | tcp.c | 1863 tss->ts[0] = ktime_to_timespec64(skb->tstamp); in tcp_update_recv_tstamps() 1865 tss->ts[0] = (struct timespec64) {0}; in tcp_update_recv_tstamps() 1868 tss->ts[2] = ktime_to_timespec64(skb_hwtstamps(skb)->hwtstamp); in tcp_update_recv_tstamps() 1870 tss->ts[2] = (struct timespec64) {0}; in tcp_update_recv_tstamps() 2334 if (tss->ts[0].tv_sec || tss->ts[0].tv_nsec) { in tcp_recv_timestamp() 2339 .tv_sec = tss->ts[0].tv_sec, in tcp_recv_timestamp() 2340 .tv_nsec = tss->ts[0].tv_nsec, in tcp_recv_timestamp() 2346 .tv_sec = tss->ts[0].tv_sec, in tcp_recv_timestamp() 2347 .tv_nsec = tss->ts[0].tv_nsec, in tcp_recv_timestamp() 2355 .tv_sec = tss->ts[0].tv_sec, in tcp_recv_timestamp() [all …]
|
D | ip_tunnel_core.c | 654 struct lwtunnel_state **ts, in ip_tun_build_state() argument 716 *ts = new_state; in ip_tun_build_state() 941 struct lwtunnel_state **ts, in ip6_tun_build_state() argument 995 *ts = new_state; in ip6_tun_build_state()
|
/net/core/ |
D | scm.c | 277 for (i = 0; i < ARRAY_SIZE(tss.ts); i++) { in put_cmsg_scm_timestamping64() 278 tss.ts[i].tv_sec = tss_internal->ts[i].tv_sec; in put_cmsg_scm_timestamping64() 279 tss.ts[i].tv_nsec = tss_internal->ts[i].tv_nsec; in put_cmsg_scm_timestamping64() 291 for (i = 0; i < ARRAY_SIZE(tss.ts); i++) { in put_cmsg_scm_timestamping() 292 tss.ts[i].tv_sec = tss_internal->ts[i].tv_sec; in put_cmsg_scm_timestamping() 293 tss.ts[i].tv_nsec = tss_internal->ts[i].tv_nsec; in put_cmsg_scm_timestamping()
|
D | sock.c | 3566 struct timespec64 ts; in sock_gettstamp() local 3569 ts = ktime_to_timespec64(sock_read_timestamp(sk)); in sock_gettstamp() 3570 if (ts.tv_sec == -1) in sock_gettstamp() 3572 if (ts.tv_sec == 0) { in sock_gettstamp() 3575 ts = ktime_to_timespec64(kt); in sock_gettstamp() 3579 ts.tv_nsec /= 1000; in sock_gettstamp() 3583 return put_old_timespec32(&ts, userstamp); in sock_gettstamp() 3589 .tv_sec = ts.tv_sec, in sock_gettstamp() 3590 .tv_usec = ts.tv_nsec, in sock_gettstamp() 3597 return put_timespec64(&ts, userstamp); in sock_gettstamp()
|
D | lwt_bpf.c | 371 struct lwtunnel_state **ts, in bpf_build_state() argument 433 *ts = newts; in bpf_build_state()
|
/net/packet/ |
D | af_packet.c | 457 static __u32 tpacket_get_timestamp(struct sk_buff *skb, struct timespec64 *ts, in tpacket_get_timestamp() argument 464 ktime_to_timespec64_cond(shhwtstamps->hwtstamp, ts)) in tpacket_get_timestamp() 468 ktime_to_timespec64_cond(skb_tstamp(skb), ts)) in tpacket_get_timestamp() 478 struct timespec64 ts; in __packet_set_timestamp() local 481 if (!(ts_status = tpacket_get_timestamp(skb, &ts, po->tp_tstamp))) in __packet_set_timestamp() 494 h.h1->tp_sec = ts.tv_sec; in __packet_set_timestamp() 495 h.h1->tp_usec = ts.tv_nsec / NSEC_PER_USEC; in __packet_set_timestamp() 498 h.h2->tp_sec = ts.tv_sec; in __packet_set_timestamp() 499 h.h2->tp_nsec = ts.tv_nsec; in __packet_set_timestamp() 502 h.h3->tp_sec = ts.tv_sec; in __packet_set_timestamp() [all …]
|
/net/mpls/ |
D | mpls_iptunnel.c | 167 struct lwtunnel_state **ts, in mpls_build_state() argument 217 *ts = newts; in mpls_build_state() 223 *ts = NULL; in mpls_build_state()
|
/net/wireless/ |
D | scan.c | 487 if (!time_after(expire_time, bss->ts)) in __cfg80211_bss_expire() 513 if (oldest && time_before(oldest->ts, bss->ts)) in cfg80211_bss_expire_oldest() 1257 bss->ts -= age_jiffies; in cfg80211_bss_age() 1504 if (time_after(now, bss->ts + IEEE80211_SCAN_RESULT_EXPIRE) && in cfg80211_get_bss() 1737 known->ts = new->ts; in cfg80211_update_known_bss() 1754 bool signal_valid, unsigned long ts) in cfg80211_bss_update() argument 1761 tmp->ts = ts; in cfg80211_bss_update() 2004 unsigned long ts; in cfg80211_inform_single_bss_data() local 2030 ts = bss_from_pub(non_tx_data->tx_bss)->ts; in cfg80211_inform_single_bss_data() 2034 ts = jiffies; in cfg80211_inform_single_bss_data() [all …]
|
D | core.h | 168 unsigned long ts; member 558 bool signal_valid, unsigned long ts);
|
/net/ipv6/ |
D | ioam6.c | 639 struct timespec64 ts; in __ioam6_fill_trace_data() local 686 ts = ktime_to_timespec64(tstamp); in __ioam6_fill_trace_data() 688 *(__be32 *)data = cpu_to_be32((u32)ts.tv_sec); in __ioam6_fill_trace_data() 700 ts = ktime_to_timespec64(tstamp); in __ioam6_fill_trace_data() 703 *(__be32 *)data = cpu_to_be32((u32)(ts.tv_nsec / NSEC_PER_USEC)); in __ioam6_fill_trace_data()
|
D | rpl_iptunnel.c | 69 struct lwtunnel_state **ts, in rpl_build_state() argument 117 *ts = newts; in rpl_build_state()
|
D | ioam6_iptunnel.c | 104 struct lwtunnel_state **ts, in ioam6_build_state() argument 201 *ts = lwt; in ioam6_build_state()
|
/net/ipv6/ila/ |
D | ila_lwt.c | 130 struct lwtunnel_state **ts, in ila_build_state() argument 252 *ts = newts; in ila_build_state()
|
/net/ |
D | compat.c | 251 struct __kernel_old_timespec *ts = data; in put_cmsg_compat() local 253 cts[i].tv_sec = ts[i].tv_sec; in put_cmsg_compat() 254 cts[i].tv_nsec = ts[i].tv_nsec; in put_cmsg_compat()
|
D | socket.c | 914 struct __kernel_timespec ts; in __sock_recv_timestamp() local 916 skb_get_new_timestampns(skb, &ts); in __sock_recv_timestamp() 918 sizeof(ts), &ts); in __sock_recv_timestamp() 920 struct __kernel_old_timespec ts; in __sock_recv_timestamp() local 922 skb_get_timestampns(skb, &ts); in __sock_recv_timestamp() 924 sizeof(ts), &ts); in __sock_recv_timestamp() 932 ktime_to_timespec64_cond(skb->tstamp, tss.ts + 0)) in __sock_recv_timestamp() 947 if (ktime_to_timespec64_cond(hwtstamp, tss.ts + 2)) { in __sock_recv_timestamp()
|
/net/mac80211/ |
D | util.c | 3902 u64 ts = status->mactime; in ieee80211_calculate_rx_timestamp() local 3930 ts += 36; in ieee80211_calculate_rx_timestamp() 3955 ts += 24; in ieee80211_calculate_rx_timestamp() 3957 ts += 32; in ieee80211_calculate_rx_timestamp() 3965 ts += n_ltf * 4; in ieee80211_calculate_rx_timestamp() 3982 ts += 36; in ieee80211_calculate_rx_timestamp() 3989 ts += 4 * n_ltf; in ieee80211_calculate_rx_timestamp() 4016 ts += 20 << shift; in ieee80211_calculate_rx_timestamp() 4019 ts += 96; in ieee80211_calculate_rx_timestamp() 4021 ts += 192; in ieee80211_calculate_rx_timestamp() [all …]
|
/net/xdp/ |
D | xsk.c | 427 u32 hr, len, ts, offset, copy, copied; in xsk_build_skb_zerocopy() local 444 ts = pool->unaligned ? len : pool->chunk_size; in xsk_build_skb_zerocopy() 464 skb->truesize += ts; in xsk_build_skb_zerocopy() 466 refcount_add(ts, &xs->sk.sk_wmem_alloc); in xsk_build_skb_zerocopy()
|
/net/ceph/ |
D | messenger.c | 1787 struct timespec64 ts; in ceph_con_keepalive_expired() local 1789 jiffies_to_timespec64(interval, &ts); in ceph_con_keepalive_expired() 1790 ts = timespec64_add(con->last_keepalive_ack, ts); in ceph_con_keepalive_expired() 1791 return timespec64_compare(&now, &ts) >= 0; in ceph_con_keepalive_expired()
|