Lines Matching refs:hash_cell
44 struct hash_cell {
89 static struct hash_cell *__get_name_cell(const char *str)
94 struct hash_cell *hc = container_of(n, struct hash_cell, name_node);
108 static struct hash_cell *__get_uuid_cell(const char *str)
113 struct hash_cell *hc = container_of(n, struct hash_cell, uuid_node);
127 static void __unlink_name(struct hash_cell *hc)
135 static void __unlink_uuid(struct hash_cell *hc)
143 static void __link_name(struct hash_cell *new_hc)
155 struct hash_cell *hc = container_of(*n, struct hash_cell, name_node);
168 static void __link_uuid(struct hash_cell *new_hc)
180 struct hash_cell *hc = container_of(*n, struct hash_cell, uuid_node);
193 static struct hash_cell *__get_dev_cell(uint64_t dev)
196 struct hash_cell *hc;
216 static struct hash_cell *alloc_cell(const char *name, const char *uuid,
219 struct hash_cell *hc;
249 static void free_cell(struct hash_cell *hc)
264 struct hash_cell *cell, *hc;
308 static struct dm_table *__hash_remove(struct hash_cell *hc)
340 struct hash_cell *hc;
350 hc = container_of(n, struct hash_cell, name_node);
392 * Set the uuid of a hash_cell that isn't already set.
394 static void __set_cell_uuid(struct hash_cell *hc, char *new_uuid)
404 * Changes the name of a hash_cell and returns the old name for
407 static char *__change_cell_name(struct hash_cell *hc, char *new_name)
430 struct hash_cell *hc;
567 static bool filter_device(struct hash_cell *hc, const char *pfx_name, const char *pfx_uuid)
594 struct hash_cell *hc;
607 hc = container_of(n, struct hash_cell, name_node);
634 hc = container_of(n, struct hash_cell, name_node);
791 struct hash_cell *hc;
914 static struct hash_cell *__find_device_hash_cell(struct dm_ioctl *param)
916 struct hash_cell *hc = NULL;
965 struct hash_cell *hc;
979 struct hash_cell *hc;
1153 struct hash_cell *hc;
1517 struct hash_cell *hc;
1603 struct hash_cell *hc;
2226 struct hash_cell *hc;