/openbmc/u-boot/scripts/kconfig/ |
H A D | symbol.c | 391 sym->curr.val = sym->name; in sym_calc_value() 469 sym->curr.val = sym_calc_choice(sym); in sym_calc_value() 523 if (sym->visible <= sym->rev_dep.tri) in sym_tristate_within_range() 1074 sym_match_arr[cnt++].sym = sym; in sym_re_search() 1112 stack->sym = sym; in dep_stack_insert() 1150 sym = stack->sym; in sym_check_print_recursive() 1171 sym->name ? sym->name : "<choice>", in sym_check_print_recursive() 1227 sym = sym_check_deps(e->left.sym); in sym_check_expr_deps() 1354 prop->sym = sym; in prop_alloc() 1411 sym = current_entry->sym; in prop_add_env() [all …]
|
H A D | confdata.c | 311 sym = NULL; in conf_read_simple() 379 if (sym && sym_is_choice_value(sym)) { in conf_read_simple() 421 if (sym_is_choice(sym) || (sym->flags & SYMBOL_AUTO)) in conf_read() 423 if (sym_has_value(sym) && (sym->flags & SYMBOL_WRITE)) { in conf_read() 434 if (!strcmp(sym->curr.val, sym->def[S_DEF_USER].val)) in conf_read() 446 if (sym_has_value(sym) && !sym_is_choice_value(sym)) { in conf_read() 683 sym = menu->sym; in conf_write_defconfig() 790 sym = menu->sym; in conf_write() 791 if (!sym) { in conf_write() 858 if ((sym->flags & SYMBOL_AUTO) || !sym->name) in conf_split_config() [all …]
|
H A D | menu.c | 53 menu->sym = sym; in menu_add_entry() 113 struct symbol *sym = current_entry->sym; in menu_set_type() local 123 sym->name ? sym->name : "<choice>", in menu_set_type() 303 sym = parent->sym; in menu_finalize() 310 if (sym && sym_is_choice(sym)) { in menu_finalize() 416 if (sym && sym_is_choice(sym)) in menu_finalize() 499 if (sym && sym_is_choice(sym) && in menu_finalize() 536 (*ep)->right.sym = menu->sym; in menu_finalize() 644 sym = menu->sym; in menu_is_visible() 802 if (sym && sym->name) { in get_symbol_str() [all …]
|
H A D | expr.c | 21 e->left.sym = sym; in expr_alloc_symbol() 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() 264 return e1->left.sym == e2->left.sym && e1->right.sym == e2->right.sym; in expr_eq() 854 return dep->left.sym == sym; in expr_contains_symbol() 861 return dep->left.sym == sym || in expr_contains_symbol() 862 dep->right.sym == sym; in expr_contains_symbol() 881 return dep->left.sym == sym; in expr_depends_symbol() 883 if (dep->left.sym == sym) { in expr_depends_symbol() [all …]
|
H A D | conf.c | 132 struct symbol *sym = menu->sym; in conf_string() local 165 struct symbol *sym = menu->sym; in conf_sym() local 192 if (!conf_askvalue(sym, sym_get_string_value(sym))) in conf_sym() 236 sym = menu->sym; in conf_choice() 335 sym_set_choice_value(sym, child->sym); in conf_choice() 354 sym = menu->sym; in conf() 382 if (!sym) in conf() 404 if (sym) in conf() 408 if (sym) in conf() 420 sym = menu->sym; in check_conf() [all …]
|
H A D | lkc.h | 103 void menu_add_entry(struct symbol *sym); 141 struct symbol *sym_choice_default(struct symbol *sym); 143 struct symbol *sym_check_deps(struct symbol *sym); 150 return sym->curr.tri; in sym_get_tristate_value() 156 return (struct symbol *)sym->curr.val; in sym_get_choice_value() 164 static inline bool sym_is_choice(struct symbol *sym) in sym_is_choice() argument 166 return sym->flags & SYMBOL_CHOICE ? true : false; in sym_is_choice() 171 return sym->flags & SYMBOL_CHOICEVAL ? true : false; in sym_is_choice_value() 176 return sym->flags & SYMBOL_OPTIONAL ? true : false; in sym_is_optional() 179 static inline bool sym_has_value(struct symbol *sym) in sym_has_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 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) \ 232 struct symbol *sym; member [all …]
|
/openbmc/linux/scripts/kconfig/ |
H A D | symbol.c | 359 sym->curr.val = sym->name; in sym_calc_value() 438 sym->curr.val = sym_calc_choice(sym); in sym_calc_value() 492 if (sym->visible <= sym->rev_dep.tri) in sym_tristate_within_range() 943 sym_match_arr[cnt++].sym = sym; in sym_re_search() 981 stack->sym = sym; in dep_stack_insert() 1019 sym = stack->sym; in sym_check_print_recursive() 1040 sym->name ? sym->name : "<choice>", in sym_check_print_recursive() 1045 sym->name ? sym->name : "<choice>", in sym_check_print_recursive() 1050 sym->name ? sym->name : "<choice>", in sym_check_print_recursive() 1055 sym->name ? sym->name : "<choice>", in sym_check_print_recursive() [all …]
|
H A D | menu.c | 54 menu->sym = sym; in menu_add_entry() 115 struct symbol *sym = current_entry->sym; in menu_set_type() local 125 sym->name ? sym->name : "<choice>", in menu_set_type() 292 sym = parent->sym; in menu_finalize() 299 if (sym && sym_is_choice(sym)) { in menu_finalize() 401 if (sym && sym_is_choice(sym)) in menu_finalize() 484 if (sym && sym_is_choice(sym) && in menu_finalize() 521 (*ep)->right.sym = menu->sym; in menu_finalize() 629 sym = menu->sym; in menu_is_visible() 792 if (sym && sym->name) { in get_symbol_str() [all …]
|
H A D | confdata.c | 431 sym = NULL; in conf_read_simple() 481 if (!sym) { in conf_read_simple() 513 if (sym && sym_is_choice_value(sym)) { in conf_read_simple() 561 if (sym_has_value(sym) && (sym->flags & SYMBOL_WRITE)) { in conf_read() 570 if (!strcmp(sym->curr.val, sym->def[S_DEF_USER].val)) in conf_read() 582 if (sym_has_value(sym) && !sym_is_choice_value(sym)) { in conf_read() 855 sym = menu->sym; in conf_write_defconfig() 957 sym = menu->sym; in conf_write() 958 if (!sym) { in conf_write() 1096 if ((sym->flags & SYMBOL_NO_WRITE) || !sym->name) in conf_touch_deps() [all …]
|
H A D | expr.c | 22 e->left.sym = sym; in expr_alloc_symbol() 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() 272 return e1->left.sym == e2->left.sym && e1->right.sym == e2->right.sym; in expr_eq() 833 return dep->left.sym == sym; in expr_contains_symbol() 840 return dep->left.sym == sym || in expr_contains_symbol() 841 dep->right.sym == sym; in expr_contains_symbol() 860 return dep->left.sym == sym; in expr_depends_symbol() 862 if (dep->left.sym == sym) { in expr_depends_symbol() [all …]
|
H A D | conf.c | 230 if (sym_has_value(sym) || sym->flags & SYMBOL_VALID) in conf_set_all_new_symbols() 351 struct symbol *sym = menu->sym; in conf_string() local 384 struct symbol *sym = menu->sym; in conf_sym() local 411 if (!conf_askvalue(sym, sym_get_string_value(sym))) in conf_sym() 455 sym = menu->sym; in conf_choice() 573 sym = menu->sym; in conf() 601 if (!sym) in conf() 623 if (sym) in conf() 627 if (sym) in conf() 639 sym = menu->sym; in check_conf() [all …]
|
H A D | lkc.h | 86 void menu_add_entry(struct symbol *sym); 110 struct symbol *sym_choice_default(struct symbol *sym); 113 struct symbol *sym_check_deps(struct symbol *sym); 118 return sym->curr.tri; in sym_get_tristate_value() 124 return (struct symbol *)sym->curr.val; in sym_get_choice_value() 127 static inline bool sym_is_choice(struct symbol *sym) in sym_is_choice() argument 129 return sym->flags & SYMBOL_CHOICE ? true : false; in sym_is_choice() 134 return sym->flags & SYMBOL_CHOICEVAL ? true : false; in sym_is_choice_value() 139 return sym->flags & SYMBOL_OPTIONAL ? true : false; in sym_is_optional() 142 static inline bool sym_has_value(struct symbol *sym) in sym_has_value() argument [all …]
|
/openbmc/linux/include/linux/ |
H A D | export.h | 38 .quad sym 42 .long sym 47 __export_symbol_##sym: ASM_NL \ 64 #define __EXPORT_SYMBOL(sym, license, ns) __GENKSYMS_EXPORT_SYMBOL(sym) argument 74 extern typeof(sym) sym; \ 75 __ADDRESSABLE(sym) \ 83 #define _EXPORT_SYMBOL(sym, license) __EXPORT_SYMBOL(sym, license, "") argument 86 #define EXPORT_SYMBOL(sym) _EXPORT_SYMBOL(sym, "") argument 87 #define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "GPL") argument 88 #define EXPORT_SYMBOL_NS(sym, ns) __EXPORT_SYMBOL(sym, "", __stringify(ns)) argument [all …]
|
/openbmc/linux/tools/objtool/ |
H A D | elf.c | 401 sym->alias = sym; in elf_add_symbol() 403 sym->type = GELF_ST_TYPE(sym->sym.st_info); in elf_add_symbol() 404 sym->bind = GELF_ST_BIND(sym->sym.st_info); in elf_add_symbol() 409 sym->offset = sym->sym.st_value; in elf_add_symbol() 410 sym->len = sym->sym.st_size; in elf_add_symbol() 502 sym->sec->sym = sym; in read_symbols() 524 sym->pfunc = sym; in read_symbols() 527 sym->cfunc = sym; in read_symbols() 839 sym->sym.st_info = orig->sym.st_info; in elf_create_prefix_symbol() 840 sym->sym.st_value = orig->sym.st_value - size; in elf_create_prefix_symbol() [all …]
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/nfpcore/ |
H A D | nfp_rtsym.c | 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() 231 sym->name); in nfp_rtsym_to_dest() 247 sym->name, sym->target); in nfp_rtsym_to_dest() 303 sym->name, off, nfp_rtsym_size(sym)); in __nfp_rtsym_readl() 329 sym->name, off, nfp_rtsym_size(sym)); in __nfp_rtsym_readq() 388 sym->name, off, nfp_rtsym_size(sym)); in __nfp_rtsym_writel() 414 sym->name, off, nfp_rtsym_size(sym)); in __nfp_rtsym_writeq() 452 if (!sym) { in nfp_rtsym_read_le() 501 if (!sym) in nfp_rtsym_write_le() [all …]
|
/openbmc/linux/scripts/genksyms/ |
H A D | genksyms.c | 159 for (sym = symtab[h]; sym; sym = sym->hash_next) in find_symbol() 165 if (exact && sym && sym->type != ns) in find_symbol() 167 return sym; in find_symbol() 230 for (sym = symtab[h]; sym; sym = sym->hash_next) { in __add_symbol() 237 if (!sym->is_declared && sym->is_override) { in __add_symbol() 265 if (sym) { in __add_symbol() 277 sym = xmalloc(sizeof(*sym)); in __add_symbol() 465 if (sym && sym->tag == SYM_NORMAL && in read_reference() 471 if (!sym) in read_reference() 639 if (!sym) in export_symbol() [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 95 DECLARE_KVM_NVHE_SYM(sym) 110 #define this_cpu_ptr_nvhe_sym(sym) per_cpu_ptr_nvhe_sym(sym, smp_processor_id()) argument 122 #define CHOOSE_NVHE_SYM(sym) sym argument 123 #define CHOOSE_HYP_SYM(sym) CHOOSE_NVHE_SYM(sym) argument 133 #define CHOOSE_VHE_SYM(sym) sym argument 134 #define CHOOSE_HYP_SYM(sym) CHOOSE_VHE_SYM(sym) argument 167 #define CHOOSE_VHE_SYM(sym) sym argument 168 #define CHOOSE_NVHE_SYM(sym) kvm_nvhe_sym(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() 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() 33 offset = al->addr - map__start(al->map) - 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() 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() 123 struct symbol *sym = NULL; in arch__post_process_probe_trace_events() local 133 map__for_each_symbol(map, sym, tmp) { in arch__post_process_probe_trace_events() [all …]
|
/openbmc/linux/tools/lib/bpf/ |
H A D | elf.c | 65 GElf_Sym sym; member 75 struct elf_sym sym; member 120 GElf_Sym *sym = &ret->sym; in elf_sym_iter_next() local 158 return sym->sym.st_value - sym->sh.sh_addr + sym->sh.sh_offset; in elf_sym_offset() 193 struct elf_sym *sym; in elf_find_func_offset() local 210 if (!is_name_qualified && sym->name[name_len] != '\0' && sym->name[name_len] != '@') in elf_find_func_offset() 213 cur_bind = GELF_ST_BIND(sym->sym.st_info); in elf_find_func_offset() 320 struct elf_sym *sym; in elf_resolve_syms_offsets() local 330 int bind = GELF_ST_BIND(sym->sym.st_info); in elf_resolve_syms_offsets() 332 .name = sym->name, in elf_resolve_syms_offsets() [all …]
|
/openbmc/linux/arch/arm/include/asm/ |
H A D | ftrace.h | 62 static inline bool arch_syscall_match_sym_name(const char *sym, in arch_syscall_match_sym_name() argument 65 if (!strcmp(sym, "sys_mmap2")) in arch_syscall_match_sym_name() 66 sym = "sys_mmap_pgoff"; in arch_syscall_match_sym_name() 67 else if (!strcmp(sym, "sys_statfs64_wrapper")) in arch_syscall_match_sym_name() 68 sym = "sys_statfs64"; in arch_syscall_match_sym_name() 69 else if (!strcmp(sym, "sys_fstatfs64_wrapper")) in arch_syscall_match_sym_name() 70 sym = "sys_fstatfs64"; in arch_syscall_match_sym_name() 71 else if (!strcmp(sym, "sys_arm_fadvise64_64")) in arch_syscall_match_sym_name() 72 sym = "sys_fadvise64_64"; in arch_syscall_match_sym_name() 75 return !strcasecmp(sym, name); in arch_syscall_match_sym_name()
|