/scripts/kconfig/ |
D | symbol.c | 42 enum symbol_type sym_get_type(struct symbol *sym) in sym_get_type() argument 44 enum symbol_type type = sym->type; in sym_get_type() 47 if (sym_is_choice_value(sym) && sym->visible == yes) in sym_get_type() 74 struct property *sym_get_choice_prop(struct symbol *sym) in sym_get_choice_prop() argument 78 for_all_choices(sym, prop) in sym_get_choice_prop() 83 static struct property *sym_get_default_prop(struct symbol *sym) in sym_get_default_prop() argument 87 for_all_defaults(sym, prop) { in sym_get_default_prop() 95 struct property *sym_get_range_prop(struct symbol *sym) in sym_get_range_prop() argument 99 for_all_properties(sym, prop, P_RANGE) { in sym_get_range_prop() 107 static long long sym_get_range_val(struct symbol *sym, int base) in sym_get_range_val() argument [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 | 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() 98 if (e->left.sym == &symbol_mod) in rewrite_m() 114 struct symbol *sym = current_entry->sym; in menu_set_type() local 116 if (sym->type == type) in menu_set_type() 118 if (sym->type == S_UNKNOWN) { in menu_set_type() 119 sym->type = type; in menu_set_type() 124 sym->name ? sym->name : "<choice>", in menu_set_type() [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 | conf.c | 86 static int conf_askvalue(struct symbol *sym, const char *def) in conf_askvalue() argument 88 enum symbol_type type = sym_get_type(sym); in conf_askvalue() 90 if (!sym_has_value(sym)) in conf_askvalue() 96 if (!sym_is_changeable(sym)) { in conf_askvalue() 106 if (sym_has_value(sym)) { in conf_askvalue() 134 struct symbol *sym = menu->sym; in conf_string() local 139 printf("(%s) ", sym->name); in conf_string() 140 def = sym_get_string_value(sym); in conf_string() 141 if (sym_get_string_value(sym)) in conf_string() 143 if (!conf_askvalue(sym, def)) in conf_string() [all …]
|
D | lkc_proto.h | 23 void sym_calc_value(struct symbol *sym); 24 enum symbol_type sym_get_type(struct symbol *sym); 25 bool sym_tristate_within_range(struct symbol *sym,tristate tri); 26 bool sym_set_tristate_value(struct symbol *sym,tristate tri); 27 tristate sym_toggle_tristate_value(struct symbol *sym); 28 bool sym_string_valid(struct symbol *sym, const char *newval); 29 bool sym_string_within_range(struct symbol *sym, const char *str); 30 bool sym_set_string_value(struct symbol *sym, const char *newval); 31 bool sym_is_changeable(struct symbol *sym); 32 struct property * sym_get_choice_prop(struct symbol *sym); [all …]
|
D | lkc.h | 100 void menu_add_entry(struct symbol *sym); 105 void menu_add_symbol(enum prop_type type, struct symbol *sym, struct expr *dep); 127 struct symbol *sym_choice_default(struct symbol *sym); 128 struct property *sym_get_range_prop(struct symbol *sym); 129 const char *sym_get_string_default(struct symbol *sym); 130 struct symbol *sym_check_deps(struct symbol *sym); 133 static inline tristate sym_get_tristate_value(struct symbol *sym) in sym_get_tristate_value() argument 135 return sym->curr.tri; in sym_get_tristate_value() 139 static inline struct symbol *sym_get_choice_value(struct symbol *sym) in sym_get_choice_value() argument 141 return (struct symbol *)sym->curr.val; in sym_get_choice_value() [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 205 #define for_all_properties(sym, st, tok) \ argument 206 for (st = sym->prop; st; st = st->next) \ 208 #define for_all_defaults(sym, st) for_all_properties(sym, st, P_DEFAULT) argument 209 #define for_all_choices(sym, st) for_all_properties(sym, st, P_CHOICE) argument 210 #define for_all_prompts(sym, st) \ argument 211 for (st = sym->prop; st; st = st->next) \ 234 struct symbol *sym; member [all …]
|
D | mconf.c | 468 struct symbol *sym; in build_conf() local 486 sym = menu->sym; in build_conf() 488 if (!sym) { in build_conf() 528 type = sym_get_type(sym); in build_conf() 529 if (sym_is_choice(sym)) { in build_conf() 530 struct symbol *def_sym = sym_get_choice_value(sym); in build_conf() 535 if (menu_is_visible(child) && child->sym == def_sym) in build_conf() 539 val = sym_get_tristate_value(sym); in build_conf() 540 if (sym_is_changeable(sym)) { in build_conf() 583 val = sym_get_tristate_value(sym); in build_conf() [all …]
|
D | nconf.c | 738 struct symbol *sym; in build_conf() local 748 sym = menu->sym; in build_conf() 750 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 | 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() 129 if (!sym) in updateMenu() 132 setText(nameColIdx, sym->name); in updateMenu() 134 type = sym_get_type(sym); in updateMenu() 140 if (!sym_is_changeable(sym) && list->optMode == normalOpt) { in updateMenu() 144 expr = sym_get_tristate_value(sym); in updateMenu() 147 if (sym_is_choice_value(sym) && type == S_BOOLEAN) in updateMenu() [all …]
|
D | gconf.c | 787 struct symbol *sym; in renderer_edited() local 793 sym = menu->sym; in renderer_edited() 798 sym_set_string_value(sym, new_def); in renderer_edited() 808 struct symbol *sym = menu->sym; in change_sym_value() local 811 if (!sym) in change_sym_value() 823 switch (sym_get_type(sym)) { in change_sym_value() 826 if (!sym_tristate_within_range(sym, newval)) in change_sym_value() 828 sym_set_tristate_value(sym, newval); in change_sym_value() 848 if (!menu->sym) in toggle_sym_value() 851 sym_toggle_tristate_value(menu->sym); in toggle_sym_value() [all …]
|
D | parser.y | 240 struct symbol *sym = sym_lookup($2, SYMBOL_CHOICE); variable 241 sym->flags |= SYMBOL_NO_WRITE; 242 menu_add_entry(sym); 286 current_entry->sym->flags |= SYMBOL_OPTIONAL; 404 current_entry->sym->name ?: "<choice>"); 410 current_entry->sym->name ?: "<choice>"); 489 struct symbol *sym; variable 514 for_all_symbols(i, sym) { in for_all_symbols() argument 515 if (sym_check_deps(sym)) in for_all_symbols() 591 struct symbol *sym = menu->sym; in print_symbol() local [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() 179 static void check_symbol_range(const char *sym, unsigned long long addr, in check_symbol_range() argument 188 if (strcmp(sym, ar->start_sym) == 0) { in check_symbol_range() 191 } else if (strcmp(sym, ar->end_sym) == 0) { in check_symbol_range() 203 struct sym_entry *sym; in read_symbol() local 234 sym = malloc(sizeof(*sym) + len + 1); in read_symbol() 235 if (!sym) { in read_symbol() 240 sym->addr = addr; in read_symbol() 241 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 | 334 static void *sym_get_data(const struct elf_info *info, const Elf_Sym *sym) in sym_get_data() argument 336 return sym_get_data_by_offset(info, get_secindex(info, sym), in sym_get_data() 337 sym->st_value); in sym_get_data() 388 const Elf_Sym *sym) in namespace_from_kstrtabns() argument 390 const char *value = sym_get_data(info, sym); in namespace_from_kstrtabns() 483 Elf_Sym *sym; in parse_elf() local 619 for (sym = info->symtab_start; sym < info->symtab_stop; sym++) { in parse_elf() 620 sym->st_shndx = TO_NATIVE(sym->st_shndx); in parse_elf() 621 sym->st_name = TO_NATIVE(sym->st_name); in parse_elf() 622 sym->st_value = TO_NATIVE(sym->st_value); in parse_elf() [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() 195 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()
|