Lines Matching defs:leaf
266 * xbc_node_find_next_leaf() - Find the next leaf node under given node
270 * Search the next leaf node (which means the terminal key node) of @node
272 * Return the next node or NULL if next leaf node is not found.
285 if (node == root) /* @root was a leaf, no child node. */
308 * @leaf: A container pointer of XBC node which starts from.
310 * Search the next leaf node (which means the terminal key node) of *@leaf
311 * under @root node. Returns the value and update *@leaf if next leaf node
312 * is found, or NULL if no next leaf node is found.
317 struct xbc_node **leaf)
320 if (WARN_ON(!leaf))
323 *leaf = xbc_node_find_next_leaf(root, *leaf);
324 if (!*leaf)
326 if ((*leaf)->child)
327 return xbc_node_get_data(xbc_node_get_child(*leaf));