Lines Matching refs:dm_space_map
19 struct dm_space_map { struct
20 void (*destroy)(struct dm_space_map *sm); argument
25 int (*extend)(struct dm_space_map *sm, dm_block_t extra_blocks); argument
31 int (*get_nr_blocks)(struct dm_space_map *sm, dm_block_t *count); argument
41 int (*get_nr_free)(struct dm_space_map *sm, dm_block_t *count); argument
43 int (*get_count)(struct dm_space_map *sm, dm_block_t b, uint32_t *result); argument
44 int (*count_is_more_than_one)(struct dm_space_map *sm, dm_block_t b, argument
46 int (*set_count)(struct dm_space_map *sm, dm_block_t b, uint32_t count); argument
48 int (*commit)(struct dm_space_map *sm); argument
50 int (*inc_blocks)(struct dm_space_map *sm, dm_block_t b, dm_block_t e); argument
51 int (*dec_blocks)(struct dm_space_map *sm, dm_block_t b, dm_block_t e); argument
56 int (*new_block)(struct dm_space_map *sm, dm_block_t *b); argument
63 int (*root_size)(struct dm_space_map *sm, size_t *result); argument
64 int (*copy_root)(struct dm_space_map *sm, void *copy_to_here_le, size_t len); argument
70 int (*register_threshold_callback)(struct dm_space_map *sm, argument
78 static inline void dm_sm_destroy(struct dm_space_map *sm) in dm_sm_destroy()
84 static inline int dm_sm_extend(struct dm_space_map *sm, dm_block_t extra_blocks) in dm_sm_extend()
89 static inline int dm_sm_get_nr_blocks(struct dm_space_map *sm, dm_block_t *count) in dm_sm_get_nr_blocks()
94 static inline int dm_sm_get_nr_free(struct dm_space_map *sm, dm_block_t *count) in dm_sm_get_nr_free()
99 static inline int dm_sm_get_count(struct dm_space_map *sm, dm_block_t b, in dm_sm_get_count()
105 static inline int dm_sm_count_is_more_than_one(struct dm_space_map *sm, in dm_sm_count_is_more_than_one()
111 static inline int dm_sm_set_count(struct dm_space_map *sm, dm_block_t b, in dm_sm_set_count()
117 static inline int dm_sm_commit(struct dm_space_map *sm) in dm_sm_commit()
122 static inline int dm_sm_inc_blocks(struct dm_space_map *sm, dm_block_t b, dm_block_t e) in dm_sm_inc_blocks()
127 static inline int dm_sm_inc_block(struct dm_space_map *sm, dm_block_t b) in dm_sm_inc_block()
132 static inline int dm_sm_dec_blocks(struct dm_space_map *sm, dm_block_t b, dm_block_t e) in dm_sm_dec_blocks()
137 static inline int dm_sm_dec_block(struct dm_space_map *sm, dm_block_t b) in dm_sm_dec_block()
142 static inline int dm_sm_new_block(struct dm_space_map *sm, dm_block_t *b) in dm_sm_new_block()
147 static inline int dm_sm_root_size(struct dm_space_map *sm, size_t *result) in dm_sm_root_size()
152 static inline int dm_sm_copy_root(struct dm_space_map *sm, void *copy_to_here_le, size_t len) in dm_sm_copy_root()
157 static inline int dm_sm_register_threshold_callback(struct dm_space_map *sm, in dm_sm_register_threshold_callback()