/scripts/kconfig/ |
D | symbol.c | 41 enum symbol_type sym_get_type(struct symbol *sym) in sym_get_type() argument 43 enum symbol_type type = sym->type; in sym_get_type() 46 if (sym_is_choice_value(sym) && sym->visible == yes) in sym_get_type() 73 struct property *sym_get_choice_prop(struct symbol *sym) in sym_get_choice_prop() argument 77 for_all_choices(sym, prop) in sym_get_choice_prop() 82 static struct property *sym_get_default_prop(struct symbol *sym) in sym_get_default_prop() argument 86 for_all_defaults(sym, prop) { in sym_get_default_prop() 94 struct property *sym_get_range_prop(struct symbol *sym) in sym_get_range_prop() argument 98 for_all_properties(sym, prop, P_RANGE) { in sym_get_range_prop() 106 static long long sym_get_range_val(struct symbol *sym, int base) in sym_get_range_val() argument [all …]
|
D | confdata.c | 230 static int conf_set_sym_val(struct symbol *sym, int def, int def_flags, char *p) in conf_set_sym_val() argument 234 switch (sym->type) { in conf_set_sym_val() 237 sym->def[def].tri = mod; in conf_set_sym_val() 238 sym->flags |= def_flags; in conf_set_sym_val() 244 sym->def[def].tri = yes; in conf_set_sym_val() 245 sym->flags |= def_flags; in conf_set_sym_val() 249 sym->def[def].tri = no; in conf_set_sym_val() 250 sym->flags |= def_flags; in conf_set_sym_val() 255 p, sym->name); in conf_set_sym_val() 275 if (sym_string_valid(sym, p)) { in conf_set_sym_val() [all …]
|
D | menu.c | 48 void menu_add_entry(struct symbol *sym) in menu_add_entry() argument 54 menu->sym = sym; in menu_add_entry() 62 if (sym) in menu_add_entry() 63 menu_add_symbol(P_SYMBOL, sym, NULL); in menu_add_entry() 99 if (e->left.sym == &symbol_mod) in rewrite_m() 115 struct symbol *sym = current_entry->sym; in menu_set_type() local 117 if (sym->type == type) in menu_set_type() 119 if (sym->type == S_UNKNOWN) { in menu_set_type() 120 sym->type = type; in menu_set_type() 125 sym->name ? sym->name : "<choice>", in menu_set_type() [all …]
|
D | conf.c | 118 struct symbol *sym; in randomize_choice_values() local 134 expr_list_for_each_sym(prop->expr, e, sym) in randomize_choice_values() 144 expr_list_for_each_sym(prop->expr, e, sym) { in randomize_choice_values() 146 sym->def[S_DEF_USER].tri = yes; in randomize_choice_values() 147 csym->def[S_DEF_USER].val = sym; in randomize_choice_values() 149 sym->def[S_DEF_USER].tri = no; in randomize_choice_values() 151 sym->flags |= SYMBOL_DEF_USER; in randomize_choice_values() 153 sym->flags &= ~SYMBOL_VALID; in randomize_choice_values() 174 struct symbol *sym, *csym; in conf_set_all_new_symbols() local 230 for_all_symbols(i, sym) { in conf_set_all_new_symbols() [all …]
|
D | expr.c | 18 struct expr *expr_alloc_symbol(struct symbol *sym) in expr_alloc_symbol() argument 22 e->left.sym = sym; in expr_alloc_symbol() 47 e->left.sym = s1; in expr_alloc_comp() 48 e->right.sym = s2; in expr_alloc_comp() 88 e->left.sym = org->left.sym; in expr_copy() 89 e->right.sym = org->right.sym; in expr_copy() 168 e1->left.sym == e2->left.sym && in __expr_eliminate_eq() 169 (e1->left.sym == &symbol_yes || e1->left.sym == &symbol_no)) in __expr_eliminate_eq() 272 return e1->left.sym == e2->left.sym && e1->right.sym == e2->right.sym; in expr_eq() 274 return e1->left.sym == e2->left.sym; in expr_eq() [all …]
|
D | lkc.h | 86 void menu_add_entry(struct symbol *sym); 91 void menu_add_symbol(enum prop_type type, struct symbol *sym, struct expr *dep); 110 struct symbol *sym_choice_default(struct symbol *sym); 111 struct property *sym_get_range_prop(struct symbol *sym); 112 const char *sym_get_string_default(struct symbol *sym); 113 struct symbol *sym_check_deps(struct symbol *sym); 116 static inline tristate sym_get_tristate_value(struct symbol *sym) in sym_get_tristate_value() argument 118 return sym->curr.tri; in sym_get_tristate_value() 122 static inline struct symbol *sym_get_choice_value(struct symbol *sym) in sym_get_choice_value() argument 124 return (struct symbol *)sym->curr.val; in sym_get_choice_value() [all …]
|
D | lkc_proto.h | 24 void sym_calc_value(struct symbol *sym); 25 enum symbol_type sym_get_type(struct symbol *sym); 26 bool sym_tristate_within_range(struct symbol *sym,tristate tri); 27 bool sym_set_tristate_value(struct symbol *sym,tristate tri); 28 tristate sym_toggle_tristate_value(struct symbol *sym); 29 bool sym_string_valid(struct symbol *sym, const char *newval); 30 bool sym_string_within_range(struct symbol *sym, const char *str); 31 bool sym_set_string_value(struct symbol *sym, const char *newval); 32 bool sym_is_changeable(struct symbol *sym); 33 struct property * sym_get_choice_prop(struct symbol *sym); [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 202 #define for_all_properties(sym, st, tok) \ argument 203 for (st = sym->prop; st; st = st->next) \ 205 #define for_all_defaults(sym, st) for_all_properties(sym, st, P_DEFAULT) argument 206 #define for_all_choices(sym, st) for_all_properties(sym, st, P_CHOICE) argument 207 #define for_all_prompts(sym, st) \ argument 208 for (st = sym->prop; st; st = st->next) \ 231 struct symbol *sym; member [all …]
|
D | mconf.c | 465 struct symbol *sym; in build_conf() local 483 sym = menu->sym; in build_conf() 485 if (!sym) { in build_conf() 525 type = sym_get_type(sym); in build_conf() 526 if (sym_is_choice(sym)) { in build_conf() 527 struct symbol *def_sym = sym_get_choice_value(sym); in build_conf() 532 if (menu_is_visible(child) && child->sym == def_sym) in build_conf() 536 val = sym_get_tristate_value(sym); in build_conf() 537 if (sym_is_changeable(sym)) { in build_conf() 580 val = sym_get_tristate_value(sym); in build_conf() [all …]
|
D | qconf.cc | 91 struct symbol* sym; in updateMenu() local 104 sym = menu->sym; in updateMenu() 114 if (sym && list->rootEntry == menu) in updateMenu() 118 if (sym) in updateMenu() 130 if (!sym) in updateMenu() 133 setText(nameColIdx, sym->name); in updateMenu() 135 type = sym_get_type(sym); in updateMenu() 141 if (!sym_is_changeable(sym) && list->optMode == normalOpt) { in updateMenu() 145 expr = sym_get_tristate_value(sym); in updateMenu() 148 if (sym_is_choice_value(sym) && type == S_BOOLEAN) in updateMenu() [all …]
|
D | nconf.c | 735 struct symbol *sym; in build_conf() local 745 sym = menu->sym; in build_conf() 747 if (!sym) { in build_conf() 791 type = sym_get_type(sym); in build_conf() 792 if (sym_is_choice(sym)) { in build_conf() 793 struct symbol *def_sym = sym_get_choice_value(sym); in build_conf() 798 if (menu_is_visible(child) && child->sym == def_sym) in build_conf() 802 val = sym_get_tristate_value(sym); in build_conf() 803 if (sym_is_changeable(sym)) { in build_conf() 851 val = sym_get_tristate_value(sym); in build_conf() [all …]
|
D | parser.y | 223 current_entry->sym->name, modules_sym->name); 224 modules_sym = current_entry->sym; 231 struct symbol *sym = sym_lookup($2, SYMBOL_CHOICE); variable 232 sym->flags |= SYMBOL_NO_WRITE; 233 menu_add_entry(sym); 277 current_entry->sym->flags |= SYMBOL_OPTIONAL; 395 current_entry->sym->name ?: "<choice>"); 401 current_entry->sym->name ?: "<choice>"); 480 struct symbol *sym; variable 505 for_all_symbols(i, sym) { in for_all_symbols() argument [all …]
|
D | gconf.c | 783 struct symbol *sym; in renderer_edited() local 789 sym = menu->sym; in renderer_edited() 794 sym_set_string_value(sym, new_def); in renderer_edited() 804 struct symbol *sym = menu->sym; in change_sym_value() local 807 if (!sym) in change_sym_value() 819 switch (sym_get_type(sym)) { in change_sym_value() 822 if (!sym_tristate_within_range(sym, newval)) in change_sym_value() 824 sym_set_tristate_value(sym, newval); in change_sym_value() 844 if (!menu->sym) in toggle_sym_value() 847 sym_toggle_tristate_value(menu->sym); in toggle_sym_value() [all …]
|
D | qconf.h | 207 QString debug_info(struct symbol *sym); 209 static void expr_print_help(void *data, struct symbol *sym, const char *str); 212 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 80 return (char *)s->sym + 1; in sym_name() 180 static void check_symbol_range(const char *sym, unsigned long long addr, in check_symbol_range() argument 189 if (strcmp(sym, ar->start_sym) == 0) { in check_symbol_range() 192 } else if (strcmp(sym, ar->end_sym) == 0) { in check_symbol_range() 204 struct sym_entry *sym; in read_symbol() local 235 sym = malloc(sizeof(*sym) + len + 1); in read_symbol() 236 if (!sym) { in read_symbol() 241 sym->addr = addr; in read_symbol() 242 sym->len = len; 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 | sorttable.h | 204 Elf_Sym *sym; in do_sort() local 330 for (sym = (void *)ehdr + _r(&symtab_sec->sh_offset); in do_sort() 331 sym < sym + _r(&symtab_sec->sh_size) / sizeof(Elf_Sym); in do_sort() 332 sym++) { in do_sort() 333 if (ELF_ST_TYPE(sym->st_info) != STT_OBJECT) in do_sort() 335 if (!strcmp(strtab + r(&sym->st_name), in do_sort() 337 sort_needed_sym = sym; in do_sort() 349 sort_needed_sec = &shdr[get_secindex(r2(&sym->st_shndx), in do_sort()
|
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 = {} 41 sym[name] = sym.get(name, 0) + int(size, 16) 42 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 …]
|
D | recordmcount.h | 149 static void fn_ELF_R_INFO(Elf_Rel *const rp, unsigned sym, unsigned type) in fn_ELF_R_INFO() argument 151 rp->r_info = _w(ELF_R_INFO(sym, type)); in fn_ELF_R_INFO() 153 static void (*Elf_r_info)(Elf_Rel *const rp, unsigned sym, unsigned type) = fn_ELF_R_INFO; 191 static unsigned int get_symindex(Elf_Sym const *sym, Elf32_Word const *symtab, in get_symindex() argument 195 unsigned short shndx = w2(sym->st_shndx); in get_symindex() 202 offset = (unsigned long)sym - (unsigned long)symtab; in get_symindex() 203 index = offset / sizeof(*sym); in get_symindex()
|
/scripts/mod/ |
D | modpost.c | 343 static void *sym_get_data(const struct elf_info *info, const Elf_Sym *sym) in sym_get_data() argument 345 return sym_get_data_by_offset(info, get_secindex(info, sym), in sym_get_data() 346 sym->st_value); in sym_get_data() 385 const Elf_Sym *sym) in namespace_from_kstrtabns() argument 387 const char *value = sym_get_data(info, sym); in namespace_from_kstrtabns() 480 Elf_Sym *sym; in parse_elf() local 610 for (sym = info->symtab_start; sym < info->symtab_stop; sym++) { in parse_elf() 611 sym->st_shndx = TO_NATIVE(sym->st_shndx); in parse_elf() 612 sym->st_name = TO_NATIVE(sym->st_name); in parse_elf() 613 sym->st_value = TO_NATIVE(sym->st_value); in parse_elf() [all …]
|
D | modpost.h | 171 const Elf_Sym *sym) in get_secindex() argument 173 if (is_shndx_special(sym->st_shndx)) in get_secindex() 174 return SPECIAL(sym->st_shndx); in get_secindex() 175 if (sym->st_shndx != SHN_XINDEX) in get_secindex() 176 return sym->st_shndx; in get_secindex() 177 return info->symtab_shndx_start[sym - info->symtab_start]; in get_secindex() 183 Elf_Sym *sym, const char *symname);
|
/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()
|