Lines Matching refs:k
569 struct xbc_node *find_match_node(struct xbc_node *node, char *k) in find_match_node() argument
572 if (!strcmp(xbc_node_get_data(node), k)) in find_match_node()
579 static int __init __xbc_add_key(char *k) in __xbc_add_key() argument
583 if (!xbc_valid_keyword(k)) in __xbc_add_key()
584 return xbc_parse_error("Invalid keyword", k); in __xbc_add_key()
590 node = find_match_node(xbc_nodes, k); in __xbc_add_key()
596 node = find_match_node(child, k); in __xbc_add_key()
603 node = xbc_add_child(k, XBC_KEY); in __xbc_add_key()
610 static int __init __xbc_parse_keys(char *k) in __xbc_parse_keys() argument
615 k = strim(k); in __xbc_parse_keys()
616 while ((p = strchr(k, '.'))) { in __xbc_parse_keys()
618 ret = __xbc_add_key(k); in __xbc_parse_keys()
621 k = p; in __xbc_parse_keys()
624 return __xbc_add_key(k); in __xbc_parse_keys()
627 static int __init xbc_parse_kv(char **k, char *v, int op) in xbc_parse_kv() argument
634 ret = __xbc_parse_keys(*k); in xbc_parse_kv()
675 *k = next; in xbc_parse_kv()
680 static int __init xbc_parse_key(char **k, char *n) in xbc_parse_key() argument
685 *k = strim(*k); in xbc_parse_key()
686 if (**k != '\0') { in xbc_parse_key()
687 ret = __xbc_parse_keys(*k); in xbc_parse_key()
692 *k = n; in xbc_parse_key()
697 static int __init xbc_open_brace(char **k, char *n) in xbc_open_brace() argument
701 ret = __xbc_parse_keys(*k); in xbc_open_brace()
704 *k = n; in xbc_open_brace()
709 static int __init xbc_close_brace(char **k, char *n) in xbc_close_brace() argument
713 ret = xbc_parse_key(k, n); in xbc_close_brace()