Home
last modified time | relevance | path

Searched refs:ts (Results 1 – 25 of 32) sorted by relevance

12

/net/9p/
Dtrans_fd.c222 struct p9_trans_fd *ts = NULL; in p9_fd_poll() local
225 ts = client->trans; in p9_fd_poll()
227 if (!ts) { in p9_fd_poll()
233 ret = vfs_poll(ts->rd, pt); in p9_fd_poll()
234 if (ts->rd != ts->wr) in p9_fd_poll()
235 ret = (ret & ~EPOLLOUT) | (vfs_poll(ts->wr, pt) & ~EPOLLIN); in p9_fd_poll()
250 struct p9_trans_fd *ts = NULL; in p9_fd_read() local
254 ts = client->trans; in p9_fd_read()
256 if (!ts) in p9_fd_read()
259 if (!(ts->rd->f_flags & O_NONBLOCK)) in p9_fd_read()
[all …]
/net/ipv4/
Dip_options.c60 ip_rt_get_source(iph+opt->ts+iph[opt->ts+2]-9, skb, rt); in ip_options_build()
65 memcpy(iph+opt->ts+iph[opt->ts+2]-5, &midtime, 4); in ip_options_build()
74 if (opt->ts) { in ip_options_build()
75 memset(iph+opt->ts, IPOPT_NOP, iph[opt->ts+1]); in ip_options_build()
76 opt->ts = 0; in ip_options_build()
119 if (sopt->ts) { in __ip_options_echo()
120 optlen = sptr[sopt->ts+1]; in __ip_options_echo()
121 soffset = sptr[sopt->ts+2]; in __ip_options_echo()
122 dopt->ts = dopt->optlen + sizeof(struct iphdr); in __ip_options_echo()
123 memcpy(dptr, sptr+sopt->ts, optlen); in __ip_options_echo()
[all …]
Dsyncookies.c68 u32 ts, ts_now = tcp_time_stamp_raw(); in cookie_init_timestamp() local
79 ts = ts_now & ~TSMASK; in cookie_init_timestamp()
80 ts |= options; in cookie_init_timestamp()
81 if (ts > ts_now) { in cookie_init_timestamp()
82 ts >>= TSBITS; in cookie_init_timestamp()
83 ts--; in cookie_init_timestamp()
84 ts <<= TSBITS; in cookie_init_timestamp()
85 ts |= options; in cookie_init_timestamp()
87 return (u64)ts * (NSEC_PER_SEC / TCP_TS_HZ); in cookie_init_timestamp()
Dip_tunnel_core.c224 struct lwtunnel_state **ts, in ip_tun_build_state() argument
274 *ts = new_state; in ip_tun_build_state()
341 struct lwtunnel_state **ts, in ip6_tun_build_state() argument
383 *ts = new_state; in ip6_tun_build_state()
Dtcp.c1844 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()
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()
[all …]
Daf_inet.c1556 struct timespec64 ts; in inet_current_timestamp() local
1558 ktime_get_real_ts64(&ts); in inet_current_timestamp()
1561 (void)div_u64_rem(ts.tv_sec, SECONDS_PER_DAY, &secs); in inet_current_timestamp()
1565 msecs += (u32)ts.tv_nsec / NSEC_PER_MSEC; in inet_current_timestamp()
Dcipso_ipv4.c1986 if (opt->opt.srr || opt->opt.rr || opt->opt.ts || opt->opt.router_alert) { in cipso_v4_delopt()
2001 if (opt->opt.ts > opt->opt.cipso) in cipso_v4_delopt()
2002 opt->opt.ts -= cipso_len; in cipso_v4_delopt()
/net/netfilter/
Dnf_conntrack_amanda.c61 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()
Dxt_IDLETIMER.c70 struct timespec64 *ts) in check_for_delayed_trigger() argument
76 if ((ts->tv_sec - timer->last_modified_timer.tv_sec) > timer->timeout || in check_for_delayed_trigger()
84 ts->tv_sec = temp.tv_sec; in check_for_delayed_trigger()
85 ts->tv_nsec = temp.tv_nsec; in check_for_delayed_trigger()
91 ts->tv_sec = temp.tv_sec; in check_for_delayed_trigger()
92 ts->tv_nsec = temp.tv_nsec; in check_for_delayed_trigger()
109 struct timespec64 ts; in notify_netlink_uevent() local
120 ts = ktime_to_timespec64(ktime_get_boottime()); in notify_netlink_uevent()
121 state = check_for_delayed_trigger(timer, &ts); in notify_netlink_uevent()
140 time_ns = timespec64_to_ns(&ts); in notify_netlink_uevent()
[all …]
Dnfnetlink_log.c592 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()
Dnfnetlink_queue.c582 struct nfqnl_msg_packet_timestamp ts; in nfqnl_build_packet_message() local
585 ts.sec = cpu_to_be64(kts.tv_sec); in nfqnl_build_packet_message()
586 ts.usec = cpu_to_be64(kts.tv_nsec / NSEC_PER_USEC); in nfqnl_build_packet_message()
588 if (nla_put(skb, NFQA_TIMESTAMP, sizeof(ts), &ts)) in nfqnl_build_packet_message()
/net/core/
Dscm.c257 for (i = 0; i < ARRAY_SIZE(tss.ts); i++) { in put_cmsg_scm_timestamping64()
258 tss.ts[i].tv_sec = tss_internal->ts[i].tv_sec; in put_cmsg_scm_timestamping64()
259 tss.ts[i].tv_nsec = tss_internal->ts[i].tv_nsec; in put_cmsg_scm_timestamping64()
271 for (i = 0; i < ARRAY_SIZE(tss.ts); i++) in put_cmsg_scm_timestamping()
272 tss.ts[i] = timespec64_to_timespec(tss_internal->ts[i]); in put_cmsg_scm_timestamping()
Dsock.c3010 struct timespec64 ts; in sock_gettstamp() local
3013 ts = ktime_to_timespec64(sock_read_timestamp(sk)); in sock_gettstamp()
3014 if (ts.tv_sec == -1) in sock_gettstamp()
3016 if (ts.tv_sec == 0) { in sock_gettstamp()
3019 ts = ktime_to_timespec64(kt); in sock_gettstamp()
3023 ts.tv_nsec /= 1000; in sock_gettstamp()
3027 return put_old_timespec32(&ts, userstamp); in sock_gettstamp()
3033 .tv_sec = ts.tv_sec, in sock_gettstamp()
3034 .tv_usec = ts.tv_nsec, in sock_gettstamp()
3041 return put_timespec64(&ts, userstamp); in sock_gettstamp()
Dlwt_bpf.c372 struct lwtunnel_state **ts, in bpf_build_state() argument
434 *ts = newts; in bpf_build_state()
/net/packet/
Daf_packet.c411 static __u32 tpacket_get_timestamp(struct sk_buff *skb, struct timespec *ts, in tpacket_get_timestamp() argument
418 ktime_to_timespec_cond(shhwtstamps->hwtstamp, ts)) in tpacket_get_timestamp()
421 if (ktime_to_timespec_cond(skb->tstamp, ts)) in tpacket_get_timestamp()
431 struct timespec ts; in __packet_set_timestamp() local
434 if (!(ts_status = tpacket_get_timestamp(skb, &ts, po->tp_tstamp))) in __packet_set_timestamp()
440 h.h1->tp_sec = ts.tv_sec; in __packet_set_timestamp()
441 h.h1->tp_usec = ts.tv_nsec / NSEC_PER_USEC; in __packet_set_timestamp()
444 h.h2->tp_sec = ts.tv_sec; in __packet_set_timestamp()
445 h.h2->tp_nsec = ts.tv_nsec; in __packet_set_timestamp()
448 h.h3->tp_sec = ts.tv_sec; in __packet_set_timestamp()
[all …]
/net/mpls/
Dmpls_iptunnel.c167 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/
Dscan.c406 if (!time_after(expire_time, bss->ts)) in __cfg80211_bss_expire()
432 if (oldest && time_before(oldest->ts, bss->ts)) in cfg80211_bss_expire_oldest()
707 bss->ts -= age_jiffies; in cfg80211_bss_age()
944 if (time_after(now, bss->ts + IEEE80211_SCAN_RESULT_EXPIRE) && in cfg80211_get_bss()
1168 known->ts = new->ts; in cfg80211_update_known_bss()
1185 bool signal_valid, unsigned long ts) in cfg80211_bss_update() argument
1192 tmp->ts = ts; in cfg80211_bss_update()
1378 unsigned long ts; in cfg80211_inform_single_bss_data() local
1401 ts = bss_from_pub(non_tx_data->tx_bss)->ts; in cfg80211_inform_single_bss_data()
1405 ts = jiffies; in cfg80211_inform_single_bss_data()
[all …]
Dcore.h157 unsigned long ts; member
539 bool signal_valid, unsigned long ts);
/net/ipv6/ila/
Dila_lwt.c130 struct lwtunnel_state **ts, in ila_build_state() argument
252 *ts = newts; in ila_build_state()
/net/ipv6/
Dseg6_iptunnel.c381 struct lwtunnel_state **ts, in seg6_build_state() argument
454 *ts = newts; in seg6_build_state()
Dseg6_local.c960 const void *cfg, struct lwtunnel_state **ts, in seg6_local_build_state() argument
995 *ts = newts; in seg6_local_build_state()
/net/
Dsocket.c791 struct __kernel_timespec ts; in __sock_recv_timestamp() local
793 skb_get_new_timestampns(skb, &ts); in __sock_recv_timestamp()
795 sizeof(ts), &ts); in __sock_recv_timestamp()
797 struct timespec ts; in __sock_recv_timestamp() local
799 skb_get_timestampns(skb, &ts); in __sock_recv_timestamp()
801 sizeof(ts), &ts); in __sock_recv_timestamp()
808 ktime_to_timespec64_cond(skb->tstamp, tss.ts + 0)) in __sock_recv_timestamp()
813 ktime_to_timespec64_cond(shhwtstamps->hwtstamp, tss.ts + 2)) { in __sock_recv_timestamp()
Dcompat.c235 struct timespec *ts = (struct timespec *)data; in put_cmsg_compat() local
237 cts[i].tv_sec = ts[i].tv_sec; in put_cmsg_compat()
238 cts[i].tv_nsec = ts[i].tv_nsec; in put_cmsg_compat()
/net/mac80211/
Dutil.c3220 u64 ts = status->mactime; in ieee80211_calculate_rx_timestamp() local
3270 ts += 20 << shift; in ieee80211_calculate_rx_timestamp()
3273 ts += 96; in ieee80211_calculate_rx_timestamp()
3275 ts += 192; in ieee80211_calculate_rx_timestamp()
3291 ts -= mpdu_len * 8 * 10 / rate; in ieee80211_calculate_rx_timestamp()
3293 ts += mpdu_offset * 8 * 10 / rate; in ieee80211_calculate_rx_timestamp()
3295 return ts; in ieee80211_calculate_rx_timestamp()
/net/ceph/
Dmessenger.c3236 struct timespec64 ts; in ceph_con_keepalive_expired() local
3238 jiffies_to_timespec64(interval, &ts); in ceph_con_keepalive_expired()
3239 ts = timespec64_add(con->last_keepalive_ack, ts); in ceph_con_keepalive_expired()
3240 return timespec64_compare(&now, &ts) >= 0; in ceph_con_keepalive_expired()

12