Searched refs:hslot (Results 1 - 5 of 5) sorted by relevance

/linux-4.4.14/net/ipv4/
H A Dudp_diag.c108 struct udp_hslot *hslot = &table->hash[slot]; udp_dump() local
112 if (hlist_nulls_empty(&hslot->head)) udp_dump()
115 spin_lock_bh(&hslot->lock); udp_dump()
116 sk_nulls_for_each(sk, node, &hslot->head) { udp_dump()
136 spin_unlock_bh(&hslot->lock); udp_dump()
142 spin_unlock_bh(&hslot->lock); udp_dump()
H A Dudp.c136 const struct udp_hslot *hslot, udp_lib_lport_inuse()
147 sk_nulls_for_each(sk2, node, &hslot->head) { udp_lib_lport_inuse()
213 struct udp_hslot *hslot, *hslot2; udp_lib_get_port() local
235 hslot = udp_hashslot(udptable, net, first); udp_lib_get_port()
237 spin_lock_bh(&hslot->lock); udp_lib_get_port()
238 udp_lib_lport_inuse(net, snum, hslot, bitmap, sk, udp_lib_get_port()
254 spin_unlock_bh(&hslot->lock); udp_lib_get_port()
258 hslot = udp_hashslot(udptable, net, snum); udp_lib_get_port()
259 spin_lock_bh(&hslot->lock); udp_lib_get_port()
260 if (hslot->count > 10) { udp_lib_get_port()
268 if (hslot->count < hslot2->count) udp_lib_get_port()
284 if (udp_lib_lport_inuse(net, snum, hslot, NULL, sk, udp_lib_get_port()
293 sk_nulls_add_node_rcu(sk, &hslot->head); udp_lib_get_port()
294 hslot->count++; udp_lib_get_port()
306 spin_unlock_bh(&hslot->lock); udp_lib_get_port()
503 struct udp_hslot *hslot2, *hslot = &udptable->hash[slot]; __udp4_lib_lookup() local
508 if (hslot->count > 10) { __udp4_lib_lookup()
512 if (hslot->count < hslot2->count) __udp4_lib_lookup()
522 if (hslot->count < hslot2->count) __udp4_lib_lookup()
535 sk_nulls_for_each_rcu(sk, node, &hslot->head) { __udp4_lib_lookup()
1396 struct udp_hslot *hslot, *hslot2; udp_lib_unhash() local
1398 hslot = udp_hashslot(udptable, sock_net(sk), udp_lib_unhash()
1402 spin_lock_bh(&hslot->lock); udp_lib_unhash()
1404 hslot->count--; udp_lib_unhash()
1413 spin_unlock_bh(&hslot->lock); udp_lib_unhash()
1425 struct udp_hslot *hslot, *hslot2, *nhslot2; udp_lib_rehash() local
1431 hslot = udp_hashslot(udptable, sock_net(sk), udp_lib_rehash()
1434 spin_lock_bh(&hslot->lock); udp_lib_rehash()
1447 spin_unlock_bh(&hslot->lock); udp_lib_rehash()
1675 struct udp_hslot *hslot = udp_hashslot(udptable, net, hnum); __udp4_lib_mcast_deliver() local
1678 unsigned int hash2 = 0, hash2_any = 0, use_hash2 = (hslot->count > 10); __udp4_lib_mcast_deliver()
1686 hslot = &udp_table.hash2[hash2]; __udp4_lib_mcast_deliver()
1690 spin_lock(&hslot->lock); __udp4_lib_mcast_deliver()
1691 sk_nulls_for_each_entry_offset(sk, node, &hslot->head, offset) { __udp4_lib_mcast_deliver()
1706 spin_unlock(&hslot->lock); __udp4_lib_mcast_deliver()
1884 struct udp_hslot *hslot = &udp_table.hash[slot]; __udp4_lib_mcast_demux_lookup() local
1887 if (hslot->count > 10) __udp4_lib_mcast_demux_lookup()
1894 sk_nulls_for_each_rcu(sk, node, &hslot->head) { __udp4_lib_mcast_demux_lookup()
2311 struct udp_hslot *hslot = &state->udp_table->hash[state->bucket]; udp_get_first() local
2313 if (hlist_nulls_empty(&hslot->head)) udp_get_first()
2316 spin_lock_bh(&hslot->lock); udp_get_first()
2317 sk_nulls_for_each(sk, node, &hslot->head) { udp_get_first()
2323 spin_unlock_bh(&hslot->lock); udp_get_first()
135 udp_lib_lport_inuse(struct net *net, __u16 num, const struct udp_hslot *hslot, unsigned long *bitmap, struct sock *sk, int (*saddr_comp)(const struct sock *sk1, const struct sock *sk2), unsigned int log) udp_lib_lport_inuse() argument
H A Dping.c173 struct hlist_nulls_head *hslot = ping_hashslot(&ping_table, net, ident); ping_lookup() local
191 ping_portaddr_for_each_entry(sk, hnode, hslot) { ping_portaddr_for_each_entry()
1025 struct hlist_nulls_head *hslot; ping_get_first() local
1027 hslot = &ping_table.hash[state->bucket]; ping_get_first()
1029 if (hlist_nulls_empty(hslot)) ping_get_first()
1032 sk_nulls_for_each(sk, node, hslot) { sk_nulls_for_each()
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/
H A Dfwsignal.c827 u32 hslot; brcmf_fws_bus_txq_cleanup() local
838 hslot = brcmf_skb_htod_tag_get_field(skb, HSLOT); brcmf_fws_bus_txq_cleanup()
839 hi = &fws->hanger.items[hslot]; brcmf_fws_bus_txq_cleanup()
879 brcmf_dbg(TRACE, "enter: %s, idx=%d hslot=%d htod %X seq %X\n", brcmf_fws_hdrpush()
1405 u32 hslot; brcmf_fws_txstatus_suppressed() local
1408 hslot = brcmf_skb_htod_tag_get_field(skb, HSLOT); brcmf_fws_txstatus_suppressed()
1432 brcmf_fws_hanger_poppkt(&fws->hanger, hslot, &skb, true); brcmf_fws_txstatus_suppressed()
1435 brcmf_fws_hanger_mark_suppressed(&fws->hanger, hslot); brcmf_fws_txstatus_suppressed()
1442 brcmf_fws_txs_process(struct brcmf_fws_info *fws, u8 flags, u32 hslot, brcmf_fws_txs_process() argument
1470 ret = brcmf_fws_hanger_poppkt(&fws->hanger, hslot, &skb, brcmf_fws_txs_process()
1473 brcmf_err("no packet in hanger slot: hslot=%d\n", hslot); brcmf_fws_txs_process()
1540 u32 hslot; brcmf_fws_txstatus_indicate() local
1549 hslot = brcmf_txstatus_get_field(status, HSLOT); brcmf_fws_txstatus_indicate()
1560 brcmf_fws_txs_process(fws, flags, hslot, genbit, seq); brcmf_fws_txstatus_indicate()
1767 int qidx, hslot; brcmf_fws_rollback_toq() local
1788 hslot = brcmf_skb_htod_tag_get_field(skb, HSLOT); brcmf_fws_rollback_toq()
1790 hslot, 0, 0); brcmf_fws_rollback_toq()
1869 int rc, hslot; brcmf_fws_assign_htod() local
1873 hslot = brcmf_fws_hanger_get_free_slot(&fws->hanger); brcmf_fws_assign_htod()
1874 brcmf_skb_htod_tag_set_field(p, HSLOT, hslot); brcmf_fws_assign_htod()
1877 rc = brcmf_fws_hanger_pushpkt(&fws->hanger, p, hslot); brcmf_fws_assign_htod()
1986 u32 hslot; brcmf_fws_dequeue_worker() local
1998 hslot = brcmf_skb_htod_tag_get_field(skb, brcmf_fws_dequeue_worker()
2000 brcmf_fws_hanger_poppkt(&fws->hanger, hslot, brcmf_fws_dequeue_worker()
2250 u32 hslot; brcmf_fws_bustxfail() local
2257 hslot = brcmf_skb_htod_tag_get_field(skb, HSLOT); brcmf_fws_bustxfail()
2258 brcmf_fws_txs_process(fws, BRCMF_FWS_TXSTATUS_HOST_TOSSED, hslot, 0, 0); brcmf_fws_bustxfail()
/linux-4.4.14/net/ipv6/
H A Dudp.c296 struct udp_hslot *hslot2, *hslot = &udptable->hash[slot]; __udp6_lib_lookup() local
301 if (hslot->count > 10) { __udp6_lib_lookup()
305 if (hslot->count < hslot2->count) __udp6_lib_lookup()
315 if (hslot->count < hslot2->count) __udp6_lib_lookup()
328 sk_nulls_for_each_rcu(sk, node, &hslot->head) { __udp6_lib_lookup()
793 struct udp_hslot *hslot = udp_hashslot(udptable, net, hnum); __udp6_lib_mcast_deliver() local
796 unsigned int hash2 = 0, hash2_any = 0, use_hash2 = (hslot->count > 10); __udp6_lib_mcast_deliver()
804 hslot = &udp_table.hash2[hash2]; __udp6_lib_mcast_deliver()
808 spin_lock(&hslot->lock); __udp6_lib_mcast_deliver()
809 sk_nulls_for_each_entry_offset(sk, node, &hslot->head, offset) { __udp6_lib_mcast_deliver()
828 spin_unlock(&hslot->lock); __udp6_lib_mcast_deliver()

Completed in 392 milliseconds