Lines Matching defs:mas
200 static void mas_set_height(struct ma_state *mas) in mas_set_height()
210 static unsigned int mas_mt_height(struct ma_state *mas) in mas_mt_height()
252 static __always_inline void mas_set_err(struct ma_state *mas, long err) in mas_set_err()
258 static __always_inline bool mas_is_ptr(const struct ma_state *mas) in mas_is_ptr()
263 static __always_inline bool mas_is_start(const struct ma_state *mas) in mas_is_start()
268 static __always_inline bool mas_is_none(const struct ma_state *mas) in mas_is_none()
273 static __always_inline bool mas_is_paused(const struct ma_state *mas) in mas_is_paused()
278 static __always_inline bool mas_is_overflow(struct ma_state *mas) in mas_is_overflow()
283 static inline bool mas_is_underflow(struct ma_state *mas) in mas_is_underflow()
312 static inline struct maple_node *mas_mn(const struct ma_state *mas) in mas_mn()
376 static inline bool mas_is_root_limits(const struct ma_state *mas) in mas_is_root_limits()
455 enum maple_type mas_parent_type(struct ma_state *mas, struct maple_enode *enode) in mas_parent_type()
485 void mas_set_parent(struct ma_state *mas, struct maple_enode *enode, in mas_set_parent()
592 static inline unsigned long mas_allocated(const struct ma_state *mas) in mas_allocated()
610 static inline void mas_set_alloc_req(struct ma_state *mas, unsigned long count) in mas_set_alloc_req()
633 static inline unsigned int mas_alloc_req(const struct ma_state *mas) in mas_alloc_req()
698 mas_safe_pivot(const struct ma_state *mas, unsigned long *pivots, in mas_safe_pivot()
716 mas_safe_min(struct ma_state *mas, unsigned long *pivots, unsigned char offset) in mas_safe_min()
804 static __always_inline void *mas_slot_locked(struct ma_state *mas, in mas_slot_locked()
818 static __always_inline void *mas_slot(struct ma_state *mas, void __rcu **slots, in mas_slot()
830 static __always_inline void *mas_root(struct ma_state *mas) in mas_root()
846 static inline void *mas_root_locked(struct ma_state *mas) in mas_root_locked()
985 static void mas_mat_destroy(struct ma_state *mas, struct ma_topiary *mat) in mas_mat_destroy()
1006 static inline void mas_descend(struct ma_state *mas) in mas_descend()
1051 static int mas_ascend(struct ma_state *mas) in mas_ascend()
1139 static inline struct maple_node *mas_pop_node(struct ma_state *mas) in mas_pop_node()
1186 static inline void mas_push_node(struct ma_state *mas, struct maple_node *used) in mas_push_node()
1221 static inline void mas_alloc_nodes(struct ma_state *mas, gfp_t gfp) in mas_alloc_nodes()
1299 static inline void mas_free(struct ma_state *mas, struct maple_enode *used) in mas_free()
1316 static void mas_node_count_gfp(struct ma_state *mas, int count, gfp_t gfp) in mas_node_count_gfp()
1334 static void mas_node_count(struct ma_state *mas, int count) in mas_node_count()
1352 static inline struct maple_enode *mas_start(struct ma_state *mas) in mas_start()
1437 static inline unsigned char mas_data_end(struct ma_state *mas) in mas_data_end()
1469 static unsigned long mas_leaf_max_gap(struct ma_state *mas) in mas_leaf_max_gap()
1578 static inline unsigned long mas_max_gap(struct ma_state *mas) in mas_max_gap()
1605 static inline void mas_parent_gap(struct ma_state *mas, unsigned char offset, in mas_parent_gap()
1656 static inline void mas_update_gap(struct ma_state *mas) in mas_update_gap()
1684 static inline void mas_adopt_children(struct ma_state *mas, in mas_adopt_children()
1707 static inline void mas_put_in_tree(struct ma_state *mas, in mas_put_in_tree()
1736 static inline void mas_replace_node(struct ma_state *mas, in mas_replace_node()
1749 static inline bool mas_find_child(struct ma_state *mas, struct ma_state *child) in mas_find_child()
1852 static inline int mab_calc_split(struct ma_state *mas, in mab_calc_split()
1922 static inline void mas_mab_cp(struct ma_state *mas, unsigned char mas_start, in mas_mab_cp()
1990 struct ma_state *mas, bool new_max) in mab_mas_cp()
2043 static inline void mas_bulk_rebalance(struct ma_state *mas, unsigned char end, in mas_bulk_rebalance()
2074 struct ma_state *mas = wr_mas->mas; in mas_store_b_node() local
2139 static inline bool mas_prev_sibling(struct ma_state *mas) in mas_prev_sibling()
2161 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()
2205 struct ma_state *mas = wr_mas->mas; in mas_wr_node_walk() local
2351 *mas_new_ma_node(struct ma_state *mas, struct maple_big_node *b_node) in mas_new_ma_node()
2368 static inline unsigned char mas_mab_to_node(struct ma_state *mas, in mas_mab_to_node()
2403 struct ma_state *mas, in mab_set_b_end()
2425 static inline void mas_set_split_parent(struct ma_state *mas, in mas_set_split_parent()
2513 static inline void mas_topiary_node(struct ma_state *mas, in mas_topiary_node()
2548 static inline void mas_topiary_replace(struct ma_state *mas, in mas_topiary_replace()
2644 static inline void mas_wmb_replace(struct ma_state *mas, in mas_wmb_replace()
2753 static inline void *mtree_range_walk(struct ma_state *mas) in mtree_range_walk()
2831 static int mas_spanning_rebalance(struct ma_state *mas, in mas_spanning_rebalance()
2960 static inline int mas_rebalance(struct ma_state *mas, in mas_rebalance()
3017 static inline void mas_destroy_rebalance(struct ma_state *mas, unsigned char end) in mas_destroy_rebalance()
3139 struct ma_state *mas, int height) in mas_split_final_node()
3171 struct ma_state *mas, in mast_fill_bnode()
3215 struct ma_state *mas, unsigned char split) in mast_split_data()
3247 static inline bool mas_push_data(struct ma_state *mas, int height, in mas_push_data()
3315 static int mas_split(struct ma_state *mas, struct maple_big_node *b_node) in mas_split()
3473 static inline int mas_root_expand(struct ma_state *mas, void *entry) in mas_root_expand()
3516 static inline void mas_store_root(struct ma_state *mas, void *entry) in mas_store_root()
3596 struct ma_state *mas = wr_mas->mas; in mas_wr_walk() local
3616 struct ma_state *mas = wr_mas->mas; in mas_wr_walk_index() local
3669 static inline void *mas_state_walk(struct ma_state *mas) in mas_state_walk()
3692 static inline void *mtree_lookup_walk(struct ma_state *mas) in mtree_lookup_walk()
3738 static inline int mas_new_root(struct ma_state *mas, void *entry) in mas_new_root()
3789 struct ma_state *mas; in mas_wr_spanning_store() local
3886 struct ma_state *mas = wr_mas->mas; in mas_wr_node_store() local
3976 struct ma_state *mas = wr_mas->mas; in mas_wr_slot_store() local
4022 struct ma_state *mas = wr_mas->mas; in mas_wr_extend_null() local
4073 struct ma_state *mas = wr_mas->mas; in mas_wr_new_end() local
4100 struct ma_state *mas; in mas_wr_append() local
4165 struct ma_state *mas = wr_mas->mas; in mas_wr_modify() local
4210 struct ma_state *mas = wr_mas->mas; in mas_wr_store_entry() local
4243 static inline void *mas_insert(struct ma_state *mas, void *entry) in mas_insert()
4293 static __always_inline void mas_rewalk(struct ma_state *mas, unsigned long index) in mas_rewalk()
4302 static __always_inline bool mas_rewalk_if_dead(struct ma_state *mas, in mas_rewalk_if_dead()
4323 static int mas_prev_node(struct ma_state *mas, unsigned long min) in mas_prev_node()
4404 static void *mas_prev_slot(struct ma_state *mas, unsigned long min, bool empty) in mas_prev_slot()
4489 static int mas_next_node(struct ma_state *mas, struct maple_node *node, in mas_next_node()
4578 static void *mas_next_slot(struct ma_state *mas, unsigned long max, bool empty) in mas_next_slot()
4675 static inline void *mas_next_entry(struct ma_state *mas, unsigned long limit) in mas_next_entry()
4694 static bool mas_rev_awalk(struct ma_state *mas, unsigned long size, in mas_rev_awalk()
4781 static inline bool mas_anode_descend(struct ma_state *mas, unsigned long size) in mas_anode_descend()
4854 void *mas_walk(struct ma_state *mas) in mas_walk()
4883 static inline bool mas_rewind_node(struct ma_state *mas) in mas_rewind_node()
4908 static inline bool mas_skip_node(struct ma_state *mas) in mas_skip_node()
4936 static inline void mas_awalk(struct ma_state *mas, unsigned long size) in mas_awalk()
4964 static inline int mas_sparse_area(struct ma_state *mas, unsigned long min, in mas_sparse_area()
4996 int mas_empty_area(struct ma_state *mas, unsigned long min, in mas_empty_area()
5053 int mas_empty_area_rev(struct ma_state *mas, unsigned long min, in mas_empty_area_rev()
5370 void *mas_store(struct ma_state *mas, void *entry) in mas_store()
5407 int mas_store_gfp(struct ma_state *mas, void *entry, gfp_t gfp) in mas_store_gfp()
5431 void mas_store_prealloc(struct ma_state *mas, void *entry) in mas_store_prealloc()
5451 int mas_preallocate(struct ma_state *mas, void *entry, gfp_t gfp) in mas_preallocate()
5530 void mas_destroy(struct ma_state *mas) in mas_destroy()
5584 int mas_expected_entries(struct ma_state *mas, unsigned long nr_entries) in mas_expected_entries()
5634 static bool mas_next_setup(struct ma_state *mas, unsigned long max, in mas_next_setup()
5704 void *mas_next(struct ma_state *mas, unsigned long max) in mas_next()
5727 void *mas_next_range(struct ma_state *mas, unsigned long max) in mas_next_range()
5763 static bool mas_prev_setup(struct ma_state *mas, unsigned long min, void **entry) in mas_prev_setup()
5835 void *mas_prev(struct ma_state *mas, unsigned long min) in mas_prev()
5858 void *mas_prev_range(struct ma_state *mas, unsigned long min) in mas_prev_range()
5906 void mas_pause(struct ma_state *mas) in mas_pause()
5921 static __always_inline bool mas_find_setup(struct ma_state *mas, unsigned long max, void **entry) in mas_find_setup()
6012 void *mas_find(struct ma_state *mas, unsigned long max) in mas_find()
6039 void *mas_find_range(struct ma_state *mas, unsigned long max) in mas_find_range()
6059 static bool mas_find_rev_setup(struct ma_state *mas, unsigned long min, in mas_find_rev_setup()
6151 void *mas_find_rev(struct ma_state *mas, unsigned long min) in mas_find_rev()
6177 void *mas_find_range_rev(struct ma_state *mas, unsigned long min) in mas_find_range_rev()
6200 void *mas_erase(struct ma_state *mas) in mas_erase()
6232 bool mas_nomem(struct ma_state *mas, gfp_t gfp) in mas_nomem()
6518 static void mas_dup_free(struct ma_state *mas) in mas_dup_free()
6563 static inline void mas_copy_node(struct ma_state *mas, struct ma_state *new_mas, in mas_copy_node()
6586 static inline void mas_dup_alloc(struct ma_state *mas, struct ma_state *new_mas, in mas_dup_alloc()
6630 static inline void mas_dup_build(struct ma_state *mas, struct ma_state *new_mas, in mas_dup_build()
6963 static inline struct maple_enode *mas_get_slot(struct ma_state *mas, in mas_get_slot()
6971 static void mas_dfs_postorder(struct ma_state *mas, unsigned long max) in mas_dfs_postorder()
7200 static void mas_validate_gaps(struct ma_state *mas) in mas_validate_gaps()
7291 static void mas_validate_parent_slot(struct ma_state *mas) in mas_validate_parent_slot()
7326 static void mas_validate_child_slot(struct ma_state *mas) in mas_validate_child_slot()
7370 static void mas_validate_limits(struct ma_state *mas) in mas_validate_limits()
7515 void mas_dump(const struct ma_state *mas) in mas_dump()