Lines Matching refs:hslot

136 			       const struct udp_hslot *hslot,  in udp_lib_lport_inuse()  argument
147 sk_nulls_for_each(sk2, node, &hslot->head) { in udp_lib_lport_inuse()
213 struct udp_hslot *hslot, *hslot2; in udp_lib_get_port() local
235 hslot = udp_hashslot(udptable, net, first); in udp_lib_get_port()
237 spin_lock_bh(&hslot->lock); in udp_lib_get_port()
238 udp_lib_lport_inuse(net, snum, hslot, bitmap, sk, in udp_lib_get_port()
254 spin_unlock_bh(&hslot->lock); in udp_lib_get_port()
258 hslot = udp_hashslot(udptable, net, snum); in udp_lib_get_port()
259 spin_lock_bh(&hslot->lock); in udp_lib_get_port()
260 if (hslot->count > 10) { in udp_lib_get_port()
268 if (hslot->count < hslot2->count) in udp_lib_get_port()
284 if (udp_lib_lport_inuse(net, snum, hslot, NULL, sk, in udp_lib_get_port()
293 sk_nulls_add_node_rcu(sk, &hslot->head); in udp_lib_get_port()
294 hslot->count++; in udp_lib_get_port()
306 spin_unlock_bh(&hslot->lock); in udp_lib_get_port()
503 struct udp_hslot *hslot2, *hslot = &udptable->hash[slot]; in __udp4_lib_lookup() local
508 if (hslot->count > 10) { in __udp4_lib_lookup()
512 if (hslot->count < hslot2->count) in __udp4_lib_lookup()
522 if (hslot->count < hslot2->count) in __udp4_lib_lookup()
535 sk_nulls_for_each_rcu(sk, node, &hslot->head) { in __udp4_lib_lookup()
1396 struct udp_hslot *hslot, *hslot2; in udp_lib_unhash() local
1398 hslot = udp_hashslot(udptable, sock_net(sk), in udp_lib_unhash()
1402 spin_lock_bh(&hslot->lock); in udp_lib_unhash()
1404 hslot->count--; in udp_lib_unhash()
1413 spin_unlock_bh(&hslot->lock); in udp_lib_unhash()
1425 struct udp_hslot *hslot, *hslot2, *nhslot2; in udp_lib_rehash() local
1431 hslot = udp_hashslot(udptable, sock_net(sk), in udp_lib_rehash()
1434 spin_lock_bh(&hslot->lock); in udp_lib_rehash()
1447 spin_unlock_bh(&hslot->lock); in udp_lib_rehash()
1675 struct udp_hslot *hslot = udp_hashslot(udptable, net, hnum); in __udp4_lib_mcast_deliver() local
1678 unsigned int hash2 = 0, hash2_any = 0, use_hash2 = (hslot->count > 10); in __udp4_lib_mcast_deliver()
1686 hslot = &udp_table.hash2[hash2]; in __udp4_lib_mcast_deliver()
1690 spin_lock(&hslot->lock); in __udp4_lib_mcast_deliver()
1691 sk_nulls_for_each_entry_offset(sk, node, &hslot->head, offset) { in __udp4_lib_mcast_deliver()
1706 spin_unlock(&hslot->lock); in __udp4_lib_mcast_deliver()
1884 struct udp_hslot *hslot = &udp_table.hash[slot]; in __udp4_lib_mcast_demux_lookup() local
1887 if (hslot->count > 10) in __udp4_lib_mcast_demux_lookup()
1894 sk_nulls_for_each_rcu(sk, node, &hslot->head) { in __udp4_lib_mcast_demux_lookup()
2311 struct udp_hslot *hslot = &state->udp_table->hash[state->bucket]; in udp_get_first() local
2313 if (hlist_nulls_empty(&hslot->head)) in udp_get_first()
2316 spin_lock_bh(&hslot->lock); in udp_get_first()
2317 sk_nulls_for_each(sk, node, &hslot->head) { in udp_get_first()
2323 spin_unlock_bh(&hslot->lock); in udp_get_first()