Lines Matching defs:t
23 struct dm_cache_policy_type *t;
25 list_for_each_entry(t, ®ister_list, list)
26 if (!strcmp(t->name, name))
27 return t;
34 struct dm_cache_policy_type *t = __find_policy(name);
36 if (t && !try_module_get(t->owner)) {
37 DMWARN("couldn't get module %s", name);
38 t = ERR_PTR(-EINVAL);
41 return t;
46 struct dm_cache_policy_type *t;
49 t = __get_policy_once(name);
52 return t;
57 struct dm_cache_policy_type *t;
59 t = get_policy_once(name);
60 if (IS_ERR(t))
63 if (t)
64 return t;
68 t = get_policy_once(name);
69 if (IS_ERR(t))
72 return t;
75 static void put_policy(struct dm_cache_policy_type *t)
77 module_put(t->owner);
139 struct dm_cache_policy_type *t = p->private;
142 put_policy(t);
148 struct dm_cache_policy_type *t = p->private;
150 /* if t->real is set then an alias was used (e.g. "default") */
151 if (t->real)
152 return t->real->name;
154 return t->name;
160 struct dm_cache_policy_type *t = p->private;
162 return t->version;
168 struct dm_cache_policy_type *t = p->private;
170 return t->hint_size;