/scripts/kconfig/ |
D | symbol.c | 36 enum symbol_type sym_get_type(struct symbol *sym) in sym_get_type() argument 38 enum symbol_type type = sym->type; in sym_get_type() 41 if (sym_is_choice_value(sym) && sym->visible == yes) in sym_get_type() 68 struct property *sym_get_choice_prop(struct symbol *sym) in sym_get_choice_prop() argument 72 for_all_choices(sym, prop) in sym_get_choice_prop() 77 static struct property *sym_get_default_prop(struct symbol *sym) in sym_get_default_prop() argument 81 for_all_defaults(sym, prop) { in sym_get_default_prop() 89 struct property *sym_get_range_prop(struct symbol *sym) in sym_get_range_prop() argument 93 for_all_properties(sym, prop, P_RANGE) { in sym_get_range_prop() 101 static long long sym_get_range_val(struct symbol *sym, int base) in sym_get_range_val() argument [all …]
|
D | menu.c | 47 void menu_add_entry(struct symbol *sym) in menu_add_entry() argument 53 menu->sym = sym; in menu_add_entry() 61 if (sym) in menu_add_entry() 62 menu_add_symbol(P_SYMBOL, sym, NULL); in menu_add_entry() 97 if (e->left.sym == &symbol_mod) in rewrite_m() 113 struct symbol *sym = current_entry->sym; in menu_set_type() local 115 if (sym->type == type) in menu_set_type() 117 if (sym->type == S_UNKNOWN) { in menu_set_type() 118 sym->type = type; in menu_set_type() 123 sym->name ? sym->name : "<choice>", in menu_set_type() [all …]
|
D | confdata.c | 234 static int conf_set_sym_val(struct symbol *sym, int def, int def_flags, char *p) in conf_set_sym_val() argument 238 switch (sym->type) { in conf_set_sym_val() 241 sym->def[def].tri = mod; in conf_set_sym_val() 242 sym->flags |= def_flags; in conf_set_sym_val() 248 sym->def[def].tri = yes; in conf_set_sym_val() 249 sym->flags |= def_flags; in conf_set_sym_val() 253 sym->def[def].tri = no; in conf_set_sym_val() 254 sym->flags |= def_flags; in conf_set_sym_val() 259 p, sym->name); in conf_set_sym_val() 279 if (sym_string_valid(sym, p)) { in conf_set_sym_val() [all …]
|
D | expr.c | 19 struct expr *expr_alloc_symbol(struct symbol *sym) in expr_alloc_symbol() argument 23 e->left.sym = sym; in expr_alloc_symbol() 48 e->left.sym = s1; in expr_alloc_comp() 49 e->right.sym = s2; in expr_alloc_comp() 89 e->left.sym = org->left.sym; in expr_copy() 90 e->right.sym = org->right.sym; in expr_copy() 169 e1->left.sym == e2->left.sym && in __expr_eliminate_eq() 170 (e1->left.sym == &symbol_yes || e1->left.sym == &symbol_no)) in __expr_eliminate_eq() 273 return e1->left.sym == e2->left.sym && e1->right.sym == e2->right.sym; in expr_eq() 275 return e1->left.sym == e2->left.sym; in expr_eq() [all …]
|
D | conf.c | 83 static int conf_askvalue(struct symbol *sym, const char *def) in conf_askvalue() argument 85 enum symbol_type type = sym_get_type(sym); in conf_askvalue() 87 if (!sym_has_value(sym)) in conf_askvalue() 93 if (!sym_is_changeable(sym)) { in conf_askvalue() 103 if (sym_has_value(sym)) { in conf_askvalue() 131 struct symbol *sym = menu->sym; in conf_string() local 136 printf("(%s) ", sym->name); in conf_string() 137 def = sym_get_string_value(sym); in conf_string() 138 if (sym_get_string_value(sym)) in conf_string() 140 if (!conf_askvalue(sym, def)) in conf_string() [all …]
|
D | lkc.h | 71 void menu_add_entry(struct symbol *sym); 76 void menu_add_symbol(enum prop_type type, struct symbol *sym, struct expr *dep); 111 struct symbol *sym_choice_default(struct symbol *sym); 112 struct property *sym_get_range_prop(struct symbol *sym); 113 const char *sym_get_string_default(struct symbol *sym); 114 struct symbol *sym_check_deps(struct symbol *sym); 115 struct property *prop_alloc(enum prop_type type, struct symbol *sym); 118 static inline tristate sym_get_tristate_value(struct symbol *sym) in sym_get_tristate_value() argument 120 return sym->curr.tri; in sym_get_tristate_value() 124 static inline struct symbol *sym_get_choice_value(struct symbol *sym) in sym_get_choice_value() argument [all …]
|
D | expr.h | 39 struct symbol *sym; member 52 for (e = (l); e && (s = e->right.sym); e = e->left.expr) 134 #define for_all_symbols(i, sym) for (i = 0; i < SYMBOL_HASHSIZE; i++) for (sym = symbol_hash[i]; sy… argument 194 struct symbol *sym; /* the symbol for which the property is associated */ member 206 #define for_all_properties(sym, st, tok) \ argument 207 for (st = sym->prop; st; st = st->next) \ 209 #define for_all_defaults(sym, st) for_all_properties(sym, st, P_DEFAULT) argument 210 #define for_all_choices(sym, st) for_all_properties(sym, st, P_CHOICE) argument 211 #define for_all_prompts(sym, st) \ argument 212 for (st = sym->prop; st; st = st->next) \ [all …]
|
D | lkc_proto.h | 37 void sym_calc_value(struct symbol *sym); 38 enum symbol_type sym_get_type(struct symbol *sym); 39 bool sym_tristate_within_range(struct symbol *sym,tristate tri); 40 bool sym_set_tristate_value(struct symbol *sym,tristate tri); 41 tristate sym_toggle_tristate_value(struct symbol *sym); 42 bool sym_string_valid(struct symbol *sym, const char *newval); 43 bool sym_string_within_range(struct symbol *sym, const char *str); 44 bool sym_set_string_value(struct symbol *sym, const char *newval); 45 bool sym_is_changeable(struct symbol *sym); 46 struct property * sym_get_choice_prop(struct symbol *sym); [all …]
|
D | mconf.c | 467 struct symbol *sym; in build_conf() local 485 sym = menu->sym; in build_conf() 487 if (!sym) { in build_conf() 527 type = sym_get_type(sym); in build_conf() 528 if (sym_is_choice(sym)) { in build_conf() 529 struct symbol *def_sym = sym_get_choice_value(sym); in build_conf() 534 if (menu_is_visible(child) && child->sym == def_sym) in build_conf() 538 val = sym_get_tristate_value(sym); in build_conf() 539 if (sym_is_changeable(sym)) { in build_conf() 582 val = sym_get_tristate_value(sym); in build_conf() [all …]
|
D | nconf.c | 737 struct symbol *sym; in build_conf() local 747 sym = menu->sym; in build_conf() 749 if (!sym) { in build_conf() 794 type = sym_get_type(sym); in build_conf() 795 if (sym_is_choice(sym)) { in build_conf() 796 struct symbol *def_sym = sym_get_choice_value(sym); in build_conf() 801 if (menu_is_visible(child) && child->sym == def_sym) in build_conf() 805 val = sym_get_tristate_value(sym); in build_conf() 806 if (sym_is_changeable(sym)) { in build_conf() 854 val = sym_get_tristate_value(sym); in build_conf() [all …]
|
D | qconf.cc | 106 struct symbol* sym; in updateMenu() local 119 sym = menu->sym; in updateMenu() 129 if (sym && list->rootEntry == menu) in updateMenu() 133 if (sym) in updateMenu() 144 if (!sym) in updateMenu() 147 setText(nameColIdx, QString::fromLocal8Bit(sym->name)); in updateMenu() 149 type = sym_get_type(sym); in updateMenu() 155 if (!sym_is_changeable(sym) && list->optMode == normalOpt) { in updateMenu() 162 expr = sym_get_tristate_value(sym); in updateMenu() 165 if (sym_is_choice_value(sym) && type == S_BOOLEAN) in updateMenu() [all …]
|
D | gconf.c | 786 struct symbol *sym; in renderer_edited() local 792 sym = menu->sym; in renderer_edited() 797 sym_set_string_value(sym, new_def); in renderer_edited() 807 struct symbol *sym = menu->sym; in change_sym_value() local 810 if (!sym) in change_sym_value() 822 switch (sym_get_type(sym)) { in change_sym_value() 825 if (!sym_tristate_within_range(sym, newval)) in change_sym_value() 827 sym_set_tristate_value(sym, newval); in change_sym_value() 847 if (!menu->sym) in toggle_sym_value() 850 sym_toggle_tristate_value(menu->sym); in toggle_sym_value() [all …]
|
D | parser.y | 237 struct symbol *sym = sym_lookup($2, SYMBOL_CHOICE); variable 238 sym->flags |= SYMBOL_NO_WRITE; 239 menu_add_entry(sym); 283 current_entry->sym->flags |= SYMBOL_OPTIONAL; 403 current_entry->sym->name ?: "<choice>"); 409 current_entry->sym->name ?: "<choice>"); 492 struct symbol *sym; variable 517 for_all_symbols(i, sym) { in for_all_symbols() argument 518 if (sym_check_deps(sym)) in for_all_symbols() 594 struct symbol *sym = menu->sym; in print_symbol() local [all …]
|
D | qconf.h | 260 QString debug_info(struct symbol *sym); 262 static void expr_print_help(void *data, struct symbol *sym, const char *str); 266 struct symbol *sym; variable
|
/scripts/genksyms/ |
D | genksyms.c | 157 struct symbol *sym; in find_symbol() local 159 for (sym = symtab[h]; sym; sym = sym->hash_next) in find_symbol() 160 if (map_to_ns(sym->type) == map_to_ns(ns) && in find_symbol() 161 strcmp(name, sym->name) == 0 && in find_symbol() 162 sym->is_declared) in find_symbol() 165 if (exact && sym && sym->type != ns) in find_symbol() 167 return sym; in find_symbol() 170 static int is_unknown_symbol(struct symbol *sym) in is_unknown_symbol() argument 174 return ((sym->type == SYM_STRUCT || in is_unknown_symbol() 175 sym->type == SYM_UNION || in is_unknown_symbol() [all …]
|
/scripts/ |
D | kallsyms.c | 37 unsigned char *sym; member 89 static int check_symbol_range(const char *sym, unsigned long long addr, in check_symbol_range() argument 98 if (strcmp(sym, ar->start_sym) == 0) { in check_symbol_range() 101 } else if (strcmp(sym, ar->end_sym) == 0) { in check_symbol_range() 112 char sym[500], stype; in read_symbol() local 115 rc = fscanf(in, "%llx %c %499s\n", &s->addr, &stype, sym); in read_symbol() 117 if (rc != EOF && fgets(sym, 500, in) == NULL) in read_symbol() 121 if (strlen(sym) >= KSYM_NAME_LEN) { in read_symbol() 124 sym, strlen(sym), KSYM_NAME_LEN); in read_symbol() 129 if (strcmp(sym, "_text") == 0) in read_symbol() [all …]
|
D | export_report.pl | 32 foreach my $sym (sort numerically @{$list}) { 33 my ($symbol, $no) = split /\s+/, $sym; 130 my $sym = (split /([,"])/,)[4]; 131 my ($module, $value, $symbol, $gpl) = @{$SYMBOL{$sym}}; 132 $SYMBOL{ $sym } = [ $module, $value+1, $symbol, $gpl]; 133 push(@{$MODULE{$thismod}} , $sym);
|
D | sortextable.h | 98 Elf_Sym *sym; in do_func() local 179 sym = (void *)ehdr + _r(&symtab_sec->sh_offset); in do_func() 180 sym += i; in do_func() 181 if (ELF_ST_TYPE(sym->st_info) != STT_OBJECT) in do_func() 183 idx = r(&sym->st_name); in do_func() 185 sort_needed_sym = sym; in do_func() 195 sort_needed_sec = &shdr[get_secindex(r2(&sym->st_shndx), in do_func()
|
D | insert-sys-cert.c | 60 struct sym { struct 94 struct sym *s) in get_symbol_from_map() 135 Elf_Sym *sym, *symtab_start; in find_elf_symbol() local 148 sym = &symtab_start[i]; in find_elf_symbol() 149 symname = strtab + sym->st_name; in find_elf_symbol() 151 return sym; in find_elf_symbol() 158 char *name, struct sym *s) in get_symbol_from_table() 260 static void print_sym(Elf_Ehdr *hdr, struct sym *s) in print_sym() 287 struct sym cert_sym, lsize_sym, used_sym; in main()
|
D | bloat-o-meter | 26 sym = {} 39 sym[name] = sym.get(name, 0) + int(size, 16) 40 return sym
|
D | unifdef.c | 829 int sym; in eval_unary() local 869 sym = findsym(cp); in eval_unary() 870 if (sym < 0) { in eval_unary() 873 *valp = (value[sym] != NULL); in eval_unary() 883 sym = findsym(cp); in eval_unary() 885 if (sym < 0) { in eval_unary() 888 } else if (value[sym] == NULL) { in eval_unary() 892 *valp = strtol(value[sym], &ep, 0); in eval_unary() 893 if (*ep != '\0' || ep == value[sym]) in eval_unary() 1154 addsym(bool ignorethis, bool definethis, char *sym) in addsym() argument [all …]
|
/scripts/mod/ |
D | modpost.c | 488 Elf_Sym *sym; in parse_elf() local 629 for (sym = info->symtab_start; sym < info->symtab_stop; sym++) { in parse_elf() 630 sym->st_shndx = TO_NATIVE(sym->st_shndx); in parse_elf() 631 sym->st_name = TO_NATIVE(sym->st_name); in parse_elf() 632 sym->st_value = TO_NATIVE(sym->st_value); in parse_elf() 633 sym->st_size = TO_NATIVE(sym->st_size); in parse_elf() 686 Elf_Sym *sym, const char *symname) in handle_modversions() argument 695 export = export_from_secname(info, get_secindex(info, sym)); in handle_modversions() 697 export = export_from_sec(info, get_secindex(info, sym)); in handle_modversions() 702 crc = (unsigned int) sym->st_value; in handle_modversions() [all …]
|
D | modpost.h | 175 const Elf_Sym *sym) in get_secindex() argument 177 if (is_shndx_special(sym->st_shndx)) in get_secindex() 178 return SPECIAL(sym->st_shndx); in get_secindex() 179 if (sym->st_shndx != SHN_XINDEX) in get_secindex() 180 return sym->st_shndx; in get_secindex() 181 return info->symtab_shndx_start[sym - info->symtab_start]; in get_secindex() 187 Elf_Sym *sym, const char *symname);
|
D | file2alias.c | 1416 Elf_Sym *sym, const char *symname) in handle_moddevtable() argument 1424 if (!sym->st_shndx || get_secindex(info, sym) >= info->num_sections) in handle_moddevtable() 1428 if (ELF_ST_TYPE(sym->st_info) != STT_OBJECT) in handle_moddevtable() 1446 if (info->sechdrs[get_secindex(info, sym)].sh_type & SHT_NOBITS) { in handle_moddevtable() 1447 zeros = calloc(1, sym->st_size); in handle_moddevtable() 1451 + info->sechdrs[get_secindex(info, sym)].sh_offset in handle_moddevtable() 1452 + sym->st_value; in handle_moddevtable() 1457 do_usb_table(symval, sym->st_size, mod); in handle_moddevtable() 1459 do_of_table(symval, sym->st_size, mod); in handle_moddevtable() 1461 do_pnp_device_entry(symval, sym->st_size, mod); in handle_moddevtable() [all …]
|
/scripts/gcc-plugins/ |
D | arm_ssp_per_task_plugin.c | 14 const char *sym; in arm_pertask_ssp_rtl_execute() local 27 sym = XSTR(SET_SRC(body), 0); in arm_pertask_ssp_rtl_execute() 28 if (strcmp(sym, "__stack_chk_guard")) in arm_pertask_ssp_rtl_execute()
|