Lines Matching refs:dm_space_map
18 struct dm_space_map { struct
19 void (*destroy)(struct dm_space_map *sm); argument
24 int (*extend)(struct dm_space_map *sm, dm_block_t extra_blocks); argument
30 int (*get_nr_blocks)(struct dm_space_map *sm, dm_block_t *count); argument
40 int (*get_nr_free)(struct dm_space_map *sm, dm_block_t *count); argument
42 int (*get_count)(struct dm_space_map *sm, dm_block_t b, uint32_t *result); argument
43 int (*count_is_more_than_one)(struct dm_space_map *sm, dm_block_t b, argument
45 int (*set_count)(struct dm_space_map *sm, dm_block_t b, uint32_t count); argument
47 int (*commit)(struct dm_space_map *sm); argument
49 int (*inc_blocks)(struct dm_space_map *sm, dm_block_t b, dm_block_t e); argument
50 int (*dec_blocks)(struct dm_space_map *sm, dm_block_t b, dm_block_t e); argument
55 int (*new_block)(struct dm_space_map *sm, dm_block_t *b); argument
62 int (*root_size)(struct dm_space_map *sm, size_t *result); argument
63 int (*copy_root)(struct dm_space_map *sm, void *copy_to_here_le, size_t len); argument
69 int (*register_threshold_callback)(struct dm_space_map *sm, argument
77 static inline void dm_sm_destroy(struct dm_space_map *sm) in dm_sm_destroy()
82 static inline int dm_sm_extend(struct dm_space_map *sm, dm_block_t extra_blocks) in dm_sm_extend()
87 static inline int dm_sm_get_nr_blocks(struct dm_space_map *sm, dm_block_t *count) in dm_sm_get_nr_blocks()
92 static inline int dm_sm_get_nr_free(struct dm_space_map *sm, dm_block_t *count) in dm_sm_get_nr_free()
97 static inline int dm_sm_get_count(struct dm_space_map *sm, dm_block_t b, in dm_sm_get_count()
103 static inline int dm_sm_count_is_more_than_one(struct dm_space_map *sm, in dm_sm_count_is_more_than_one()
109 static inline int dm_sm_set_count(struct dm_space_map *sm, dm_block_t b, in dm_sm_set_count()
115 static inline int dm_sm_commit(struct dm_space_map *sm) in dm_sm_commit()
120 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()
125 static inline int dm_sm_inc_block(struct dm_space_map *sm, dm_block_t b) in dm_sm_inc_block()
130 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()
135 static inline int dm_sm_dec_block(struct dm_space_map *sm, dm_block_t b) in dm_sm_dec_block()
140 static inline int dm_sm_new_block(struct dm_space_map *sm, dm_block_t *b) in dm_sm_new_block()
145 static inline int dm_sm_root_size(struct dm_space_map *sm, size_t *result) in dm_sm_root_size()
150 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()
155 static inline int dm_sm_register_threshold_callback(struct dm_space_map *sm, in dm_sm_register_threshold_callback()