| /utopia/UTPA2-700.0.x/projects/build/scripts/kconfig/ |
| H A D | symbol.c | 39 static void sym_add_default(struct symbol *sym, const char *def) in sym_add_default() argument 41 struct property *prop = prop_alloc(P_DEFAULT, sym); in sym_add_default() 48 struct symbol *sym; in sym_init() local 58 sym = sym_lookup("UNAME_RELEASE", 0); in sym_init() 59 sym->type = S_STRING; in sym_init() 60 sym->flags |= SYMBOL_AUTO; in sym_init() 61 sym_add_default(sym, uts.release); in sym_init() 64 enum symbol_type sym_get_type(struct symbol *sym) in sym_get_type() argument 66 enum symbol_type type = sym->type; in sym_get_type() 69 if (sym_is_choice_value(sym) && sym->visible == yes) in sym_get_type() [all …]
|
| H A D | confdata.c | 80 struct symbol *sym; in conf_expand_value() local 94 sym = sym_lookup(name, 0); in conf_expand_value() 95 sym_calc_value(sym); in conf_expand_value() 96 strcat(res_value, sym_get_string_value(sym)); in conf_expand_value() 120 static int conf_set_sym_val(struct symbol *sym, int def, int def_flags, char *p) in conf_set_sym_val() argument 124 switch (sym->type) { in conf_set_sym_val() 127 sym->def[def].tri = mod; in conf_set_sym_val() 128 sym->flags |= def_flags; in conf_set_sym_val() 133 sym->def[def].tri = yes; in conf_set_sym_val() 134 sym->flags |= def_flags; in conf_set_sym_val() [all …]
|
| H A D | menu.c | 47 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() 98 if (e->left.sym == &symbol_mod) in menu_check_dep() 114 struct symbol *sym = current_entry->sym; in menu_set_type() local 116 if (sym->type == type) in menu_set_type() 118 if (sym->type == S_UNKNOWN) { in menu_set_type() 119 sym->type = type; in menu_set_type() 123 sym->name ? sym->name : "<choice>", in menu_set_type() [all …]
|
| H A D | expr.c | 15 struct expr *expr_alloc_symbol(struct symbol *sym) in expr_alloc_symbol() argument 20 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() 85 e->left.sym = org->left.sym; in expr_copy() 86 e->right.sym = org->right.sym; in expr_copy() 148 e1->left.sym == e2->left.sym && in __expr_eliminate_eq() 149 (e1->left.sym == &symbol_yes || e1->left.sym == &symbol_no)) in __expr_eliminate_eq() 203 return e1->left.sym == e2->left.sym && e1->right.sym == e2->right.sym; in expr_eq() 205 return e1->left.sym == e2->left.sym; in expr_eq() [all …]
|
| H A D | conf.c | 84 static int conf_askvalue(struct symbol *sym, const char *def) in conf_askvalue() argument 86 enum symbol_type type = sym_get_type(sym); in conf_askvalue() 88 if (!sym_has_value(sym)) in conf_askvalue() 94 if (!sym_is_changable(sym)) { in conf_askvalue() 104 if (sym_has_value(sym)) { in conf_askvalue() 132 struct symbol *sym = menu->sym; in conf_string() local 137 printf("(%s) ", sym->name); in conf_string() 138 def = sym_get_string_value(sym); in conf_string() 139 if (sym_get_string_value(sym)) in conf_string() 141 if (!conf_askvalue(sym, def)) in conf_string() [all …]
|
| H A D | mconf.c | 340 struct symbol *sym; in build_conf() local 358 sym = menu->sym; in build_conf() 360 if (!sym) { in build_conf() 400 type = sym_get_type(sym); in build_conf() 401 if (sym_is_choice(sym)) { in build_conf() 402 struct symbol *def_sym = sym_get_choice_value(sym); in build_conf() 407 if (menu_is_visible(child) && child->sym == def_sym) in build_conf() 411 val = sym_get_tristate_value(sym); in build_conf() 412 if (sym_is_changable(sym)) { in build_conf() 455 val = sym_get_tristate_value(sym); in build_conf() [all …]
|
| H A D | qconf.cc | 107 sym_set_string_value(menu->sym, text(dataColIdx).latin1()); in okRename() 117 struct symbol* sym; in updateMenu() local 130 sym = menu->sym; in updateMenu() 140 if (sym && list->rootEntry == menu) in updateMenu() 144 if (sym) in updateMenu() 155 if (!sym) in updateMenu() 158 setText(nameColIdx, QString::fromLocal8Bit(sym->name)); in updateMenu() 160 type = sym_get_type(sym); in updateMenu() 166 if (!sym_is_changable(sym) && list->optMode == normalOpt) { in updateMenu() 173 expr = sym_get_tristate_value(sym); in updateMenu() [all …]
|
| H A D | nconf.c | 734 struct symbol *sym; in build_conf() local 744 sym = menu->sym; in build_conf() 746 if (!sym) { in build_conf() 791 type = sym_get_type(sym); in build_conf() 792 if (sym_is_choice(sym)) { in build_conf() 793 struct symbol *def_sym = sym_get_choice_value(sym); in build_conf() 798 if (menu_is_visible(child) && child->sym == def_sym) in build_conf() 802 val = sym_get_tristate_value(sym); in build_conf() 803 if (sym_is_changable(sym)) { in build_conf() 851 val = sym_get_tristate_value(sym); in build_conf() [all …]
|
| H A D | expr.h | 35 struct symbol *sym; member 48 for (e = (l); e && (s = e->right.sym); e = e->left.expr) 86 #define for_all_symbols(i, sym) for (i = 0; i < SYMBOL_HASHSIZE; i++) for (sym = symbol_hash[i]; sy… argument 136 struct symbol *sym; /* the symbol for which the property is associated */ member 148 #define for_all_properties(sym, st, tok) \ argument 149 for (st = sym->prop; st; st = st->next) \ 151 #define for_all_defaults(sym, st) for_all_properties(sym, st, P_DEFAULT) argument 152 #define for_all_choices(sym, st) for_all_properties(sym, st, P_CHOICE) argument 153 #define for_all_prompts(sym, st) \ argument 154 for (st = sym->prop; st; st = st->next) \ [all …]
|
| H A D | lkc.h | 110 void menu_add_entry(struct symbol *sym); 117 void menu_add_symbol(enum prop_type type, struct symbol *sym, struct expr *dep); 148 void sym_set_changed(struct symbol *sym); 149 struct symbol *sym_choice_default(struct symbol *sym); 150 const char *sym_get_string_default(struct symbol *sym); 151 struct symbol *sym_check_deps(struct symbol *sym); 152 struct property *prop_alloc(enum prop_type type, struct symbol *sym); 154 struct property *sym_get_env_prop(struct symbol *sym); 156 static inline tristate sym_get_tristate_value(struct symbol *sym) in sym_get_tristate_value() argument 158 return sym->curr.tri; in sym_get_tristate_value() [all …]
|
| H A D | gconf.c | 815 struct symbol *sym; in renderer_edited() local 821 sym = menu->sym; in renderer_edited() 826 sym_set_string_value(sym, new_def); in renderer_edited() 836 struct symbol *sym = menu->sym; in change_sym_value() local 839 if (!sym) in change_sym_value() 851 switch (sym_get_type(sym)) { in change_sym_value() 854 oldval = sym_get_tristate_value(sym); in change_sym_value() 855 if (!sym_tristate_within_range(sym, newval)) in change_sym_value() 857 sym_set_tristate_value(sym, newval); in change_sym_value() 877 if (!menu->sym) in toggle_sym_value() [all …]
|
| H A D | zconf.y | 149 struct symbol *sym = sym_lookup($2, 0); variable 150 sym->flags |= SYMBOL_OPTIONAL; 151 menu_add_entry(sym); 163 struct symbol *sym = sym_lookup($2, 0); variable 164 sym->flags |= SYMBOL_OPTIONAL; 165 menu_add_entry(sym); 249 struct symbol *sym = sym_lookup($2, SYMBOL_CHOICE); variable 250 sym->flags |= SYMBOL_AUTO; 251 menu_add_entry(sym); 300 current_entry->sym->flags |= SYMBOL_OPTIONAL; [all …]
|
| H A D | lkc_proto.h | 24 P(get_symbol_str, void, (struct gstr *r, struct symbol *sym)); 36 P(sym_calc_value,void,(struct symbol *sym)); 37 P(sym_get_type,enum symbol_type,(struct symbol *sym)); 38 P(sym_tristate_within_range,bool,(struct symbol *sym,tristate tri)); 39 P(sym_set_tristate_value,bool,(struct symbol *sym,tristate tri)); 40 P(sym_toggle_tristate_value,tristate,(struct symbol *sym)); 41 P(sym_string_valid,bool,(struct symbol *sym, const char *newval)); 42 P(sym_string_within_range,bool,(struct symbol *sym, const char *str)); 43 P(sym_set_string_value,bool,(struct symbol *sym, const char *newval)); 44 P(sym_is_changable,bool,(struct symbol *sym)); [all …]
|
| H A D | zconf.tab.c | 1670 struct symbol *sym = sym_lookup((yyvsp[(2) - (3)].string), 0); local 1671 sym->flags |= SYMBOL_OPTIONAL; 1672 menu_add_entry(sym); 1688 struct symbol *sym = sym_lookup((yyvsp[(2) - (3)].string), 0); local 1689 sym->flags |= SYMBOL_OPTIONAL; 1690 menu_add_entry(sym); 1778 struct symbol *sym = sym_lookup((yyvsp[(2) - (3)].string), SYMBOL_CHOICE); local 1779 sym->flags |= SYMBOL_AUTO; 1780 menu_add_entry(sym); 1827 current_entry->sym->flags |= SYMBOL_OPTIONAL; [all …]
|
| /utopia/UTPA2-700.0.x/projects/build/scripts/genksyms/ |
| H A D | genksyms.c | 169 struct symbol *sym; in find_symbol() local 171 for (sym = symtab[h]; sym; sym = sym->hash_next) in find_symbol() 172 if (map_to_ns(sym->type) == map_to_ns(ns) && in find_symbol() 173 strcmp(name, sym->name) == 0 && in find_symbol() 174 sym->is_declared) in find_symbol() 177 if (exact && sym && sym->type != ns) in find_symbol() 179 return sym; in find_symbol() 182 static int is_unknown_symbol(struct symbol *sym) in is_unknown_symbol() argument 186 return ((sym->type == SYM_STRUCT || in is_unknown_symbol() 187 sym->type == SYM_UNION || in is_unknown_symbol() [all …]
|
| /utopia/UTPA2-700.0.x/modules/mfe/drv/mfe/cModel/ |
| H A D | vlc.c | 299 int symbol2uvlc(SyntaxElement *sym) in symbol2uvlc() argument 301 int suffix_len = sym->len >> 1; in symbol2uvlc() 303 sym->bitpattern = (1<<suffix_len)|(sym->inf & ((1<<suffix_len) - 1)); in symbol2uvlc() 332 SyntaxElement symbol, *sym=&symbol; in ue_v() local 333 sym->value1 = value; in ue_v() 334 sym->value2 = 0; in ue_v() 338 ue_linfo(sym->value1,sym->value2,&(sym->len),&(sym->inf)); in ue_v() 339 symbol2uvlc(sym); in ue_v() 341 writeUVLC2buffer (sym, bitstream); in ue_v() 344 strncpy(sym->tracestring,tracestring,TRACESTRING_SIZE); in ue_v() [all …]
|
| /utopia/UTPA2-700.0.x/modules/mfe/drv/mfe_ex/cModel/ |
| H A D | vlc.c | 319 MS_S32 symbol2uvlc(SyntaxElement *sym) in symbol2uvlc() argument 321 MS_S32 suffix_len = sym->len >> 1; in symbol2uvlc() 323 sym->bitpattern = (1<<suffix_len)|(sym->inf & ((1<<suffix_len) - 1)); in symbol2uvlc() 352 SyntaxElement symbol, *sym=&symbol; in ue_v() local 353 sym->value1 = value; in ue_v() 354 sym->value2 = 0; in ue_v() 358 ue_linfo(sym->value1,sym->value2,&(sym->len),&(sym->inf)); in ue_v() 359 symbol2uvlc(sym); in ue_v() 361 writeUVLC2buffer (sym, bitstream); in ue_v() 364 strncpy(sym->tracestring,tracestring,TRACESTRING_SIZE); in ue_v() [all …]
|
| /utopia/UTPA2-700.0.x/projects/build/scripts/mod/ |
| H A D | modpost.c | 400 Elf_Sym *sym; in parse_elf() local 532 for (sym = info->symtab_start; sym < info->symtab_stop; sym++) { in parse_elf() 533 sym->st_shndx = TO_NATIVE(sym->st_shndx); in parse_elf() 534 sym->st_name = TO_NATIVE(sym->st_name); in parse_elf() 535 sym->st_value = TO_NATIVE(sym->st_value); in parse_elf() 536 sym->st_size = TO_NATIVE(sym->st_size); in parse_elf() 587 Elf_Sym *sym, const char *symname) in handle_modversions() argument 594 export = export_from_secname(info, get_secindex(info, sym)); in handle_modversions() 596 export = export_from_sec(info, get_secindex(info, sym)); in handle_modversions() 598 switch (sym->st_shndx) { in handle_modversions() [all …]
|
| H A D | file2alias.c | 899 Elf_Sym *sym, const char *symname) in handle_moddevtable() argument 905 if (!sym->st_shndx || get_secindex(info, sym) >= info->num_sections) in handle_moddevtable() 909 if (ELF_ST_TYPE(sym->st_info) != STT_OBJECT) in handle_moddevtable() 913 if (info->sechdrs[get_secindex(info, sym)].sh_type & SHT_NOBITS) { in handle_moddevtable() 914 zeros = calloc(1, sym->st_size); in handle_moddevtable() 918 + info->sechdrs[get_secindex(info, sym)].sh_offset in handle_moddevtable() 919 + sym->st_value; in handle_moddevtable() 923 do_table(symval, sym->st_size, in handle_moddevtable() 928 do_usb_table(symval, sym->st_size, mod); in handle_moddevtable() 930 do_table(symval, sym->st_size, in handle_moddevtable() [all …]
|
| H A D | modpost.h | 158 const Elf_Sym *sym) in get_secindex() argument 160 if (is_shndx_special(sym->st_shndx)) in get_secindex() 161 return SPECIAL(sym->st_shndx); in get_secindex() 162 if (sym->st_shndx != SHN_XINDEX) in get_secindex() 163 return sym->st_shndx; in get_secindex() 164 return info->symtab_shndx_start[sym - info->symtab_start]; in get_secindex() 170 Elf_Sym *sym, const char *symname);
|
| /utopia/UTPA2-700.0.x/projects/build/scripts/ |
| H A D | kallsyms.c | 36 unsigned char *sym; member 82 static int read_symbol_tr(const char *sym, unsigned long long addr) in read_symbol_tr() argument 90 if (strcmp(sym, tr->stext) == 0) { in read_symbol_tr() 93 } else if (strcmp(sym, tr->etext) == 0) { in read_symbol_tr() 105 char *sym, stype; in read_symbol() local 115 sym = str; in read_symbol() 118 sym++; in read_symbol() 121 if (strcmp(sym, "_text") == 0) in read_symbol() 123 else if (read_symbol_tr(sym, s->addr) == 0) in read_symbol() 128 if (strcmp(sym, "__kernel_syscall_via_break") && in read_symbol() [all …]
|
| H A D | docproc.c | 81 static void consume_symbol(const char *sym) in consume_symbol() argument 88 if (strcmp(sym, all_list[i])) in consume_symbol() 153 static void add_new_symbol(struct symfile *sym, char * symname) in add_new_symbol() argument 155 sym->symbollist = in add_new_symbol() 156 realloc(sym->symbollist, (sym->symbolcnt + 1) * sizeof(char *)); in add_new_symbol() 157 sym->symbollist[sym->symbolcnt++].name = strdup(symname); in add_new_symbol() 197 struct symfile *sym; in find_export_symbols() local 206 sym = add_new_file(filename); in find_export_symbols() 235 add_new_symbol(sym, p); in find_export_symbols() 269 struct symfile * sym = &symfilelist[i]; in docfunctions() local [all …]
|
| H A D | unifdef.c | 829 int sym; in eval_unary() local 869 sym = findsym(cp); in eval_unary() 870 if (sym < 0) { in eval_unary() 873 *valp = (value[sym] != NULL); in eval_unary() 883 sym = findsym(cp); in eval_unary() 885 if (sym < 0) { in eval_unary() 888 } else if (value[sym] == NULL) { in eval_unary() 892 *valp = strtol(value[sym], &ep, 0); in eval_unary() 893 if (*ep != '\0' || ep == value[sym]) in eval_unary() 1154 addsym(bool ignorethis, bool definethis, char *sym) in addsym() argument [all …]
|
| /utopia/UTPA2-700.0.x/modules/gpd/drv/gpd/ |
| H A D | inftrees.c | 131 MS_U32 sym; /* index of code symbols */ local 177 for (sym = 0; sym < codes; sym++) 178 count[lens[sym]]++; 221 for (sym = 0; sym < codes; sym++) 222 if (lens[sym] != 0) work[offs[lens[sym]]++] = (MS_U16)sym; 234 sym = 0; /* starting code symbol */ 253 if ((int)(work[sym]) < end) { 255 this.val = work[sym]; 257 else if ((int)(work[sym]) > end) { 258 this.op = (MS_U8)(extra[work[sym]]); [all …]
|
| /utopia/UTPA2-700.0.x/projects/tools/lint/aeon_include/sys/ |
| H A D | cdefs.h | 84 #define __strong_reference(sym,aliassym) \ argument 85 extern __typeof (sym) aliassym __attribute__ ((__alias__ (#sym))); 88 #define __weak_reference(sym,alias) \ argument 90 __asm__(".equ " #alias ", " #sym) 91 #define __warn_references(sym,msg) \ argument 92 __asm__(".section .gnu.warning." #sym); \ 96 #define __weak_reference(sym,alias) \ argument 99 #define __warn_references(sym,msg) \ argument 106 #define __weak_reference(sym,alias) \ argument 108 __asm__(".stabs \"_" #sym "\",1,0,0,0") [all …]
|