Lines Matching refs:head
67 struct inet_bind_hashbucket *head, in inet_bind_bucket_create() argument
80 hlist_add_head_rcu(&tb->node, &head->chain); in inet_bind_bucket_create()
105 struct inet_bind_hashbucket *head, in inet_bind2_bucket_init() argument
125 hlist_add_head(&tb2->node, &head->chain); in inet_bind2_bucket_init()
131 struct inet_bind_hashbucket *head, in inet_bind2_bucket_create() argument
138 inet_bind2_bucket_init(tb2, net, head, tb, sk); in inet_bind2_bucket_create()
181 struct inet_bind_hashbucket *head, *head2; in __inet_put_port() local
187 head = &hashinfo->bhash[bhash]; in __inet_put_port()
190 spin_lock(&head->lock); in __inet_put_port()
206 spin_unlock(&head->lock); in __inet_put_port()
221 struct inet_bind_hashbucket *head, *head2; in __inet_inherit_port() local
230 head = &table->bhash[bhash]; in __inet_inherit_port()
233 spin_lock(&head->lock); in __inet_inherit_port()
239 spin_unlock(&head->lock); in __inet_inherit_port()
250 inet_bind_bucket_for_each(tb, &head->chain) { in __inet_inherit_port()
256 net, head, port, l3mdev); in __inet_inherit_port()
259 spin_unlock(&head->lock); in __inet_inherit_port()
283 spin_unlock(&head->lock); in __inet_inherit_port()
291 spin_unlock(&head->lock); in __inet_inherit_port()
507 struct inet_ehash_bucket *head = &hashinfo->ehash[slot]; in __inet_lookup_established() local
510 sk_nulls_for_each_rcu(sk, node, &head->chain) { in __inet_lookup_established()
554 struct inet_ehash_bucket *head = inet_ehash_bucket(hinfo, hash); in __inet_check_established() local
561 sk_nulls_for_each(sk2, node, &head->chain) { in __inet_check_established()
575 sk_nulls_for_each(sk2, node, &head->chain) { in __inet_check_established()
597 __sk_nulls_add_node_rcu(sk, &head->chain); in __inet_check_established()
673 struct inet_ehash_bucket *head; in inet_ehash_insert() local
681 head = inet_ehash_bucket(hashinfo, sk->sk_hash); in inet_ehash_insert()
682 list = &head->chain; in inet_ehash_insert()
863 inet_bind2_bucket_find(const struct inet_bind_hashbucket *head, const struct net *net, in inet_bind2_bucket_find() argument
868 inet_bind_bucket_for_each(bhash2, &head->chain) in inet_bind2_bucket_find()
907 struct inet_bind_hashbucket *head, *head2; in __inet_bhash2_update_saddr() local
944 head = &hinfo->bhash[bhash]; in __inet_bhash2_update_saddr()
950 spin_lock_bh(&head->lock); in __inet_bhash2_update_saddr()
974 spin_unlock_bh(&head->lock); in __inet_bhash2_update_saddr()
1016 struct inet_bind_hashbucket *head, *head2; in __inet_hash_connect() local
1066 head = &hinfo->bhash[inet_bhashfn(net, port, in __inet_hash_connect()
1069 hlist_for_each_entry_rcu(tb, &head->chain, node) { in __inet_hash_connect()
1084 spin_lock_bh(&head->lock); in __inet_hash_connect()
1089 inet_bind_bucket_for_each(tb, &head->chain) { in __inet_hash_connect()
1104 net, head, port, l3mdev); in __inet_hash_connect()
1106 spin_unlock_bh(&head->lock); in __inet_hash_connect()
1114 spin_unlock_bh(&head->lock); in __inet_hash_connect()
1160 spin_unlock(&head->lock); in __inet_hash_connect()
1188 spin_unlock(&head->lock); in __inet_hash_connect()