Lines Matching refs:hslot2
169 struct udp_hslot *hslot2, in udp_lib_lport_inuse2() argument
176 spin_lock(&hslot2->lock); in udp_lib_lport_inuse2()
177 udp_portaddr_for_each_entry(sk2, &hslot2->head) { in udp_lib_lport_inuse2()
195 spin_unlock(&hslot2->lock); in udp_lib_lport_inuse2()
233 struct udp_hslot *hslot, *hslot2; in udp_lib_get_port() local
288 hslot2 = udp_hashslot2(udptable, slot2); in udp_lib_get_port()
289 if (hslot->count < hslot2->count) in udp_lib_get_port()
292 exist = udp_lib_lport_inuse2(net, snum, hslot2, sk); in udp_lib_get_port()
294 hslot2 = udp_hashslot2(udptable, hash2_nulladdr); in udp_lib_get_port()
295 exist = udp_lib_lport_inuse2(net, snum, hslot2, in udp_lib_get_port()
324 hslot2 = udp_hashslot2(udptable, udp_sk(sk)->udp_portaddr_hash); in udp_lib_get_port()
325 spin_lock(&hslot2->lock); in udp_lib_get_port()
329 &hslot2->head); in udp_lib_get_port()
332 &hslot2->head); in udp_lib_get_port()
333 hslot2->count++; in udp_lib_get_port()
334 spin_unlock(&hslot2->lock); in udp_lib_get_port()
434 struct udp_hslot *hslot2, in udp4_lib_lookup2() argument
442 udp_portaddr_for_each_entry_rcu(sk, &hslot2->head) { in udp4_lib_lookup2()
501 struct udp_hslot *hslot2; in __udp4_lib_lookup() local
506 hslot2 = &udptable->hash2[slot2]; in __udp4_lib_lookup()
511 hslot2, skb); in __udp4_lib_lookup()
532 hslot2 = &udptable->hash2[slot2]; in __udp4_lib_lookup()
536 hslot2, skb); in __udp4_lib_lookup()
2023 struct udp_hslot *hslot, *hslot2; in udp_lib_unhash() local
2027 hslot2 = udp_hashslot2(udptable, udp_sk(sk)->udp_portaddr_hash); in udp_lib_unhash()
2037 spin_lock(&hslot2->lock); in udp_lib_unhash()
2039 hslot2->count--; in udp_lib_unhash()
2040 spin_unlock(&hslot2->lock); in udp_lib_unhash()
2054 struct udp_hslot *hslot, *hslot2, *nhslot2; in udp_lib_rehash() local
2056 hslot2 = udp_hashslot2(udptable, udp_sk(sk)->udp_portaddr_hash); in udp_lib_rehash()
2060 if (hslot2 != nhslot2 || in udp_lib_rehash()
2069 if (hslot2 != nhslot2) { in udp_lib_rehash()
2070 spin_lock(&hslot2->lock); in udp_lib_rehash()
2072 hslot2->count--; in udp_lib_rehash()
2073 spin_unlock(&hslot2->lock); in udp_lib_rehash()
2566 struct udp_hslot *hslot2 = &udp_table.hash2[slot2]; in __udp4_lib_demux_lookup() local
2571 udp_portaddr_for_each_entry_rcu(sk, &hslot2->head) { in __udp4_lib_demux_lookup()