Lines Matching refs:dm_hash_node
20 struct dm_hash_node {
21 struct dm_hash_node *next;
30 struct dm_hash_node **slots;
61 static struct dm_hash_node *_create_node(const char *str, unsigned len)
63 struct dm_hash_node *n = dm_malloc(sizeof(*n) + len);
125 struct dm_hash_node *c, *n;
142 static struct dm_hash_node **_find(struct dm_hash_table *t, const char *key,
146 struct dm_hash_node **c;
162 struct dm_hash_node **c = _find(t, key, len);
170 struct dm_hash_node **c = _find(t, key, len);
175 struct dm_hash_node *n = _create_node(key, len);
192 struct dm_hash_node **c = _find(t, key, len);
195 struct dm_hash_node *old = *c;
224 struct dm_hash_node *c, *n;
237 memset(t->slots, 0, sizeof(struct dm_hash_node *) * t->num_slots);
242 struct dm_hash_node *n)
248 struct dm_hash_node *n)
253 static struct dm_hash_node *_next_slot(struct dm_hash_table *t, unsigned s)
255 struct dm_hash_node *c = NULL;
264 struct dm_hash_node *dm_hash_get_first(struct dm_hash_table *t)
269 struct dm_hash_node *dm_hash_get_next(struct dm_hash_table *t, struct dm_hash_node *n)