Lines Matching defs:mas
193 static void mas_set_height(struct ma_state *mas) in mas_set_height()
203 static unsigned int mas_mt_height(struct ma_state *mas) in mas_mt_height()
239 static inline void mas_set_err(struct ma_state *mas, long err) in mas_set_err()
244 static inline bool mas_is_ptr(const struct ma_state *mas) in mas_is_ptr()
249 static inline bool mas_is_start(const struct ma_state *mas) in mas_is_start()
254 bool mas_is_err(struct ma_state *mas) in mas_is_err()
259 static __always_inline bool mas_is_overflow(struct ma_state *mas) in mas_is_overflow()
267 static __always_inline bool mas_is_underflow(struct ma_state *mas) in mas_is_underflow()
275 static inline bool mas_searchable(struct ma_state *mas) in mas_searchable()
309 static inline struct maple_node *mas_mn(const struct ma_state *mas) in mas_mn()
373 static inline bool mas_is_root_limits(const struct ma_state *mas) in mas_is_root_limits()
452 enum maple_type mas_parent_type(struct ma_state *mas, struct maple_enode *enode) in mas_parent_type()
482 void mas_set_parent(struct ma_state *mas, struct maple_enode *enode, in mas_set_parent()
587 static inline unsigned long mas_allocated(const struct ma_state *mas) in mas_allocated()
605 static inline void mas_set_alloc_req(struct ma_state *mas, unsigned long count) in mas_set_alloc_req()
628 static inline unsigned int mas_alloc_req(const struct ma_state *mas) in mas_alloc_req()
689 static inline unsigned long mas_pivot(struct ma_state *mas, unsigned char piv) in mas_pivot()
722 mas_safe_pivot(const struct ma_state *mas, unsigned long *pivots, in mas_safe_pivot()
740 mas_safe_min(struct ma_state *mas, unsigned long *pivots, unsigned char offset) in mas_safe_min()
828 static inline void *mas_slot_locked(struct ma_state *mas, void __rcu **slots, in mas_slot_locked()
842 static inline void *mas_slot(struct ma_state *mas, void __rcu **slots, in mas_slot()
854 static inline void *mas_root(struct ma_state *mas) in mas_root()
870 static inline void *mas_root_locked(struct ma_state *mas) in mas_root_locked()
1011 static void mas_mat_destroy(struct ma_state *mas, struct ma_topiary *mat) in mas_mat_destroy()
1032 static inline void mas_descend(struct ma_state *mas) in mas_descend()
1077 static int mas_ascend(struct ma_state *mas) in mas_ascend()
1163 static inline struct maple_node *mas_pop_node(struct ma_state *mas) in mas_pop_node()
1210 static inline void mas_push_node(struct ma_state *mas, struct maple_node *used) in mas_push_node()
1245 static inline void mas_alloc_nodes(struct ma_state *mas, gfp_t gfp) in mas_alloc_nodes()
1322 static inline void mas_free(struct ma_state *mas, struct maple_enode *used) in mas_free()
1339 static void mas_node_count_gfp(struct ma_state *mas, int count, gfp_t gfp) in mas_node_count_gfp()
1357 static void mas_node_count(struct ma_state *mas, int count) in mas_node_count()
1375 static inline struct maple_enode *mas_start(struct ma_state *mas) in mas_start()
1460 static inline unsigned char mas_data_end(struct ma_state *mas) in mas_data_end()
1492 static unsigned long mas_leaf_max_gap(struct ma_state *mas) in mas_leaf_max_gap()
1598 static inline unsigned long mas_max_gap(struct ma_state *mas) in mas_max_gap()
1625 static inline void mas_parent_gap(struct ma_state *mas, unsigned char offset, in mas_parent_gap()
1676 static inline void mas_update_gap(struct ma_state *mas) in mas_update_gap()
1704 static inline void mas_adopt_children(struct ma_state *mas, in mas_adopt_children()
1727 static inline void mas_put_in_tree(struct ma_state *mas, in mas_put_in_tree()
1756 static inline void mas_replace_node(struct ma_state *mas, in mas_replace_node()
1769 static inline bool mas_find_child(struct ma_state *mas, struct ma_state *child) in mas_find_child()
1872 static inline int mab_calc_split(struct ma_state *mas, in mab_calc_split()
1942 static inline void mas_mab_cp(struct ma_state *mas, unsigned char mas_start, in mas_mab_cp()
2000 static inline void mas_leaf_set_meta(struct ma_state *mas, in mas_leaf_set_meta()
2024 struct ma_state *mas, bool new_max) in mab_mas_cp()
2077 static inline void mas_bulk_rebalance(struct ma_state *mas, unsigned char end, in mas_bulk_rebalance()
2108 struct ma_state *mas = wr_mas->mas; in mas_store_b_node() local
2173 static inline bool mas_prev_sibling(struct ma_state *mas) in mas_prev_sibling()
2195 static inline bool mas_next_sibling(struct ma_state *mas) in mas_next_sibling()
2237 struct ma_state *mas = wr_mas->mas; in mas_wr_node_walk() local
2383 *mas_new_ma_node(struct ma_state *mas, struct maple_big_node *b_node) in mas_new_ma_node()
2400 static inline unsigned char mas_mab_to_node(struct ma_state *mas, in mas_mab_to_node()
2435 struct ma_state *mas, in mab_set_b_end()
2457 static inline void mas_set_split_parent(struct ma_state *mas, in mas_set_split_parent()
2545 static inline void mas_topiary_node(struct ma_state *mas, in mas_topiary_node()
2578 static inline void mas_topiary_replace(struct ma_state *mas, in mas_topiary_replace()
2674 static inline void mas_wmb_replace(struct ma_state *mas, in mas_wmb_replace()
2783 static inline void *mtree_range_walk(struct ma_state *mas) in mtree_range_walk()
2863 static int mas_spanning_rebalance(struct ma_state *mas, in mas_spanning_rebalance()
2992 static inline int mas_rebalance(struct ma_state *mas, in mas_rebalance()
3049 static inline void mas_destroy_rebalance(struct ma_state *mas, unsigned char end) in mas_destroy_rebalance()
3171 struct ma_state *mas, int height) in mas_split_final_node()
3204 struct ma_state *mas, in mast_fill_bnode()
3248 struct ma_state *mas, unsigned char split) in mast_split_data()
3280 static inline bool mas_push_data(struct ma_state *mas, int height, in mas_push_data()
3348 static int mas_split(struct ma_state *mas, struct maple_big_node *b_node) in mas_split()
3506 static inline int mas_root_expand(struct ma_state *mas, void *entry) in mas_root_expand()
3548 static inline void mas_store_root(struct ma_state *mas, void *entry) in mas_store_root()
3628 struct ma_state *mas = wr_mas->mas; in mas_wr_walk() local
3648 struct ma_state *mas = wr_mas->mas; in mas_wr_walk_index() local
3701 static inline void *mas_state_walk(struct ma_state *mas) in mas_state_walk()
3724 static inline void *mtree_lookup_walk(struct ma_state *mas) in mtree_lookup_walk()
3776 static inline int mas_new_root(struct ma_state *mas, void *entry) in mas_new_root()
3826 struct ma_state *mas; in mas_wr_spanning_store() local
3923 struct ma_state *mas = wr_mas->mas; in mas_wr_node_store() local
4012 struct ma_state *mas = wr_mas->mas; in mas_wr_slot_store() local
4058 struct ma_state *mas = wr_mas->mas; in mas_wr_extend_null() local
4109 struct ma_state *mas = wr_mas->mas; in mas_wr_new_end() local
4136 struct ma_state *mas; in mas_wr_append() local
4203 struct ma_state *mas = wr_mas->mas; in mas_wr_modify() local
4248 struct ma_state *mas = wr_mas->mas; in mas_wr_store_entry() local
4281 static inline void *mas_insert(struct ma_state *mas, void *entry) in mas_insert()
4331 static inline void mas_rewalk(struct ma_state *mas, unsigned long index) in mas_rewalk()
4340 static inline bool mas_rewalk_if_dead(struct ma_state *mas, in mas_rewalk_if_dead()
4359 static inline int mas_prev_node(struct ma_state *mas, unsigned long min) in mas_prev_node()
4439 static void *mas_prev_slot(struct ma_state *mas, unsigned long min, bool empty, in mas_prev_slot()
4519 static inline int mas_next_node(struct ma_state *mas, struct maple_node *node, in mas_next_node()
4603 static void *mas_next_slot(struct ma_state *mas, unsigned long max, bool empty, in mas_next_slot()
4702 static inline void *mas_next_entry(struct ma_state *mas, unsigned long limit) in mas_next_entry()
4721 static bool mas_rev_awalk(struct ma_state *mas, unsigned long size, in mas_rev_awalk()
4808 static inline bool mas_anode_descend(struct ma_state *mas, unsigned long size) in mas_anode_descend()
4881 void *mas_walk(struct ma_state *mas) in mas_walk()
4910 static inline bool mas_rewind_node(struct ma_state *mas) in mas_rewind_node()
4935 static inline bool mas_skip_node(struct ma_state *mas) in mas_skip_node()
4963 static inline void mas_awalk(struct ma_state *mas, unsigned long size) in mas_awalk()
4991 static inline int mas_sparse_area(struct ma_state *mas, unsigned long min, in mas_sparse_area()
5023 int mas_empty_area(struct ma_state *mas, unsigned long min, in mas_empty_area()
5077 int mas_empty_area_rev(struct ma_state *mas, unsigned long min, in mas_empty_area_rev()
5393 void *mas_store(struct ma_state *mas, void *entry) in mas_store()
5430 int mas_store_gfp(struct ma_state *mas, void *entry, gfp_t gfp) in mas_store_gfp()
5454 void mas_store_prealloc(struct ma_state *mas, void *entry) in mas_store_prealloc()
5474 int mas_preallocate(struct ma_state *mas, void *entry, gfp_t gfp) in mas_preallocate()
5542 void mas_destroy(struct ma_state *mas) in mas_destroy()
5596 int mas_expected_entries(struct ma_state *mas, unsigned long nr_entries) in mas_expected_entries()
5646 static inline bool mas_next_setup(struct ma_state *mas, unsigned long max, in mas_next_setup()
5703 void *mas_next(struct ma_state *mas, unsigned long max) in mas_next()
5726 void *mas_next_range(struct ma_state *mas, unsigned long max) in mas_next_range()
5762 static inline bool mas_prev_setup(struct ma_state *mas, unsigned long min, in mas_prev_setup()
5827 void *mas_prev(struct ma_state *mas, unsigned long min) in mas_prev()
5850 void *mas_prev_range(struct ma_state *mas, unsigned long min) in mas_prev_range()
5898 void mas_pause(struct ma_state *mas) in mas_pause()
5912 static inline bool mas_find_setup(struct ma_state *mas, unsigned long max, in mas_find_setup()
5985 void *mas_find(struct ma_state *mas, unsigned long max) in mas_find()
6009 void *mas_find_range(struct ma_state *mas, unsigned long max) in mas_find_range()
6029 static inline bool mas_find_rev_setup(struct ma_state *mas, unsigned long min, in mas_find_rev_setup()
6110 void *mas_find_rev(struct ma_state *mas, unsigned long min) in mas_find_rev()
6136 void *mas_find_range_rev(struct ma_state *mas, unsigned long min) in mas_find_range_rev()
6159 void *mas_erase(struct ma_state *mas) in mas_erase()
6191 bool mas_nomem(struct ma_state *mas, gfp_t gfp) in mas_nomem()
6631 static inline int mas_dead_node(struct ma_state *mas, unsigned long index) in mas_dead_node()
6670 static inline struct maple_enode *mas_get_slot(struct ma_state *mas, in mas_get_slot()
6678 static void mas_dfs_postorder(struct ma_state *mas, unsigned long max) in mas_dfs_postorder()
6912 static void mas_validate_gaps(struct ma_state *mas) in mas_validate_gaps()
7003 static void mas_validate_parent_slot(struct ma_state *mas) in mas_validate_parent_slot()
7038 static void mas_validate_child_slot(struct ma_state *mas) in mas_validate_child_slot()
7082 static void mas_validate_limits(struct ma_state *mas) in mas_validate_limits()
7227 void mas_dump(const struct ma_state *mas) in mas_dump()