Home
last modified time | relevance | path

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

12345678910

/Linux-v4.19/include/linux/
Dexport.h28 #define __CRC_SYMBOL(sym, sec) \ argument
29 asm(" .section \"___kcrctab" sec "+" #sym "\", \"a\" \n" \
30 " .weak __crc_" #sym " \n" \
31 " .long __crc_" #sym " - . \n" \
34 #define __CRC_SYMBOL(sym, sec) \ argument
35 asm(" .section \"___kcrctab" sec "+" #sym "\", \"a\" \n" \
36 " .weak __crc_" #sym " \n" \
37 " .long __crc_" #sym " \n" \
41 #define __CRC_SYMBOL(sym, sec) argument
52 #define __KSYMTAB_ENTRY(sym, sec) \ argument
[all …]
/Linux-v4.19/scripts/kconfig/
Dsymbol.c36 enum symbol_type sym_get_type(struct symbol *sym) in sym_get_type() argument
38 enum symbol_type type = sym->type; in sym_get_type()
41 if (sym_is_choice_value(sym) && sym->visible == yes) in sym_get_type()
70 struct property *sym_get_choice_prop(struct symbol *sym) in sym_get_choice_prop() argument
74 for_all_choices(sym, prop) in sym_get_choice_prop()
79 static struct property *sym_get_default_prop(struct symbol *sym) in sym_get_default_prop() argument
83 for_all_defaults(sym, prop) { in sym_get_default_prop()
91 static struct property *sym_get_range_prop(struct symbol *sym) in sym_get_range_prop() argument
95 for_all_properties(sym, prop, P_RANGE) { in sym_get_range_prop()
103 static long long sym_get_range_val(struct symbol *sym, int base) in sym_get_range_val() argument
[all …]
Dmenu.c47 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()
97 if (e->left.sym == &symbol_mod) in rewrite_m()
113 struct symbol *sym = current_entry->sym; in menu_set_type() local
115 if (sym->type == type) in menu_set_type()
117 if (sym->type == S_UNKNOWN) { in menu_set_type()
118 sym->type = type; in menu_set_type()
123 sym->name ? sym->name : "<choice>", in menu_set_type()
[all …]
Dconfdata.c162 static int conf_set_sym_val(struct symbol *sym, int def, int def_flags, char *p) in conf_set_sym_val() argument
166 switch (sym->type) { in conf_set_sym_val()
169 sym->def[def].tri = mod; in conf_set_sym_val()
170 sym->flags |= def_flags; in conf_set_sym_val()
176 sym->def[def].tri = yes; in conf_set_sym_val()
177 sym->flags |= def_flags; in conf_set_sym_val()
181 sym->def[def].tri = no; in conf_set_sym_val()
182 sym->flags |= def_flags; in conf_set_sym_val()
187 p, sym->name); in conf_set_sym_val()
193 sym->type = S_STRING; in conf_set_sym_val()
[all …]
Dexpr.c17 struct expr *expr_alloc_symbol(struct symbol *sym) in expr_alloc_symbol() argument
21 e->left.sym = sym; in expr_alloc_symbol()
46 e->left.sym = s1; in expr_alloc_comp()
47 e->right.sym = s2; in expr_alloc_comp()
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()
168 (e1->left.sym == &symbol_yes || e1->left.sym == &symbol_no)) in __expr_eliminate_eq()
264 return e1->left.sym == e2->left.sym && e1->right.sym == e2->right.sym; in expr_eq()
266 return e1->left.sym == e2->left.sym; in expr_eq()
[all …]
Dconf.c83 static int conf_askvalue(struct symbol *sym, const char *def) in conf_askvalue() argument
85 enum symbol_type type = sym_get_type(sym); in conf_askvalue()
87 if (!sym_has_value(sym)) in conf_askvalue()
93 if (!sym_is_changable(sym)) { in conf_askvalue()
103 if (sym_has_value(sym)) { in conf_askvalue()
131 struct symbol *sym = menu->sym; in conf_string() local
136 printf("(%s) ", sym->name); in conf_string()
137 def = sym_get_string_value(sym); in conf_string()
138 if (sym_get_string_value(sym)) in conf_string()
140 if (!conf_askvalue(sym, def)) in conf_string()
[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
193 struct symbol *sym; /* the symbol for which the property is associated */ member
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) \
[all …]
Dlkc.h88 void menu_add_entry(struct symbol *sym);
93 void menu_add_symbol(enum prop_type type, struct symbol *sym, struct expr *dep);
123 struct symbol *sym_choice_default(struct symbol *sym);
124 const char *sym_get_string_default(struct symbol *sym);
125 struct symbol *sym_check_deps(struct symbol *sym);
126 struct property *prop_alloc(enum prop_type type, struct symbol *sym);
129 static inline tristate sym_get_tristate_value(struct symbol *sym) in sym_get_tristate_value() argument
131 return sym->curr.tri; in sym_get_tristate_value()
135 static inline struct symbol *sym_get_choice_value(struct symbol *sym) in sym_get_choice_value() argument
137 return (struct symbol *)sym->curr.val; in sym_get_choice_value()
[all …]
Dmconf.c467 struct symbol *sym; in build_conf() local
485 sym = menu->sym; in build_conf()
487 if (!sym) { in build_conf()
527 type = sym_get_type(sym); in build_conf()
528 if (sym_is_choice(sym)) { in build_conf()
529 struct symbol *def_sym = sym_get_choice_value(sym); in build_conf()
534 if (menu_is_visible(child) && child->sym == def_sym) in build_conf()
538 val = sym_get_tristate_value(sym); in build_conf()
539 if (sym_is_changable(sym)) { in build_conf()
582 val = sym_get_tristate_value(sym); in build_conf()
[all …]
Dlkc_proto.h37 void sym_calc_value(struct symbol *sym);
38 enum symbol_type sym_get_type(struct symbol *sym);
39 bool sym_tristate_within_range(struct symbol *sym,tristate tri);
40 bool sym_set_tristate_value(struct symbol *sym,tristate tri);
41 tristate sym_toggle_tristate_value(struct symbol *sym);
42 bool sym_string_valid(struct symbol *sym, const char *newval);
43 bool sym_string_within_range(struct symbol *sym, const char *str);
44 bool sym_set_string_value(struct symbol *sym, const char *newval);
45 bool sym_is_changable(struct symbol *sym);
46 struct property * sym_get_choice_prop(struct symbol *sym);
[all …]
/Linux-v4.19/tools/objtool/
Delf.c60 struct symbol *sym; in find_symbol_by_index() local
63 hash_for_each_possible(sec->symbol_hash, sym, hash, idx) in find_symbol_by_index()
64 if (sym->idx == idx) in find_symbol_by_index()
65 return sym; in find_symbol_by_index()
72 struct symbol *sym; in find_symbol_by_offset() local
74 list_for_each_entry(sym, &sec->symbol_list, list) in find_symbol_by_offset()
75 if (sym->type != STT_SECTION && in find_symbol_by_offset()
76 sym->offset == offset) in find_symbol_by_offset()
77 return sym; in find_symbol_by_offset()
85 struct symbol *sym; in find_symbol_by_name() local
[all …]
/Linux-v4.19/scripts/genksyms/
Dgenksyms.c168 struct symbol *sym; in find_symbol() local
170 for (sym = symtab[h]; sym; sym = sym->hash_next) in find_symbol()
171 if (map_to_ns(sym->type) == map_to_ns(ns) && in find_symbol()
172 strcmp(name, sym->name) == 0 && in find_symbol()
173 sym->is_declared) in find_symbol()
176 if (exact && sym && sym->type != ns) in find_symbol()
178 return sym; in find_symbol()
181 static int is_unknown_symbol(struct symbol *sym) in is_unknown_symbol() argument
185 return ((sym->type == SYM_STRUCT || in is_unknown_symbol()
186 sym->type == SYM_UNION || in is_unknown_symbol()
[all …]
/Linux-v4.19/arch/powerpc/include/asm/
Dftrace.h76 static inline bool arch_syscall_match_sym_name(const char *sym, const char *name) in arch_syscall_match_sym_name() argument
79 return !strcmp(sym + 1, name) || in arch_syscall_match_sym_name()
80 (!strncmp(sym, ".__se_sys", 9) && !strcmp(sym + 6, name)) || in arch_syscall_match_sym_name()
81 (!strncmp(sym, ".ppc_", 5) && !strcmp(sym + 5, name + 4)) || in arch_syscall_match_sym_name()
82 (!strncmp(sym, ".ppc32_", 7) && !strcmp(sym + 7, name + 4)) || in arch_syscall_match_sym_name()
83 (!strncmp(sym, ".ppc64_", 7) && !strcmp(sym + 7, name + 4)); in arch_syscall_match_sym_name()
86 static inline bool arch_syscall_match_sym_name(const char *sym, const char *name) in arch_syscall_match_sym_name() argument
88 return !strcmp(sym, name) || in arch_syscall_match_sym_name()
89 (!strncmp(sym, "__se_sys", 8) && !strcmp(sym + 5, name)) || in arch_syscall_match_sym_name()
90 (!strncmp(sym, "ppc_", 4) && !strcmp(sym + 4, name + 4)) || in arch_syscall_match_sym_name()
[all …]
/Linux-v4.19/tools/perf/util/
Dsymbol_fprintf.c8 size_t symbol__fprintf(struct symbol *sym, FILE *fp) in symbol__fprintf() argument
11 sym->start, sym->end, in symbol__fprintf()
12 sym->binding == STB_GLOBAL ? 'g' : in symbol__fprintf()
13 sym->binding == STB_LOCAL ? 'l' : 'w', in symbol__fprintf()
14 sym->name); in symbol__fprintf()
17 size_t __symbol__fprintf_symname_offs(const struct symbol *sym, in __symbol__fprintf_symname_offs() argument
25 if (sym) { in __symbol__fprintf_symname_offs()
26 length = fprintf(fp, "%s", sym->name); in __symbol__fprintf_symname_offs()
28 if (al->addr < sym->end) in __symbol__fprintf_symname_offs()
29 offset = al->addr - sym->start; in __symbol__fprintf_symname_offs()
[all …]
Dcall-path.c23 struct symbol *sym, u64 ip, bool in_kernel) in call_path__init() argument
26 cp->sym = sym; in call_path__init()
27 cp->ip = sym ? 0 : ip; in call_path__init()
59 struct symbol *sym, u64 ip, in call_path__new() argument
80 call_path__init(cp, parent, sym, ip, in_kernel); in call_path__new()
87 struct symbol *sym, u64 ip, u64 ks) in call_path__findnew() argument
94 if (sym) in call_path__findnew()
98 return call_path__new(cpr, parent, sym, ip, in_kernel); in call_path__findnew()
105 if (cp->sym == sym && cp->ip == ip) in call_path__findnew()
108 if (sym < cp->sym || (sym == cp->sym && ip < cp->ip)) in call_path__findnew()
[all …]
Dannotate.c243 ops->target.sym = target.sym; in call__parse()
263 if (ops->target.sym) in call__scnprintf()
264 return scnprintf(bf, size, "%-6s %s", ins->name, ops->target.sym->name); in call__scnprintf()
300 struct symbol *sym = ms->sym; in jump__parse() local
338 start = map->unmap_ip(map, sym->start), in jump__parse()
339 end = map->unmap_ip(map, sym->end); in jump__parse()
363 ops->target.sym = target.sym; in jump__parse()
383 if (ops->target.outside && ops->target.sym != NULL) in jump__scnprintf()
384 return scnprintf(bf, size, "%-6s %s", ins->name, ops->target.sym->name); in jump__scnprintf()
759 static int symbol__alloc_hist_cycles(struct symbol *sym) in symbol__alloc_hist_cycles() argument
[all …]
/Linux-v4.19/tools/perf/scripts/python/
Dstackcollapse.py70 def tidy_function_name(sym, dso): argument
71 if sym is None:
72 sym = '[unknown]'
74 sym = sym.replace(';', ':')
81 sym = sym.replace('<', '')
82 sym = sym.replace('>', '')
83 if sym[0] == 'L' and sym.find('/'):
84 sym = sym[1:]
86 sym = sym[:sym.index('(')]
91 return sym + '_[k]'
[all …]
/Linux-v4.19/tools/perf/arch/powerpc/util/
Dsym-handling.c28 char *sym = syma->name; in arch__choose_best_symbol() local
32 if (*sym == '.') in arch__choose_best_symbol()
33 sym++; in arch__choose_best_symbol()
37 if (strlen(sym) >= 3 && !strncmp(sym, "SyS", 3)) in arch__choose_best_symbol()
39 if (strlen(sym) >= 10 && !strncmp(sym, "compat_SyS", 10)) in arch__choose_best_symbol()
82 void arch__sym_update(struct symbol *s, GElf_Sym *sym) in arch__sym_update() argument
84 s->arch_sym = sym->st_other; in arch__sym_update()
92 struct symbol *sym) in arch__fix_tev_from_maps() argument
106 if (pev->point.offset || !map || !sym) in arch__fix_tev_from_maps()
117 lep_offset = PPC64_LOCAL_ENTRY_OFFSET(sym->arch_sym); in arch__fix_tev_from_maps()
[all …]
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_rtsym.c251 const struct nfp_rtsym *sym; in nfp_rtsym_read_le() local
256 sym = nfp_rtsym_lookup(rtbl, name); in nfp_rtsym_read_le()
257 if (!sym) { in nfp_rtsym_read_le()
262 id = NFP_CPP_ISLAND_ID(sym->target, NFP_CPP_ACTION_RW, 0, sym->domain); in nfp_rtsym_read_le()
264 switch (sym->size) { in nfp_rtsym_read_le()
266 err = nfp_cpp_readl(rtbl->cpp, id, sym->addr, &val32); in nfp_rtsym_read_le()
270 err = nfp_cpp_readq(rtbl->cpp, id, sym->addr, &val); in nfp_rtsym_read_le()
275 name, sym->size); in nfp_rtsym_read_le()
304 const struct nfp_rtsym *sym; in nfp_rtsym_write_le() local
308 sym = nfp_rtsym_lookup(rtbl, name); in nfp_rtsym_write_le()
[all …]
/Linux-v4.19/include/asm-generic/
Dexport.h64 #define __EXPORT_SYMBOL(sym, val, sec) === __KSYM_##sym === argument
71 #define __EXPORT_SYMBOL(sym, val, sec) \
72 __cond_export_sym(sym, val, sec, __is_defined(__KSYM_##sym))
73 #define __cond_export_sym(sym, val, sec, conf) \
74 ___cond_export_sym(sym, val, sec, conf)
75 #define ___cond_export_sym(sym, val, sec, enabled) \
76 __cond_export_sym_##enabled(sym, val, sec)
77 #define __cond_export_sym_1(sym, val, sec) ___EXPORT_SYMBOL sym, val, sec
78 #define __cond_export_sym_0(sym, val, sec) /* nothing */
81 #define __EXPORT_SYMBOL(sym, val, sec) ___EXPORT_SYMBOL sym, val, sec
/Linux-v4.19/arch/arm/include/asm/
Dftrace.h64 static inline bool arch_syscall_match_sym_name(const char *sym, in arch_syscall_match_sym_name() argument
67 if (!strcmp(sym, "sys_mmap2")) in arch_syscall_match_sym_name()
68 sym = "sys_mmap_pgoff"; in arch_syscall_match_sym_name()
69 else if (!strcmp(sym, "sys_statfs64_wrapper")) in arch_syscall_match_sym_name()
70 sym = "sys_statfs64"; in arch_syscall_match_sym_name()
71 else if (!strcmp(sym, "sys_fstatfs64_wrapper")) in arch_syscall_match_sym_name()
72 sym = "sys_fstatfs64"; in arch_syscall_match_sym_name()
73 else if (!strcmp(sym, "sys_arm_fadvise64_64")) in arch_syscall_match_sym_name()
74 sym = "sys_fadvise64_64"; in arch_syscall_match_sym_name()
77 return !strcasecmp(sym, name); in arch_syscall_match_sym_name()
/Linux-v4.19/scripts/
Dkallsyms.c37 unsigned char *sym; member
91 static int check_symbol_range(const char *sym, unsigned long long addr, in check_symbol_range() argument
100 if (strcmp(sym, ar->start_sym) == 0) { in check_symbol_range()
103 } else if (strcmp(sym, ar->end_sym) == 0) { in check_symbol_range()
114 char sym[500], stype; in read_symbol() local
117 rc = fscanf(in, "%llx %c %499s\n", &s->addr, &stype, sym); in read_symbol()
119 if (rc != EOF && fgets(sym, 500, in) == NULL) in read_symbol()
123 if (strlen(sym) > KSYM_NAME_LEN) { in read_symbol()
126 sym, strlen(sym), KSYM_NAME_LEN); in read_symbol()
131 if (strcmp(sym, "_text") == 0) in read_symbol()
[all …]
/Linux-v4.19/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-v4.19/arch/arm64/include/asm/
Dkvm_asm.h41 #define kvm_ksym_ref(sym) \ argument
43 void *val = &sym; \
45 val = lm_alias(&sym); \
78 #define __hyp_this_cpu_ptr(sym) \ argument
80 void *__ptr = hyp_symbol_addr(sym); \
82 (typeof(&sym))__ptr; \
85 #define __hyp_this_cpu_read(sym) \ argument
87 *__hyp_this_cpu_ptr(sym); \
92 .macro hyp_adr_this_cpu reg, sym, tmp
93 adr_l \reg, \sym
[all …]
/Linux-v4.19/arch/x86/tools/
Drelocs.c257 static const char *sym_name(const char *sym_strtab, Elf_Sym *sym) in sym_name() argument
261 if (sym->st_name) { in sym_name()
262 name = sym_strtab + sym->st_name; in sym_name()
265 name = sec_name(sym->st_shndx); in sym_name()
278 Elf_Sym *sym; in sym_lookup() local
287 for (sym = symtab; --nsyms >= 0; sym++) { in sym_lookup()
288 if (!sym->st_name) in sym_lookup()
290 if (strcmp(symname, strtab + sym->st_name) == 0) in sym_lookup()
291 return sym; in sym_lookup()
474 Elf_Sym *sym = &sec->symtab[j]; in read_symtabs() local
[all …]

12345678910