Home
last modified time | relevance | path

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

12345678910>>...13

/linux/scripts/kconfig/
H A Dsymbol.c45 enum symbol_type sym_get_type(const struct symbol *sym) in sym_get_type() argument
47 enum symbol_type type = sym->type; in sym_get_type()
80 struct menu *sym_get_prompt_menu(const struct symbol *sym) in sym_get_prompt_menu() argument
84 list_for_each_entry(m, &sym->menus, link) in sym_get_prompt_menu()
98 struct menu *sym_get_choice_menu(const struct symbol *sym) in sym_get_choice_menu() argument
106 menu = sym_get_prompt_menu(sym); in sym_get_choice_menu()
112 } while (menu && !menu->sym); in sym_get_choice_menu()
114 if (menu && menu->sym && sym_is_choice(menu->sym)) in sym_get_choice_menu()
120 static struct property *sym_get_default_prop(struct symbol *sym) in sym_get_default_prop() argument
124 for_all_defaults(sym, prop) { in sym_get_default_prop()
[all …]
H A Dconfdata.c237 static int conf_set_sym_val(struct symbol *sym, int def, int def_flags, char *p) in conf_set_sym_val() argument
241 switch (sym->type) { in conf_set_sym_val()
244 sym->def[def].tri = mod; in conf_set_sym_val()
245 sym->flags |= def_flags; in conf_set_sym_val()
251 sym->def[def].tri = yes; in conf_set_sym_val()
252 sym->flags |= def_flags; in conf_set_sym_val()
256 sym->def[def].tri = no; in conf_set_sym_val()
257 sym->flags |= def_flags; in conf_set_sym_val()
262 p, sym->name); in conf_set_sym_val()
284 if (sym_string_valid(sym, p)) { in conf_set_sym_val()
[all …]
H A Dexpr.c57 struct expr *expr_alloc_symbol(struct symbol *sym) in expr_alloc_symbol() argument
59 return expr_lookup(E_SYMBOL, sym, NULL); in expr_alloc_symbol()
127 (*ep1)->left.sym == (*ep2)->left.sym && in __expr_eliminate_eq()
128 ((*ep1)->left.sym == &symbol_yes || (*ep1)->left.sym == &symbol_no)) in __expr_eliminate_eq()
228 return e1->left.sym == e2->left.sym && e1->right.sym == e2->right.sym; in expr_eq()
230 return e1->left.sym == e2->left.sym; in expr_eq()
238 e1->left.sym == e2->left.sym); in expr_eq()
276 if (l->left.sym == &symbol_no) in expr_eliminate_yn()
278 else if (l->left.sym == &symbol_yes) in expr_eliminate_yn()
282 if (r->left.sym == &symbol_no) in expr_eliminate_yn()
[all …]
H A Dmenu.c68 void menu_add_entry(struct symbol *sym, enum menu_type type) in menu_add_entry() argument
75 menu->sym = sym; in menu_add_entry()
83 if (sym) in menu_add_entry()
84 list_add_tail(&menu->link, &sym->menus); in menu_add_entry()
121 if (e->left.sym == &symbol_mod) in rewrite_m()
137 struct symbol *sym = current_entry->sym; in menu_set_type() local
139 if (sym->type == type) in menu_set_type()
141 if (sym->type == S_UNKNOWN) { in menu_set_type()
142 sym->type = type; in menu_set_type()
147 sym->name ? sym->name : "<choice>", in menu_set_type()
[all …]
H A Dconf.c134 struct symbol *sym = menu->sym; in randomize_choice_values() local
136 if (sym && !sym_has_value(sym)) in randomize_choice_values()
144 struct symbol *sym = menu->sym; in randomize_choice_values() local
146 if (sym && !sym_has_value(sym)) in randomize_choice_values()
150 sym->def[S_DEF_USER].tri = yes; in randomize_choice_values()
151 sym->flags |= SYMBOL_DEF_USER; in randomize_choice_values()
157 list_move_tail(&sym->choice_link, in randomize_choice_values()
233 struct symbol *sym = menu->sym; in conf_set_all_new_symbols() local
236 if (!sym || !menu->prompt || sym_has_value(sym) || in conf_set_all_new_symbols()
237 (sym->type != S_BOOLEAN && sym->type != S_TRISTATE) || in conf_set_all_new_symbols()
[all …]
H A Dlkc_proto.h23 void print_symbol_for_listconfig(struct symbol *sym);
26 void sym_calc_value(struct symbol *sym);
28 enum symbol_type sym_get_type(const struct symbol *sym);
29 bool sym_tristate_within_range(const struct symbol *sym, tristate tri);
30 bool sym_set_tristate_value(struct symbol *sym,tristate tri);
31 void choice_set_value(struct menu *choice, struct symbol *sym);
32 tristate sym_toggle_tristate_value(struct symbol *sym);
33 bool sym_string_valid(struct symbol *sym, const char *newval);
34 bool sym_string_within_range(struct symbol *sym, const char *str);
35 bool sym_set_string_value(struct symbol *sym, const char *newval);
[all …]
H A Dmconf.c457 struct symbol *sym; in build_conf() local
475 sym = menu->sym; in build_conf()
477 if (!sym) { in build_conf()
517 type = sym_get_type(sym); in build_conf()
518 if (sym_is_choice(sym)) { in build_conf()
524 if (menu_is_visible(child) && child->sym == def_sym) in build_conf()
544 val = sym_get_tristate_value(sym); in build_conf()
547 if (sym_is_changeable(sym)) in build_conf()
560 if (sym_is_changeable(sym)) { in build_conf()
561 if (sym->rev_dep.tri == mod) in build_conf()
[all …]
/linux/include/linux/
H A Dexport.h18 #define __EXPORT_SYMBOL_REF(sym) \ argument
20 .quad sym
22 #define __EXPORT_SYMBOL_REF(sym) \ argument
24 .long sym
33 #define ___EXPORT_SYMBOL(sym, license, ns...) \ argument
35 __export_symbol_##sym: ASM_NL \
38 __EXPORT_SYMBOL_REF(sym) ASM_NL \
48 #define __EXPORT_SYMBOL(sym, license, ns) argument
52 #define __EXPORT_SYMBOL(sym, license, ns) __GENKSYMS_EXPORT_SYMBOL(sym) argument
56 #define __EXPORT_SYMBOL(sym, license, ns) \ argument
[all …]
H A 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" \
65 #define SYMBOL_CRC(sym, crc, sec) \ argument
66 asm(".section \"___kcrctab" sec "+" #sym "\",\"a\"" "\n" \
68 "__crc_" #sym ":" "\n" \
/linux/scripts/gendwarfksyms/
H A Dsymbols.c20 static unsigned int __for_each_addr(struct symbol *sym, symbol_callback_t func, in __for_each_addr() argument
28 symbol_addr_hash(&sym->addr)) { in __for_each_addr()
29 if (match == sym) in __for_each_addr()
32 if (match->addr.section == sym->addr.section && in __for_each_addr()
33 match->addr.address == sym->addr.address) { in __for_each_addr()
85 static void set_crc(struct symbol *sym, void *data) in set_crc() argument
89 if (sym->state == SYMBOL_PROCESSED && sym->crc != *crc) in set_crc()
91 sym->name, sym->crc, *crc); in set_crc()
93 sym->state = SYMBOL_PROCESSED; in set_crc()
94 sym->crc = *crc; in set_crc()
[all …]
/linux/drivers/net/ethernet/netronome/nfp/nfpcore/
H A 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/arch/arm64/include/asm/
H A Dkvm_asm.h94 #define DECLARE_KVM_VHE_SYM(sym) extern char sym[] argument
95 #define DECLARE_KVM_NVHE_SYM(sym) extern char kvm_nvhe_sym(sym)[] argument
101 #define DECLARE_KVM_HYP_SYM(sym) \ argument
102 DECLARE_KVM_VHE_SYM(sym); \
103 DECLARE_KVM_NVHE_SYM(sym)
105 #define DECLARE_KVM_VHE_PER_CPU(type, sym) \ argument
106 DECLARE_PER_CPU(type, sym)
107 #define DECLARE_KVM_NVHE_PER_CPU(type, sym) \ argument
108 DECLARE_PER_CPU(type, kvm_nvhe_sym(sym))
110 #define DECLARE_KVM_HYP_PER_CPU(type, sym) \ argument
[all …]
/linux/scripts/genksyms/
H A Dgenksyms.c155 struct symbol *sym; in find_symbol() local
157 hash_for_each_possible(symbol_hashtable, sym, hnode, crc32(name)) { in find_symbol()
158 if (map_to_ns(sym->type) == map_to_ns(ns) && in find_symbol()
159 strcmp(name, sym->name) == 0 && in find_symbol()
160 sym->is_declared) in find_symbol()
164 if (exact && sym && sym->type != ns) in find_symbol()
166 return sym; in find_symbol()
169 static int is_unknown_symbol(struct symbol *sym) in is_unknown_symbol() argument
173 return ((sym->type == SYM_STRUCT || in is_unknown_symbol()
174 sym->type == SYM_UNION || in is_unknown_symbol()
[all …]
/linux/tools/perf/util/
H A 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 in __symbol__fprintf_symname_offs()
43 symbol__fprintf_symname_offs(const struct symbol * sym,const struct addr_location * al,FILE * fp) symbol__fprintf_symname_offs() argument
50 __symbol__fprintf_symname(const struct symbol * sym,const struct addr_location * al,bool unknown_as_addr,FILE * fp) __symbol__fprintf_symname() argument
57 symbol__fprintf_symname(const struct symbol * sym,FILE * fp) symbol__fprintf_symname() argument
[all...]
H A 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()
H A 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/arch/riscv/include/asm/
H A Druntime-const.h15 #define runtime_const_ptr(sym) \ argument
17 typeof(sym) __ret; \
24 ".pushsection runtime_ptr_" #sym ",\"a\"\n\t" \
76 #define RISCV_RUNTIME_CONST_64_POSTAMBLE(sym) \ argument
78 ".pushsection runtime_ptr_" #sym ",\"a\"\n\t" \
84 #define runtime_const_ptr(sym) \ argument
86 typeof(sym) __ret, __tmp; \
95 RISCV_RUNTIME_CONST_64_POSTAMBLE(sym) \
100 #define runtime_const_ptr(sym) \ argument
102 typeof(sym) __ret, __tmp; \
[all …]
/linux/tools/perf/scripts/python/
H A 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/tools/perf/arch/powerpc/util/
H A 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/arch/x86/include/asm/
H A Druntime-const.h11 .macro RUNTIME_CONST_PTR sym reg
14 .pushsection runtime_ptr_\sym, "a"
21 #define runtime_const_ptr(sym) ({ \ argument
22 typeof(sym) __ret; \
24 ".pushsection runtime_ptr_" #sym ",\"a\"\n\t" \
35 #define runtime_const_shift_right_32(val, sym) ({ \ argument
38 ".pushsection runtime_shift_" #sym ",\"a\"\n\t" \
44 #define runtime_const_init(type, sym) do { \ argument
45 extern s32 __start_runtime_##type##_##sym[]; \
46 extern s32 __stop_runtime_##type##_##sym[]; \
[all …]
/linux/scripts/
H A Delf-parse.h43 uint8_t (*sym_type)(Elf_Sym *sym);
44 uint32_t (*sym_name)(Elf_Sym *sym);
45 uint64_t (*sym_value)(Elf_Sym *sym);
46 uint16_t (*sym_shndx)(Elf_Sym *sym);
152 static inline uint64_t sym64_##fn_name(Elf_Sym *sym) \
154 return elf_parser.r8(&sym->e64.st_##fn_name); \
157 static inline uint64_t sym32_##fn_name(Elf_Sym *sym) \
159 return elf_parser.r(&sym->e32.st_##fn_name); \
162 static inline uint64_t sym_##fn_name(Elf_Sym *sym) \
164 return elf_parser.sym_##fn_name(sym); \
[all …]
/linux/lib/zlib_inflate/
H A 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/arch/arm/include/asm/
H A 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/arch/s390/include/asm/
H A Druntime-const.h7 #define runtime_const_ptr(sym) \ argument
9 typeof(sym) __ret; \
14 ".pushsection runtime_ptr_" #sym ",\"a\"\n" \
23 #define runtime_const_shift_right_32(val, sym) \ argument
29 ".pushsection runtime_shift_" #sym ",\"a\"\n" \
36 #define runtime_const_init(type, sym) do { \ argument
37 extern s32 __start_runtime_##type##_##sym[]; \
38 extern s32 __stop_runtime_##type##_##sym[]; \
41 (unsigned long)(sym), \
42 __start_runtime_##type##_##sym, \
[all …]
/linux/kernel/module/
H A Dkallsyms.c38 static char elf_type(const Elf_Sym *sym, const struct load_info *info) in elf_type() argument
42 if (ELF_ST_BIND(sym->st_info) == STB_WEAK) { in elf_type()
43 if (ELF_ST_TYPE(sym->st_info) == STT_OBJECT) in elf_type()
48 if (sym->st_shndx == SHN_UNDEF) in elf_type()
50 if (sym->st_shndx == SHN_ABS || sym->st_shndx == info->index.pcpu) in elf_type()
52 if (sym->st_shndx >= SHN_LORESERVE) in elf_type()
54 if (sechdrs[sym->st_shndx].sh_flags & SHF_EXECINSTR) in elf_type()
56 if (sechdrs[sym->st_shndx].sh_flags & SHF_ALLOC && in elf_type()
57 sechdrs[sym in elf_type()
281 const Elf_Sym *sym = &kallsyms->symtab[i]; find_kallsyms_symbol() local
368 const char *sym; lookup_module_symbol_name() local
397 const Elf_Sym *sym = &kallsyms->symtab[symnum]; module_get_kallsym() local
420 const Elf_Sym *sym = &kallsyms->symtab[i]; __find_kallsyms_symbol_value() local
500 const Elf_Sym *sym = &kallsyms->symtab[i]; module_kallsyms_on_each_symbol() local
[all...]

12345678910>>...13