Home
last modified time | relevance | path

Searched refs:sym (Results 1 – 25 of 292) sorted by relevance

12345678910>>...12

/linux-6.1.9/include/linux/
Dexport.h40 #define __KSYMTAB_ENTRY(sym, sec) \ argument
41 __ADDRESSABLE(sym) \
42 asm(" .section \"___ksymtab" sec "+" #sym "\", \"a\" \n" \
44 "__ksymtab_" #sym ": \n" \
45 " .long " #sym "- . \n" \
46 " .long __kstrtab_" #sym "- . \n" \
47 " .long __kstrtabns_" #sym "- . \n" \
56 #define __KSYMTAB_ENTRY(sym, sec) \ argument
57 static const struct kernel_symbol __ksymtab_##sym \
58 __attribute__((section("___ksymtab" sec "+" #sym), used)) \
[all …]
/linux-6.1.9/scripts/kconfig/
Dsymbol.c41 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 …]
Dconfdata.c226 static int conf_set_sym_val(struct symbol *sym, int def, int def_flags, char *p) in conf_set_sym_val() argument
230 switch (sym->type) { in conf_set_sym_val()
233 sym->def[def].tri = mod; in conf_set_sym_val()
234 sym->flags |= def_flags; in conf_set_sym_val()
240 sym->def[def].tri = yes; in conf_set_sym_val()
241 sym->flags |= def_flags; in conf_set_sym_val()
245 sym->def[def].tri = no; in conf_set_sym_val()
246 sym->flags |= def_flags; in conf_set_sym_val()
251 p, sym->name); in conf_set_sym_val()
273 if (sym_string_valid(sym, p)) { in conf_set_sym_val()
[all …]
Dmenu.c48 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 …]
Dexpr.c18 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 …]
Dconf.c119 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()
[all …]
Dlkc.h86 void menu_add_entry(struct symbol *sym);
91 void menu_add_symbol(enum prop_type type, struct symbol *sym, struct expr *dep);
109 struct symbol *sym_choice_default(struct symbol *sym);
110 struct property *sym_get_range_prop(struct symbol *sym);
111 const char *sym_get_string_default(struct symbol *sym);
112 struct symbol *sym_check_deps(struct symbol *sym);
115 static inline tristate sym_get_tristate_value(struct symbol *sym) in sym_get_tristate_value() argument
117 return sym->curr.tri; in sym_get_tristate_value()
121 static inline struct symbol *sym_get_choice_value(struct symbol *sym) in sym_get_choice_value() argument
123 return (struct symbol *)sym->curr.val; in sym_get_choice_value()
[all …]
Dexpr.h39 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 …]
Dlkc_proto.h21 void print_symbol_for_listconfig(struct symbol *sym);
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);
[all …]
Dmconf.c465 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 …]
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_rtsym.c208 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 …]
/linux-6.1.9/arch/arm64/include/asm/
Dkvm_asm.h81 #define DECLARE_KVM_VHE_SYM(sym) extern char sym[] argument
82 #define DECLARE_KVM_NVHE_SYM(sym) extern char kvm_nvhe_sym(sym)[] argument
88 #define DECLARE_KVM_HYP_SYM(sym) \ argument
89 DECLARE_KVM_VHE_SYM(sym); \
90 DECLARE_KVM_NVHE_SYM(sym)
92 #define DECLARE_KVM_VHE_PER_CPU(type, sym) \ argument
93 DECLARE_PER_CPU(type, sym)
94 #define DECLARE_KVM_NVHE_PER_CPU(type, sym) \ argument
95 DECLARE_PER_CPU(type, kvm_nvhe_sym(sym))
97 #define DECLARE_KVM_HYP_PER_CPU(type, sym) \ argument
[all …]
/linux-6.1.9/scripts/genksyms/
Dgenksyms.c157 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 …]
/linux-6.1.9/tools/objtool/
Delf.c88 const struct symbol *sym; member
104 sh->sym = s; in symbol_hole_by_offset()
138 struct symbol *sym; in find_symbol_by_index() local
140 elf_hash_for_each_possible(symbol, sym, hash, idx) { in find_symbol_by_index()
141 if (sym->idx == idx) in find_symbol_by_index()
142 return sym; in find_symbol_by_index()
197 .sym = NULL, in find_symbol_hole_containing()
212 if (!hole.sym) in find_symbol_hole_containing()
216 n = rb_next(&hole.sym->node); in find_symbol_hole_containing()
241 struct symbol *sym; in find_symbol_by_name() local
[all …]
/linux-6.1.9/tools/perf/util/
Dsymbol_fprintf.c10 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 …]
Ddemangle-ocaml.c15 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()
Dcall-path.c15 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 …]
/linux-6.1.9/tools/perf/scripts/python/
Dstackcollapse.py72 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 …]
/linux-6.1.9/tools/perf/arch/powerpc/util/
Dsym-handling.c16 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 …]
/linux-6.1.9/include/asm-generic/
Dexport.h59 .macro __ksym_marker sym
61 __ksym_marker_\sym:
65 #define __EXPORT_SYMBOL(sym, val, sec) \ argument
66 __ksym_marker sym; \
67 __cond_export_sym(sym, val, sec, __is_defined(__KSYM_##sym))
68 #define __cond_export_sym(sym, val, sec, conf) \ argument
69 ___cond_export_sym(sym, val, sec, conf)
70 #define ___cond_export_sym(sym, val, sec, enabled) \ argument
71 __cond_export_sym_##enabled(sym, val, sec)
72 #define __cond_export_sym_1(sym, val, sec) ___EXPORT_SYMBOL sym, val, sec argument
[all …]
/linux-6.1.9/arch/arm/include/asm/
Dftrace.h62 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()
/linux-6.1.9/lib/zlib_inflate/
Dinftrees.c27 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 …]
/linux-6.1.9/scripts/mod/
Dmodpost.c251 static void hash_add_symbol(struct symbol *sym) in hash_add_symbol() argument
255 hash = tdb_hash(sym->name) % SYMBOL_HASH_SIZE; in hash_add_symbol()
256 sym->next = symbolhash[hash]; in hash_add_symbol()
257 symbolhash[hash] = sym; in hash_add_symbol()
262 struct symbol *sym; in sym_add_unresolved() local
264 sym = alloc_symbol(name); in sym_add_unresolved()
265 sym->weak = weak; in sym_add_unresolved()
267 list_add_tail(&sym->list, &mod->unresolved_symbols); in sym_add_unresolved()
327 void *sym_get_data(const struct elf_info *info, const Elf_Sym *sym) in sym_get_data() argument
329 return sym_get_data_by_offset(info, get_secindex(info, sym), in sym_get_data()
[all …]
/linux-6.1.9/arch/x86/tools/
Drelocs.c20 static int sym_index(Elf_Sym *sym);
271 static const char *sym_name(const char *sym_strtab, Elf_Sym *sym) in sym_name() argument
275 if (sym->st_name) { in sym_name()
276 name = sym_strtab + sym->st_name; in sym_name()
279 name = sec_name(sym_index(sym)); in sym_name()
292 Elf_Sym *sym; in sym_lookup() local
301 for (sym = symtab; --nsyms >= 0; sym++) { in sym_lookup()
302 if (!sym->st_name) in sym_lookup()
304 if (strcmp(symname, strtab + sym->st_name) == 0) in sym_lookup()
305 return sym; in sym_lookup()
[all …]
/linux-6.1.9/kernel/module/
Dkallsyms.c37 static char elf_type(const Elf_Sym *sym, const struct load_info *info) in elf_type() argument
41 if (ELF_ST_BIND(sym->st_info) == STB_WEAK) { in elf_type()
42 if (ELF_ST_TYPE(sym->st_info) == STT_OBJECT) in elf_type()
47 if (sym->st_shndx == SHN_UNDEF) in elf_type()
49 if (sym->st_shndx == SHN_ABS || sym->st_shndx == info->index.pcpu) in elf_type()
51 if (sym->st_shndx >= SHN_LORESERVE) in elf_type()
53 if (sechdrs[sym->st_shndx].sh_flags & SHF_EXECINSTR) in elf_type()
55 if (sechdrs[sym->st_shndx].sh_flags & SHF_ALLOC && in elf_type()
56 sechdrs[sym->st_shndx].sh_type != SHT_NOBITS) { in elf_type()
57 if (!(sechdrs[sym->st_shndx].sh_flags & SHF_WRITE)) in elf_type()
[all …]

12345678910>>...12