Home
last modified time | relevance | path

Searched refs:tm (Results 1 – 16 of 16) sorted by relevance

/net/ipv4/
Dtcp_metrics.c54 static inline struct net *tm_net(const struct tcp_metrics_block *tm) in tm_net() argument
57 return READ_ONCE(tm->tcpm_net); in tm_net()
60 static bool tcp_metric_locked(struct tcp_metrics_block *tm, in tcp_metric_locked() argument
64 return READ_ONCE(tm->tcpm_lock) & (1 << idx); in tcp_metric_locked()
67 static u32 tcp_metric_get(const struct tcp_metrics_block *tm, in tcp_metric_get() argument
71 return READ_ONCE(tm->tcpm_vals[idx]); in tcp_metric_get()
74 static void tcp_metric_set(struct tcp_metrics_block *tm, in tcp_metric_set() argument
79 WRITE_ONCE(tm->tcpm_vals[idx], val); in tcp_metric_set()
98 static void tcpm_suck_dst(struct tcp_metrics_block *tm, in tcpm_suck_dst() argument
105 WRITE_ONCE(tm->tcpm_stamp, jiffies); in tcpm_suck_dst()
[all …]
/net/sched/
Dem_text.c31 struct text_match *tm = EM_TEXT_PRIV(m); in em_text_match() local
34 from = tcf_get_base_ptr(skb, tm->from_layer) - skb->data; in em_text_match()
35 from += tm->from_offset; in em_text_match()
37 to = tcf_get_base_ptr(skb, tm->to_layer) - skb->data; in em_text_match()
38 to += tm->to_offset; in em_text_match()
40 return skb_find_text(skb, from, to, tm->config) != UINT_MAX; in em_text_match()
46 struct text_match *tm; in em_text_change() local
80 tm = kmalloc(sizeof(*tm), GFP_KERNEL); in em_text_change()
81 if (tm == NULL) { in em_text_change()
86 tm->from_offset = conf->from_offset; in em_text_change()
[all …]
Dact_bpf.c145 struct tcf_t tm; in tcf_bpf_dump() local
160 tcf_tm_dump(&tm, &prog->tcf_tm); in tcf_bpf_dump()
161 if (nla_put_64bit(skb, TCA_ACT_BPF_TM, sizeof(tm), &tm, in tcf_bpf_dump()
Dact_gact.c177 struct tcf_t *tm = &gact->tcf_tm; in tcf_gact_stats_update() local
181 tm->lastuse = max_t(u64, tm->lastuse, lastuse); in tcf_gact_stats_update()
Dact_ipt.c293 struct tcf_t tm; in tcf_ipt_dump() local
317 tcf_tm_dump(&tm, &ipt->tcf_tm); in tcf_ipt_dump()
318 if (nla_put_64bit(skb, TCA_IPT_TM, sizeof(tm), &tm, TCA_IPT_PAD)) in tcf_ipt_dump()
Dact_sample.c205 struct tcf_t *tm = &s->tcf_tm; in tcf_sample_stats_update() local
208 tm->lastuse = max_t(u64, tm->lastuse, lastuse); in tcf_sample_stats_update()
Dact_skbedit.c81 struct tcf_t *tm = &d->tcf_tm; in tcf_skbedit_stats_update() local
84 tm->lastuse = max_t(u64, tm->lastuse, lastuse); in tcf_skbedit_stats_update()
Dact_vlan.c350 struct tcf_t *tm = &v->tcf_tm; in tcf_vlan_stats_update() local
353 tm->lastuse = max_t(u64, tm->lastuse, lastuse); in tcf_vlan_stats_update()
Dact_mirred.c339 struct tcf_t *tm = &m->tcf_tm; in tcf_stats_update() local
342 tm->lastuse = max_t(u64, tm->lastuse, lastuse); in tcf_stats_update()
Dact_tunnel_key.c723 struct tcf_t tm; in tunnel_key_dump() local
759 tcf_tm_dump(&tm, &t->tcf_tm); in tunnel_key_dump()
760 if (nla_put_64bit(skb, TCA_TUNNEL_KEY_TM, sizeof(tm), in tunnel_key_dump()
761 &tm, TCA_TUNNEL_KEY_PAD)) in tunnel_key_dump()
Dact_police.c342 struct tcf_t *tm = &police->tcf_tm; in tcf_police_stats_update() local
345 tm->lastuse = max_t(u64, tm->lastuse, lastuse); in tcf_police_stats_update()
Dact_pedit.c484 struct tcf_t *tm = &d->tcf_tm; in tcf_pedit_stats_update() local
487 tm->lastuse = max_t(u64, tm->lastuse, lastuse); in tcf_pedit_stats_update()
Dact_gate.c582 struct tcf_t *tm = &gact->tcf_tm; in tcf_gate_stats_update() local
585 tm->lastuse = max_t(u64, tm->lastuse, lastuse); in tcf_gate_stats_update()
Dcls_bpf.c574 struct sk_buff *skb, struct tcmsg *tm, bool rtnl_held) in cls_bpf_dump() argument
584 tm->tcm_handle = prog->handle; in cls_bpf_dump()
/net/netfilter/
Dnft_meta.c51 struct tm tm; in nft_meta_hour() local
53 time64_to_tm(secs, 0, &tm); in nft_meta_hour()
55 return tm.tm_hour * NFT_META_SECS_PER_HOUR in nft_meta_hour()
56 + tm.tm_min * NFT_META_SECS_PER_MINUTE in nft_meta_hour()
57 + tm.tm_sec; in nft_meta_hour()
/net/core/
Dsock.c1432 struct __kernel_old_timeval tm; in sock_getsockopt() member