Lines Matching refs:enode

455 enum maple_type mas_parent_type(struct ma_state *mas, struct maple_enode *enode)  in mas_parent_type()  argument
459 p_type = (unsigned long)mte_to_node(enode)->parent; in mas_parent_type()
486 void mas_set_parent(struct ma_state *mas, struct maple_enode *enode, in mas_set_parent() argument
512 mte_to_node(enode)->parent = ma_parent_ptr(val); in mas_set_parent()
522 unsigned int mte_parent_slot(const struct maple_enode *enode) in mte_parent_slot() argument
524 unsigned long val = (unsigned long)mte_to_node(enode)->parent; in mte_parent_slot()
543 struct maple_node *mte_parent(const struct maple_enode *enode) in mte_parent() argument
546 (mte_to_node(enode)->parent) & ~MAPLE_NODE_MASK); in mte_parent()
571 static __always_inline bool mte_dead_node(const struct maple_enode *enode) in mte_dead_node() argument
575 node = mte_to_node(enode); in mte_dead_node()
578 parent = mte_parent(enode); in mte_dead_node()
975 static void mt_destroy_walk(struct maple_enode *enode, struct maple_tree *mt,
2186 struct maple_enode *enode) in mas_node_or_none() argument
2188 if (enode) { in mas_node_or_none()
2189 mas->node = enode; in mas_node_or_none()
2514 struct maple_enode *enode; in mas_topiary_node() local
2519 enode = tmp_mas->node; in mas_topiary_node()
2520 tmp = mte_to_node(enode); in mas_topiary_node()
2521 mte_set_node_dead(enode); in mas_topiary_node()
4583 struct maple_enode *enode; in mas_next_node() local
4615 enode = mas_slot(mas, slots, mas->offset); in mas_next_node()
4624 mas->node = enode; in mas_next_node()
4628 enode = mas_slot(mas, slots, 0); in mas_next_node()
4637 tmp = mte_to_node(enode); in mas_next_node()
4638 mt = mte_node_type(enode); in mas_next_node()
4644 mas->node = enode; in mas_next_node()
5204 unsigned char mte_dead_leaves(struct maple_enode *enode, struct maple_tree *mt, in mte_dead_leaves() argument
5212 for (offset = 0; offset < mt_slot_count(enode); offset++) { in mte_dead_leaves()
5235 static void __rcu **mte_dead_walk(struct maple_enode **enode, unsigned char offset) in mte_dead_walk() argument
5240 next = mte_to_node(*enode); in mte_dead_walk()
5242 *enode = ma_enode_ptr(next); in mte_dead_walk()
5243 node = mte_to_node(*enode); in mte_dead_walk()
5263 struct maple_enode *enode; in mt_free_walk() local
5273 enode = mt_mk_node(node, node->type); in mt_free_walk()
5274 slots = mte_dead_walk(&enode, 0); in mt_free_walk()
5275 node = mte_to_node(enode); in mt_free_walk()
5279 enode = node->piv_parent; in mt_free_walk()
5280 if (mte_to_node(enode) == node) in mt_free_walk()
5283 type = mte_node_type(enode); in mt_free_walk()
5284 slots = ma_slots(mte_to_node(enode), type); in mt_free_walk()
5288 slots = mte_dead_walk(&enode, offset); in mt_free_walk()
5289 node = mte_to_node(enode); in mt_free_walk()
5299 static inline void __rcu **mte_destroy_descend(struct maple_enode **enode, in mte_destroy_descend() argument
5303 struct maple_enode *next = *enode; in mte_destroy_descend()
5309 *enode = next; in mte_destroy_descend()
5310 node = mte_to_node(*enode); in mte_destroy_descend()
5311 type = mte_node_type(*enode); in mte_destroy_descend()
5317 mte_set_node_dead(*enode); in mte_destroy_descend()
5323 prev = *enode; in mte_destroy_descend()
5329 static void mt_destroy_walk(struct maple_enode *enode, struct maple_tree *mt, in mt_destroy_walk() argument
5333 struct maple_node *node = mte_to_node(enode); in mt_destroy_walk()
5336 if (mte_is_leaf(enode)) { in mt_destroy_walk()
5337 node->type = mte_node_type(enode); in mt_destroy_walk()
5341 start = enode; in mt_destroy_walk()
5342 slots = mte_destroy_descend(&enode, mt, start, 0); in mt_destroy_walk()
5343 node = mte_to_node(enode); // Updated in the above call. in mt_destroy_walk()
5349 node->slot_len = mte_dead_leaves(enode, mt, slots); in mt_destroy_walk()
5353 enode = node->piv_parent; in mt_destroy_walk()
5354 if (mte_to_node(enode) == node) in mt_destroy_walk()
5357 type = mte_node_type(enode); in mt_destroy_walk()
5358 slots = ma_slots(mte_to_node(enode), type); in mt_destroy_walk()
5364 parent = enode; in mt_destroy_walk()
5365 enode = tmp; in mt_destroy_walk()
5366 slots = mte_destroy_descend(&enode, mt, parent, offset); in mt_destroy_walk()
5369 node = mte_to_node(enode); in mt_destroy_walk()
5370 } while (start != enode); in mt_destroy_walk()
5372 node = mte_to_node(enode); in mt_destroy_walk()
5373 node->slot_len = mte_dead_leaves(enode, mt, slots); in mt_destroy_walk()
5391 static inline void mte_destroy_walk(struct maple_enode *enode, in mte_destroy_walk() argument
5394 struct maple_node *node = mte_to_node(enode); in mte_destroy_walk()
5397 mt_destroy_walk(enode, mt, false); in mte_destroy_walk()
5400 mt_destroy_walk(enode, mt, true); in mte_destroy_walk()
5626 struct maple_enode *enode = mas->node; in mas_expected_entries() local
5666 mas->node = enode; in mas_expected_entries()