Home
last modified time | relevance | path

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

12345678910>>...13

/linux-6.6.21/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 …]
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 …]
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 …]
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);
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 …]
Dmconf.c506 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 …]
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 …]
/linux-6.6.21/include/linux/
Dexport.h36 #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 …]
Dexport-internal.h20 #define __KSYM_REF(sym) ".long " #sym "- ." argument
23 #define __KSYM_REF(sym) ".quad " #sym argument
26 #define __KSYM_REF(sym) ".long " #sym argument
40 #define __KSYMTAB(name, sym, sec, ns) \ argument
50 __KSYM_REF(sym) "\n" \
67 #define SYMBOL_CRC(sym, crc, sec) \ argument
68 asm(".section \"___kcrctab" sec "+" #sym "\",\"a\"" "\n" \
70 "__crc_" #sym ":" "\n" \
/linux-6.6.21/tools/objtool/
Delf.c109 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 …]
/linux-6.6.21/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.6.21/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.6.21/arch/arm64/include/asm/
Dkvm_asm.h86 #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 …]
/linux-6.6.21/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.6.21/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.6.21/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.6.21/tools/lib/bpf/
Delf.c65 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 …]
/linux-6.6.21/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.6.21/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.6.21/tools/objtool/include/objtool/
Dwarn.h22 struct symbol *sym = NULL; in offstr() local
27 sym = find_func_containing(sec, offset); in offstr()
28 if (!sym) in offstr()
29 sym = find_symbol_containing(sec, offset); in offstr()
31 if (sym) { in offstr()
32 str = malloc(strlen(sym->name) + strlen(sec->name) + 40); in offstr()
33 len = sprintf(str, "%s+0x%lx", sym->name, offset - sym->offset); in offstr()
59 if (!_insn->sym || !_insn->sym->warned) \
62 if (_insn->sym) \
63 _insn->sym->warned = 1; \
/linux-6.6.21/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 …]

12345678910>>...13