Lines Matching refs:hslot2

170 				struct udp_hslot *hslot2,  in udp_lib_lport_inuse2()  argument
177 spin_lock(&hslot2->lock); in udp_lib_lport_inuse2()
178 udp_portaddr_for_each_entry(sk2, &hslot2->head) { in udp_lib_lport_inuse2()
196 spin_unlock(&hslot2->lock); in udp_lib_lport_inuse2()
234 struct udp_hslot *hslot, *hslot2; in udp_lib_get_port() local
289 hslot2 = udp_hashslot2(udptable, slot2); in udp_lib_get_port()
290 if (hslot->count < hslot2->count) in udp_lib_get_port()
293 exist = udp_lib_lport_inuse2(net, snum, hslot2, sk); in udp_lib_get_port()
295 hslot2 = udp_hashslot2(udptable, hash2_nulladdr); in udp_lib_get_port()
296 exist = udp_lib_lport_inuse2(net, snum, hslot2, in udp_lib_get_port()
325 hslot2 = udp_hashslot2(udptable, udp_sk(sk)->udp_portaddr_hash); in udp_lib_get_port()
326 spin_lock(&hslot2->lock); in udp_lib_get_port()
330 &hslot2->head); in udp_lib_get_port()
333 &hslot2->head); in udp_lib_get_port()
334 hslot2->count++; in udp_lib_get_port()
335 spin_unlock(&hslot2->lock); in udp_lib_get_port()
435 struct udp_hslot *hslot2, in udp4_lib_lookup2() argument
443 udp_portaddr_for_each_entry_rcu(sk, &hslot2->head) { in udp4_lib_lookup2()
492 struct udp_hslot *hslot2; in __udp4_lib_lookup() local
497 hslot2 = &udptable->hash2[slot2]; in __udp4_lib_lookup()
502 hslot2, skb); in __udp4_lib_lookup()
523 hslot2 = &udptable->hash2[slot2]; in __udp4_lib_lookup()
527 hslot2, skb); in __udp4_lib_lookup()
1958 struct udp_hslot *hslot, *hslot2; in udp_lib_unhash() local
1962 hslot2 = udp_hashslot2(udptable, udp_sk(sk)->udp_portaddr_hash); in udp_lib_unhash()
1972 spin_lock(&hslot2->lock); in udp_lib_unhash()
1974 hslot2->count--; in udp_lib_unhash()
1975 spin_unlock(&hslot2->lock); in udp_lib_unhash()
1989 struct udp_hslot *hslot, *hslot2, *nhslot2; in udp_lib_rehash() local
1991 hslot2 = udp_hashslot2(udptable, udp_sk(sk)->udp_portaddr_hash); in udp_lib_rehash()
1995 if (hslot2 != nhslot2 || in udp_lib_rehash()
2004 if (hslot2 != nhslot2) { in udp_lib_rehash()
2005 spin_lock(&hslot2->lock); in udp_lib_rehash()
2007 hslot2->count--; in udp_lib_rehash()
2008 spin_unlock(&hslot2->lock); in udp_lib_rehash()
2490 struct udp_hslot *hslot2 = &udp_table.hash2[slot2]; in __udp4_lib_demux_lookup() local
2495 udp_portaddr_for_each_entry_rcu(sk, &hslot2->head) { in __udp4_lib_demux_lookup()