Lines Matching defs:mas

214 static void mas_set_height(struct ma_state *mas)  in mas_set_height()
224 static unsigned int mas_mt_height(struct ma_state *mas) in mas_mt_height()
266 static __always_inline void mas_set_err(struct ma_state *mas, long err) in mas_set_err()
272 static __always_inline bool mas_is_ptr(const struct ma_state *mas) in mas_is_ptr()
277 static __always_inline bool mas_is_start(const struct ma_state *mas) in mas_is_start()
282 static __always_inline bool mas_is_none(const struct ma_state *mas) in mas_is_none()
287 static __always_inline bool mas_is_paused(const struct ma_state *mas) in mas_is_paused()
292 static __always_inline bool mas_is_overflow(struct ma_state *mas) in mas_is_overflow()
297 static inline bool mas_is_underflow(struct ma_state *mas) in mas_is_underflow()
326 static inline struct maple_node *mas_mn(const struct ma_state *mas) in mas_mn()
390 static inline bool mas_is_root_limits(const struct ma_state *mas) in mas_is_root_limits()
469 enum maple_type mas_parent_type(struct ma_state *mas, struct maple_enode *enode) in mas_parent_type()
500 void mas_set_parent(struct ma_state *mas, struct maple_enode *enode, in mas_set_parent()
607 static inline unsigned long mas_allocated(const struct ma_state *mas) in mas_allocated()
625 static inline void mas_set_alloc_req(struct ma_state *mas, unsigned long count) in mas_set_alloc_req()
648 static inline unsigned int mas_alloc_req(const struct ma_state *mas) in mas_alloc_req()
713 mas_safe_pivot(const struct ma_state *mas, unsigned long *pivots, in mas_safe_pivot()
731 mas_safe_min(struct ma_state *mas, unsigned long *pivots, unsigned char offset) in mas_safe_min()
819 static __always_inline void *mas_slot_locked(struct ma_state *mas, in mas_slot_locked()
833 static __always_inline void *mas_slot(struct ma_state *mas, void __rcu **slots, in mas_slot()
845 static __always_inline void *mas_root(struct ma_state *mas) in mas_root()
861 static inline void *mas_root_locked(struct ma_state *mas) in mas_root_locked()
998 static void mas_mat_destroy(struct ma_state *mas, struct ma_topiary *mat) in mas_mat_destroy()
1019 static inline void mas_descend(struct ma_state *mas) in mas_descend()
1064 static int mas_ascend(struct ma_state *mas) in mas_ascend()
1152 static inline struct maple_node *mas_pop_node(struct ma_state *mas) in mas_pop_node()
1199 static inline void mas_push_node(struct ma_state *mas, struct maple_node *used) in mas_push_node()
1232 static inline void mas_alloc_nodes(struct ma_state *mas, gfp_t gfp) in mas_alloc_nodes()
1312 static inline void mas_free(struct ma_state *mas, struct maple_enode *used) in mas_free()
1329 static void mas_node_count_gfp(struct ma_state *mas, int count, gfp_t gfp) in mas_node_count_gfp()
1347 static void mas_node_count(struct ma_state *mas, int count) in mas_node_count()
1365 static inline struct maple_enode *mas_start(struct ma_state *mas) in mas_start()
1450 static inline unsigned char mas_data_end(struct ma_state *mas) in mas_data_end()
1482 static unsigned long mas_leaf_max_gap(struct ma_state *mas) in mas_leaf_max_gap()
1591 static inline unsigned long mas_max_gap(struct ma_state *mas) in mas_max_gap()
1618 static inline void mas_parent_gap(struct ma_state *mas, unsigned char offset, in mas_parent_gap()
1669 static inline void mas_update_gap(struct ma_state *mas) in mas_update_gap()
1697 static inline void mas_adopt_children(struct ma_state *mas, in mas_adopt_children()
1720 static inline void mas_put_in_tree(struct ma_state *mas, in mas_put_in_tree()
1749 static inline void mas_replace_node(struct ma_state *mas, in mas_replace_node()
1762 static inline bool mas_find_child(struct ma_state *mas, struct ma_state *child) in mas_find_child()
1865 static inline int mab_calc_split(struct ma_state *mas, in mab_calc_split()
1924 static inline void mas_mab_cp(struct ma_state *mas, unsigned char mas_start, in mas_mab_cp()
1991 struct ma_state *mas, bool new_max) in mab_mas_cp()
2044 static inline void mas_bulk_rebalance(struct ma_state *mas, unsigned char end, in mas_bulk_rebalance()
2075 struct ma_state *mas = wr_mas->mas; in mas_store_b_node() local
2140 static inline bool mas_prev_sibling(struct ma_state *mas) in mas_prev_sibling()
2160 static inline bool mas_next_sibling(struct ma_state *mas) in mas_next_sibling()
2185 static inline void mas_node_or_none(struct ma_state *mas, in mas_node_or_none()
2207 struct ma_state *mas = wr_mas->mas; in mas_wr_node_walk() local
2349 *mas_new_ma_node(struct ma_state *mas, struct maple_big_node *b_node) in mas_new_ma_node()
2366 static inline unsigned char mas_mab_to_node(struct ma_state *mas, in mas_mab_to_node()
2401 struct ma_state *mas, in mab_set_b_end()
2423 static inline void mas_set_split_parent(struct ma_state *mas, in mas_set_split_parent()
2510 static inline void mas_topiary_node(struct ma_state *mas, in mas_topiary_node()
2545 static inline void mas_topiary_replace(struct ma_state *mas, in mas_topiary_replace()
2641 static inline void mas_wmb_replace(struct ma_state *mas, in mas_wmb_replace()
2750 static inline void *mtree_range_walk(struct ma_state *mas) in mtree_range_walk()
2826 static void mas_spanning_rebalance(struct ma_state *mas, in mas_spanning_rebalance()
2953 static inline void mas_rebalance(struct ma_state *mas, in mas_rebalance()
3007 static inline void mas_destroy_rebalance(struct ma_state *mas, unsigned char end) in mas_destroy_rebalance()
3124 struct ma_state *mas, int height) in mas_split_final_node()
3156 struct ma_state *mas, in mast_fill_bnode()
3197 struct ma_state *mas, unsigned char split) in mast_split_data()
3229 static inline bool mas_push_data(struct ma_state *mas, int height, in mas_push_data()
3296 static void mas_split(struct ma_state *mas, struct maple_big_node *b_node) in mas_split()
3400 static inline void mas_root_expand(struct ma_state *mas, void *entry) in mas_root_expand()
3447 static inline void mas_store_root(struct ma_state *mas, void *entry) in mas_store_root()
3527 struct ma_state *mas = wr_mas->mas; in mas_wr_walk() local
3547 struct ma_state *mas = wr_mas->mas; in mas_wr_walk_index() local
3598 static inline void *mas_state_walk(struct ma_state *mas) in mas_state_walk()
3621 static inline void *mtree_lookup_walk(struct ma_state *mas) in mtree_lookup_walk()
3665 static inline void mas_new_root(struct ma_state *mas, void *entry) in mas_new_root()
3712 struct ma_state *mas; in mas_wr_spanning_store() local
3804 struct ma_state *mas = wr_mas->mas; in mas_wr_node_store() local
3883 struct ma_state *mas = wr_mas->mas; in mas_wr_slot_store() local
3928 struct ma_state *mas = wr_mas->mas; in mas_wr_extend_null() local
3976 struct ma_state *mas = wr_mas->mas; in mas_wr_new_end() local
4001 struct ma_state *mas = wr_mas->mas; in mas_wr_append() local
4062 struct ma_state *mas = wr_mas->mas; in mas_wr_store_entry() local
4103 struct ma_state *mas = wr_mas->mas; in mas_wr_prealloc_setup() local
4152 static inline int mas_prealloc_calc(struct ma_state *mas, void *entry) in mas_prealloc_calc()
4201 struct ma_state *mas = wr_mas->mas; in mas_wr_store_type() local
4250 struct ma_state *mas = wr_mas->mas; in mas_wr_preallocate() local
4270 static inline void *mas_insert(struct ma_state *mas, void *entry) in mas_insert()
4332 int mas_alloc_cyclic(struct ma_state *mas, unsigned long *startp, in mas_alloc_cyclic()
4370 static __always_inline void mas_rewalk(struct ma_state *mas, unsigned long index) in mas_rewalk()
4379 static __always_inline bool mas_rewalk_if_dead(struct ma_state *mas, in mas_rewalk_if_dead()
4400 static int mas_prev_node(struct ma_state *mas, unsigned long min) in mas_prev_node()
4480 static void *mas_prev_slot(struct ma_state *mas, unsigned long min, bool empty) in mas_prev_slot()
4566 static int mas_next_node(struct ma_state *mas, struct maple_node *node, in mas_next_node()
4653 static void *mas_next_slot(struct ma_state *mas, unsigned long max, bool empty) in mas_next_slot()
4746 static bool mas_rev_awalk(struct ma_state *mas, unsigned long size, in mas_rev_awalk()
4833 static inline bool mas_anode_descend(struct ma_state *mas, unsigned long size) in mas_anode_descend()
4902 void *mas_walk(struct ma_state *mas) in mas_walk()
4931 static inline bool mas_rewind_node(struct ma_state *mas) in mas_rewind_node()
4956 static inline bool mas_skip_node(struct ma_state *mas) in mas_skip_node()
4984 static inline void mas_awalk(struct ma_state *mas, unsigned long size) in mas_awalk()
5012 static inline int mas_sparse_area(struct ma_state *mas, unsigned long min, in mas_sparse_area()
5044 int mas_empty_area(struct ma_state *mas, unsigned long min, in mas_empty_area()
5098 int mas_empty_area_rev(struct ma_state *mas, unsigned long min, in mas_empty_area_rev()
5372 void *mas_store(struct ma_state *mas, void *entry) in mas_store()
5428 int mas_store_gfp(struct ma_state *mas, void *entry, gfp_t gfp) in mas_store_gfp()
5461 void mas_store_prealloc(struct ma_state *mas, void *entry) in mas_store_prealloc()
5493 int mas_preallocate(struct ma_state *mas, void *entry, gfp_t gfp) in mas_preallocate()
5527 void mas_destroy(struct ma_state *mas) in mas_destroy()
5582 int mas_expected_entries(struct ma_state *mas, unsigned long nr_entries) in mas_expected_entries()
5632 static bool mas_next_setup(struct ma_state *mas, unsigned long max, in mas_next_setup()
5702 void *mas_next(struct ma_state *mas, unsigned long max) in mas_next()
5725 void *mas_next_range(struct ma_state *mas, unsigned long max) in mas_next_range()
5761 static bool mas_prev_setup(struct ma_state *mas, unsigned long min, void **entry) in mas_prev_setup()
5833 void *mas_prev(struct ma_state *mas, unsigned long min) in mas_prev()
5856 void *mas_prev_range(struct ma_state *mas, unsigned long min) in mas_prev_range()
5904 void mas_pause(struct ma_state *mas) in mas_pause()
5919 static __always_inline bool mas_find_setup(struct ma_state *mas, unsigned long max, void **entry) in mas_find_setup()
6010 void *mas_find(struct ma_state *mas, unsigned long max) in mas_find()
6037 void *mas_find_range(struct ma_state *mas, unsigned long max) in mas_find_range()
6057 static bool mas_find_rev_setup(struct ma_state *mas, unsigned long min, in mas_find_rev_setup()
6149 void *mas_find_rev(struct ma_state *mas, unsigned long min) in mas_find_rev()
6175 void *mas_find_range_rev(struct ma_state *mas, unsigned long min) in mas_find_range_rev()
6198 void *mas_erase(struct ma_state *mas) in mas_erase()
6238 bool mas_nomem(struct ma_state *mas, gfp_t gfp) in mas_nomem()
6563 static void mas_dup_free(struct ma_state *mas) in mas_dup_free()
6608 static inline void mas_copy_node(struct ma_state *mas, struct ma_state *new_mas, in mas_copy_node()
6631 static inline void mas_dup_alloc(struct ma_state *mas, struct ma_state *new_mas, in mas_dup_alloc()
6675 static inline void mas_dup_build(struct ma_state *mas, struct ma_state *new_mas, in mas_dup_build()
7021 static inline struct maple_enode *mas_get_slot(struct ma_state *mas, in mas_get_slot()
7029 static void mas_dfs_postorder(struct ma_state *mas, unsigned long max) in mas_dfs_postorder()
7262 static void mas_validate_gaps(struct ma_state *mas) in mas_validate_gaps()
7353 static void mas_validate_parent_slot(struct ma_state *mas) in mas_validate_parent_slot()
7388 static void mas_validate_child_slot(struct ma_state *mas) in mas_validate_child_slot()
7432 static void mas_validate_limits(struct ma_state *mas) in mas_validate_limits()
7575 void mas_dump(const struct ma_state *mas) in mas_dump()