/openbmc/u-boot/scripts/kconfig/ |
H A D | symbol.c | 38 static void sym_add_default(struct symbol *sym, const char *def) in sym_add_default() argument 40 struct property *prop = prop_alloc(P_DEFAULT, sym); in sym_add_default() 47 struct symbol *sym; in sym_init() local 57 sym = sym_lookup("UNAME_RELEASE", 0); in sym_init() 58 sym->type = S_STRING; in sym_init() 59 sym->flags |= SYMBOL_AUTO; in sym_init() 60 sym_add_default(sym, uts.release); in sym_init() 63 enum symbol_type sym_get_type(struct symbol *sym) in sym_get_type() argument 65 enum symbol_type type = sym->type; in sym_get_type() 68 if (sym_is_choice_value(sym) && sym->visible == yes) in sym_get_type() [all …]
|
H A D | confdata.c | 86 struct symbol *sym; in conf_expand_value() local 100 sym = sym_lookup(name, 0); in conf_expand_value() 101 sym_calc_value(sym); in conf_expand_value() 102 strcat(res_value, sym_get_string_value(sym)); in conf_expand_value() 126 static int conf_set_sym_val(struct symbol *sym, int def, int def_flags, char *p) in conf_set_sym_val() argument 130 switch (sym->type) { in conf_set_sym_val() 133 sym->def[def].tri = mod; in conf_set_sym_val() 134 sym->flags |= def_flags; in conf_set_sym_val() 140 sym->def[def].tri = yes; in conf_set_sym_val() 141 sym->flags |= def_flags; in conf_set_sym_val() [all …]
|
H A 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 …]
|
H A D | expr.c | 17 struct expr *expr_alloc_symbol(struct symbol *sym) in expr_alloc_symbol() argument 21 e->left.sym = sym; in expr_alloc_symbol() 46 e->left.sym = s1; in expr_alloc_comp() 47 e->right.sym = s2; in expr_alloc_comp() 87 e->left.sym = org->left.sym; in expr_copy() 88 e->right.sym = org->right.sym; in expr_copy() 167 e1->left.sym == e2->left.sym && in __expr_eliminate_eq() 168 (e1->left.sym == &symbol_yes || e1->left.sym == &symbol_no)) in __expr_eliminate_eq() 264 return e1->left.sym == e2->left.sym && e1->right.sym == e2->right.sym; in expr_eq() 266 return e1->left.sym == e2->left.sym; in expr_eq() [all …]
|
H A D | conf.c | 84 static int conf_askvalue(struct symbol *sym, const char *def) in conf_askvalue() argument 86 enum symbol_type type = sym_get_type(sym); in conf_askvalue() 88 if (!sym_has_value(sym)) in conf_askvalue() 94 if (!sym_is_changable(sym)) { in conf_askvalue() 104 if (sym_has_value(sym)) { in conf_askvalue() 132 struct symbol *sym = menu->sym; in conf_string() local 137 printf("(%s) ", sym->name); in conf_string() 138 def = sym_get_string_value(sym); in conf_string() 139 if (sym_get_string_value(sym)) in conf_string() 141 if (!conf_askvalue(sym, def)) in conf_string() [all …]
|
H A D | lkc.h | 103 void menu_add_entry(struct symbol *sym); 108 void menu_add_symbol(enum prop_type type, struct symbol *sym, struct expr *dep); 141 struct symbol *sym_choice_default(struct symbol *sym); 142 const char *sym_get_string_default(struct symbol *sym); 143 struct symbol *sym_check_deps(struct symbol *sym); 144 struct property *prop_alloc(enum prop_type type, struct symbol *sym); 146 struct property *sym_get_env_prop(struct symbol *sym); 148 static inline tristate sym_get_tristate_value(struct symbol *sym) in sym_get_tristate_value() argument 150 return sym->curr.tri; in sym_get_tristate_value() 154 static inline struct symbol *sym_get_choice_value(struct symbol *sym) in sym_get_choice_value() argument [all …]
|
H A 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 191 struct symbol *sym; /* the symbol for which the property is associated */ member 203 #define for_all_properties(sym, st, tok) \ argument 204 for (st = sym->prop; st; st = st->next) \ 206 #define for_all_defaults(sym, st) for_all_properties(sym, st, P_DEFAULT) argument 207 #define for_all_choices(sym, st) for_all_properties(sym, st, P_CHOICE) argument 208 #define for_all_prompts(sym, st) \ argument 209 for (st = sym->prop; st; st = st->next) \ [all …]
|
/openbmc/linux/scripts/kconfig/ |
H A D | symbol.c | 45 enum symbol_type sym_get_type(struct symbol *sym) in sym_get_type() 47 enum symbol_type type = sym->type; in sym_get_type() 50 if (sym_is_choice_value(sym) && sym->visible == yes) in sym_get_type() 77 struct property *sym_get_choice_prop(struct symbol *sym) in sym_get_choice_prop() 81 for_all_choices(sym, prop) in sym_get_choice_prop() 86 static struct property *sym_get_default_prop(struct symbol *sym) in sym_get_default_prop() 90 for_all_defaults(sym, prop) { in sym_get_default_prop() 98 struct property *sym_get_range_prop(struct symbol *sym) in sym_get_range_prop() 102 for_all_properties(sym, pro in sym_get_range_prop() 44 sym_get_type(struct symbol * sym) sym_get_type() argument 76 sym_get_choice_prop(struct symbol * sym) sym_get_choice_prop() argument 85 sym_get_default_prop(struct symbol * sym) sym_get_default_prop() argument 97 sym_get_range_prop(struct symbol * sym) sym_get_range_prop() argument 109 sym_get_range_val(struct symbol * sym,int base) sym_get_range_val() argument 125 sym_validate_range(struct symbol * sym) sym_validate_range() argument 157 sym_set_changed(struct symbol * sym) sym_set_changed() argument 170 struct symbol *sym; sym_set_all_changed() local 177 sym_calc_visibility(struct symbol * sym) sym_calc_visibility() argument 246 sym_choice_default(struct symbol * sym) sym_choice_default() argument 272 sym_calc_choice(struct symbol * sym) sym_calc_choice() argument 304 sym_warn_unmet_dep(struct symbol * sym) sym_warn_unmet_dep() argument 325 sym_calc_value(struct symbol * sym) sym_calc_value() argument 471 struct symbol *sym; sym_clear_all_valid() local 480 sym_tristate_within_range(struct symbol * sym,tristate val) sym_tristate_within_range() argument 499 sym_set_tristate_value(struct symbol * sym,tristate val) sym_set_tristate_value() argument 535 sym_toggle_tristate_value(struct symbol * sym) sym_toggle_tristate_value() argument 558 sym_string_valid(struct symbol * sym,const char * str) sym_string_valid() argument 601 sym_string_within_range(struct symbol * sym,const char * str) sym_string_within_range() argument 643 sym_set_string_value(struct symbol * sym,const char * newval) sym_set_string_value() argument 699 sym_get_string_default(struct symbol * sym) sym_get_string_default() argument 769 sym_get_string_value(struct symbol * sym) sym_get_string_value() argument 792 sym_is_changeable(struct symbol * sym) sym_is_changeable() argument 875 struct symbol *sym; global() member 911 struct symbol *sym, **sym_arr = NULL; sym_re_search() local 970 struct symbol *sym; global() member 975 dep_stack_insert(struct dep_stack * stack,struct symbol * sym) dep_stack_insert() argument 1000 struct symbol *sym, *next_sym; sym_check_print_recursive() local 1088 struct symbol *sym; sym_check_expr_deps() local 1121 sym_check_sym_deps(struct symbol * sym) sym_check_sym_deps() argument 1171 struct symbol *sym, *sym2; sym_check_choice_deps() local 1206 sym_check_deps(struct symbol * sym) sym_check_deps() argument [all...] |
H A 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 …]
|
H A D | confdata.c | 233 static int conf_set_sym_val(struct symbol *sym, int def, int def_flags, char *p) in conf_set_sym_val() 237 switch (sym->type) { in conf_set_sym_val() 240 sym->def[def].tri = mod; in conf_set_sym_val() 241 sym->flags |= def_flags; in conf_set_sym_val() 247 sym->def[def].tri = yes; in conf_set_sym_val() 248 sym->flags |= def_flags; in conf_set_sym_val() 252 sym->def[def].tri = no; in conf_set_sym_val() 253 sym->flags |= def_flags; in conf_set_sym_val() 258 p, sym->name); in conf_set_sym_val() 280 if (sym_string_valid(sym, in conf_set_sym_val() 226 conf_set_sym_val(struct symbol * sym,int def,int def_flags,char * p) conf_set_sym_val() argument 350 struct symbol *sym; conf_read_simple() local 544 struct symbol *sym; conf_read() local 690 __print_symbol(FILE * fp,struct symbol * sym,enum output_n output_n,bool escape_string) __print_symbol() argument 718 print_symbol_for_dotconfig(FILE * fp,struct symbol * sym) print_symbol_for_dotconfig() argument 723 print_symbol_for_autoconf(FILE * fp,struct symbol * sym) print_symbol_for_autoconf() argument 728 print_symbol_for_listconfig(struct symbol * sym) print_symbol_for_listconfig() argument 733 print_symbol_for_c(FILE * fp,struct symbol * sym) print_symbol_for_c() argument 775 print_symbol_for_rustccfg(FILE * fp,struct symbol * sym) print_symbol_for_rustccfg() argument 840 struct symbol *sym; conf_write_defconfig() local 914 struct symbol *sym; conf_write() local 1079 struct symbol *sym; conf_touch_deps() local 1159 struct symbol *sym; __conf_write_autoconf() local 1198 struct symbol *sym; conf_write_autoconf() local 1267 struct symbol *sym; set_all_choice_values() local [all...] |
H A 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 …]
|
H A D | conf.c | 119 struct symbol *sym; in randomize_choice_values() local 135 expr_list_for_each_sym(prop->expr, e, sym) in randomize_choice_values() 145 expr_list_for_each_sym(prop->expr, e, sym) { in randomize_choice_values() 147 sym->def[S_DEF_USER].tri = yes; in randomize_choice_values() 148 csym->def[S_DEF_USER].val = sym; in randomize_choice_values() 150 sym->def[S_DEF_USER].tri = no; in randomize_choice_values() 152 sym->flags |= SYMBOL_DEF_USER; in randomize_choice_values() 154 sym->flags &= ~SYMBOL_VALID; in randomize_choice_values() 173 struct symbol *sym, *csym; in conf_set_all_new_symbols() local 229 for_all_symbols(i, sym) { in conf_set_all_new_symbols() 306 struct symbol *sym; conf_rewrite_tristates() local 317 conf_askvalue(struct symbol * sym,const char * def) conf_askvalue() argument 351 struct symbol *sym = menu->sym; conf_string() local 384 struct symbol *sym = menu->sym; conf_sym() local 451 struct symbol *sym, *def_sym; conf_choice() local 566 struct symbol *sym; conf() local 633 struct symbol *sym; check_conf() local [all...] |
H A 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 …]
|
H A D | mconf.c | 506 struct symbol *sym; in build_conf() local 524 sym = menu->sym; in build_conf() 526 if (!sym) { in build_conf() 566 type = sym_get_type(sym); in build_conf() 567 if (sym_is_choice(sym)) { in build_conf() 568 struct symbol *def_sym = sym_get_choice_value(sym); in build_conf() 573 if (menu_is_visible(child) && child->sym == def_sym) in build_conf() 577 val = sym_get_tristate_value(sym); in build_conf() 578 if (sym_is_changeable(sym)) { in build_conf() 621 val = sym_get_tristate_value(sym); in build_conf() [all …]
|
/openbmc/linux/include/linux/ |
H A D | export.h | 36 #define __EXPORT_SYMBOL_REF(sym) \ argument 38 .quad sym 40 #define __EXPORT_SYMBOL_REF(sym) \ argument 42 .long sym 45 #define ___EXPORT_SYMBOL(sym, license, ns) \ argument 47 __export_symbol_##sym: ASM_NL \ 50 __EXPORT_SYMBOL_REF(sym) ASM_NL \ 60 #define __EXPORT_SYMBOL(sym, license, ns) argument 64 #define __EXPORT_SYMBOL(sym, license, ns) __GENKSYMS_EXPORT_SYMBOL(sym) argument 68 #define __EXPORT_SYMBOL(sym, license, ns) \ argument [all …]
|
/openbmc/linux/tools/objtool/ |
H A D | elf.c | 109 const struct symbol *sym; member 125 sh->sym = s; in symbol_hole_by_offset() 159 struct symbol *sym; in find_symbol_by_index() local 161 elf_hash_for_each_possible(symbol, sym, hash, idx) { in find_symbol_by_index() 162 if (sym->idx == idx) in find_symbol_by_index() 163 return sym; in find_symbol_by_index() 215 .sym = NULL, in find_symbol_hole_containing() 230 if (!hole.sym) in find_symbol_hole_containing() 234 n = rb_next(&hole.sym->node); in find_symbol_hole_containing() 258 struct symbol *sym; in find_symbol_by_name() local [all …]
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/nfpcore/ |
H A D | nfp_rtsym.c | 208 u64 nfp_rtsym_size(const struct nfp_rtsym *sym) in nfp_rtsym_size() argument 210 switch (sym->type) { in nfp_rtsym_size() 212 pr_err("rtsym '%s': type NONE\n", sym->name); in nfp_rtsym_size() 215 pr_warn("rtsym '%s': unknown type: %d\n", sym->name, sym->type); in nfp_rtsym_size() 219 return sym->size; in nfp_rtsym_size() 226 nfp_rtsym_to_dest(struct nfp_cpp *cpp, const struct nfp_rtsym *sym, in nfp_rtsym_to_dest() argument 229 if (sym->type != NFP_RTSYM_TYPE_OBJECT) { in nfp_rtsym_to_dest() 231 sym->name); in nfp_rtsym_to_dest() 235 *addr = sym->addr + off; in nfp_rtsym_to_dest() 237 if (sym->target == NFP_RTSYM_TARGET_EMU_CACHE) { in nfp_rtsym_to_dest() [all …]
|
/openbmc/linux/scripts/genksyms/ |
H A 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 in find_symbol() 170 is_unknown_symbol(struct symbol * sym) is_unknown_symbol() argument 190 struct symbol *sym; __add_symbol() local 460 struct string_list *sym, *def; read_reference() local 530 expand_and_crc_sym(struct symbol * sym,unsigned long crc) expand_and_crc_sym() argument 636 struct symbol *sym; export_symbol() local 833 struct symbol *sym = visited_symbols; main() local [all...] |
/openbmc/linux/arch/arm64/include/asm/ |
H A D | kvm_asm.h | 86 #define DECLARE_KVM_VHE_SYM(sym) extern char sym[] argument 87 #define DECLARE_KVM_NVHE_SYM(sym) extern char kvm_nvhe_sym(sym)[] argument 93 #define DECLARE_KVM_HYP_SYM(sym) \ argument 94 DECLARE_KVM_VHE_SYM(sym); \ 95 DECLARE_KVM_NVHE_SYM(sym) 97 #define DECLARE_KVM_VHE_PER_CPU(type, sym) \ argument 98 DECLARE_PER_CPU(type, sym) 99 #define DECLARE_KVM_NVHE_PER_CPU(type, sym) \ argument 100 DECLARE_PER_CPU(type, kvm_nvhe_sym(sym)) 102 #define DECLARE_KVM_HYP_PER_CPU(type, sym) \ argument [all …]
|
/openbmc/linux/tools/perf/util/ |
H A D | symbol_fprintf.c | 10 size_t symbol__fprintf(struct symbol *sym, FILE *fp) in symbol__fprintf() argument 13 sym->start, sym->end, in symbol__fprintf() 14 sym->binding == STB_GLOBAL ? 'g' : in symbol__fprintf() 15 sym->binding == STB_LOCAL ? 'l' : 'w', in symbol__fprintf() 16 sym->name); in symbol__fprintf() 19 size_t __symbol__fprintf_symname_offs(const struct symbol *sym, in __symbol__fprintf_symname_offs() argument 27 if (sym) { in __symbol__fprintf_symname_offs() 28 length = fprintf(fp, "%s", sym->name); in __symbol__fprintf_symname_offs() 30 if (al->addr < sym->end) in __symbol__fprintf_symname_offs() 31 offset = al->addr - sym->start; in __symbol__fprintf_symname_offs() [all …]
|
H A D | demangle-ocaml.c | 15 ocaml_is_mangled(const char *sym) in ocaml_is_mangled() argument 17 return 0 == strncmp(sym, caml_prefix, caml_prefix_len) in ocaml_is_mangled() 18 && isupper(sym[caml_prefix_len]); in ocaml_is_mangled() 29 ocaml_demangle_sym(const char *sym) in ocaml_demangle_sym() argument 36 if (!ocaml_is_mangled(sym)) { in ocaml_demangle_sym() 40 len = strlen(sym); in ocaml_demangle_sym() 51 if (sym[i] == '_' && sym[i + 1] == '_') { in ocaml_demangle_sym() 56 else if (sym[i] == '$' && isxdigit(sym[i + 1]) && isxdigit(sym[i + 2])) { in ocaml_demangle_sym() 58 result[j++] = (hex(sym[i + 1]) << 4) | hex(sym[i + 2]); in ocaml_demangle_sym() 62 result[j++] = sym[i++]; in ocaml_demangle_sym()
|
H A D | call-path.c | 15 struct symbol *sym, u64 ip, bool in_kernel) in call_path__init() argument 18 cp->sym = sym; in call_path__init() 19 cp->ip = sym ? 0 : ip; in call_path__init() 51 struct symbol *sym, u64 ip, in call_path__new() argument 72 call_path__init(cp, parent, sym, ip, in_kernel); in call_path__new() 79 struct symbol *sym, u64 ip, u64 ks) in call_path__findnew() argument 86 if (sym) in call_path__findnew() 90 return call_path__new(cpr, parent, sym, ip, in_kernel); in call_path__findnew() 97 if (cp->sym == sym && cp->ip == ip) in call_path__findnew() 100 if (sym < cp->sym || (sym == cp->sym && ip < cp->ip)) in call_path__findnew() [all …]
|
/openbmc/linux/tools/perf/scripts/python/ |
H A D | stackcollapse.py | 72 def tidy_function_name(sym, dso): argument 73 if sym is None: 74 sym = '[unknown]' 76 sym = sym.replace(';', ':') 83 sym = sym.replace('<', '') 84 sym = sym.replace('>', '') 85 if sym[0] == 'L' and sym.find('/'): 86 sym = sym[1:] 88 sym = sym[:sym.index('(')] 93 return sym + '_[k]' [all …]
|
/openbmc/linux/tools/perf/arch/powerpc/util/ |
H A D | sym-handling.c | 16 char *sym = syma->name; in arch__choose_best_symbol() local 20 if (*sym == '.') in arch__choose_best_symbol() 21 sym++; in arch__choose_best_symbol() 25 if (strlen(sym) >= 3 && !strncmp(sym, "SyS", 3)) in arch__choose_best_symbol() 27 if (strlen(sym) >= 10 && !strncmp(sym, "compat_SyS", 10)) in arch__choose_best_symbol() 70 void arch__sym_update(struct symbol *s, GElf_Sym *sym) in arch__sym_update() argument 72 s->arch_sym = sym->st_other; in arch__sym_update() 80 struct symbol *sym) in arch__fix_tev_from_maps() argument 94 if (pev->point.offset || !map || !sym) in arch__fix_tev_from_maps() 105 lep_offset = PPC64_LOCAL_ENTRY_OFFSET(sym->arch_sym); in arch__fix_tev_from_maps() [all …]
|
/openbmc/linux/tools/lib/bpf/ |
H A D | elf.c | 65 GElf_Sym sym; member 75 struct elf_sym sym; member 119 struct elf_sym *ret = &iter->sym; in elf_sym_iter_next() 120 GElf_Sym *sym = &ret->sym; in elf_sym_iter_next() local 126 if (!gelf_getsym(iter->syms, idx, sym)) in elf_sym_iter_next() 128 if (GELF_ST_TYPE(sym->st_info) != iter->st_type) in elf_sym_iter_next() 130 name = elf_strptr(iter->elf, iter->strtabidx, sym->st_name); in elf_sym_iter_next() 133 sym_scn = elf_getscn(iter->elf, sym->st_shndx); in elf_sym_iter_next() 156 static unsigned long elf_sym_offset(struct elf_sym *sym) in elf_sym_offset() argument 158 return sym->sym.st_value - sym->sh.sh_addr + sym->sh.sh_offset; in elf_sym_offset() [all …]
|