• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/scripts/kconfig/

Lines Matching defs:symbol

15 struct symbol symbol_yes = {
33 struct symbol *sym_defconfig_list;
34 struct symbol *modules_sym;
39 static void sym_add_default(struct symbol *sym, const char *def)
48 struct symbol *sym;
64 enum symbol_type sym_get_type(struct symbol *sym)
98 struct property *sym_get_choice_prop(struct symbol *sym)
107 struct property *sym_get_env_prop(struct symbol *sym)
116 struct property *sym_get_default_prop(struct symbol *sym)
128 static struct property *sym_get_range_prop(struct symbol *sym)
140 static int sym_get_range_val(struct symbol *sym, int base)
156 static void sym_validate_range(struct symbol *sym)
189 static void sym_calc_visibility(struct symbol *sym)
230 * Find the default symbol for a choice.
231 * First try the default values for the choice symbol
235 struct symbol *sym_choice_default(struct symbol *sym)
237 struct symbol *def_sym;
261 static struct symbol *sym_calc_choice(struct symbol *sym)
263 struct symbol *def_sym;
286 void sym_calc_value(struct symbol *sym)
332 /* if the symbol is visible use the user value
370 struct symbol *ds = prop_get_symbol(prop);
396 struct symbol *choice_sym;
414 struct symbol *sym;
424 void sym_set_changed(struct symbol *sym)
437 struct symbol *sym;
444 bool sym_tristate_within_range(struct symbol *sym, tristate val)
463 bool sym_set_tristate_value(struct symbol *sym, tristate val)
476 * symbol and all other choice values.
479 struct symbol *cs = prop_get_symbol(sym_get_choice_prop(sym));
499 tristate sym_toggle_tristate_value(struct symbol *sym)
522 bool sym_string_valid(struct symbol *sym, const char *str)
565 bool sym_string_within_range(struct symbol *sym, const char *str)
607 bool sym_set_string_value(struct symbol *sym, const char *newval)
657 * Find the default value associated to a symbol.
658 * For tristate symbol handle the modules=n case
660 * If the symbol does not have any default then fallback
663 const char *sym_get_string_default(struct symbol *sym)
666 struct symbol *ds;
675 /* If symbol has a default value look it up */
730 const char *sym_get_string_value(struct symbol *sym)
753 bool sym_is_changable(struct symbol *sym)
767 struct symbol *sym_lookup(const char *name, int flags)
769 struct symbol *symbol;
783 for (symbol = symbol_hash[hash]; symbol; symbol = symbol->next) {
784 if (symbol->name &&
785 !strcmp(symbol->name, name) &&
786 (flags ? symbol->flags & flags
787 : !(symbol->flags & (SYMBOL_CONST|SYMBOL_CHOICE))))
788 return symbol;
796 symbol = malloc(sizeof(*symbol));
797 memset(symbol, 0, sizeof(*symbol));
798 symbol->name = new_name;
799 symbol->type = S_UNKNOWN;
800 symbol->flags |= flags;
802 symbol->next = symbol_hash[hash];
803 symbol_hash[hash] = symbol;
805 return symbol;
808 struct symbol *sym_find(const char *name)
810 struct symbol *symbol = NULL;
825 for (symbol = symbol_hash[hash]; symbol; symbol = symbol->next) {
826 if (symbol->name &&
827 !strcmp(symbol->name, name) &&
828 !(symbol->flags & SYMBOL_CONST))
832 return symbol;
835 struct symbol **sym_re_search(const char *pattern)
837 struct symbol *sym, **sym_arr = NULL;
856 sym_arr = realloc(sym_arr, size * sizeof(struct symbol *));
880 struct symbol *sym;
885 static void dep_stack_insert(struct dep_stack *stack, struct symbol *sym)
907 static void sym_check_print_recursive(struct symbol *last_sym)
910 struct symbol *sym, *next_sym;
958 fprintf(stderr, "%s:%d:\tchoice %s contains symbol %s\n",
979 static struct symbol *sym_check_expr_deps(struct expr *e)
981 struct symbol *sym;
1010 static struct symbol *sym_check_sym_deps(struct symbol *sym)
1012 struct symbol *sym2;
1044 static struct symbol *sym_check_choice_deps(struct symbol *choice)
1046 struct symbol *sym, *sym2;
1081 struct symbol *sym_check_deps(struct symbol *sym)
1083 struct symbol *sym2;
1096 /* for choice groups start the check with main choice symbol */
1115 struct property *prop_alloc(enum prop_type type, struct symbol *sym)
1127 /* append property to the prop list of symbol */
1137 struct symbol *prop_get_symbol(struct property *prop)
1165 return "symbol";
1174 struct symbol *sym, *sym2;
1183 menu_warn(current_entry, "redefining environment symbol from %s",