• Home
  • Raw
  • Download

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