Lines Matching refs:symbol

15 struct symbol symbol_yes = {
34 struct symbol *sym_defconfig_list;
35 struct symbol *modules_sym;
38 void sym_add_default(struct symbol *sym, const char *def)
47 struct symbol *sym;
80 enum symbol_type sym_get_type(struct symbol *sym)
114 struct property *sym_get_choice_prop(struct symbol *sym)
123 struct property *sym_get_default_prop(struct symbol *sym)
135 struct property *sym_get_range_prop(struct symbol *sym)
147 static int sym_get_range_val(struct symbol *sym, int base)
163 static void sym_validate_range(struct symbol *sym)
196 static void sym_calc_visibility(struct symbol *sym)
226 static struct symbol *sym_calc_choice(struct symbol *sym)
228 struct symbol *def_sym;
265 void sym_calc_value(struct symbol *sym)
341 struct symbol *ds = prop_get_symbol(prop);
379 struct symbol *sym;
389 void sym_set_changed(struct symbol *sym)
402 struct symbol *sym;
409 bool sym_tristate_within_range(struct symbol *sym, tristate val)
428 bool sym_set_tristate_value(struct symbol *sym, tristate val)
441 * symbol and all other choice values.
444 struct symbol *cs = prop_get_symbol(sym_get_choice_prop(sym));
464 tristate sym_toggle_tristate_value(struct symbol *sym)
487 bool sym_string_valid(struct symbol *sym, const char *str)
530 bool sym_string_within_range(struct symbol *sym, const char *str)
572 bool sym_set_string_value(struct symbol *sym, const char *newval)
621 const char *sym_get_string_value(struct symbol *sym)
644 bool sym_is_changable(struct symbol *sym)
649 struct symbol *sym_lookup(const char *name, int isconst)
651 struct symbol *symbol;
668 for (symbol = symbol_hash[hash]; symbol; symbol = symbol->next) {
669 if (!strcmp(symbol->name, name)) {
670 if ((isconst && symbol->flags & SYMBOL_CONST) ||
671 (!isconst && !(symbol->flags & SYMBOL_CONST)))
672 return symbol;
681 symbol = malloc(sizeof(*symbol));
682 memset(symbol, 0, sizeof(*symbol));
683 symbol->name = new_name;
684 symbol->type = S_UNKNOWN;
686 symbol->flags |= SYMBOL_CONST;
688 symbol->next = symbol_hash[hash];
689 symbol_hash[hash] = symbol;
691 return symbol;
694 struct symbol *sym_find(const char *name)
696 struct symbol *symbol = NULL;
714 for (symbol = symbol_hash[hash]; symbol; symbol = symbol->next) {
715 if (!strcmp(symbol->name, name) &&
716 !(symbol->flags & SYMBOL_CONST))
720 return symbol;
723 struct symbol **sym_re_search(const char *pattern)
725 struct symbol *sym, **sym_arr = NULL;
744 sym_arr = realloc(sym_arr, size * sizeof(struct symbol *));
760 struct symbol *sym_check_deps(struct symbol *sym);
762 static struct symbol *sym_check_expr_deps(struct expr *e)
764 struct symbol *sym;
792 struct symbol *sym_check_deps(struct symbol *sym)
794 struct symbol *sym2;
833 struct property *prop_alloc(enum prop_type type, struct symbol *sym)
845 /* append property to the prop list of symbol */
855 struct symbol *prop_get_symbol(struct property *prop)