Lines Matching full:mn
328 * @mn: The maple encoded node.
330 static inline void mte_set_node_dead(struct maple_enode *mn) in mte_set_node_dead() argument
332 mte_to_node(mn)->parent = ma_parent_ptr(mte_to_node(mn)); in mte_set_node_dead()
672 * @mn: The encoded maple node
676 static inline void mte_set_pivot(struct maple_enode *mn, unsigned char piv, in mte_set_pivot() argument
679 struct maple_node *node = mte_to_node(mn); in mte_set_pivot()
680 enum maple_type type = mte_node_type(mn); in mte_set_pivot()
699 * @mn: The maple node
704 static inline void __rcu **ma_slots(struct maple_node *mn, enum maple_type mt) in ma_slots() argument
708 return mn->ma64.slot; in ma_slots()
711 return mn->mr64.slot; in ma_slots()
713 return mn->slot; in ma_slots()
797 static inline struct maple_metadata *ma_meta(struct maple_node *mn, in ma_meta() argument
802 return &mn->ma64.meta; in ma_meta()
804 return &mn->mr64.meta; in ma_meta()
810 * @mn: The maple node
815 static inline void ma_set_meta(struct maple_node *mn, enum maple_type mt, in ma_set_meta() argument
818 struct maple_metadata *meta = ma_meta(mn, mt); in ma_set_meta()
827 * @mn: The maple node
830 static inline void mt_clear_meta(struct maple_tree *mt, struct maple_node *mn, in mt_clear_meta() argument
840 pivots = mn->mr64.pivot; in mt_clear_meta()
842 slots = mn->mr64.slot; in mt_clear_meta()
851 meta = ma_meta(mn, type); in mt_clear_meta()
863 * @mn: The maple node
866 static inline unsigned char ma_meta_end(struct maple_node *mn, in ma_meta_end() argument
869 struct maple_metadata *meta = ma_meta(mn, mt); in ma_meta_end()
876 * @mn: The maple node
878 static inline unsigned char ma_meta_gap(struct maple_node *mn) in ma_meta_gap() argument
880 return mn->ma64.meta.gap; in ma_meta_gap()
885 * @mn: The maple node
889 static inline void ma_set_meta_gap(struct maple_node *mn, enum maple_type mt, in ma_set_meta_gap() argument
893 struct maple_metadata *meta = ma_meta(mn, mt); in ma_set_meta_gap()
1309 struct maple_node *mn; in mas_leaf_max_gap() local
1316 mn = mas_mn(mas); in mas_leaf_max_gap()
1317 slots = ma_slots(mn, mt); in mas_leaf_max_gap()
1339 pivots = ma_pivots(mn, mt); in mas_leaf_max_gap()
1348 max_piv = ma_data_end(mn, mt, pivots, mas->max) - 1; in mas_leaf_max_gap()
6638 struct maple_enode *p, *mn = mas->node; in mas_dfs_postorder() local
6645 if (mte_is_root(mn)) in mas_dfs_postorder()
6648 mas->node = mn; in mas_dfs_postorder()