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 *modules_sym;
41 enum symbol_type sym_get_type(struct symbol *sym)
73 struct property *sym_get_choice_prop(struct symbol *sym)
82 static struct property *sym_get_default_prop(struct symbol *sym)
94 struct property *sym_get_range_prop(struct symbol *sym)
106 static long long sym_get_range_val(struct symbol *sym, int base)
122 static void sym_validate_range(struct symbol *sym)
125 struct symbol *range_sym;
154 static void sym_set_changed(struct symbol *sym)
167 struct symbol *sym;
174 static void sym_calc_visibility(struct symbol *sym)
177 struct symbol *choice_sym = NULL;
238 * Find the default symbol for a choice.
239 * First try the default values for the choice symbol
243 struct symbol *sym_choice_default(struct symbol *sym)
245 struct symbol *def_sym;
269 static struct symbol *sym_calc_choice(struct symbol *sym)
271 struct symbol *def_sym;
301 static void sym_warn_unmet_dep(struct symbol *sym)
322 void sym_calc_value(struct symbol *sym)
378 /* if the symbol is visible use the user value
421 struct symbol *ds = prop_get_symbol(prop);
447 struct symbol *choice_sym;
468 struct symbol *sym;
477 bool sym_tristate_within_range(struct symbol *sym, tristate val)
496 bool sym_set_tristate_value(struct symbol *sym, tristate val)
509 * symbol and all other choice values.
512 struct symbol *cs = prop_get_symbol(sym_get_choice_prop(sym));
532 tristate sym_toggle_tristate_value(struct symbol *sym)
555 bool sym_string_valid(struct symbol *sym, const char *str)
598 bool sym_string_within_range(struct symbol *sym, const char *str)
640 bool sym_set_string_value(struct symbol *sym, const char *newval)
690 * Find the default value associated to a symbol.
691 * For tristate symbol handle the modules=n case
693 * If the symbol does not have any default then fallback
696 const char *sym_get_string_default(struct symbol *sym)
699 struct symbol *ds;
708 /* If symbol has a default value look it up */
743 /* adjust the default value if this symbol is implied by another */
766 const char *sym_get_string_value(struct symbol *sym)
790 bool sym_is_changeable(struct symbol *sym)
804 struct symbol *sym_lookup(const char *name, int flags)
806 struct symbol *symbol;
820 for (symbol = symbol_hash[hash]; symbol; symbol = symbol->next) {
821 if (symbol->name &&
822 !strcmp(symbol->name, name) &&
823 (flags ? symbol->flags & flags
824 : !(symbol->flags & (SYMBOL_CONST|SYMBOL_CHOICE))))
825 return symbol;
833 symbol = xmalloc(sizeof(*symbol));
834 memset(symbol, 0, sizeof(*symbol));
835 symbol->name = new_name;
836 symbol->type = S_UNKNOWN;
837 symbol->flags = flags;
839 symbol->next = symbol_hash[hash];
840 symbol_hash[hash] = symbol;
842 return symbol;
845 struct symbol *sym_find(const char *name)
847 struct symbol *symbol = NULL;
862 for (symbol = symbol_hash[hash]; symbol; symbol = symbol->next) {
863 if (symbol->name &&
864 !strcmp(symbol->name, name) &&
865 !(symbol->flags & SYMBOL_CONST))
869 return symbol;
873 struct symbol *sym;
888 * - if matched length on symbol s1 is the length of that symbol,
889 * then this symbol should come first;
890 * - if matched length on symbol s2 is the length of that symbol,
891 * then this symbol should come first.
907 struct symbol **sym_re_search(const char *pattern)
909 struct symbol *sym, **sym_arr = NULL;
945 sym_arr = malloc((cnt+1) * sizeof(struct symbol *));
968 struct symbol *sym;
973 static void dep_stack_insert(struct dep_stack *stack, struct symbol *sym)
995 static void sym_check_print_recursive(struct symbol *last_sym)
998 struct symbol *sym, *next_sym;
1036 fprintf(stderr, "%s:%d:\tchoice %s contains symbol %s\n",
1084 static struct symbol *sym_check_expr_deps(struct expr *e)
1086 struct symbol *sym;
1119 static struct symbol *sym_check_sym_deps(struct symbol *sym)
1121 struct symbol *sym2;
1167 static struct symbol *sym_check_choice_deps(struct symbol *choice)
1169 struct symbol *sym, *sym2;
1204 struct symbol *sym_check_deps(struct symbol *sym)
1206 struct symbol *sym2;
1219 /* for choice groups start the check with main choice symbol */
1235 struct symbol *prop_get_symbol(struct property *prop)
1263 return "symbol";