Home
last modified time | relevance | path

Searched refs:h2 (Results 1 – 3 of 3) sorted by relevance

/net/sched/
Dcls_route.c220 unsigned int h1, h2; in route4_get() local
226 h2 = from_hash(handle >> 16); in route4_get()
227 if (h2 > 32) in route4_get()
232 for (f = rtnl_dereference(b->ht[h2]); in route4_get()
279 int h1, h2; in route4_destroy() local
289 for (h2 = 0; h2 <= 32; h2++) { in route4_destroy()
292 while ((f = rtnl_dereference(b->ht[h2])) != NULL) { in route4_destroy()
296 RCU_INIT_POINTER(b->ht[h2], next); in route4_destroy()
441 unsigned int h2 = from_hash(nhandle >> 16); in route4_set_parms() local
443 for (fp = rtnl_dereference(b->ht[h2]); in route4_set_parms()
/net/packet/
Daf_packet.c166 struct tpacket2_hdr *h2; member
380 WRITE_ONCE(h.h2->tp_status, status); in __packet_set_status()
381 flush_dcache_page(pgv_to_page(&h.h2->tp_status)); in __packet_set_status()
409 flush_dcache_page(pgv_to_page(&h.h2->tp_status)); in __packet_get_status()
410 return READ_ONCE(h.h2->tp_status); in __packet_get_status()
462 h.h2->tp_sec = ts.tv_sec; in __packet_set_timestamp()
463 h.h2->tp_nsec = ts.tv_nsec; in __packet_set_timestamp()
2226 BUILD_BUG_ON(TPACKET_ALIGN(sizeof(*h.h2)) != 32); in tpacket_rcv()
2386 h.h2->tp_len = skb->len; in tpacket_rcv()
2387 h.h2->tp_snaplen = snaplen; in tpacket_rcv()
[all …]
/net/netfilter/
Dnf_conntrack_core.c130 static void nf_conntrack_double_unlock(unsigned int h1, unsigned int h2) in nf_conntrack_double_unlock() argument
133 h2 %= CONNTRACK_LOCKS; in nf_conntrack_double_unlock()
135 if (h1 != h2) in nf_conntrack_double_unlock()
136 spin_unlock(&nf_conntrack_locks[h2]); in nf_conntrack_double_unlock()
141 unsigned int h2, unsigned int sequence) in nf_conntrack_double_lock() argument
144 h2 %= CONNTRACK_LOCKS; in nf_conntrack_double_lock()
145 if (h1 <= h2) { in nf_conntrack_double_lock()
147 if (h1 != h2) in nf_conntrack_double_lock()
148 spin_lock_nested(&nf_conntrack_locks[h2], in nf_conntrack_double_lock()
151 nf_conntrack_lock(&nf_conntrack_locks[h2]); in nf_conntrack_double_lock()
[all …]