Lines Matching refs:hslot2
170 struct udp_hslot *hslot2, in udp_lib_lport_inuse2() argument
180 spin_lock(&hslot2->lock); in udp_lib_lport_inuse2()
181 udp_portaddr_for_each_entry(sk2, node, &hslot2->head) { in udp_lib_lport_inuse2()
195 spin_unlock(&hslot2->lock); in udp_lib_lport_inuse2()
213 struct udp_hslot *hslot, *hslot2; in udp_lib_get_port() local
267 hslot2 = udp_hashslot2(udptable, slot2); in udp_lib_get_port()
268 if (hslot->count < hslot2->count) in udp_lib_get_port()
271 exist = udp_lib_lport_inuse2(net, snum, hslot2, in udp_lib_get_port()
274 hslot2 = udp_hashslot2(udptable, hash2_nulladdr); in udp_lib_get_port()
275 exist = udp_lib_lport_inuse2(net, snum, hslot2, in udp_lib_get_port()
297 hslot2 = udp_hashslot2(udptable, udp_sk(sk)->udp_portaddr_hash); in udp_lib_get_port()
298 spin_lock(&hslot2->lock); in udp_lib_get_port()
300 &hslot2->head); in udp_lib_get_port()
301 hslot2->count++; in udp_lib_get_port()
302 spin_unlock(&hslot2->lock); in udp_lib_get_port()
444 struct udp_hslot *hslot2, unsigned int slot2) in udp4_lib_lookup2() argument
454 udp_portaddr_for_each_entry_rcu(sk, node, &hslot2->head) { in udp4_lib_lookup2()
503 struct udp_hslot *hslot2, *hslot = &udptable->hash[slot]; in __udp4_lib_lookup() local
511 hslot2 = &udptable->hash2[slot2]; in __udp4_lib_lookup()
512 if (hslot->count < hslot2->count) in __udp4_lib_lookup()
517 hslot2, slot2); in __udp4_lib_lookup()
521 hslot2 = &udptable->hash2[slot2]; in __udp4_lib_lookup()
522 if (hslot->count < hslot2->count) in __udp4_lib_lookup()
527 hslot2, slot2); in __udp4_lib_lookup()
1396 struct udp_hslot *hslot, *hslot2; in udp_lib_unhash() local
1400 hslot2 = udp_hashslot2(udptable, udp_sk(sk)->udp_portaddr_hash); in udp_lib_unhash()
1408 spin_lock(&hslot2->lock); in udp_lib_unhash()
1410 hslot2->count--; in udp_lib_unhash()
1411 spin_unlock(&hslot2->lock); in udp_lib_unhash()
1425 struct udp_hslot *hslot, *hslot2, *nhslot2; in udp_lib_rehash() local
1427 hslot2 = udp_hashslot2(udptable, udp_sk(sk)->udp_portaddr_hash); in udp_lib_rehash()
1430 if (hslot2 != nhslot2) { in udp_lib_rehash()
1436 spin_lock(&hslot2->lock); in udp_lib_rehash()
1438 hslot2->count--; in udp_lib_rehash()
1439 spin_unlock(&hslot2->lock); in udp_lib_rehash()
1941 struct udp_hslot *hslot2 = &udp_table.hash2[slot2]; in __udp4_lib_demux_lookup() local
1947 udp_portaddr_for_each_entry_rcu(sk, node, &hslot2->head) { in __udp4_lib_demux_lookup()