Home | History | Annotate | Download | only in kconfig

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;
78 enum symbol_type sym_get_type(struct symbol *sym)
112 struct property *sym_get_choice_prop(struct symbol *sym)
121 struct property *sym_get_default_prop(struct symbol *sym)
133 struct property *sym_get_range_prop(struct symbol *sym)
145 static int sym_get_range_val(struct symbol *sym, int base)
161 static void sym_validate_range(struct symbol *sym)
194 static void sym_calc_visibility(struct symbol *sym)
224 static struct symbol *sym_calc_choice(struct symbol *sym)
226 struct symbol *def_sym;
263 void sym_calc_value(struct symbol *sym)
339 struct symbol *ds = prop_get_symbol(prop);
377 struct symbol *sym;
387 void sym_set_changed(struct symbol *sym)
400 struct symbol *sym;
407 bool sym_tristate_within_range(struct symbol *sym, tristate val)
426 bool sym_set_tristate_value(struct symbol *sym, tristate val)
439 * symbol and all other choice values.
442 struct symbol *cs = prop_get_symbol(sym_get_choice_prop(sym));
462 tristate sym_toggle_tristate_value(struct symbol *sym)
485 bool sym_string_valid(struct symbol *sym, const char *str)
528 bool sym_string_within_range(struct symbol *sym, const char *str)
570 bool sym_set_string_value(struct symbol *sym, const char *newval)
619 const char *sym_get_string_value(struct symbol *sym)
642 bool sym_is_changable(struct symbol *sym)
647 struct symbol *sym_lookup(const char *name, int isconst)
649 struct symbol *symbol;
666 for (symbol = symbol_hash[hash]; symbol; symbol = symbol->next) {
667 if (!strcmp(symbol->name, name)) {
668 if ((isconst && symbol->flags & SYMBOL_CONST) ||
669 (!isconst && !(symbol->flags & SYMBOL_CONST)))
670 return symbol;
679 symbol = malloc(sizeof(*symbol));
680 memset(symbol, 0, sizeof(*symbol));
681 symbol->name = new_name;
682 symbol->type = S_UNKNOWN;
684 symbol->flags |= SYMBOL_CONST;
686 symbol->next = symbol_hash[hash];
687 symbol_hash[hash] = symbol;
689 return symbol;
692 struct symbol *sym_find(const char *name)
694 struct symbol *symbol = NULL;
712 for (symbol = symbol_hash[hash]; symbol; symbol = symbol->next) {
713 if (!strcmp(symbol->name, name) &&
714 !(symbol->flags & SYMBOL_CONST))
718 return symbol;
721 struct symbol **sym_re_search(const char *pattern)
723 struct symbol *sym, **sym_arr = NULL;
742 sym_arr = realloc(sym_arr, size * sizeof(struct symbol *));
758 struct symbol *sym_check_deps(struct symbol *sym);
760 static struct symbol *sym_check_expr_deps(struct expr *e)
762 struct symbol *sym;
790 struct symbol *sym_check_deps(struct symbol *sym)
792 struct symbol *sym2;
831 struct property *prop_alloc(enum prop_type type, struct symbol *sym)
843 /* append property to the prop list of symbol */
853 struct symbol *prop_get_symbol(struct property *prop)