Lines Matching refs:t

22 	struct dm_cache_policy_type *t;  in __find_policy()  local
24 list_for_each_entry(t, &register_list, list) in __find_policy()
25 if (!strcmp(t->name, name)) in __find_policy()
26 return t; in __find_policy()
33 struct dm_cache_policy_type *t = __find_policy(name); in __get_policy_once() local
35 if (t && !try_module_get(t->owner)) { in __get_policy_once()
37 t = ERR_PTR(-EINVAL); in __get_policy_once()
40 return t; in __get_policy_once()
45 struct dm_cache_policy_type *t; in get_policy_once() local
48 t = __get_policy_once(name); in get_policy_once()
51 return t; in get_policy_once()
56 struct dm_cache_policy_type *t; in get_policy() local
58 t = get_policy_once(name); in get_policy()
59 if (IS_ERR(t)) in get_policy()
62 if (t) in get_policy()
63 return t; in get_policy()
67 t = get_policy_once(name); in get_policy()
68 if (IS_ERR(t)) in get_policy()
71 return t; in get_policy()
74 static void put_policy(struct dm_cache_policy_type *t) in put_policy() argument
76 module_put(t->owner); in put_policy()
138 struct dm_cache_policy_type *t = p->private; in dm_cache_policy_destroy() local
141 put_policy(t); in dm_cache_policy_destroy()
147 struct dm_cache_policy_type *t = p->private; in dm_cache_policy_get_name() local
150 if (t->real) in dm_cache_policy_get_name()
151 return t->real->name; in dm_cache_policy_get_name()
153 return t->name; in dm_cache_policy_get_name()
159 struct dm_cache_policy_type *t = p->private; in dm_cache_policy_get_version() local
161 return t->version; in dm_cache_policy_get_version()
167 struct dm_cache_policy_type *t = p->private; in dm_cache_policy_get_hint_size() local
169 return t->hint_size; in dm_cache_policy_get_hint_size()