Home
last modified time | relevance | path

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

12

/scripts/kconfig/
A Dsymbol.c331 sym = menu->sym; in sym_calc_choice()
333 if (!sym || sym->visible == no || sym_has_value(sym)) in sym_calc_choice()
359 sym = menu->sym; in sym_calc_choice()
361 if (!sym || sym->visible == no) in sym_calc_choice()
439 sym->curr.val = sym->name; in sym_calc_value()
600 val = menu->sym == sym ? yes : no; in choice_set_value()
891 return !sym_is_choice(sym) && sym->visible > sym->rev_dep.tri; in sym_is_changeable()
1039 sym_match_arr[cnt++].sym = sym; in sym_re_search()
1077 stack->sym = sym; in dep_stack_insert()
1116 sym = stack->sym; in sym_check_print_recursive()
[all …]
A Dconfdata.c447 if (!sym) { in conf_read_simple()
506 if (sym_has_value(sym) && (sym->flags & SYMBOL_WRITE)) { in conf_read()
511 if (sym->def[S_DEF_USER].tri == sym_get_tristate_value(sym)) in conf_read()
515 if (!strcmp(sym->curr.val, sym->def[S_DEF_USER].val)) in conf_read()
621 if ((sym->type == S_BOOLEAN || sym->type == S_TRISTATE) && in __print_symbol()
773 sym = menu->sym; in conf_write_defconfig()
775 if (!sym || sym_is_choice(sym)) in conf_write_defconfig()
795 if (sym == ds && sym_get_tristate_value(sym) == yes) in conf_write_defconfig()
849 sym = menu->sym; in conf_write()
850 if (!sym) { in conf_write()
[all …]
A Dexpr.c127 (*ep1)->left.sym == (*ep2)->left.sym && 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()
724 return dep->left.sym == sym; in expr_contains_symbol()
731 return dep->left.sym == sym || in expr_contains_symbol()
732 dep->right.sym == sym; in expr_contains_symbol()
751 return dep->left.sym == sym; in expr_depends_symbol()
753 if (dep->left.sym == sym) { in expr_depends_symbol()
759 if (dep->left.sym == sym) { in expr_depends_symbol()
[all …]
A Dmenu.c75 menu->sym = sym; in menu_add_entry()
83 if (sym) in menu_add_entry()
137 struct symbol *sym = current_entry->sym; in menu_set_type() local
147 sym->name ? sym->name : "<choice>", in menu_set_type()
242 if ((sym->type == S_STRING || sym->type == S_INT || sym->type == S_HEX) && in sym_check_prop()
259 if (!choice || choice->sym != sym) in sym_check_prop()
302 sym = parent->sym; in _menu_finalize()
497 if (sym && !(sym->flags & SYMBOL_WARNED)) { in _menu_finalize()
549 sym = menu->sym; in menu_is_visible()
717 if (sym && sym->name) { in get_symbol_str()
[all …]
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);
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);
36 bool sym_is_changeable(const struct symbol *sym);
37 struct menu *sym_get_prompt_menu(const struct symbol *sym);
38 struct menu *sym_get_choice_menu(const struct symbol *sym);
[all …]
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()
233 struct symbol *sym = menu->sym; in conf_set_all_new_symbols() local
325 struct symbol *sym = menu->sym; in conf_string() local
358 struct symbol *sym = menu->sym; in conf_sym() local
518 sym = menu->sym; in conf()
566 if (sym) in conf()
582 sym = menu->sym; in check_conf()
[all …]
A Dmconf.c456 struct symbol *sym; in build_conf() local
474 sym = menu->sym; in build_conf()
476 if (!sym) { in build_conf()
576 (sym_has_value(sym) || !sym_is_changeable(sym)) ? in build_conf()
583 (sym_has_value(sym) || !sym_is_changeable(sym)) ? in build_conf()
614 if (child->sym) in conf_choice()
637 if (!child->sym) in conf_choice()
758 struct symbol *sym; in conf() local
790 sym = submenu->sym; in conf()
792 sym = NULL; in conf()
[all …]
A Dlkc.h84 void menu_add_entry(struct symbol *sym, enum menu_type type);
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(const struct symbol *sym) in sym_get_tristate_value() argument
118 return sym->curr.tri; in sym_get_tristate_value()
121 static inline bool sym_is_choice(const struct symbol *sym) in sym_is_choice() argument
124 return sym->name == NULL; in sym_is_choice()
127 bool sym_is_choice_value(const struct symbol *sym);
129 static inline bool sym_has_value(const struct symbol *sym) in sym_has_value() argument
[all …]
A Dexpr.h33 struct symbol * const sym; member
200 #define for_all_properties(sym, st, tok) \ argument
201 for (st = sym->prop; st; st = st->next) \
203 #define for_all_defaults(sym, st) for_all_properties(sym, st, P_DEFAULT) argument
204 #define for_all_prompts(sym, st) \ argument
205 for (st = sym->prop; st; st = st->next) \
241 struct symbol *sym; member
297 struct expr *expr_alloc_symbol(struct symbol *sym);
308 bool expr_contains_symbol(struct expr *dep, struct symbol *sym);
309 bool expr_depends_symbol(struct expr *dep, struct symbol *sym);
[all …]
A Dqconf.cc112 sym = menu->sym; in updateMenu()
125 if (sym) in updateMenu()
137 if (sym) in updateMenu()
143 if (!sym) in updateMenu()
297 sym = item->menu->sym; in setModelData()
298 if (!sym) in setModelData()
505 sym = item->menu ? item->menu->sym : 0; in setValue()
506 if (!sym) in setValue()
533 sym = menu->sym; in changeValue()
1009 sym = _menu->sym; in menuInfo()
[all …]
A Dparser.y240 modules_sym = current_entry->sym;
247 struct symbol *sym = sym_lookup(NULL, 0); variable
249 menu_add_entry(sym, M_CHOICE);
558 if (menu->sym && sym_check_deps(menu->sym)) in conf_parse()
561 if (menu->sym && sym_is_choice(menu->sym)) { in conf_parse()
630 struct symbol *sym = menu->sym; in print_symbol() local
633 if (sym_is_choice(sym)) in print_symbol()
636 fprintf(out, "\nconfig %s\n", sym->name); in print_symbol()
637 switch (sym->type) { in print_symbol()
715 struct symbol *sym; in zconfdump() local
[all …]
A Dnconf.c763 struct symbol *sym; in build_conf() local
773 sym = menu->sym; in build_conf()
775 if (!sym) { in build_conf()
819 type = sym_get_type(sym); in build_conf()
820 if (sym_is_choice(sym)) { in build_conf()
890 (sym_has_value(sym) || !sym_is_changeable(sym)) ? in build_conf()
1059 struct symbol *sym; in selected_conf() local
1160 sym = submenu->sym; in selected_conf()
1180 if (sym_is_choice(sym)) in selected_conf()
1257 else if (child->sym) in conf_choice()
[all …]
A Dinternal.h11 #define for_all_symbols(sym) \ argument
12 hash_for_each(sym_hashtable, sym, node)
A Dgconf.c154 struct symbol *sym = menu->sym; in set_node() local
169 sym && !sym_has_value(sym) ? "(NEW)" : ""); in set_node()
173 if (!sym) in set_node()
176 sym_calc_value(sym); in set_node()
231 COL_NAME, sym ? sym->name : "", in set_node()
244 COL_BTNRAD, sym && sym_is_choice_value(sym), in set_node()
666 struct symbol *sym; in renderer_edited() local
672 sym = menu->sym; in renderer_edited()
688 struct symbol *sym = menu->sym; in change_sym_value() local
691 if (!sym) in change_sym_value()
[all …]
/scripts/gendwarfksyms/
A Dsymbols.c29 if (match == sym) in __for_each_addr()
89 if (sym->state == SYMBOL_PROCESSED && sym->crc != *crc) in set_crc()
91 sym->name, sym->crc, *crc); in set_crc()
149 sym = xcalloc(1, sizeof(*sym)); in symbol_read_exports()
154 hash_add(symbol_names, &sym->name_hash, hash_str(sym->name)); in symbol_read_exports()
169 *res = sym; in get_symbol()
177 return sym; in symbol_get()
256 if (!sym) in elf_for_each_global()
293 debug("%s -> { %u, %lx }", sym->name, sym->addr.section, in set_symbol_addr()
325 printf("#SYMVER %s 0x%08lx\n", sym->name, sym->crc); in symbol_print_versions()
[all …]
A Dtypes.c517 static void expand_symbol(struct symbol *sym, void *arg) in expand_symbol() argument
528 if (!symtypes && sym->state == SYMBOL_PROCESSED) in expand_symbol()
531 if (__die_map_get(sym->die_addr, DIE_SYMBOL, &cache)) in expand_symbol()
534 type_expand(sym->name, cache, &type); in expand_symbol()
537 if (sym->state != SYMBOL_PROCESSED) { in expand_symbol()
539 symbol_set_crc(sym, version.crc); in expand_symbol()
540 debug("%s = %lx", sym->name, version.crc); in expand_symbol()
543 checkp(fputs(sym->name, stderr)); in expand_symbol()
554 type_map_add(sym->name, &type); in expand_symbol()
/scripts/genksyms/
A Dgenksyms.c164 if (exact && sym && sym->type != ns) in find_symbol()
166 return sym; in find_symbol()
250 if (!sym->is_declared && sym->is_override) { in __add_symbol()
273 if (sym) { in __add_symbol()
278 free(sym); in __add_symbol()
282 sym = xmalloc(sizeof(*sym)); in __add_symbol()
469 if (sym && sym->tag == SYM_NORMAL && in read_reference()
475 if (!sym) in read_reference()
489 subsym = add_reference_symbol(sym->string, sym->tag, in read_reference()
673 print_type_name(sym->type, sym->name); in export_symbol()
[all …]
/scripts/
A Dkallsyms.c40 unsigned char sym[]; member
121 struct sym_entry *sym; in read_symbol() local
166 sym = xmalloc(sizeof(*sym) + len + 1); in read_symbol()
167 sym->addr = addr; in read_symbol()
168 sym->len = len; in read_symbol()
169 sym->sym[0] = type; in read_symbol()
172 return sym; in read_symbol()
263 if (!sym) in read_map()
528 p1 = table[i]->sym; in compress_symbols()
678 wa = (sa->sym[0] == 'w') || (sa->sym[0] == 'W'); in compare_symbols()
[all …]
A Dsorttable.c222 return e.sym_##fn_name(sym); \
238 return e.sym_##fn_name(sym); \
254 return e.sym_##fn_name(sym); \
269 return e.sym_type(sym); in sym_type()
889 Elf_Sym *sym, *end_sym; in get_mcount_loc() local
896 while (sym < end_sym) { in get_mcount_loc()
906 sym = (void *)sym + symentsize; in get_mcount_loc()
933 Elf_Sym *sym; in do_sort() local
1087 for (sym = sym_start; (void *)sym + symentsize < sym_end; in do_sort()
1088 sym = (void *)sym + symentsize) { in do_sort()
[all …]
A Dinsert-sys-cert.c60 struct sym { struct
94 struct sym *s) in get_symbol_from_map()
135 Elf_Sym *sym, *symtab_start; in find_elf_symbol() local
148 sym = &symtab_start[i]; in find_elf_symbol()
149 symname = strtab + sym->st_name; in find_elf_symbol()
151 return sym; in find_elf_symbol()
158 char *name, struct sym *s) in get_symbol_from_table()
260 static void print_sym(Elf_Ehdr *hdr, struct sym *s) in print_sym()
287 struct sym cert_sym, lsize_sym, used_sym; in main()
A Dbloat-o-meter29 sym = {}
49 sym[name] = sym.get(name, 0) + int(size, 16)
50 return sym
/scripts/mod/
A Dsymsearch.c54 for (Elf_Sym *sym = elf->symtab_start; sym < elf->symtab_stop; sym++) { in symbol_count() local
55 if (is_valid_name(elf, sym)) in symbol_count()
74 for (Elf_Sym *sym = elf->symtab_start; sym < elf->symtab_stop; sym++) { in symsearch_populate() local
75 if (is_valid_name(elf, sym)) { in symsearch_populate()
78 table->symbol_index = sym - elf->symtab_start; in symsearch_populate()
79 table->section_index = get_secindex(elf, sym); in symsearch_populate()
80 table->addr = sym->st_value; in symsearch_populate()
87 if (is_arm && ELF_ST_TYPE(sym->st_info) == STT_FUNC) in symsearch_populate()
A Dmodpost.c554 for (sym = info->symtab_start; sym < info->symtab_stop; sym++) { in parse_elf()
555 sym->st_shndx = TO_NATIVE(sym->st_shndx); in parse_elf()
556 sym->st_name = TO_NATIVE(sym->st_name); in parse_elf()
557 sym->st_value = TO_NATIVE(sym->st_value); in parse_elf()
558 sym->st_size = TO_NATIVE(sym->st_size); in parse_elf()
704 return sym ? elf->strtab + sym->st_name : ""; in sym_name()
1522 if (sym) in extract_crcs_for_object()
1614 for (sym = info.symtab_start; sym < info.symtab_stop; sym++) { in read_symbols()
1866 sym->is_func ? "FUNC" : "DATA", sym->name, in add_exported_symbols()
1886 sym->name, sym->crc, sym->is_gpl_only ? "_gpl" : ""); in add_exported_symbols()
[all …]
A Dmodpost.h165 const Elf_Sym *sym) in get_secindex() argument
167 unsigned int index = sym->st_shndx; in get_secindex()
174 return info->symtab_shndx_start[sym - info->symtab_start]; in get_secindex()
193 static inline bool is_valid_name(struct elf_info *elf, Elf_Sym *sym) in is_valid_name() argument
195 const char *name = elf->strtab + sym->st_name; in is_valid_name()
211 Elf_Sym *sym, const char *symname);
222 void *sym_get_data(const struct elf_info *info, const Elf_Sym *sym);
/scripts/gendwarfksyms/examples/
A Dsymbolptr.c20 #define __GENDWARFKSYMS_EXPORT(sym) \ argument
21 static typeof(sym) *__gendwarfksyms_ptr_##sym __used \
22 __section(".discard.gendwarfksyms") = &sym;

Completed in 52 milliseconds

12