Lines Matching refs:dm_cache_policy

798 	struct dm_cache_policy policy;
1356 static struct smq_policy *to_smq_policy(struct dm_cache_policy *p) in to_smq_policy()
1361 static void smq_destroy(struct dm_cache_policy *p) in smq_destroy()
1411 static int smq_lookup(struct dm_cache_policy *p, dm_oblock_t oblock, dm_cblock_t *cblock, in smq_lookup()
1428 static int smq_lookup_with_work(struct dm_cache_policy *p, in smq_lookup_with_work()
1445 static int smq_get_background_work(struct dm_cache_policy *p, bool idle, in smq_get_background_work()
1515 static void smq_complete_background_work(struct dm_cache_policy *p, in smq_complete_background_work()
1541 static void smq_set_dirty(struct dm_cache_policy *p, dm_cblock_t cblock) in smq_set_dirty()
1551 static void smq_clear_dirty(struct dm_cache_policy *p, dm_cblock_t cblock) in smq_clear_dirty()
1566 static int smq_load_mapping(struct dm_cache_policy *p, in smq_load_mapping()
1588 static int smq_invalidate_mapping(struct dm_cache_policy *p, dm_cblock_t cblock) in smq_invalidate_mapping()
1603 static uint32_t smq_get_hint(struct dm_cache_policy *p, dm_cblock_t cblock) in smq_get_hint()
1614 static dm_cblock_t smq_residency(struct dm_cache_policy *p) in smq_residency()
1627 static void smq_tick(struct dm_cache_policy *p, bool can_block) in smq_tick()
1640 static void smq_allow_migrations(struct dm_cache_policy *p, bool allow) in smq_allow_migrations()
1652 static int mq_set_config_value(struct dm_cache_policy *p, in mq_set_config_value()
1672 static int mq_emit_config_values(struct dm_cache_policy *p, char *result, in mq_emit_config_values()
1731 static struct dm_cache_policy *
1840 static struct dm_cache_policy *smq_create(dm_cblock_t cache_size, in smq_create()
1848 static struct dm_cache_policy *mq_create(dm_cblock_t cache_size, in mq_create()
1856 static struct dm_cache_policy *cleaner_create(dm_cblock_t cache_size, in cleaner_create()