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) in sym_get_type()
73 struct property *sym_get_choice_prop(struct symbol *sym) in sym_get_choice_prop()
82 static struct property *sym_get_default_prop(struct symbol *sym) in sym_get_default_prop()
94 struct property *sym_get_range_prop(struct symbol *sym) in sym_get_range_prop()
106 static long long sym_get_range_val(struct symbol *sym, int base) in sym_get_range_val()
122 static void sym_validate_range(struct symbol *sym) in sym_validate_range()
156 static void sym_set_changed(struct symbol *sym) in sym_set_changed()
169 struct symbol *sym; in sym_set_all_changed()
176 static void sym_calc_visibility(struct symbol *sym) in sym_calc_visibility()
179 struct symbol *choice_sym = NULL; in sym_calc_visibility()
245 struct symbol *sym_choice_default(struct symbol *sym) in sym_choice_default()
247 struct symbol *def_sym; in sym_choice_default()
271 static struct symbol *sym_calc_choice(struct symbol *sym) in sym_calc_choice()
273 struct symbol *def_sym; in sym_calc_choice()
303 static void sym_warn_unmet_dep(struct symbol *sym) in sym_warn_unmet_dep()
324 void sym_calc_value(struct symbol *sym) in sym_calc_value()
423 struct symbol *ds = prop_get_symbol(prop); in sym_calc_value()
449 struct symbol *choice_sym; in sym_calc_value()
470 struct symbol *sym; in sym_clear_all_valid()
479 bool sym_tristate_within_range(struct symbol *sym, tristate val) in sym_tristate_within_range()
498 bool sym_set_tristate_value(struct symbol *sym, tristate val) in sym_set_tristate_value()
514 struct symbol *cs = prop_get_symbol(sym_get_choice_prop(sym)); in sym_set_tristate_value()
534 tristate sym_toggle_tristate_value(struct symbol *sym) in sym_toggle_tristate_value()
557 bool sym_string_valid(struct symbol *sym, const char *str) in sym_string_valid()
600 bool sym_string_within_range(struct symbol *sym, const char *str) in sym_string_within_range()
642 bool sym_set_string_value(struct symbol *sym, const char *newval) in sym_set_string_value()
698 const char *sym_get_string_default(struct symbol *sym) in sym_get_string_default()
701 struct symbol *ds; in sym_get_string_default()
768 const char *sym_get_string_value(struct symbol *sym) in sym_get_string_value()
792 bool sym_is_changeable(struct symbol *sym) in sym_is_changeable()
806 struct symbol *sym_lookup(const char *name, int flags) in sym_lookup()
808 struct symbol *symbol; in sym_lookup() local
822 for (symbol = symbol_hash[hash]; symbol; symbol = symbol->next) { in sym_lookup()
823 if (symbol->name && in sym_lookup()
824 !strcmp(symbol->name, name) && in sym_lookup()
825 (flags ? symbol->flags & flags in sym_lookup()
826 : !(symbol->flags & (SYMBOL_CONST|SYMBOL_CHOICE)))) in sym_lookup()
827 return symbol; in sym_lookup()
835 symbol = xmalloc(sizeof(*symbol)); in sym_lookup()
836 memset(symbol, 0, sizeof(*symbol)); in sym_lookup()
837 symbol->name = new_name; in sym_lookup()
838 symbol->type = S_UNKNOWN; in sym_lookup()
839 symbol->flags = flags; in sym_lookup()
841 symbol->next = symbol_hash[hash]; in sym_lookup()
842 symbol_hash[hash] = symbol; in sym_lookup()
844 return symbol; in sym_lookup()
847 struct symbol *sym_find(const char *name) in sym_find()
849 struct symbol *symbol = NULL; in sym_find() local
864 for (symbol = symbol_hash[hash]; symbol; symbol = symbol->next) { in sym_find()
865 if (symbol->name && in sym_find()
866 !strcmp(symbol->name, name) && in sym_find()
867 !(symbol->flags & SYMBOL_CONST)) in sym_find()
871 return symbol; in sym_find()
875 struct symbol *sym;
909 struct symbol **sym_re_search(const char *pattern) in sym_re_search()
911 struct symbol *sym, **sym_arr = NULL; in sym_re_search()
947 sym_arr = malloc((cnt+1) * sizeof(struct symbol *)); in sym_re_search()
970 struct symbol *sym;
975 static void dep_stack_insert(struct dep_stack *stack, struct symbol *sym) in dep_stack_insert()
997 static void sym_check_print_recursive(struct symbol *last_sym) in sym_check_print_recursive()
1000 struct symbol *sym, *next_sym; in sym_check_print_recursive()
1086 static struct symbol *sym_check_expr_deps(struct expr *e) in sym_check_expr_deps()
1088 struct symbol *sym; in sym_check_expr_deps()
1121 static struct symbol *sym_check_sym_deps(struct symbol *sym) in sym_check_sym_deps()
1123 struct symbol *sym2; in sym_check_sym_deps()
1169 static struct symbol *sym_check_choice_deps(struct symbol *choice) in sym_check_choice_deps()
1171 struct symbol *sym, *sym2; in sym_check_choice_deps()
1206 struct symbol *sym_check_deps(struct symbol *sym) in sym_check_deps()
1208 struct symbol *sym2; in sym_check_deps()
1237 struct symbol *prop_get_symbol(struct property *prop) in prop_get_symbol()