Lines Matching +full:0 +full:xbc

19  * Extra Boot Config (XBC) is given as tree-structured ascii text of
60 * xbc_node_index() - Get the index of XBC node
63 * Return the index number of @node in XBC node list.
67 return node - &xbc_nodes[0]; in xbc_node_index()
71 * xbc_node_get_parent() - Get the parent XBC node
72 * @node: An XBC node.
83 * xbc_node_get_child() - Get the child XBC node
84 * @node: An XBC node.
95 * xbc_node_get_next() - Get the next sibling XBC node
96 * @node: An XBC node.
109 * xbc_node_get_data() - Get the data of XBC node
110 * @node: An XBC node.
137 else if (*p != '\0') in xbc_node_match_prefix()
146 * @parent: An XBC node.
166 else if (*key != '\0') in xbc_node_find_subkey()
177 * @parent: An XBC node.
179 * @vnode: A container pointer of found XBC node.
186 * Note that this returns 0-length string and stores NULL in *@vnode if the
210 * xbc_node_compose_key_after() - Compose partial key string of the XBC node
211 * @root: Root XBC node
212 * @node: Target XBC node.
230 int depth = 0, ret = 0, total = 0; in xbc_node_compose_key_after()
247 while (--depth >= 0) { in xbc_node_compose_key_after()
251 if (ret < 0) in xbc_node_compose_key_after()
254 size = 0; in xbc_node_compose_key_after()
267 * @root: An XBC root node
268 * @node: An XBC node which starts from.
317 * @root: An XBC root node
318 * @leaf: A container pointer of XBC node which starts from.
323 * Note that this returns 0-length string if the key has no value, or
342 /* XBC parse and tree build */
352 node->child = 0; in xbc_init_node()
353 node->next = 0; in xbc_init_node()
355 return 0; in xbc_init_node()
366 if (xbc_init_node(node, data, flag) < 0) in xbc_add_node()
437 if (key[0] == '\0') in xbc_valid_keyword()
443 return *key == '\0'; in xbc_valid_keyword()
473 return 0; in __xbc_open_brace()
479 if (!last_parent || brace_index < 0 || in __xbc_close_brace()
483 if (brace_index == 0) in __xbc_close_brace()
488 return 0; in __xbc_close_brace()
498 int c, quotes = 0; in __xbc_parse_value()
516 quotes = 0; in __xbc_parse_value()
517 *p++ = '\0'; in __xbc_parse_value()
527 *p++ = '\0'; in __xbc_parse_value()
548 int c = 0; in xbc_parse_array()
555 if (c < 0) in xbc_parse_array()
563 node->child = 0; in xbc_parse_array()
586 if (unlikely(xbc_node_num == 0)) in __xbc_add_key()
607 return 0; in __xbc_add_key()
617 *p++ = '\0'; in __xbc_parse_keys()
639 if (c < 0) in xbc_parse_kv()
663 if (c < 0) in xbc_parse_kv()
671 if (ret < 0) in xbc_parse_kv()
677 return 0; in xbc_parse_kv()
686 if (**k != '\0') { in xbc_parse_key()
694 return 0; in xbc_parse_key()
734 if (xbc_node_num == 0) { in xbc_verify_tree()
739 for (i = 0; i < xbc_node_num; i++) { in xbc_verify_tree()
747 n = &xbc_nodes[0]; in xbc_verify_tree()
749 len = 0; in xbc_verify_tree()
780 return 0; in xbc_verify_tree()
793 xbc_data_size = 0; in xbc_destroy_all()
794 xbc_node_num = 0; in xbc_destroy_all()
797 brace_index = 0; in xbc_destroy_all()
801 * xbc_init() - Parse given XBC file and build XBC internal tree
808 * Return the number of stored nodes (>0) if succeeded, or -errno
829 if (ret > XBC_DATA_MAX - 1 || ret == 0) { in xbc_init()
843 memset(xbc_nodes, 0, sizeof(struct xbc_node) * XBC_NODE_MAX); in xbc_init()
853 if (*p != '\0') in xbc_init()
859 *q++ = '\0'; in xbc_init()
893 if (ret < 0) { in xbc_init()
906 * xbc_debug_dump() - Dump current XBC node list
908 * Dump the current XBC node list on printk buffer for debug.
914 for (i = 0; i < xbc_node_num; i++) { in xbc_debug_dump()