Lines Matching refs:hash
18 #include <linux/hash.h>
70 INIT_HLIST_HEAD(&tport->hash[i]);
155 * Sessions and hash lists are RCU-protected.
172 head = &tport->hash[ft_sess_hash(port_id)];
173 hlist_for_each_entry_rcu(sess, head, hash) {
194 struct hlist_head *head = &tport->hash[ft_sess_hash(sess->port_id)];
197 hlist_add_head_rcu(&sess->hash, head);
204 * Allocate session and enter it in the hash for the local port.
217 head = &tport->hash[ft_sess_hash(port_id)];
218 hlist_for_each_entry_rcu(sess, head, hash)
250 hlist_del_rcu(&sess->hash);
258 * Delete session from hash.
266 head = &tport->hash[ft_sess_hash(port_id)];
267 hlist_for_each_entry_rcu(sess, head, hash) {
292 for (head = tport->hash;
293 head < &tport->hash[FT_SESS_HASH_SIZE]; head++) {
294 hlist_for_each_entry_rcu(sess, head, hash) {