Home
last modified time | relevance | path

Searched refs:bhash (Results 1 – 10 of 10) sorted by relevance

/Linux-v4.19/net/ipv4/
Dinet_hashtables.c108 const int bhash = inet_bhashfn(sock_net(sk), inet_sk(sk)->inet_num, in __inet_put_port() local
110 struct inet_bind_hashbucket *head = &hashinfo->bhash[bhash]; in __inet_put_port()
134 const int bhash = inet_bhashfn(sock_net(sk), port, in __inet_inherit_port() local
136 struct inet_bind_hashbucket *head = &table->bhash[bhash]; in __inet_inherit_port()
680 head = &hinfo->bhash[inet_bhashfn(net, port, in __inet_hash_connect()
714 head = &hinfo->bhash[inet_bhashfn(net, port, in __inet_hash_connect()
Dinet_timewait_sock.c54 bhead = &hashinfo->bhash[inet_bhashfn(twsk_net(tw), tw->tw_num, in inet_twsk_kill()
112 bhead = &hashinfo->bhash[inet_bhashfn(twsk_net(tw), inet->inet_num, in inet_twsk_hashdance()
Dinet_connection_sock.c218 head = &hinfo->bhash[inet_bhashfn(net, port, in inet_csk_find_open_port()
305 head = &hinfo->bhash[inet_bhashfn(net, port, in inet_csk_get_port()
Dtcp.c3866 tcp_hashinfo.bhash = in tcp_init()
3878 spin_lock_init(&tcp_hashinfo.bhash[i].lock); in tcp_init()
3879 INIT_HLIST_HEAD(&tcp_hashinfo.bhash[i].chain); in tcp_init()
/Linux-v4.19/net/dccp/
Dproto.c1197 dccp_hashinfo.bhash = (struct inet_bind_hashbucket *) in dccp_init()
1199 } while (!dccp_hashinfo.bhash && --bhash_order >= 0); in dccp_init()
1201 if (!dccp_hashinfo.bhash) { in dccp_init()
1207 spin_lock_init(&dccp_hashinfo.bhash[i].lock); in dccp_init()
1208 INIT_HLIST_HEAD(&dccp_hashinfo.bhash[i].chain); in dccp_init()
1238 free_pages((unsigned long)dccp_hashinfo.bhash, bhash_order); in dccp_init()
1248 dccp_hashinfo.bhash = NULL; in dccp_init()
1258 free_pages((unsigned long)dccp_hashinfo.bhash, in dccp_fini()
Dipv4.c1016 if (dccp_hashinfo.bhash == NULL) in dccp_v4_init_net()
Dipv6.c1099 if (dccp_hashinfo.bhash == NULL) in dccp_v6_init_net()
/Linux-v4.19/drivers/edac/
Dpnd2_edac.c905 int bhash = 0; in bank_hash() local
909 bhash ^= ((pmiaddr >> (12 + shft)) ^ (pmiaddr >> (9 + shft))) & 1; in bank_hash()
912 bhash ^= (((pmiaddr >> (10 + shft)) ^ (pmiaddr >> (8 + shft))) & 1) << 1; in bank_hash()
913 bhash ^= ((pmiaddr >> 22) & 1) << 1; in bank_hash()
916 bhash ^= (((pmiaddr >> (13 + shft)) ^ (pmiaddr >> (11 + shft))) & 1) << 2; in bank_hash()
920 return bhash; in bank_hash()
/Linux-v4.19/include/net/
Dinet_hashtables.h137 struct inet_bind_hashbucket *bhash; member
/Linux-v4.19/fs/ext4/
Dnamei.c911 __u32 bhash; in ext4_htree_next_block() local
937 bhash = dx_get_hash(p->at); in ext4_htree_next_block()
939 *start_hash = bhash; in ext4_htree_next_block()
941 if ((bhash & ~1) != hash) in ext4_htree_next_block()