Lines Matching refs:mn
318 static inline void mte_set_node_dead(struct maple_enode *mn) in mte_set_node_dead() argument
320 mte_to_node(mn)->parent = ma_parent_ptr(mte_to_node(mn)); in mte_set_node_dead()
754 static inline void mte_set_pivot(struct maple_enode *mn, unsigned char piv, in mte_set_pivot() argument
757 struct maple_node *node = mte_to_node(mn); in mte_set_pivot()
758 enum maple_type type = mte_node_type(mn); in mte_set_pivot()
783 static inline void __rcu **ma_slots(struct maple_node *mn, enum maple_type mt) in ma_slots() argument
788 return mn->ma64.slot; in ma_slots()
791 return mn->mr64.slot; in ma_slots()
793 return mn->slot; in ma_slots()
875 static inline struct maple_metadata *ma_meta(struct maple_node *mn, in ma_meta() argument
880 return &mn->ma64.meta; in ma_meta()
882 return &mn->mr64.meta; in ma_meta()
893 static inline void ma_set_meta(struct maple_node *mn, enum maple_type mt, in ma_set_meta() argument
896 struct maple_metadata *meta = ma_meta(mn, mt); in ma_set_meta()
910 static inline void mt_clear_meta(struct maple_tree *mt, struct maple_node *mn, in mt_clear_meta() argument
920 pivots = mn->mr64.pivot; in mt_clear_meta()
922 slots = mn->mr64.slot; in mt_clear_meta()
931 meta = ma_meta(mn, type); in mt_clear_meta()
946 static inline unsigned char ma_meta_end(struct maple_node *mn, in ma_meta_end() argument
949 struct maple_metadata *meta = ma_meta(mn, mt); in ma_meta_end()
959 static inline unsigned char ma_meta_gap(struct maple_node *mn, in ma_meta_gap() argument
962 return mn->ma64.meta.gap; in ma_meta_gap()
971 static inline void ma_set_meta_gap(struct maple_node *mn, enum maple_type mt, in ma_set_meta_gap() argument
975 struct maple_metadata *meta = ma_meta(mn, mt); in ma_set_meta_gap()
1056 static inline void mte_set_gap(const struct maple_enode *mn, in mte_set_gap() argument
1059 switch (mte_node_type(mn)) { in mte_set_gap()
1063 mte_to_node(mn)->ma64.gap[gap] = val; in mte_set_gap()
1496 struct maple_node *mn; in mas_leaf_max_gap() local
1503 mn = mas_mn(mas); in mas_leaf_max_gap()
1504 slots = ma_slots(mn, mt); in mas_leaf_max_gap()
1526 pivots = ma_pivots(mn, mt); in mas_leaf_max_gap()
1535 max_piv = ma_data_end(mn, mt, pivots, mas->max) - 1; in mas_leaf_max_gap()
6681 struct maple_enode *p = MAS_NONE, *mn = mas->node; in mas_dfs_postorder() local
6688 if (mte_is_root(mn)) in mas_dfs_postorder()
6691 mas->node = mn; in mas_dfs_postorder()