Lines Matching refs:symbol

14 struct symbol symbol_yes = {
20 struct symbol symbol_mod = {
26 struct symbol symbol_no = {
32 static struct symbol symbol_empty = {
38 struct symbol *sym_defconfig_list;
39 struct symbol *modules_sym;
42 enum symbol_type sym_get_type(struct symbol *sym)
74 struct property *sym_get_choice_prop(struct symbol *sym)
83 static struct property *sym_get_default_prop(struct symbol *sym)
95 struct property *sym_get_range_prop(struct symbol *sym)
107 static long long sym_get_range_val(struct symbol *sym, int base)
123 static void sym_validate_range(struct symbol *sym)
126 struct symbol *range_sym;
155 static void sym_set_changed(struct symbol *sym)
168 struct symbol *sym;
175 static void sym_calc_visibility(struct symbol *sym)
178 struct symbol *choice_sym = NULL;
239 * Find the default symbol for a choice.
240 * First try the default values for the choice symbol
244 struct symbol *sym_choice_default(struct symbol *sym)
246 struct symbol *def_sym;
270 static struct symbol *sym_calc_choice(struct symbol *sym)
272 struct symbol *def_sym;
302 static void sym_warn_unmet_dep(struct symbol *sym)
323 void sym_calc_value(struct symbol *sym)
379 /* if the symbol is visible use the user value
422 struct symbol *ds = prop_get_symbol(prop);
448 struct symbol *choice_sym;
469 struct symbol *sym;
478 bool sym_tristate_within_range(struct symbol *sym, tristate val)
497 bool sym_set_tristate_value(struct symbol *sym, tristate val)
510 * symbol and all other choice values.
513 struct symbol *cs = prop_get_symbol(sym_get_choice_prop(sym));
533 tristate sym_toggle_tristate_value(struct symbol *sym)
556 bool sym_string_valid(struct symbol *sym, const char *str)
599 bool sym_string_within_range(struct symbol *sym, const char *str)
641 bool sym_set_string_value(struct symbol *sym, const char *newval)
691 * Find the default value associated to a symbol.
692 * For tristate symbol handle the modules=n case
694 * If the symbol does not have any default then fallback
697 const char *sym_get_string_default(struct symbol *sym)
700 struct symbol *ds;
709 /* If symbol has a default value look it up */
744 /* adjust the default value if this symbol is implied by another */
767 const char *sym_get_string_value(struct symbol *sym)
791 bool sym_is_changeable(struct symbol *sym)
805 struct symbol *sym_lookup(const char *name, int flags)
807 struct symbol *symbol;
821 for (symbol = symbol_hash[hash]; symbol; symbol = symbol->next) {
822 if (symbol->name &&
823 !strcmp(symbol->name, name) &&
824 (flags ? symbol->flags & flags
825 : !(symbol->flags & (SYMBOL_CONST|SYMBOL_CHOICE))))
826 return symbol;
834 symbol = xmalloc(sizeof(*symbol));
835 memset(symbol, 0, sizeof(*symbol));
836 symbol->name = new_name;
837 symbol->type = S_UNKNOWN;
838 symbol->flags = flags;
840 symbol->next = symbol_hash[hash];
841 symbol_hash[hash] = symbol;
843 return symbol;
846 struct symbol *sym_find(const char *name)
848 struct symbol *symbol = NULL;
863 for (symbol = symbol_hash[hash]; symbol; symbol = symbol->next) {
864 if (symbol->name &&
865 !strcmp(symbol->name, name) &&
866 !(symbol->flags & SYMBOL_CONST))
870 return symbol;
917 struct symbol *sym;
932 * - if matched length on symbol s1 is the length of that symbol,
933 * then this symbol should come first;
934 * - if matched length on symbol s2 is the length of that symbol,
935 * then this symbol should come first.
951 struct symbol **sym_re_search(const char *pattern)
953 struct symbol *sym, **sym_arr = NULL;
989 sym_arr = malloc((cnt+1) * sizeof(struct symbol *));
1012 struct symbol *sym;
1017 static void dep_stack_insert(struct dep_stack *stack, struct symbol *sym)
1039 static void sym_check_print_recursive(struct symbol *last_sym)
1042 struct symbol *sym, *next_sym;
1080 fprintf(stderr, "%s:%d:\tchoice %s contains symbol %s\n",
1128 static struct symbol *sym_check_expr_deps(struct expr *e)
1130 struct symbol *sym;
1163 static struct symbol *sym_check_sym_deps(struct symbol *sym)
1165 struct symbol *sym2;
1211 static struct symbol *sym_check_choice_deps(struct symbol *choice)
1213 struct symbol *sym, *sym2;
1248 struct symbol *sym_check_deps(struct symbol *sym)
1250 struct symbol *sym2;
1263 /* for choice groups start the check with main choice symbol */
1279 struct symbol *prop_get_symbol(struct property *prop)
1307 return "symbol";