Lines Matching refs:symbol
14 struct symbol symbol_yes = {
32 struct symbol *sym_defconfig_list;
33 struct symbol *modules_sym;
38 static void sym_add_default(struct symbol *sym, const char *def) in sym_add_default()
47 struct symbol *sym; in sym_init()
63 enum symbol_type sym_get_type(struct symbol *sym) in sym_get_type()
97 struct property *sym_get_choice_prop(struct symbol *sym) in sym_get_choice_prop()
106 struct property *sym_get_env_prop(struct symbol *sym) in sym_get_env_prop()
115 static struct property *sym_get_default_prop(struct symbol *sym) in sym_get_default_prop()
127 static struct property *sym_get_range_prop(struct symbol *sym) in sym_get_range_prop()
139 static long long sym_get_range_val(struct symbol *sym, int base) in sym_get_range_val()
155 static void sym_validate_range(struct symbol *sym) in sym_validate_range()
189 static void sym_set_changed(struct symbol *sym) in sym_set_changed()
202 struct symbol *sym; in sym_set_all_changed()
209 static void sym_calc_visibility(struct symbol *sym) in sym_calc_visibility()
212 struct symbol *choice_sym = NULL; in sym_calc_visibility()
278 struct symbol *sym_choice_default(struct symbol *sym) in sym_choice_default()
280 struct symbol *def_sym; in sym_choice_default()
304 static struct symbol *sym_calc_choice(struct symbol *sym) in sym_calc_choice()
306 struct symbol *def_sym; in sym_calc_choice()
336 static void sym_warn_unmet_dep(struct symbol *sym) in sym_warn_unmet_dep()
357 void sym_calc_value(struct symbol *sym) in sym_calc_value()
455 struct symbol *ds = prop_get_symbol(prop); in sym_calc_value()
481 struct symbol *choice_sym; in sym_calc_value()
502 struct symbol *sym; in sym_clear_all_valid()
511 bool sym_tristate_within_range(struct symbol *sym, tristate val) in sym_tristate_within_range()
532 bool sym_set_tristate_value(struct symbol *sym, tristate val) in sym_set_tristate_value()
548 struct symbol *cs = prop_get_symbol(sym_get_choice_prop(sym)); in sym_set_tristate_value()
568 tristate sym_toggle_tristate_value(struct symbol *sym) in sym_toggle_tristate_value()
591 bool sym_string_valid(struct symbol *sym, const char *str) in sym_string_valid()
634 bool sym_string_within_range(struct symbol *sym, const char *str) in sym_string_within_range()
676 bool sym_set_string_value(struct symbol *sym, const char *newval) in sym_set_string_value()
732 const char *sym_get_string_default(struct symbol *sym) in sym_get_string_default()
735 struct symbol *ds; in sym_get_string_default()
803 const char *sym_get_string_value(struct symbol *sym) in sym_get_string_value()
827 bool sym_is_changable(struct symbol *sym) in sym_is_changable()
841 struct symbol *sym_lookup(const char *name, int flags) in sym_lookup()
843 struct symbol *symbol; in sym_lookup() local
857 for (symbol = symbol_hash[hash]; symbol; symbol = symbol->next) { in sym_lookup()
858 if (symbol->name && in sym_lookup()
859 !strcmp(symbol->name, name) && in sym_lookup()
860 (flags ? symbol->flags & flags in sym_lookup()
861 : !(symbol->flags & (SYMBOL_CONST|SYMBOL_CHOICE)))) in sym_lookup()
862 return symbol; in sym_lookup()
870 symbol = xmalloc(sizeof(*symbol)); in sym_lookup()
871 memset(symbol, 0, sizeof(*symbol)); in sym_lookup()
872 symbol->name = new_name; in sym_lookup()
873 symbol->type = S_UNKNOWN; in sym_lookup()
874 symbol->flags |= flags; in sym_lookup()
876 symbol->next = symbol_hash[hash]; in sym_lookup()
877 symbol_hash[hash] = symbol; in sym_lookup()
879 return symbol; in sym_lookup()
882 struct symbol *sym_find(const char *name) in sym_find()
884 struct symbol *symbol = NULL; in sym_find() local
899 for (symbol = symbol_hash[hash]; symbol; symbol = symbol->next) { in sym_find()
900 if (symbol->name && in sym_find()
901 !strcmp(symbol->name, name) && in sym_find()
902 !(symbol->flags & SYMBOL_CONST)) in sym_find()
906 return symbol; in sym_find()
931 struct symbol *sym; in sym_expand_string_value()
1006 struct symbol *sym;
1040 struct symbol **sym_re_search(const char *pattern) in sym_re_search()
1042 struct symbol *sym, **sym_arr = NULL; in sym_re_search()
1078 sym_arr = malloc((cnt+1) * sizeof(struct symbol *)); in sym_re_search()
1101 struct symbol *sym;
1106 static void dep_stack_insert(struct dep_stack *stack, struct symbol *sym) in dep_stack_insert()
1128 static void sym_check_print_recursive(struct symbol *last_sym) in sym_check_print_recursive()
1131 struct symbol *sym, *next_sym; in sym_check_print_recursive()
1206 static struct symbol *sym_check_expr_deps(struct expr *e) in sym_check_expr_deps()
1208 struct symbol *sym; in sym_check_expr_deps()
1241 static struct symbol *sym_check_sym_deps(struct symbol *sym) in sym_check_sym_deps()
1243 struct symbol *sym2; in sym_check_sym_deps()
1275 static struct symbol *sym_check_choice_deps(struct symbol *choice) in sym_check_choice_deps()
1277 struct symbol *sym, *sym2; in sym_check_choice_deps()
1312 struct symbol *sym_check_deps(struct symbol *sym) in sym_check_deps()
1314 struct symbol *sym2; in sym_check_deps()
1346 struct property *prop_alloc(enum prop_type type, struct symbol *sym) in prop_alloc()
1368 struct symbol *prop_get_symbol(struct property *prop) in prop_get_symbol()
1407 struct symbol *sym, *sym2; in prop_add_env()