Lines Matching refs:dm_cache_policy
40 struct dm_cache_policy { struct
44 void (*destroy)(struct dm_cache_policy *p); argument
57 int (*lookup)(struct dm_cache_policy *p, dm_oblock_t oblock, dm_cblock_t *cblock, argument
69 int (*lookup_with_work)(struct dm_cache_policy *p, argument
78 int (*get_background_work)(struct dm_cache_policy *p, bool idle, argument
85 void (*complete_background_work)(struct dm_cache_policy *p, argument
89 void (*set_dirty)(struct dm_cache_policy *p, dm_cblock_t cblock); argument
90 void (*clear_dirty)(struct dm_cache_policy *p, dm_cblock_t cblock); argument
96 int (*load_mapping)(struct dm_cache_policy *p, dm_oblock_t oblock, argument
104 int (*invalidate_mapping)(struct dm_cache_policy *p, dm_cblock_t cblock); argument
110 uint32_t (*get_hint)(struct dm_cache_policy *p, dm_cblock_t cblock); argument
115 dm_cblock_t (*residency)(struct dm_cache_policy *p); argument
126 void (*tick)(struct dm_cache_policy *p, bool can_block); argument
131 int (*emit_config_values)(struct dm_cache_policy *p, char *result, argument
133 int (*set_config_value)(struct dm_cache_policy *p, argument
136 void (*allow_migrations)(struct dm_cache_policy *p, bool allow); argument
177 struct dm_cache_policy *(*create)(dm_cblock_t cache_size,