Lines Matching refs:p
117 struct dm_cache_policy *p = NULL; in dm_cache_policy_create() local
126 p = type->create(cache_size, origin_size, cache_block_size); in dm_cache_policy_create()
127 if (!p) { in dm_cache_policy_create()
131 p->private = type; in dm_cache_policy_create()
133 return p; in dm_cache_policy_create()
137 void dm_cache_policy_destroy(struct dm_cache_policy *p) in dm_cache_policy_destroy() argument
139 struct dm_cache_policy_type *t = p->private; in dm_cache_policy_destroy()
141 p->destroy(p); in dm_cache_policy_destroy()
146 const char *dm_cache_policy_get_name(struct dm_cache_policy *p) in dm_cache_policy_get_name() argument
148 struct dm_cache_policy_type *t = p->private; in dm_cache_policy_get_name()
158 const unsigned int *dm_cache_policy_get_version(struct dm_cache_policy *p) in dm_cache_policy_get_version() argument
160 struct dm_cache_policy_type *t = p->private; in dm_cache_policy_get_version()
166 size_t dm_cache_policy_get_hint_size(struct dm_cache_policy *p) in dm_cache_policy_get_hint_size() argument
168 struct dm_cache_policy_type *t = p->private; in dm_cache_policy_get_hint_size()