/kernel/linux/linux-5.10/include/linux/ |
D | export.h | 26 #define __CRC_SYMBOL(sym, sec) \ argument 27 asm(" .section \"___kcrctab" sec "+" #sym "\", \"a\" \n" \ 28 " .weak __crc_" #sym " \n" \ 29 " .long __crc_" #sym " - . \n" \ 32 #define __CRC_SYMBOL(sym, sec) \ argument 33 asm(" .section \"___kcrctab" sec "+" #sym "\", \"a\" \n" \ 34 " .weak __crc_" #sym " \n" \ 35 " .long __crc_" #sym " \n" \ 39 #define __CRC_SYMBOL(sym, sec) argument 50 #define __KSYMTAB_ENTRY(sym, sec) \ argument [all …]
|
/kernel/linux/linux-5.10/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.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 | 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 …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/nfpcore/ |
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 …]
|
/kernel/linux/linux-5.10/arch/arm64/include/asm/ |
D | kvm_asm.h | 70 #define DECLARE_KVM_VHE_SYM(sym) extern char sym[] argument 71 #define DECLARE_KVM_NVHE_SYM(sym) extern char kvm_nvhe_sym(sym)[] argument 77 #define DECLARE_KVM_HYP_SYM(sym) \ argument 78 DECLARE_KVM_VHE_SYM(sym); \ 79 DECLARE_KVM_NVHE_SYM(sym) 81 #define DECLARE_KVM_VHE_PER_CPU(type, sym) \ argument 82 DECLARE_PER_CPU(type, sym) 83 #define DECLARE_KVM_NVHE_PER_CPU(type, sym) \ argument 84 DECLARE_PER_CPU(type, kvm_nvhe_sym(sym)) 86 #define DECLARE_KVM_HYP_PER_CPU(type, sym) \ argument [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/tools/objtool/ |
D | elf.c | 155 struct symbol *sym; in find_symbol_by_index() local 157 elf_hash_for_each_possible(elf->symbol_hash, sym, hash, idx) in find_symbol_by_index() 158 if (sym->idx == idx) in find_symbol_by_index() 159 return sym; in find_symbol_by_index() 222 struct symbol *sym; in find_symbol_by_name() local 224 elf_hash_for_each_possible(elf->symbol_name_hash, sym, name_hash, str_hash(name)) in find_symbol_by_name() 225 if (!strcmp(sym->name, name)) in find_symbol_by_name() 226 return sym; in find_symbol_by_name() 344 static void elf_add_symbol(struct elf *elf, struct symbol *sym) in elf_add_symbol() argument 349 sym->alias = sym; in elf_add_symbol() [all …]
|
/kernel/linux/linux-5.10/tools/perf/util/ |
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 …]
|
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 …]
|
D | demangle-rust.c | 50 static bool looks_like_rust(const char *sym, size_t len); 77 rust_is_mangled(const char *sym) in rust_is_mangled() argument 81 if (!sym) in rust_is_mangled() 84 len = strlen(sym); in rust_is_mangled() 90 if (!is_prefixed_hash(sym + len_without_hash)) in rust_is_mangled() 93 return looks_like_rust(sym, len_without_hash); in rust_is_mangled() 182 rust_demangle_sym(char *sym) in rust_demangle_sym() argument 188 if (!sym) in rust_demangle_sym() 191 in = sym; in rust_demangle_sym() 192 out = sym; in rust_demangle_sym() [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
D | ftrace.h | 78 static inline bool arch_syscall_match_sym_name(const char *sym, const char *name) in arch_syscall_match_sym_name() argument 81 return !strcmp(sym + 1, name) || in arch_syscall_match_sym_name() 82 (!strncmp(sym, ".__se_sys", 9) && !strcmp(sym + 6, name)) || in arch_syscall_match_sym_name() 83 (!strncmp(sym, ".ppc_", 5) && !strcmp(sym + 5, name + 4)) || in arch_syscall_match_sym_name() 84 (!strncmp(sym, ".ppc32_", 7) && !strcmp(sym + 7, name + 4)) || in arch_syscall_match_sym_name() 85 (!strncmp(sym, ".ppc64_", 7) && !strcmp(sym + 7, name + 4)); in arch_syscall_match_sym_name() 88 static inline bool arch_syscall_match_sym_name(const char *sym, const char *name) in arch_syscall_match_sym_name() argument 90 return !strcmp(sym, name) || in arch_syscall_match_sym_name() 91 (!strncmp(sym, "__se_sys", 8) && !strcmp(sym + 5, name)) || in arch_syscall_match_sym_name() 92 (!strncmp(sym, "ppc_", 4) && !strcmp(sym + 4, name + 4)) || in arch_syscall_match_sym_name() [all …]
|
/kernel/linux/linux-5.10/tools/perf/scripts/python/ |
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 …]
|
/kernel/linux/linux-5.10/tools/perf/arch/powerpc/util/ |
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 …]
|
/kernel/linux/linux-5.10/include/asm-generic/ |
D | export.h | 65 .macro __ksym_marker sym 67 __ksym_marker_\sym: 71 #define __EXPORT_SYMBOL(sym, val, sec) \ argument 72 __ksym_marker sym; \ 73 __cond_export_sym(sym, val, sec, __is_defined(__KSYM_##sym)) 74 #define __cond_export_sym(sym, val, sec, conf) \ argument 75 ___cond_export_sym(sym, val, sec, conf) 76 #define ___cond_export_sym(sym, val, sec, enabled) \ argument 77 __cond_export_sym_##enabled(sym, val, sec) 78 #define __cond_export_sym_1(sym, val, sec) ___EXPORT_SYMBOL sym, val, sec argument [all …]
|
/kernel/linux/linux-5.10/arch/arm/include/asm/ |
D | ftrace.h | 60 static inline bool arch_syscall_match_sym_name(const char *sym, in arch_syscall_match_sym_name() argument 63 if (!strcmp(sym, "sys_mmap2")) in arch_syscall_match_sym_name() 64 sym = "sys_mmap_pgoff"; in arch_syscall_match_sym_name() 65 else if (!strcmp(sym, "sys_statfs64_wrapper")) in arch_syscall_match_sym_name() 66 sym = "sys_statfs64"; in arch_syscall_match_sym_name() 67 else if (!strcmp(sym, "sys_fstatfs64_wrapper")) in arch_syscall_match_sym_name() 68 sym = "sys_fstatfs64"; in arch_syscall_match_sym_name() 69 else if (!strcmp(sym, "sys_arm_fadvise64_64")) in arch_syscall_match_sym_name() 70 sym = "sys_fadvise64_64"; in arch_syscall_match_sym_name() 73 return !strcasecmp(sym, name); in arch_syscall_match_sym_name()
|
/kernel/linux/linux-5.10/lib/zlib_inflate/ |
D | inftrees.c | 27 unsigned sym; /* index of code symbols */ in zlib_inflate_table() local 95 for (sym = 0; sym < codes; sym++) in zlib_inflate_table() 96 count[lens[sym]]++; in zlib_inflate_table() 132 for (sym = 0; sym < codes; sym++) in zlib_inflate_table() 133 if (lens[sym] != 0) work[offs[lens[sym]]++] = (unsigned short)sym; in zlib_inflate_table() 188 sym = 0; /* starting code symbol */ in zlib_inflate_table() 205 if ((int)(work[sym]) < end) { in zlib_inflate_table() 207 this.val = work[sym]; in zlib_inflate_table() 209 else if ((int)(work[sym]) > end) { in zlib_inflate_table() 210 this.op = (unsigned char)(extra[work[sym]]); in zlib_inflate_table() [all …]
|
/kernel/linux/linux-5.10/arch/x86/entry/ |
D | syscall_x32.c | 23 #define __SYSCALL_64(nr, sym) argument 25 #define __SYSCALL_X32(nr, sym) extern long __x32_##sym(const struct pt_regs *); argument 26 #define __SYSCALL_COMMON(nr, sym) extern long __x64_##sym(const struct pt_regs *); argument 31 #define __SYSCALL_X32(nr, sym) [nr] = __x32_##sym, argument 32 #define __SYSCALL_COMMON(nr, sym) [nr] = __x64_##sym, argument
|
/kernel/linux/linux-5.10/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 …]
|