Lines Matching refs:mn
335 static inline void mte_set_node_dead(struct maple_enode *mn) in mte_set_node_dead() argument
337 mte_to_node(mn)->parent = ma_parent_ptr(mte_to_node(mn)); in mte_set_node_dead()
742 static inline void mte_set_pivot(struct maple_enode *mn, unsigned char piv, in mte_set_pivot() argument
745 struct maple_node *node = mte_to_node(mn); in mte_set_pivot()
746 enum maple_type type = mte_node_type(mn); in mte_set_pivot()
770 static inline void __rcu **ma_slots(struct maple_node *mn, enum maple_type mt) in ma_slots() argument
774 return mn->ma64.slot; in ma_slots()
777 return mn->mr64.slot; in ma_slots()
779 return mn->slot; in ma_slots()
863 static inline struct maple_metadata *ma_meta(struct maple_node *mn, in ma_meta() argument
868 return &mn->ma64.meta; in ma_meta()
870 return &mn->mr64.meta; in ma_meta()
881 static inline void ma_set_meta(struct maple_node *mn, enum maple_type mt, in ma_set_meta() argument
884 struct maple_metadata *meta = ma_meta(mn, mt); in ma_set_meta()
896 static inline void mt_clear_meta(struct maple_tree *mt, struct maple_node *mn, in mt_clear_meta() argument
906 pivots = mn->mr64.pivot; in mt_clear_meta()
908 slots = mn->mr64.slot; in mt_clear_meta()
917 meta = ma_meta(mn, type); in mt_clear_meta()
932 static inline unsigned char ma_meta_end(struct maple_node *mn, in ma_meta_end() argument
935 struct maple_metadata *meta = ma_meta(mn, mt); in ma_meta_end()
944 static inline unsigned char ma_meta_gap(struct maple_node *mn) in ma_meta_gap() argument
946 return mn->ma64.meta.gap; in ma_meta_gap()
955 static inline void ma_set_meta_gap(struct maple_node *mn, enum maple_type mt, in ma_set_meta_gap() argument
959 struct maple_metadata *meta = ma_meta(mn, mt); in ma_set_meta_gap()
1040 static inline void mte_set_gap(const struct maple_enode *mn, in mte_set_gap() argument
1043 switch (mte_node_type(mn)) { in mte_set_gap()
1047 mte_to_node(mn)->ma64.gap[gap] = val; in mte_set_gap()
1482 struct maple_node *mn; in mas_leaf_max_gap() local
1489 mn = mas_mn(mas); in mas_leaf_max_gap()
1490 slots = ma_slots(mn, mt); in mas_leaf_max_gap()
1512 pivots = ma_pivots(mn, mt); in mas_leaf_max_gap()
1521 max_piv = ma_data_end(mn, mt, pivots, mas->max) - 1; in mas_leaf_max_gap()
7028 struct maple_enode *p, *mn = mas->node; in mas_dfs_postorder() local
7035 if (mte_is_root(mn)) in mas_dfs_postorder()
7038 mas->node = mn; in mas_dfs_postorder()