Lines Matching refs:name
21 static struct dm_cache_policy_type *__find_policy(const char *name)
26 if (!strcmp(t->name, name))
32 static struct dm_cache_policy_type *__get_policy_once(const char *name)
34 struct dm_cache_policy_type *t = __find_policy(name);
37 DMWARN("couldn't get module %s", name);
44 static struct dm_cache_policy_type *get_policy_once(const char *name)
49 t = __get_policy_once(name);
55 static struct dm_cache_policy_type *get_policy(const char *name)
59 t = get_policy_once(name);
66 request_module("dm-cache-%s", name);
68 t = get_policy_once(name);
91 if (__find_policy(type->name)) {
92 DMWARN("attempt to register policy under duplicate name %s", type->name);
112 struct dm_cache_policy *dm_cache_policy_create(const char *name,
120 type = get_policy(name);
152 return t->real->name;
154 return t->name;