Home
last modified time | relevance | path

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

1234567891011

/Linux-v5.4/include/linux/
Dexport.h25 #define __CRC_SYMBOL(sym, sec) \ argument
26 asm(" .section \"___kcrctab" sec "+" #sym "\", \"a\" \n" \
27 " .weak __crc_" #sym " \n" \
28 " .long __crc_" #sym " - . \n" \
31 #define __CRC_SYMBOL(sym, sec) \ argument
32 asm(" .section \"___kcrctab" sec "+" #sym "\", \"a\" \n" \
33 " .weak __crc_" #sym " \n" \
34 " .long __crc_" #sym " \n" \
38 #define __CRC_SYMBOL(sym, sec) argument
49 #define __KSYMTAB_ENTRY_NS(sym, sec) \ argument
[all …]
/Linux-v5.4/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()
68 struct property *sym_get_choice_prop(struct symbol *sym) in sym_get_choice_prop() argument
72 for_all_choices(sym, prop) in sym_get_choice_prop()
77 static struct property *sym_get_default_prop(struct symbol *sym) in sym_get_default_prop() argument
81 for_all_defaults(sym, prop) { in sym_get_default_prop()
89 struct property *sym_get_range_prop(struct symbol *sym) in sym_get_range_prop() argument
93 for_all_properties(sym, prop, P_RANGE) { in sym_get_range_prop()
101 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.c234 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 …]
Dexpr.c19 struct expr *expr_alloc_symbol(struct symbol *sym) in expr_alloc_symbol() argument
23 e->left.sym = sym; in expr_alloc_symbol()
48 e->left.sym = s1; in expr_alloc_comp()
49 e->right.sym = s2; in expr_alloc_comp()
89 e->left.sym = org->left.sym; in expr_copy()
90 e->right.sym = org->right.sym; in expr_copy()
169 e1->left.sym == e2->left.sym && in __expr_eliminate_eq()
170 (e1->left.sym == &symbol_yes || e1->left.sym == &symbol_no)) in __expr_eliminate_eq()
266 return e1->left.sym == e2->left.sym && e1->right.sym == e2->right.sym; in expr_eq()
268 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_changeable(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 …]
Dlkc.h71 void menu_add_entry(struct symbol *sym);
76 void menu_add_symbol(enum prop_type type, struct symbol *sym, struct expr *dep);
111 struct symbol *sym_choice_default(struct symbol *sym);
112 struct property *sym_get_range_prop(struct symbol *sym);
113 const char *sym_get_string_default(struct symbol *sym);
114 struct symbol *sym_check_deps(struct symbol *sym);
115 struct property *prop_alloc(enum prop_type type, struct symbol *sym);
118 static inline tristate sym_get_tristate_value(struct symbol *sym) in sym_get_tristate_value() argument
120 return sym->curr.tri; in sym_get_tristate_value()
124 static inline struct symbol *sym_get_choice_value(struct symbol *sym) in sym_get_choice_value() argument
[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
194 struct symbol *sym; /* the symbol for which the property is associated */ member
206 #define for_all_properties(sym, st, tok) \ argument
207 for (st = sym->prop; st; st = st->next) \
209 #define for_all_defaults(sym, st) for_all_properties(sym, st, P_DEFAULT) argument
210 #define for_all_choices(sym, st) for_all_properties(sym, st, P_CHOICE) argument
211 #define for_all_prompts(sym, st) \ argument
212 for (st = sym->prop; st; st = st->next) \
[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_changeable(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_changeable(struct symbol *sym);
46 struct property * sym_get_choice_prop(struct symbol *sym);
[all …]
/Linux-v5.4/tools/objtool/
Delf.c50 struct symbol *sym; in find_symbol_by_index() local
53 hash_for_each_possible(sec->symbol_hash, sym, hash, idx) in find_symbol_by_index()
54 if (sym->idx == idx) in find_symbol_by_index()
55 return sym; in find_symbol_by_index()
62 struct symbol *sym; in find_symbol_by_offset() local
64 list_for_each_entry(sym, &sec->symbol_list, list) in find_symbol_by_offset()
65 if (sym->type != STT_SECTION && in find_symbol_by_offset()
66 sym->offset == offset) in find_symbol_by_offset()
67 return sym; in find_symbol_by_offset()
75 struct symbol *sym; in find_symbol_by_name() local
[all …]
/Linux-v5.4/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-v5.4/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-v5.4/arch/powerpc/include/asm/
Dftrace.h78 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 …]
/Linux-v5.4/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 …]
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 …]
Dannotate.c275 ops->target.sym = target.sym; in call__parse()
295 if (ops->target.sym) in call__scnprintf()
296 return scnprintf(bf, size, "%-*s %s", max_ins_name, ins->name, ops->target.sym->name); in call__scnprintf()
332 struct symbol *sym = ms->sym; in jump__parse() local
370 start = map->unmap_ip(map, sym->start), in jump__parse()
371 end = map->unmap_ip(map, sym->end); in jump__parse()
395 ops->target.sym = target.sym; in jump__parse()
415 if (ops->target.outside && ops->target.sym != NULL) in jump__scnprintf()
416 return scnprintf(bf, size, "%-*s %s", max_ins_name, ins->name, ops->target.sym->name); in jump__scnprintf()
791 static int symbol__alloc_hist_cycles(struct symbol *sym) in symbol__alloc_hist_cycles() argument
[all …]
/Linux-v5.4/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-v5.4/tools/perf/arch/powerpc/util/
Dsym-handling.c26 char *sym = syma->name; in arch__choose_best_symbol() local
30 if (*sym == '.') in arch__choose_best_symbol()
31 sym++; in arch__choose_best_symbol()
35 if (strlen(sym) >= 3 && !strncmp(sym, "SyS", 3)) in arch__choose_best_symbol()
37 if (strlen(sym) >= 10 && !strncmp(sym, "compat_SyS", 10)) in arch__choose_best_symbol()
80 void arch__sym_update(struct symbol *s, GElf_Sym *sym) in arch__sym_update() argument
82 s->arch_sym = sym->st_other; in arch__sym_update()
90 struct symbol *sym) in arch__fix_tev_from_maps() argument
104 if (pev->point.offset || !map || !sym) in arch__fix_tev_from_maps()
115 lep_offset = PPC64_LOCAL_ENTRY_OFFSET(sym->arch_sym); in arch__fix_tev_from_maps()
[all …]
/Linux-v5.4/include/asm-generic/
Dexport.h64 .macro __ksym_marker sym
66 __ksym_marker_\sym:
70 #define __EXPORT_SYMBOL(sym, val, sec) \ argument
71 __ksym_marker sym; \
72 __cond_export_sym(sym, val, sec, __is_defined(__KSYM_##sym))
73 #define __cond_export_sym(sym, val, sec, conf) \ argument
74 ___cond_export_sym(sym, val, sec, conf)
75 #define ___cond_export_sym(sym, val, sec, enabled) \ argument
76 __cond_export_sym_##enabled(sym, val, sec)
77 #define __cond_export_sym_1(sym, val, sec) ___EXPORT_SYMBOL sym, val, sec argument
[all …]
/Linux-v5.4/arch/arm/include/asm/
Dftrace.h61 static inline bool arch_syscall_match_sym_name(const char *sym, in arch_syscall_match_sym_name() argument
64 if (!strcmp(sym, "sys_mmap2")) in arch_syscall_match_sym_name()
65 sym = "sys_mmap_pgoff"; in arch_syscall_match_sym_name()
66 else if (!strcmp(sym, "sys_statfs64_wrapper")) in arch_syscall_match_sym_name()
67 sym = "sys_statfs64"; in arch_syscall_match_sym_name()
68 else if (!strcmp(sym, "sys_fstatfs64_wrapper")) in arch_syscall_match_sym_name()
69 sym = "sys_fstatfs64"; in arch_syscall_match_sym_name()
70 else if (!strcmp(sym, "sys_arm_fadvise64_64")) in arch_syscall_match_sym_name()
71 sym = "sys_fadvise64_64"; in arch_syscall_match_sym_name()
74 return !strcasecmp(sym, name); in arch_syscall_match_sym_name()
/Linux-v5.4/scripts/
Dkallsyms.c37 unsigned char *sym; member
89 static int check_symbol_range(const char *sym, unsigned long long addr, in check_symbol_range() argument
98 if (strcmp(sym, ar->start_sym) == 0) { in check_symbol_range()
101 } else if (strcmp(sym, ar->end_sym) == 0) { in check_symbol_range()
112 char sym[500], stype; in read_symbol() local
115 rc = fscanf(in, "%llx %c %499s\n", &s->addr, &stype, sym); in read_symbol()
117 if (rc != EOF && fgets(sym, 500, in) == NULL) in read_symbol()
121 if (strlen(sym) >= KSYM_NAME_LEN) { in read_symbol()
124 sym, strlen(sym), KSYM_NAME_LEN); in read_symbol()
129 if (strcmp(sym, "_text") == 0) in read_symbol()
[all …]
/Linux-v5.4/arch/x86/entry/
Dsyscall_64.c12 #define __SYSCALL_64(nr, sym, qual) extern asmlinkage long sym(const struct pt_regs *); argument
13 #define __SYSCALL_X32(nr, sym, qual) __SYSCALL_64(nr, sym, qual) argument
18 #define __SYSCALL_64(nr, sym, qual) [nr] = sym, argument
19 #define __SYSCALL_X32(nr, sym, qual) argument
35 #define __SYSCALL_64(nr, sym, qual) argument
36 #define __SYSCALL_X32(nr, sym, qual) [nr] = sym, argument
/Linux-v5.4/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-v5.4/arch/arm64/include/asm/
Dkvm_asm.h44 #define kvm_ksym_ref(sym) \ argument
46 void *val = &sym; \
48 val = lm_alias(&sym); \
79 #define __hyp_this_cpu_ptr(sym) \ argument
81 void *__ptr = hyp_symbol_addr(sym); \
83 (typeof(&sym))__ptr; \
86 #define __hyp_this_cpu_read(sym) \ argument
88 *__hyp_this_cpu_ptr(sym); \
93 .macro hyp_adr_this_cpu reg, sym, tmp
94 adr_l \reg, \sym
[all …]

1234567891011