Lines Matching refs:hslot2

171 				struct udp_hslot *hslot2,  in udp_lib_lport_inuse2()  argument
181 spin_lock(&hslot2->lock); in udp_lib_lport_inuse2()
182 udp_portaddr_for_each_entry(sk2, node, &hslot2->head) { in udp_lib_lport_inuse2()
196 spin_unlock(&hslot2->lock); in udp_lib_lport_inuse2()
214 struct udp_hslot *hslot, *hslot2; in udp_lib_get_port() local
268 hslot2 = udp_hashslot2(udptable, slot2); in udp_lib_get_port()
269 if (hslot->count < hslot2->count) in udp_lib_get_port()
272 exist = udp_lib_lport_inuse2(net, snum, hslot2, in udp_lib_get_port()
275 hslot2 = udp_hashslot2(udptable, hash2_nulladdr); in udp_lib_get_port()
276 exist = udp_lib_lport_inuse2(net, snum, hslot2, in udp_lib_get_port()
298 hslot2 = udp_hashslot2(udptable, udp_sk(sk)->udp_portaddr_hash); in udp_lib_get_port()
299 spin_lock(&hslot2->lock); in udp_lib_get_port()
301 &hslot2->head); in udp_lib_get_port()
302 hslot2->count++; in udp_lib_get_port()
303 spin_unlock(&hslot2->lock); in udp_lib_get_port()
441 struct udp_hslot *hslot2, unsigned int slot2) in udp4_lib_lookup2() argument
451 udp_portaddr_for_each_entry_rcu(sk, node, &hslot2->head) { in udp4_lib_lookup2()
500 struct udp_hslot *hslot2, *hslot = &udptable->hash[slot]; in __udp4_lib_lookup() local
508 hslot2 = &udptable->hash2[slot2]; in __udp4_lib_lookup()
509 if (hslot->count < hslot2->count) in __udp4_lib_lookup()
514 hslot2, slot2); in __udp4_lib_lookup()
518 hslot2 = &udptable->hash2[slot2]; in __udp4_lib_lookup()
519 if (hslot->count < hslot2->count) in __udp4_lib_lookup()
524 hslot2, slot2); in __udp4_lib_lookup()
1385 struct udp_hslot *hslot, *hslot2; in udp_lib_unhash() local
1389 hslot2 = udp_hashslot2(udptable, udp_sk(sk)->udp_portaddr_hash); in udp_lib_unhash()
1397 spin_lock(&hslot2->lock); in udp_lib_unhash()
1399 hslot2->count--; in udp_lib_unhash()
1400 spin_unlock(&hslot2->lock); in udp_lib_unhash()
1414 struct udp_hslot *hslot, *hslot2, *nhslot2; in udp_lib_rehash() local
1416 hslot2 = udp_hashslot2(udptable, udp_sk(sk)->udp_portaddr_hash); in udp_lib_rehash()
1419 if (hslot2 != nhslot2) { in udp_lib_rehash()
1425 spin_lock(&hslot2->lock); in udp_lib_rehash()
1427 hslot2->count--; in udp_lib_rehash()
1428 spin_unlock(&hslot2->lock); in udp_lib_rehash()
1930 struct udp_hslot *hslot2 = &udp_table.hash2[slot2]; in __udp4_lib_demux_lookup() local
1936 udp_portaddr_for_each_entry_rcu(sk, node, &hslot2->head) { in __udp4_lib_demux_lookup()