Lines Matching refs:hash

37 	DEFINE_HASHTABLE(hash, 1);  in hashtable_test_hash_empty()
39 KUNIT_EXPECT_TRUE(test, hash_empty(hash)); in hashtable_test_hash_empty()
43 hash_add(hash, &a.node, a.key); in hashtable_test_hash_empty()
46 KUNIT_EXPECT_FALSE(test, hash_empty(hash)); in hashtable_test_hash_empty()
52 DEFINE_HASHTABLE(hash, 4); in hashtable_test_hash_hashed()
56 hash_add(hash, &a.node, a.key); in hashtable_test_hash_hashed()
59 hash_add(hash, &b.node, b.key); in hashtable_test_hash_hashed()
69 DEFINE_HASHTABLE(hash, 3); in hashtable_test_hash_add()
74 hash_add(hash, &a.node, a.key); in hashtable_test_hash_add()
78 hash_add(hash, &b.node, b.key); in hashtable_test_hash_add()
80 hash_for_each(hash, bkt, x, node) { in hashtable_test_hash_add()
98 DEFINE_HASHTABLE(hash, 6); in hashtable_test_hash_del()
102 hash_add(hash, &a.node, a.key); in hashtable_test_hash_del()
106 hash_add(hash, &b.node, b.key); in hashtable_test_hash_del()
109 hash_for_each_possible(hash, x, node, b.key) { in hashtable_test_hash_del()
120 KUNIT_EXPECT_TRUE(test, hash_empty(hash)); in hashtable_test_hash_del()
128 DEFINE_HASHTABLE(hash, 3); in hashtable_test_hash_for_each()
135 hash_add(hash, &entries[i].node, entries[i].key); in hashtable_test_hash_for_each()
139 hash_for_each(hash, bkt, x, node) { in hashtable_test_hash_for_each()
158 DEFINE_HASHTABLE(hash, 3); in hashtable_test_hash_for_each_safe()
165 hash_add(hash, &entries[i].node, entries[i].key); in hashtable_test_hash_for_each_safe()
169 hash_for_each_safe(hash, bkt, tmp, x, node) { in hashtable_test_hash_for_each_safe()
191 DEFINE_HASHTABLE(hash, 5); in hashtable_test_hash_for_each_possible()
198 hash_add(hash, &entries[i].node, entries[i].key); in hashtable_test_hash_for_each_possible()
205 hash_add(hash, &entries[3].node, entries[3].key); in hashtable_test_hash_for_each_possible()
208 hash_for_each_possible(hash, x, node, 0) { in hashtable_test_hash_for_each_possible()
220 hash_for_each(hash, bkt, y, node) { in hashtable_test_hash_for_each_possible()
246 DEFINE_HASHTABLE(hash, 5); in hashtable_test_hash_for_each_possible_safe()
253 hash_add(hash, &entries[i].node, entries[i].key); in hashtable_test_hash_for_each_possible_safe()
260 hash_add(hash, &entries[3].node, entries[3].key); in hashtable_test_hash_for_each_possible_safe()
263 hash_for_each_possible_safe(hash, x, tmp, node, 0) { in hashtable_test_hash_for_each_possible_safe()
278 hash_for_each(hash, bkt, y, node) { in hashtable_test_hash_for_each_possible_safe()