Lines Matching refs:k

635 struct xbc_node *find_match_node(struct xbc_node *node, char *k)  in find_match_node()  argument
638 if (!strcmp(xbc_node_get_data(node), k)) in find_match_node()
645 static int __init __xbc_add_key(char *k) in __xbc_add_key() argument
649 if (!xbc_valid_keyword(k)) in __xbc_add_key()
650 return xbc_parse_error("Invalid keyword", k); in __xbc_add_key()
656 node = find_match_node(xbc_nodes, k); in __xbc_add_key()
662 node = find_match_node(child, k); in __xbc_add_key()
669 node = xbc_add_child(k, XBC_KEY); in __xbc_add_key()
676 static int __init __xbc_parse_keys(char *k) in __xbc_parse_keys() argument
681 k = strim(k); in __xbc_parse_keys()
682 while ((p = strchr(k, '.'))) { in __xbc_parse_keys()
684 ret = __xbc_add_key(k); in __xbc_parse_keys()
687 k = p; in __xbc_parse_keys()
690 return __xbc_add_key(k); in __xbc_parse_keys()
693 static int __init xbc_parse_kv(char **k, char *v, int op) in xbc_parse_kv() argument
700 ret = __xbc_parse_keys(*k); in xbc_parse_kv()
741 *k = next; in xbc_parse_kv()
746 static int __init xbc_parse_key(char **k, char *n) in xbc_parse_key() argument
751 *k = strim(*k); in xbc_parse_key()
752 if (**k != '\0') { in xbc_parse_key()
753 ret = __xbc_parse_keys(*k); in xbc_parse_key()
758 *k = n; in xbc_parse_key()
763 static int __init xbc_open_brace(char **k, char *n) in xbc_open_brace() argument
767 ret = __xbc_parse_keys(*k); in xbc_open_brace()
770 *k = n; in xbc_open_brace()
775 static int __init xbc_close_brace(char **k, char *n) in xbc_close_brace() argument
779 ret = xbc_parse_key(k, n); in xbc_close_brace()