Lines Matching full:symbol

17 struct symbol symbol_yes = {
25 struct symbol symbol_mod = {
33 struct symbol symbol_no = {
41 struct symbol *modules_sym;
45 enum symbol_type sym_get_type(const struct symbol *sym) in sym_get_type()
76 * @sym: a symbol pointer
80 struct menu *sym_get_choice_menu(const struct symbol *sym) in sym_get_choice_menu()
108 static struct property *sym_get_default_prop(struct symbol *sym) in sym_get_default_prop()
120 struct property *sym_get_range_prop(struct symbol *sym) in sym_get_range_prop()
132 static long long sym_get_range_val(struct symbol *sym, int base) in sym_get_range_val()
148 static void sym_validate_range(struct symbol *sym) in sym_validate_range()
151 struct symbol *range_sym; in sym_validate_range()
180 static void sym_set_changed(struct symbol *sym) in sym_set_changed()
190 struct symbol *sym; in sym_set_all_changed()
196 static void sym_calc_visibility(struct symbol *sym) in sym_calc_visibility()
246 * Find the default symbol for a choice.
247 * First try the default values for the choice symbol
251 struct symbol *sym_choice_default(struct menu *choice) in sym_choice_default()
254 struct symbol *def_sym; in sym_choice_default()
277 * sym_calc_choice - calculate symbol values in a choice
281 * Return: a chosen symbol
283 struct symbol *sym_calc_choice(struct menu *choice) in sym_calc_choice()
285 struct symbol *res = NULL; in sym_calc_choice()
286 struct symbol *sym; in sym_calc_choice()
312 /* Still not found. Pick up the first visible, user-unspecified symbol. */ in sym_calc_choice()
360 static void sym_warn_unmet_dep(const struct symbol *sym) in sym_warn_unmet_dep()
389 void sym_calc_value(struct symbol *sym) in sym_calc_value()
446 /* if the symbol is visible use the user value in sym_calc_value()
489 struct symbol *ds = prop_get_symbol(prop); in sym_calc_value()
518 struct symbol *sym; in sym_clear_all_valid()
527 bool sym_tristate_within_range(const struct symbol *sym, tristate val) in sym_tristate_within_range()
544 bool sym_set_tristate_value(struct symbol *sym, tristate val) in sym_set_tristate_value()
567 * @sym: selected symbol
569 void choice_set_value(struct menu *choice, struct symbol *sym) in choice_set_value()
592 * Now, the user has explicitly enabled or disabled this symbol, in choice_set_value()
594 * setting multiple symbols to 'n', where the first symbol is in choice_set_value()
596 * choice block ends up with selecting 'n' symbol. in choice_set_value()
606 tristate sym_toggle_tristate_value(struct symbol *sym) in sym_toggle_tristate_value()
636 bool sym_string_valid(struct symbol *sym, const char *str) in sym_string_valid()
679 bool sym_string_within_range(struct symbol *sym, const char *str) in sym_string_within_range()
721 bool sym_set_string_value(struct symbol *sym, const char *newval) in sym_set_string_value()
771 * Find the default value associated to a symbol.
772 * For tristate symbol handle the modules=n case
774 * If the symbol does not have any default then fallback
777 const char *sym_get_string_default(struct symbol *sym) in sym_get_string_default()
780 struct symbol *ds; in sym_get_string_default()
788 /* If symbol has a default value look it up */ in sym_get_string_default()
823 /* adjust the default value if this symbol is implied by another */ in sym_get_string_default()
849 const char *sym_get_string_value(struct symbol *sym) in sym_get_string_value()
872 bool sym_is_changeable(const struct symbol *sym) in sym_is_changeable()
877 bool sym_is_choice_value(const struct symbol *sym) in sym_is_choice_value()
884 struct symbol *sym_lookup(const char *name, int flags) in sym_lookup()
886 struct symbol *symbol; in sym_lookup() local
900 hash_for_each_possible(sym_hashtable, symbol, node, hash) { in sym_lookup()
901 if (symbol->name && in sym_lookup()
902 !strcmp(symbol->name, name) && in sym_lookup()
903 (flags ? symbol->flags & flags in sym_lookup()
904 : !(symbol->flags & SYMBOL_CONST))) in sym_lookup()
905 return symbol; in sym_lookup()
913 symbol = xmalloc(sizeof(*symbol)); in sym_lookup()
914 memset(symbol, 0, sizeof(*symbol)); in sym_lookup()
915 symbol->name = new_name; in sym_lookup()
916 symbol->type = S_UNKNOWN; in sym_lookup()
917 symbol->flags = flags; in sym_lookup()
918 INIT_LIST_HEAD(&symbol->menus); in sym_lookup()
919 INIT_LIST_HEAD(&symbol->choice_link); in sym_lookup()
921 hash_add(sym_hashtable, &symbol->node, hash); in sym_lookup()
923 return symbol; in sym_lookup()
926 struct symbol *sym_find(const char *name) in sym_find()
928 struct symbol *symbol = NULL; in sym_find() local
943 hash_for_each_possible(sym_hashtable, symbol, node, hash) { in sym_find()
944 if (symbol->name && in sym_find()
945 !strcmp(symbol->name, name) && in sym_find()
946 !(symbol->flags & SYMBOL_CONST)) in sym_find()
950 return symbol; in sym_find()
954 struct symbol *sym;
969 * - if matched length on symbol s1 is the length of that symbol, in sym_rel_comp()
970 * then this symbol should come first; in sym_rel_comp()
971 * - if matched length on symbol s2 is the length of that symbol, in sym_rel_comp()
972 * then this symbol should come first. in sym_rel_comp()
988 struct symbol **sym_re_search(const char *pattern) in sym_re_search()
990 struct symbol *sym, **sym_arr = NULL; in sym_re_search()
1026 sym_arr = malloc((cnt+1) * sizeof(struct symbol *)); in sym_re_search()
1049 struct symbol *sym;
1054 static void dep_stack_insert(struct dep_stack *stack, struct symbol *sym) in dep_stack_insert()
1076 static void sym_check_print_recursive(struct symbol *last_sym) in sym_check_print_recursive()
1079 struct symbol *sym, *next_sym; in sym_check_print_recursive()
1144 static struct symbol *sym_check_expr_deps(const struct expr *e) in sym_check_expr_deps()
1146 struct symbol *sym; in sym_check_expr_deps()
1179 static struct symbol *sym_check_sym_deps(struct symbol *sym) in sym_check_sym_deps()
1181 struct symbol *sym2; in sym_check_sym_deps()
1226 static struct symbol *sym_check_choice_deps(struct symbol *choice) in sym_check_choice_deps()
1229 struct symbol *sym2; in sym_check_choice_deps()
1272 struct symbol *sym_check_deps(struct symbol *sym) in sym_check_deps()
1275 struct symbol *sym2; in sym_check_deps()
1288 /* for choice groups start the check with main choice symbol */ in sym_check_deps()
1303 struct symbol *prop_get_symbol(const struct property *prop) in prop_get_symbol()