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()
604 static inline unsigned long mas_allocated(const struct ma_state *mas) in mas_allocated()
622 static inline void mas_set_alloc_req(struct ma_state *mas, unsigned long count) in mas_set_alloc_req()
645 static inline unsigned int mas_alloc_req(const struct ma_state *mas) in mas_alloc_req()
710 mas_safe_pivot(const struct ma_state *mas, unsigned long *pivots, in mas_safe_pivot()
728 mas_safe_min(struct ma_state *mas, unsigned long *pivots, unsigned char offset) in mas_safe_min()
816 static __always_inline void *mas_slot_locked(struct ma_state *mas, in mas_slot_locked()
830 static __always_inline void *mas_slot(struct ma_state *mas, void __rcu **slots, in mas_slot()
842 static __always_inline void *mas_root(struct ma_state *mas) in mas_root()
858 static inline void *mas_root_locked(struct ma_state *mas) in mas_root_locked()
995 static void mas_mat_destroy(struct ma_state *mas, struct ma_topiary *mat) in mas_mat_destroy()
1016 static inline void mas_descend(struct ma_state *mas) in mas_descend()
1061 static int mas_ascend(struct ma_state *mas) in mas_ascend()
1149 static inline struct maple_node *mas_pop_node(struct ma_state *mas) in mas_pop_node()
1196 static inline void mas_push_node(struct ma_state *mas, struct maple_node *used) in mas_push_node()
1229 static inline void mas_alloc_nodes(struct ma_state *mas, gfp_t gfp) in mas_alloc_nodes()
1308 static inline void mas_free(struct ma_state *mas, struct maple_enode *used) in mas_free()
1325 static void mas_node_count_gfp(struct ma_state *mas, int count, gfp_t gfp) in mas_node_count_gfp()
1343 static void mas_node_count(struct ma_state *mas, int count) in mas_node_count()
1361 static inline struct maple_enode *mas_start(struct ma_state *mas) in mas_start()
1446 static inline unsigned char mas_data_end(struct ma_state *mas) in mas_data_end()
1478 static unsigned long mas_leaf_max_gap(struct ma_state *mas) in mas_leaf_max_gap()
1587 static inline unsigned long mas_max_gap(struct ma_state *mas) in mas_max_gap()
1614 static inline void mas_parent_gap(struct ma_state *mas, unsigned char offset, in mas_parent_gap()
1665 static inline void mas_update_gap(struct ma_state *mas) in mas_update_gap()
1693 static inline void mas_adopt_children(struct ma_state *mas, in mas_adopt_children()
1716 static inline void mas_put_in_tree(struct ma_state *mas, in mas_put_in_tree()
1745 static inline void mas_replace_node(struct ma_state *mas, in mas_replace_node()
1758 static inline bool mas_find_child(struct ma_state *mas, struct ma_state *child) in mas_find_child()
1861 static inline int mab_calc_split(struct ma_state *mas, in mab_calc_split()
1920 static inline void mas_mab_cp(struct ma_state *mas, unsigned char mas_start, in mas_mab_cp()
1987 struct ma_state *mas, bool new_max) in mab_mas_cp()
2040 static inline void mas_bulk_rebalance(struct ma_state *mas, unsigned char end, in mas_bulk_rebalance()
2071 struct ma_state *mas = wr_mas->mas; in mas_store_b_node() local
2136 static inline bool mas_prev_sibling(struct ma_state *mas) in mas_prev_sibling()
2156 static inline bool mas_next_sibling(struct ma_state *mas) in mas_next_sibling()
2181 static inline void mas_node_or_none(struct ma_state *mas, in mas_node_or_none()
2203 struct ma_state *mas = wr_mas->mas; in mas_wr_node_walk() local
2345 *mas_new_ma_node(struct ma_state *mas, struct maple_big_node *b_node) in mas_new_ma_node()
2362 static inline unsigned char mas_mab_to_node(struct ma_state *mas, in mas_mab_to_node()
2397 struct ma_state *mas, in mab_set_b_end()
2419 static inline void mas_set_split_parent(struct ma_state *mas, in mas_set_split_parent()
2506 static inline void mas_topiary_node(struct ma_state *mas, in mas_topiary_node()
2541 static inline void mas_topiary_replace(struct ma_state *mas, in mas_topiary_replace()
2637 static inline void mas_wmb_replace(struct ma_state *mas, in mas_wmb_replace()
2746 static inline void *mtree_range_walk(struct ma_state *mas) in mtree_range_walk()
2822 static void mas_spanning_rebalance(struct ma_state *mas, in mas_spanning_rebalance()
2949 static inline void mas_rebalance(struct ma_state *mas, in mas_rebalance()
3003 static inline void mas_destroy_rebalance(struct ma_state *mas, unsigned char end) in mas_destroy_rebalance()
3120 struct ma_state *mas, int height) in mas_split_final_node()
3152 struct ma_state *mas, in mast_fill_bnode()
3193 struct ma_state *mas, unsigned char split) in mast_split_data()
3225 static inline bool mas_push_data(struct ma_state *mas, int height, in mas_push_data()
3292 static void mas_split(struct ma_state *mas, struct maple_big_node *b_node) in mas_split()
3396 static inline void mas_root_expand(struct ma_state *mas, void *entry) in mas_root_expand()
3443 static inline void mas_store_root(struct ma_state *mas, void *entry) in mas_store_root()
3523 struct ma_state *mas = wr_mas->mas; in mas_wr_walk() local
3543 struct ma_state *mas = wr_mas->mas; in mas_wr_walk_index() local
3594 static inline void *mas_state_walk(struct ma_state *mas) in mas_state_walk()
3617 static inline void *mtree_lookup_walk(struct ma_state *mas) in mtree_lookup_walk()
3661 static inline void mas_new_root(struct ma_state *mas, void *entry) in mas_new_root()
3708 struct ma_state *mas; in mas_wr_spanning_store() local
3800 struct ma_state *mas = wr_mas->mas; in mas_wr_node_store() local
3879 struct ma_state *mas = wr_mas->mas; in mas_wr_slot_store() local
3924 struct ma_state *mas = wr_mas->mas; in mas_wr_extend_null() local
3972 struct ma_state *mas = wr_mas->mas; in mas_wr_new_end() local
3997 struct ma_state *mas = wr_mas->mas; in mas_wr_append() local
4058 struct ma_state *mas = wr_mas->mas; in mas_wr_store_entry() local
4099 struct ma_state *mas = wr_mas->mas; in mas_wr_prealloc_setup() local
4148 static inline int mas_prealloc_calc(struct ma_state *mas, void *entry) in mas_prealloc_calc()
4197 struct ma_state *mas = wr_mas->mas; in mas_wr_store_type() local
4246 struct ma_state *mas = wr_mas->mas; in mas_wr_preallocate() local
4266 static inline void *mas_insert(struct ma_state *mas, void *entry) in mas_insert()
4328 int mas_alloc_cyclic(struct ma_state *mas, unsigned long *startp, in mas_alloc_cyclic()
4366 static __always_inline void mas_rewalk(struct ma_state *mas, unsigned long index) in mas_rewalk()
4375 static __always_inline bool mas_rewalk_if_dead(struct ma_state *mas, in mas_rewalk_if_dead()
4396 static int mas_prev_node(struct ma_state *mas, unsigned long min) in mas_prev_node()
4476 static void *mas_prev_slot(struct ma_state *mas, unsigned long min, bool empty) in mas_prev_slot()
4562 static int mas_next_node(struct ma_state *mas, struct maple_node *node, in mas_next_node()
4649 static void *mas_next_slot(struct ma_state *mas, unsigned long max, bool empty) in mas_next_slot()
4742 static bool mas_rev_awalk(struct ma_state *mas, unsigned long size, in mas_rev_awalk()
4829 static inline bool mas_anode_descend(struct ma_state *mas, unsigned long size) in mas_anode_descend()
4898 void *mas_walk(struct ma_state *mas) in mas_walk()
4927 static inline bool mas_rewind_node(struct ma_state *mas) in mas_rewind_node()
4952 static inline bool mas_skip_node(struct ma_state *mas) in mas_skip_node()
4980 static inline void mas_awalk(struct ma_state *mas, unsigned long size) in mas_awalk()
5008 static inline int mas_sparse_area(struct ma_state *mas, unsigned long min, in mas_sparse_area()
5040 int mas_empty_area(struct ma_state *mas, unsigned long min, in mas_empty_area()
5094 int mas_empty_area_rev(struct ma_state *mas, unsigned long min, in mas_empty_area_rev()
5368 void *mas_store(struct ma_state *mas, void *entry) in mas_store()
5424 int mas_store_gfp(struct ma_state *mas, void *entry, gfp_t gfp) in mas_store_gfp()
5457 void mas_store_prealloc(struct ma_state *mas, void *entry) in mas_store_prealloc()
5489 int mas_preallocate(struct ma_state *mas, void *entry, gfp_t gfp) in mas_preallocate()
5523 void mas_destroy(struct ma_state *mas) in mas_destroy()
5578 int mas_expected_entries(struct ma_state *mas, unsigned long nr_entries) in mas_expected_entries()
5628 static bool mas_next_setup(struct ma_state *mas, unsigned long max, in mas_next_setup()
5698 void *mas_next(struct ma_state *mas, unsigned long max) in mas_next()
5721 void *mas_next_range(struct ma_state *mas, unsigned long max) in mas_next_range()
5757 static bool mas_prev_setup(struct ma_state *mas, unsigned long min, void **entry) in mas_prev_setup()
5829 void *mas_prev(struct ma_state *mas, unsigned long min) in mas_prev()
5852 void *mas_prev_range(struct ma_state *mas, unsigned long min) in mas_prev_range()
5900 void mas_pause(struct ma_state *mas) in mas_pause()
5915 static __always_inline bool mas_find_setup(struct ma_state *mas, unsigned long max, void **entry) in mas_find_setup()
6006 void *mas_find(struct ma_state *mas, unsigned long max) in mas_find()
6033 void *mas_find_range(struct ma_state *mas, unsigned long max) in mas_find_range()
6053 static bool mas_find_rev_setup(struct ma_state *mas, unsigned long min, in mas_find_rev_setup()
6145 void *mas_find_rev(struct ma_state *mas, unsigned long min) in mas_find_rev()
6171 void *mas_find_range_rev(struct ma_state *mas, unsigned long min) in mas_find_range_rev()
6194 void *mas_erase(struct ma_state *mas) in mas_erase()
6234 bool mas_nomem(struct ma_state *mas, gfp_t gfp) in mas_nomem()
6559 static void mas_dup_free(struct ma_state *mas) in mas_dup_free()
6604 static inline void mas_copy_node(struct ma_state *mas, struct ma_state *new_mas, in mas_copy_node()
6627 static inline void mas_dup_alloc(struct ma_state *mas, struct ma_state *new_mas, in mas_dup_alloc()
6671 static inline void mas_dup_build(struct ma_state *mas, struct ma_state *new_mas, in mas_dup_build()
7017 static inline struct maple_enode *mas_get_slot(struct ma_state *mas, in mas_get_slot()
7025 static void mas_dfs_postorder(struct ma_state *mas, unsigned long max) in mas_dfs_postorder()
7258 static void mas_validate_gaps(struct ma_state *mas) in mas_validate_gaps()
7349 static void mas_validate_parent_slot(struct ma_state *mas) in mas_validate_parent_slot()
7384 static void mas_validate_child_slot(struct ma_state *mas) in mas_validate_child_slot()
7428 static void mas_validate_limits(struct ma_state *mas) in mas_validate_limits()
7571 void mas_dump(const struct ma_state *mas) in mas_dump()