Home
last modified time | relevance | path

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

/net/9p/
Dtrans_fd.c237 struct p9_trans_fd *ts = NULL; in p9_fd_poll() local
240 ts = client->trans; in p9_fd_poll()
242 if (!ts) in p9_fd_poll()
245 if (!ts->rd->f_op->poll) in p9_fd_poll()
248 if (!ts->wr->f_op->poll) in p9_fd_poll()
251 ret = ts->rd->f_op->poll(ts->rd, pt); in p9_fd_poll()
255 if (ts->rd != ts->wr) { in p9_fd_poll()
256 n = ts->wr->f_op->poll(ts->wr, pt); in p9_fd_poll()
276 struct p9_trans_fd *ts = NULL; in p9_fd_read() local
279 ts = client->trans; in p9_fd_read()
[all …]
/net/ipv4/
Dip_options.c59 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.c85 u32 ts, ts_now = tcp_time_stamp; in cookie_init_timestamp() local
96 ts = ts_now & ~TSMASK; in cookie_init_timestamp()
97 ts |= options; in cookie_init_timestamp()
98 if (ts > ts_now) { in cookie_init_timestamp()
99 ts >>= TSBITS; in cookie_init_timestamp()
100 ts--; in cookie_init_timestamp()
101 ts <<= TSBITS; in cookie_init_timestamp()
102 ts |= options; in cookie_init_timestamp()
104 return ts; in cookie_init_timestamp()
Dip_tunnel_core.c235 struct lwtunnel_state **ts) in ip_tun_build_state() argument
275 *ts = new_state; in ip_tun_build_state()
330 struct lwtunnel_state **ts) in ip6_tun_build_state() argument
370 *ts = new_state; in ip6_tun_build_state()
Dcipso_ipv4.c2078 if (opt->opt.srr || opt->opt.rr || opt->opt.ts || opt->opt.router_alert) { in cipso_v4_delopt()
2093 if (opt->opt.ts > opt->opt.cipso) in cipso_v4_delopt()
2094 opt->opt.ts -= cipso_len; in cipso_v4_delopt()
Dtcp_input.c861 const int ts) in tcp_update_reordering() argument
870 if (ts) in tcp_update_reordering()
2932 .ts = now, in tcp_update_rtt_min()
2944 elapsed = now - m[0].ts; in tcp_update_rtt_min()
2952 if (now - m[0].ts > wlen) { in tcp_update_rtt_min()
2955 if (now - m[0].ts > wlen) in tcp_update_rtt_min()
2958 } else if (m[1].ts == m[0].ts && elapsed > wlen / 4) { in tcp_update_rtt_min()
2963 } else if (m[2].ts == m[1].ts && elapsed > wlen / 2) { in tcp_update_rtt_min()
/net/netfilter/
Dnf_conntrack_amanda.c62 struct ts_config *ts; member
116 search[SEARCH_CONNECT].ts); in amanda_help()
122 search[SEARCH_NEWLINE].ts); in amanda_help()
128 off = skb_find_text(skb, start, stop, search[i].ts); in amanda_help()
203 textsearch_destroy(search[i].ts); in nf_conntrack_amanda_fini()
211 search[i].ts = textsearch_prepare(ts_algo, search[i].string, in nf_conntrack_amanda_init()
214 if (IS_ERR(search[i].ts)) { in nf_conntrack_amanda_init()
215 ret = PTR_ERR(search[i].ts); in nf_conntrack_amanda_init()
231 textsearch_destroy(search[i].ts); in nf_conntrack_amanda_init()
Dxt_IDLETIMER.c88 struct timespec *ts) in check_for_delayed_trigger() argument
94 if ((ts->tv_sec - timer->last_modified_timer.tv_sec) > timer->timeout || in check_for_delayed_trigger()
101 ts->tv_sec = temp.tv_sec; in check_for_delayed_trigger()
102 ts->tv_nsec = temp.tv_nsec; in check_for_delayed_trigger()
108 ts->tv_sec = temp.tv_sec; in check_for_delayed_trigger()
109 ts->tv_nsec = temp.tv_nsec; in check_for_delayed_trigger()
126 struct timespec ts; in notify_netlink_uevent() local
137 get_monotonic_boottime(&ts); in notify_netlink_uevent()
138 state = check_for_delayed_trigger(timer, &ts); in notify_netlink_uevent()
157 time_ns = timespec_to_ns(&ts); in notify_netlink_uevent()
[all …]
Dxt_qtaguid_print.c152 char *pp_tag_stat(struct tag_stat *ts) in pp_tag_stat() argument
159 if (!ts) { in pp_tag_stat()
164 tn_str = pp_tag_node(&ts->tn); in pp_tag_stat()
165 counters_str = pp_data_counters(&ts->counters, true); in pp_tag_stat()
166 parent_counters_str = pp_data_counters(ts->parent_counters, false); in pp_tag_stat()
169 ts, tn_str, counters_str, parent_counters_str); in pp_tag_stat()
Dxt_qtaguid_print.h21 char *pp_tag_stat(struct tag_stat *ts);
61 static inline char *pp_tag_stat(struct tag_stat *ts) in pp_tag_stat() argument
Dnfnetlink_log.c543 struct nfulnl_msg_packet_timestamp ts; in __build_packet_message() local
545 ts.sec = cpu_to_be64(kts.tv_sec); in __build_packet_message()
546 ts.usec = cpu_to_be64(kts.tv_nsec / NSEC_PER_USEC); in __build_packet_message()
548 if (nla_put(inst->skb, NFULA_TIMESTAMP, sizeof(ts), &ts)) in __build_packet_message()
Dnfnetlink_queue.c503 struct nfqnl_msg_packet_timestamp ts; in nfqnl_build_packet_message() local
506 ts.sec = cpu_to_be64(kts.tv_sec); in nfqnl_build_packet_message()
507 ts.usec = cpu_to_be64(kts.tv_nsec / NSEC_PER_USEC); in nfqnl_build_packet_message()
509 if (nla_put(skb, NFQA_TIMESTAMP, sizeof(ts), &ts)) in nfqnl_build_packet_message()
/net/mpls/
Dmpls_iptunnel.c127 struct lwtunnel_state **ts) in mpls_build_state() argument
158 *ts = newts; in mpls_build_state()
164 *ts = NULL; in mpls_build_state()
/net/
Dcompat.c228 struct timespec *ts = (struct timespec *)data; in put_cmsg_compat() local
230 cts[i].tv_sec = ts[i].tv_sec; in put_cmsg_compat()
231 cts[i].tv_nsec = ts[i].tv_nsec; in put_cmsg_compat()
468 struct timespec ts; in compat_sock_get_timestampns() local
477 ts = ktime_to_timespec(sock_read_timestamp(sk)); in compat_sock_get_timestampns()
478 if (ts.tv_sec == -1) in compat_sock_get_timestampns()
480 if (ts.tv_sec == 0) { in compat_sock_get_timestampns()
483 ts = ktime_to_timespec(kt); in compat_sock_get_timestampns()
486 if (put_user(ts.tv_sec, &ctv->tv_sec) || in compat_sock_get_timestampns()
487 put_user(ts.tv_nsec, &ctv->tv_nsec)) in compat_sock_get_timestampns()
Dsocket.c673 struct timespec ts; in __sock_recv_timestamp() local
674 skb_get_timestampns(skb, &ts); in __sock_recv_timestamp()
676 sizeof(ts), &ts); in __sock_recv_timestamp()
682 ktime_to_timespec_cond(skb->tstamp, tss.ts + 0)) in __sock_recv_timestamp()
686 ktime_to_timespec_cond(shhwtstamps->hwtstamp, tss.ts + 2)) in __sock_recv_timestamp()
/net/packet/
Daf_packet.c448 static __u32 tpacket_get_timestamp(struct sk_buff *skb, struct timespec *ts, in tpacket_get_timestamp() argument
455 ktime_to_timespec_cond(shhwtstamps->hwtstamp, ts)) in tpacket_get_timestamp()
458 if (ktime_to_timespec_cond(skb->tstamp, ts)) in tpacket_get_timestamp()
468 struct timespec ts; in __packet_set_timestamp() local
471 if (!(ts_status = tpacket_get_timestamp(skb, &ts, po->tp_tstamp))) in __packet_set_timestamp()
477 h.h1->tp_sec = ts.tv_sec; in __packet_set_timestamp()
478 h.h1->tp_usec = ts.tv_nsec / NSEC_PER_USEC; in __packet_set_timestamp()
481 h.h2->tp_sec = ts.tv_sec; in __packet_set_timestamp()
482 h.h2->tp_nsec = ts.tv_nsec; in __packet_set_timestamp()
820 struct timespec ts; in prb_close_block() local
[all …]
/net/ipv6/
Dila.c132 struct lwtunnel_state **ts) in ila_build_state() argument
174 *ts = newts; in ila_build_state()
/net/wireless/
Dscan.c171 if (!time_after(expire_time, bss->ts)) in __cfg80211_bss_expire()
197 if (oldest && time_before(oldest->ts, bss->ts)) in cfg80211_bss_expire_oldest()
395 bss->ts -= age_jiffies; in cfg80211_bss_age()
662 if (time_after(now, bss->ts + IEEE80211_SCAN_RESULT_EXPIRE) && in cfg80211_get_bss()
817 tmp->ts = jiffies; in cfg80211_bss_update()
902 found->ts = tmp->ts; in cfg80211_bss_update()
1674 elapsed_jiffies_msecs(bss->ts)); in ieee80211_bss()
Dcore.h142 unsigned long ts; member
Dnl80211.c6804 jiffies_to_msecs(jiffies - intbss->ts))) in nl80211_send_bss()
/net/core/
Dsock.c2573 struct timespec ts; in sock_get_timestampns() local
2576 ts = ktime_to_timespec(sk->sk_stamp); in sock_get_timestampns()
2577 if (ts.tv_sec == -1) in sock_get_timestampns()
2579 if (ts.tv_sec == 0) { in sock_get_timestampns()
2581 ts = ktime_to_timespec(sk->sk_stamp); in sock_get_timestampns()
2583 return copy_to_user(userstamp, &ts, sizeof(ts)) ? -EFAULT : 0; in sock_get_timestampns()
/net/ceph/
Dmessenger.c3207 struct timespec ts; in ceph_con_keepalive_expired() local
3208 jiffies_to_timespec(interval, &ts); in ceph_con_keepalive_expired()
3209 ts = timespec_add(con->last_keepalive_ack, ts); in ceph_con_keepalive_expired()
3210 return timespec_compare(&now, &ts) >= 0; in ceph_con_keepalive_expired()
/net/sched/
Dsch_qfq.c744 static inline u64 qfq_round_down(u64 ts, unsigned int shift) in qfq_round_down() argument
746 return ts & ~((1ULL << shift) - 1); in qfq_round_down()
/net/mac80211/
Dutil.c2618 u64 ts = status->mactime; in ieee80211_calculate_rx_timestamp() local
2680 ts -= mpdu_len * 8 * 10 / rate; in ieee80211_calculate_rx_timestamp()
2682 ts += mpdu_offset * 8 * 10 / rate; in ieee80211_calculate_rx_timestamp()
2684 return ts; in ieee80211_calculate_rx_timestamp()