• Home
  • Raw
  • Download

Lines Matching +full:0 +full:xbc

40  * Extra Boot Config (XBC) is given as tree-structured ascii text of
88 * Return 0 if the boot config is initialized, or return -ENODEV.
99 return 0; in xbc_get_info()
125 * xbc_node_index() - Get the index of XBC node
128 * Return the index number of @node in XBC node list.
132 return node - &xbc_nodes[0]; in xbc_node_index()
136 * xbc_node_get_parent() - Get the parent XBC node
137 * @node: An XBC node.
148 * xbc_node_get_child() - Get the child XBC node
149 * @node: An XBC node.
160 * xbc_node_get_next() - Get the next sibling XBC node
161 * @node: An XBC node.
174 * xbc_node_get_data() - Get the data of XBC node
175 * @node: An XBC node.
202 else if (*p != '\0') in xbc_node_match_prefix()
211 * @parent: An XBC node.
231 else if (*key != '\0') in xbc_node_find_subkey()
242 * @parent: An XBC node.
244 * @vnode: A container pointer of found XBC node.
251 * Note that this returns 0-length string and stores NULL in *@vnode if the
275 * xbc_node_compose_key_after() - Compose partial key string of the XBC node
276 * @root: Root XBC node
277 * @node: Target XBC node.
295 int depth = 0, ret = 0, total = 0; in xbc_node_compose_key_after()
312 while (--depth >= 0) { in xbc_node_compose_key_after()
316 if (ret < 0) in xbc_node_compose_key_after()
319 size = 0; in xbc_node_compose_key_after()
332 * @root: An XBC root node
333 * @node: An XBC node which starts from.
382 * @root: An XBC root node
383 * @leaf: A container pointer of XBC node which starts from.
388 * Note that this returns 0-length string if the key has no value, or
407 /* XBC parse and tree build */
417 node->child = 0; in xbc_init_node()
418 node->next = 0; in xbc_init_node()
420 return 0; in xbc_init_node()
431 if (xbc_init_node(node, data, flag) < 0) in xbc_add_node()
502 if (key[0] == '\0') in xbc_valid_keyword()
508 return *key == '\0'; in xbc_valid_keyword()
538 return 0; in __xbc_open_brace()
544 if (!last_parent || brace_index < 0 || in __xbc_close_brace()
548 if (brace_index == 0) in __xbc_close_brace()
553 return 0; in __xbc_close_brace()
563 int c, quotes = 0; in __xbc_parse_value()
581 quotes = 0; in __xbc_parse_value()
582 *p++ = '\0'; in __xbc_parse_value()
592 *p++ = '\0'; in __xbc_parse_value()
613 int c = 0; in xbc_parse_array()
620 if (c < 0) in xbc_parse_array()
628 node->child = 0; in xbc_parse_array()
651 if (unlikely(xbc_node_num == 0)) in __xbc_add_key()
672 return 0; in __xbc_add_key()
682 *p++ = '\0'; in __xbc_parse_keys()
704 if (c < 0) in xbc_parse_kv()
728 if (c < 0) in xbc_parse_kv()
736 if (ret < 0) in xbc_parse_kv()
742 return 0; in xbc_parse_kv()
751 if (**k != '\0') { in xbc_parse_key()
759 return 0; in xbc_parse_key()
799 if (xbc_node_num == 0) { in xbc_verify_tree()
804 for (i = 0; i < xbc_node_num; i++) { in xbc_verify_tree()
812 n = &xbc_nodes[0]; in xbc_verify_tree()
814 len = 0; in xbc_verify_tree()
845 return 0; in xbc_verify_tree()
852 int ret = 0, c; in xbc_parse_tree()
860 if (*p != '\0') in xbc_parse_tree()
866 *q++ = '\0'; in xbc_parse_tree()
911 xbc_data_size = 0; in xbc_exit()
912 xbc_node_num = 0; in xbc_exit()
915 brace_index = 0; in xbc_exit()
919 * xbc_init() - Parse given XBC file and build XBC internal tree
927 * Return the number of stored nodes (>0) if succeeded, or -errno
945 if (size > XBC_DATA_MAX || size == 0) { in xbc_init()
959 xbc_data[size] = '\0'; in xbc_init()
969 memset(xbc_nodes, 0, sizeof(struct xbc_node) * XBC_NODE_MAX); in xbc_init()
975 if (ret < 0) { in xbc_init()