Lines Matching defs:leaf
331 * xbc_node_find_next_leaf() - Find the next leaf node under given node
335 * Search the next leaf node (which means the terminal key node) of @node
337 * Return the next node or NULL if next leaf node is not found.
359 if (node == root) /* @root was a leaf, no child node. */
383 * @leaf: A container pointer of XBC node which starts from.
385 * Search the next leaf node (which means the terminal key node) of *@leaf
386 * under @root node. Returns the value and update *@leaf if next leaf node
387 * is found, or NULL if no next leaf node is found.
392 struct xbc_node **leaf)
395 if (WARN_ON(!leaf))
398 *leaf = xbc_node_find_next_leaf(root, *leaf);
399 if (!*leaf)
401 if ((*leaf)->child)
402 return xbc_node_get_data(xbc_node_get_child(*leaf));