Home
last modified time | relevance | path

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

/net/netfilter/
Dnf_conntrack_amanda.c62 struct ts_config *ts; member
91 struct ts_state ts; in amanda_help() local
116 memset(&ts, 0, sizeof(ts)); in amanda_help()
118 search[SEARCH_CONNECT].ts, &ts); in amanda_help()
123 memset(&ts, 0, sizeof(ts)); in amanda_help()
125 search[SEARCH_NEWLINE].ts, &ts); in amanda_help()
131 memset(&ts, 0, sizeof(ts)); in amanda_help()
132 off = skb_find_text(skb, start, stop, search[i].ts, &ts); in amanda_help()
207 textsearch_destroy(search[i].ts); in nf_conntrack_amanda_fini()
215 search[i].ts = textsearch_prepare(ts_algo, search[i].string, in nf_conntrack_amanda_init()
[all …]
Dxt_IDLETIMER.c87 struct timespec *ts) in check_for_delayed_trigger() argument
93 if ((ts->tv_sec - timer->last_modified_timer.tv_sec) > timer->timeout || in check_for_delayed_trigger()
100 ts->tv_sec = temp.tv_sec; in check_for_delayed_trigger()
101 ts->tv_nsec = temp.tv_nsec; in check_for_delayed_trigger()
107 ts->tv_sec = temp.tv_sec; in check_for_delayed_trigger()
108 ts->tv_nsec = temp.tv_nsec; in check_for_delayed_trigger()
125 struct timespec ts; in notify_netlink_uevent() local
136 get_monotonic_boottime(&ts); in notify_netlink_uevent()
137 state = check_for_delayed_trigger(timer, &ts); in notify_netlink_uevent()
156 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.c531 struct nfulnl_msg_packet_timestamp ts; in __build_packet_message() local
533 ts.sec = cpu_to_be64(tv.tv_sec); in __build_packet_message()
534 ts.usec = cpu_to_be64(tv.tv_usec); in __build_packet_message()
536 if (nla_put(inst->skb, NFULA_TIMESTAMP, sizeof(ts), &ts)) in __build_packet_message()
Dnfnetlink_queue_core.c461 struct nfqnl_msg_packet_timestamp ts; in nfqnl_build_packet_message() local
463 ts.sec = cpu_to_be64(tv.tv_sec); in nfqnl_build_packet_message()
464 ts.usec = cpu_to_be64(tv.tv_usec); in nfqnl_build_packet_message()
466 if (nla_put(skb, NFQA_TIMESTAMP, sizeof(ts), &ts)) in nfqnl_build_packet_message()
/net/9p/
Dtrans_fd.c235 struct p9_trans_fd *ts = NULL; in p9_fd_poll() local
238 ts = client->trans; in p9_fd_poll()
240 if (!ts) in p9_fd_poll()
243 if (!ts->rd->f_op->poll) in p9_fd_poll()
246 if (!ts->wr->f_op->poll) in p9_fd_poll()
249 ret = ts->rd->f_op->poll(ts->rd, pt); in p9_fd_poll()
253 if (ts->rd != ts->wr) { in p9_fd_poll()
254 n = ts->wr->f_op->poll(ts->wr, pt); in p9_fd_poll()
274 struct p9_trans_fd *ts = NULL; in p9_fd_read() local
277 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()
64 memcpy(iph+opt->ts+iph[opt->ts+2]-5, &midtime, 4); in ip_options_build()
73 if (opt->ts) { in ip_options_build()
74 memset(iph+opt->ts, IPOPT_NOP, iph[opt->ts+1]); in ip_options_build()
75 opt->ts = 0; in ip_options_build()
118 if (sopt->ts) { in __ip_options_echo()
119 optlen = sptr[sopt->ts+1]; in __ip_options_echo()
120 soffset = sptr[sopt->ts+2]; in __ip_options_echo()
121 dopt->ts = dopt->optlen + sizeof(struct iphdr); in __ip_options_echo()
122 memcpy(dptr, sptr+sopt->ts, optlen); in __ip_options_echo()
[all …]
Dsyncookies.c65 u32 ts, ts_now = tcp_time_stamp; in cookie_init_timestamp() local
74 ts = ts_now & ~TSMASK; in cookie_init_timestamp()
75 ts |= options; in cookie_init_timestamp()
76 if (ts > ts_now) { in cookie_init_timestamp()
77 ts >>= TSBITS; in cookie_init_timestamp()
78 ts--; in cookie_init_timestamp()
79 ts <<= TSBITS; in cookie_init_timestamp()
80 ts |= options; in cookie_init_timestamp()
82 return ts; in cookie_init_timestamp()
Daf_inet.c1436 struct timespec64 ts; in inet_current_timestamp() local
1438 ktime_get_real_ts64(&ts); in inet_current_timestamp()
1441 (void)div_u64_rem(ts.tv_sec, SECONDS_PER_DAY, &secs); in inet_current_timestamp()
1445 msecs += (u32)ts.tv_nsec / NSEC_PER_MSEC; in inet_current_timestamp()
Dcipso_ipv4.c2040 if (opt->opt.srr || opt->opt.rr || opt->opt.ts || opt->opt.router_alert) { in cipso_v4_delopt()
2055 if (opt->opt.ts > opt->opt.cipso) in cipso_v4_delopt()
2056 opt->opt.ts -= cipso_len; in cipso_v4_delopt()
Dtcp_input.c831 const int ts) in tcp_update_reordering() argument
840 if (ts) in tcp_update_reordering()
/net/
Dcompat.c257 struct timespec *ts = (struct timespec *)data; in put_cmsg_compat() local
259 cts[i].tv_sec = ts[i].tv_sec; in put_cmsg_compat()
260 cts[i].tv_nsec = ts[i].tv_nsec; in put_cmsg_compat()
492 struct timespec ts; in compat_sock_get_timestampns() local
501 ts = ktime_to_timespec(sk->sk_stamp); in compat_sock_get_timestampns()
502 if (ts.tv_sec == -1) in compat_sock_get_timestampns()
504 if (ts.tv_sec == 0) { in compat_sock_get_timestampns()
506 ts = ktime_to_timespec(sk->sk_stamp); in compat_sock_get_timestampns()
509 if (put_user(ts.tv_sec, &ctv->tv_sec) || in compat_sock_get_timestampns()
510 put_user(ts.tv_nsec, &ctv->tv_nsec)) in compat_sock_get_timestampns()
Dsocket.c740 struct timespec ts; in __sock_recv_timestamp() local
741 skb_get_timestampns(skb, &ts); in __sock_recv_timestamp()
743 sizeof(ts), &ts); in __sock_recv_timestamp()
749 ktime_to_timespec_cond(skb->tstamp, tss.ts + 0)) in __sock_recv_timestamp()
753 ktime_to_timespec_cond(shhwtstamps->hwtstamp, tss.ts + 2)) in __sock_recv_timestamp()
/net/packet/
Daf_packet.c432 static __u32 tpacket_get_timestamp(struct sk_buff *skb, struct timespec *ts, in tpacket_get_timestamp() argument
439 ktime_to_timespec_cond(shhwtstamps->hwtstamp, ts)) in tpacket_get_timestamp()
442 if (ktime_to_timespec_cond(skb->tstamp, ts)) in tpacket_get_timestamp()
452 struct timespec ts; in __packet_set_timestamp() local
455 if (!(ts_status = tpacket_get_timestamp(skb, &ts, po->tp_tstamp))) in __packet_set_timestamp()
461 h.h1->tp_sec = ts.tv_sec; in __packet_set_timestamp()
462 h.h1->tp_usec = ts.tv_nsec / NSEC_PER_USEC; in __packet_set_timestamp()
465 h.h2->tp_sec = ts.tv_sec; in __packet_set_timestamp()
466 h.h2->tp_nsec = ts.tv_nsec; in __packet_set_timestamp()
808 struct timespec ts; in prb_close_block() local
[all …]
/net/wireless/
Dscan.c154 if (!time_after(expire_time, bss->ts)) in __cfg80211_bss_expire()
342 bss->ts -= age_jiffies; in cfg80211_bss_age()
555 if (time_after(now, bss->ts + IEEE80211_SCAN_RESULT_EXPIRE) && in cfg80211_get_bss()
699 tmp->ts = jiffies; in cfg80211_bss_update()
784 found->ts = tmp->ts; in cfg80211_bss_update()
1480 elapsed_jiffies_msecs(bss->ts)); in ieee80211_bss()
Dcore.h128 unsigned long ts; member
Dnl80211.c6164 jiffies_to_msecs(jiffies - intbss->ts))) in nl80211_send_bss()
/net/core/
Dsock.c2447 struct timespec ts; in sock_get_timestampns() local
2450 ts = ktime_to_timespec(sk->sk_stamp); in sock_get_timestampns()
2451 if (ts.tv_sec == -1) in sock_get_timestampns()
2453 if (ts.tv_sec == 0) { in sock_get_timestampns()
2455 ts = ktime_to_timespec(sk->sk_stamp); in sock_get_timestampns()
2457 return copy_to_user(userstamp, &ts, sizeof(ts)) ? -EFAULT : 0; in sock_get_timestampns()
/net/sched/
Dsch_api.c1886 struct timespec ts; in psched_show() local
1888 hrtimer_get_res(CLOCK_MONOTONIC, &ts); in psched_show()
1892 (u32)NSEC_PER_SEC/(u32)ktime_to_ns(timespec_to_ktime(ts))); in psched_show()
Dsch_qfq.c746 static inline u64 qfq_round_down(u64 ts, unsigned int shift) in qfq_round_down() argument
748 return ts & ~((1ULL << shift) - 1); in qfq_round_down()
/net/mac80211/
Dutil.c2436 u64 ts = status->mactime; in ieee80211_calculate_rx_timestamp() local
2490 ts -= mpdu_len * 8 * 10 / rate; in ieee80211_calculate_rx_timestamp()
2492 ts += mpdu_offset * 8 * 10 / rate; in ieee80211_calculate_rx_timestamp()
2494 return ts; in ieee80211_calculate_rx_timestamp()