Home
last modified time | relevance | path

Searched refs:bhash (Results 1 - 20 of 20) sorted by relevance

/kernel/linux/linux-6.6/net/ipv4/
H A Dinet_hashtables.c187 int bhash; in __inet_put_port() local
189 bhash = inet_bhashfn(net, inet_sk(sk)->inet_num, hashinfo->bhash_size); in __inet_put_port()
190 head = &hashinfo->bhash[bhash]; in __inet_put_port()
231 int bhash, l3mdev; in __inet_inherit_port() local
233 bhash = inet_bhashfn(net, port, table->bhash_size); in __inet_inherit_port()
234 head = &table->bhash[bhash]; in __inet_inherit_port()
904 int bhash; in __inet_bhash2_update_saddr() local
925 * so we give up and unlink sk from bhash/bhash in __inet_bhash2_update_saddr()
[all...]
H A Dinet_timewait_sock.c61 bhead = &hashinfo->bhash[inet_bhashfn(twsk_net(tw), tw->tw_num, in inet_twsk_kill()
127 bhead = &hashinfo->bhash[inet_bhashfn(twsk_net(tw), inet->inet_num, in inet_twsk_hashdance()
156 * - one reference for bhash chain. in inet_twsk_hashdance()
H A Dinet_connection_sock.c281 * Caller must hold bhash hashbucket lock with local bh disabled, to protect
369 head = &hinfo->bhash[inet_bhashfn(net, port, in inet_csk_find_open_port()
533 head = &hinfo->bhash[inet_bhashfn(net, port, in inet_csk_get_port()
H A Dtcp.c4693 tcp_hashinfo.bhash = in tcp_init()
4704 tcp_hashinfo.bhash2 = tcp_hashinfo.bhash + tcp_hashinfo.bhash_size; in tcp_init()
4706 spin_lock_init(&tcp_hashinfo.bhash[i].lock); in tcp_init()
4707 INIT_HLIST_HEAD(&tcp_hashinfo.bhash[i].chain); in tcp_init()
/kernel/linux/linux-5.10/net/dccp/
H A Dproto.c1192 dccp_hashinfo.bhash = (struct inet_bind_hashbucket *) in dccp_init()
1194 } while (!dccp_hashinfo.bhash && --bhash_order >= 0); in dccp_init()
1196 if (!dccp_hashinfo.bhash) { in dccp_init()
1202 spin_lock_init(&dccp_hashinfo.bhash[i].lock); in dccp_init()
1203 INIT_HLIST_HEAD(&dccp_hashinfo.bhash[i].chain); in dccp_init()
1233 free_pages((unsigned long)dccp_hashinfo.bhash, bhash_order); in dccp_init()
1243 dccp_hashinfo.bhash = NULL; in dccp_init()
1253 free_pages((unsigned long)dccp_hashinfo.bhash, in dccp_fini()
H A Dipv4.c1010 if (dccp_hashinfo.bhash == NULL) in dccp_v4_init_net()
H A Dipv6.c1092 if (dccp_hashinfo.bhash == NULL) in dccp_v6_init_net()
/kernel/linux/linux-5.10/net/ipv4/
H A Dinet_hashtables.c118 const int bhash = inet_bhashfn(sock_net(sk), inet_sk(sk)->inet_num, in __inet_put_port() local
120 struct inet_bind_hashbucket *head = &hashinfo->bhash[bhash]; in __inet_put_port()
144 const int bhash = inet_bhashfn(sock_net(sk), port, in __inet_inherit_port() local
146 struct inet_bind_hashbucket *head = &table->bhash[bhash]; in __inet_inherit_port()
790 head = &hinfo->bhash[inet_bhashfn(net, port, in __inet_hash_connect()
H A Dinet_timewait_sock.c55 bhead = &hashinfo->bhash[inet_bhashfn(twsk_net(tw), tw->tw_num, in inet_twsk_kill()
113 bhead = &hashinfo->bhash[inet_bhashfn(twsk_net(tw), inet->inet_num, in inet_twsk_hashdance()
132 * - one reference for bhash chain. in inet_twsk_hashdance()
H A Dinet_connection_sock.c232 head = &hinfo->bhash[inet_bhashfn(net, port, in inet_csk_find_open_port()
379 head = &hinfo->bhash[inet_bhashfn(net, port, in inet_csk_get_port()
H A Dtcp.c4398 tcp_hashinfo.bhash = in tcp_init()
4410 spin_lock_init(&tcp_hashinfo.bhash[i].lock); in tcp_init()
4411 INIT_HLIST_HEAD(&tcp_hashinfo.bhash[i].chain); in tcp_init()
/kernel/linux/linux-6.6/net/dccp/
H A Dproto.c1194 dccp_hashinfo.bhash = (struct inet_bind_hashbucket *) in dccp_init()
1196 } while (!dccp_hashinfo.bhash && --bhash_order >= 0); in dccp_init()
1198 if (!dccp_hashinfo.bhash) { in dccp_init()
1212 spin_lock_init(&dccp_hashinfo.bhash[i].lock); in dccp_init()
1213 INIT_HLIST_HEAD(&dccp_hashinfo.bhash[i].chain); in dccp_init()
1249 free_pages((unsigned long)dccp_hashinfo.bhash, bhash_order); in dccp_init()
1261 dccp_hashinfo.bhash = NULL; in dccp_init()
1276 free_pages((unsigned long)dccp_hashinfo.bhash, bhash_order); in dccp_fini()
H A Dipv4.c1026 if (dccp_hashinfo.bhash == NULL) in dccp_v4_init_net()
H A Dipv6.c1108 if (dccp_hashinfo.bhash == NULL) in dccp_v6_init_net()
/kernel/linux/linux-5.10/drivers/edac/
H A Dpnd2_edac.c902 int bhash = 0; in bank_hash() local
906 bhash ^= ((pmiaddr >> (12 + shft)) ^ (pmiaddr >> (9 + shft))) & 1; in bank_hash()
909 bhash ^= (((pmiaddr >> (10 + shft)) ^ (pmiaddr >> (8 + shft))) & 1) << 1; in bank_hash()
910 bhash ^= ((pmiaddr >> 22) & 1) << 1; in bank_hash()
913 bhash ^= (((pmiaddr >> (13 + shft)) ^ (pmiaddr >> (11 + shft))) & 1) << 2; in bank_hash()
917 return bhash; in bank_hash()
/kernel/linux/linux-6.6/drivers/edac/
H A Dpnd2_edac.c880 int bhash = 0; in bank_hash() local
884 bhash ^= ((pmiaddr >> (12 + shft)) ^ (pmiaddr >> (9 + shft))) & 1; in bank_hash()
887 bhash ^= (((pmiaddr >> (10 + shft)) ^ (pmiaddr >> (8 + shft))) & 1) << 1; in bank_hash()
888 bhash ^= ((pmiaddr >> 22) & 1) << 1; in bank_hash()
891 bhash ^= (((pmiaddr >> (13 + shft)) ^ (pmiaddr >> (11 + shft))) & 1) << 2; in bank_hash()
895 return bhash; in bank_hash()
/kernel/linux/linux-5.10/include/net/
H A Dinet_hashtables.h140 struct inet_bind_hashbucket *bhash; member
/kernel/linux/linux-6.6/include/net/
H A Dinet_hashtables.h111 /* bhash has twsk in owners, but bhash2 has twsk in
166 struct inet_bind_hashbucket *bhash; member
/kernel/linux/linux-5.10/fs/ext4/
H A Dnamei.c978 __u32 bhash; in ext4_htree_next_block() local
1004 bhash = dx_get_hash(p->at); in ext4_htree_next_block()
1006 *start_hash = bhash; in ext4_htree_next_block()
1008 if ((bhash & ~1) != hash) in ext4_htree_next_block()
/kernel/linux/linux-6.6/fs/ext4/
H A Dnamei.c1014 __u32 bhash; in ext4_htree_next_block() local
1040 bhash = dx_get_hash(p->at); in ext4_htree_next_block()
1042 *start_hash = bhash; in ext4_htree_next_block()
1044 if ((bhash & ~1) != hash) in ext4_htree_next_block()

Completed in 40 milliseconds