Lines Matching defs:p
66 static struct policy *to_policy(struct dm_cache_policy *p) in to_policy()
97 static int alloc_cache_blocks_with_hash(struct policy *p, dm_cblock_t cache_size) in alloc_cache_blocks_with_hash()
119 static void free_cache_blocks_and_hash(struct policy *p) in free_cache_blocks_and_hash()
125 static struct wb_cache_entry *alloc_cache_entry(struct policy *p) in alloc_cache_entry()
140 static struct wb_cache_entry *lookup_cache_entry(struct policy *p, dm_oblock_t oblock) in lookup_cache_entry()
159 static void insert_cache_hash_entry(struct policy *p, struct wb_cache_entry *e) in insert_cache_hash_entry()
177 struct policy *p = to_policy(pe); in wb_map() local
204 struct policy *p = to_policy(pe); in wb_lookup() local
226 struct policy *p = to_policy(pe); in __set_clear_dirty() local
249 struct policy *p = to_policy(pe); in wb_set_dirty() local
259 struct policy *p = to_policy(pe); in wb_clear_dirty() local
267 static void add_cache_entry(struct policy *p, struct wb_cache_entry *e) in add_cache_entry()
281 struct policy *p = to_policy(pe); in wb_load_mapping() local
299 struct policy *p = to_policy(pe); in wb_destroy() local
305 static struct wb_cache_entry *__wb_force_remove_mapping(struct policy *p, dm_oblock_t oblock) in __wb_force_remove_mapping()
319 struct policy *p = to_policy(pe); in wb_remove_mapping() local
334 struct policy *p = to_policy(pe); in wb_force_mapping() local
345 static struct wb_cache_entry *get_next_dirty_entry(struct policy *p) in get_next_dirty_entry()
366 struct policy *p = to_policy(pe); in wb_writeback_work() local
390 static void init_policy_functions(struct policy *p) in init_policy_functions()
411 struct policy *p = kzalloc(sizeof(*p), GFP_KERNEL); in wb_create() local