Lines Matching refs:t

23 	struct dm_cache_policy_type *t;  in __find_policy()  local
25 list_for_each_entry(t, &register_list, list) in __find_policy()
26 if (!strcmp(t->name, name)) in __find_policy()
27 return t; in __find_policy()
34 struct dm_cache_policy_type *t = __find_policy(name); in __get_policy_once() local
36 if (t && !try_module_get(t->owner)) { in __get_policy_once()
38 t = ERR_PTR(-EINVAL); in __get_policy_once()
41 return t; in __get_policy_once()
46 struct dm_cache_policy_type *t; in get_policy_once() local
49 t = __get_policy_once(name); in get_policy_once()
52 return t; in get_policy_once()
57 struct dm_cache_policy_type *t; in get_policy() local
59 t = get_policy_once(name); in get_policy()
60 if (IS_ERR(t)) in get_policy()
63 if (t) in get_policy()
64 return t; in get_policy()
68 t = get_policy_once(name); in get_policy()
69 if (IS_ERR(t)) in get_policy()
72 return t; in get_policy()
75 static void put_policy(struct dm_cache_policy_type *t) in put_policy() argument
77 module_put(t->owner); in put_policy()
139 struct dm_cache_policy_type *t = p->private; in dm_cache_policy_destroy() local
142 put_policy(t); in dm_cache_policy_destroy()
148 struct dm_cache_policy_type *t = p->private; in dm_cache_policy_get_name() local
151 if (t->real) in dm_cache_policy_get_name()
152 return t->real->name; in dm_cache_policy_get_name()
154 return t->name; in dm_cache_policy_get_name()
160 struct dm_cache_policy_type *t = p->private; in dm_cache_policy_get_version() local
162 return t->version; in dm_cache_policy_get_version()
168 struct dm_cache_policy_type *t = p->private; in dm_cache_policy_get_hint_size() local
170 return t->hint_size; in dm_cache_policy_get_hint_size()