Home
last modified time | relevance | path

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

123

/openbmc/u-boot/scripts/kconfig/
H A Dsymbol.c38 static void sym_add_default(struct symbol *sym, const char *def) in sym_add_default() argument
40 struct property *prop = prop_alloc(P_DEFAULT, sym); in sym_add_default()
47 struct symbol *sym; in sym_init() local
57 sym = sym_lookup("UNAME_RELEASE", 0); in sym_init()
58 sym->type = S_STRING; in sym_init()
59 sym->flags |= SYMBOL_AUTO; in sym_init()
60 sym_add_default(sym, uts.release); in sym_init()
63 enum symbol_type sym_get_type(struct symbol *sym) in sym_get_type() argument
65 enum symbol_type type = sym->type; in sym_get_type()
68 if (sym_is_choice_value(sym) && sym->visible == yes) in sym_get_type()
[all …]
H A Dconfdata.c86 struct symbol *sym; in conf_expand_value() local
100 sym = sym_lookup(name, 0); in conf_expand_value()
101 sym_calc_value(sym); in conf_expand_value()
102 strcat(res_value, sym_get_string_value(sym)); in conf_expand_value()
126 static int conf_set_sym_val(struct symbol *sym, int def, int def_flags, char *p) in conf_set_sym_val() argument
130 switch (sym->type) { in conf_set_sym_val()
133 sym->def[def].tri = mod; in conf_set_sym_val()
134 sym->flags |= def_flags; in conf_set_sym_val()
140 sym->def[def].tri = yes; in conf_set_sym_val()
141 sym->flags |= def_flags; in conf_set_sym_val()
[all …]
H A 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 …]
H A 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 …]
H A Dconf.c84 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 Dlkc.h103 void menu_add_entry(struct symbol *sym);
108 void menu_add_symbol(enum prop_type type, struct symbol *sym, struct expr *dep);
141 struct symbol *sym_choice_default(struct symbol *sym);
142 const char *sym_get_string_default(struct symbol *sym);
143 struct symbol *sym_check_deps(struct symbol *sym);
144 struct property *prop_alloc(enum prop_type type, struct symbol *sym);
146 struct property *sym_get_env_prop(struct symbol *sym);
148 static inline tristate sym_get_tristate_value(struct symbol *sym) in sym_get_tristate_value() argument
150 return sym->curr.tri; in sym_get_tristate_value()
154 static inline struct symbol *sym_get_choice_value(struct symbol *sym) in sym_get_choice_value() argument
[all …]
H A 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
191 struct symbol *sym; /* the symbol for which the property is associated */ member
203 #define for_all_properties(sym, st, tok) \ argument
204 for (st = sym->prop; st; st = st->next) \
206 #define for_all_defaults(sym, st) for_all_properties(sym, st, P_DEFAULT) argument
207 #define for_all_choices(sym, st) for_all_properties(sym, st, P_CHOICE) argument
208 #define for_all_prompts(sym, st) \ argument
209 for (st = sym->prop; st; st = st->next) \
[all …]
H A Dlkc_proto.h38 void sym_calc_value(struct symbol *sym);
39 enum symbol_type sym_get_type(struct symbol *sym);
40 bool sym_tristate_within_range(struct symbol *sym,tristate tri);
41 bool sym_set_tristate_value(struct symbol *sym,tristate tri);
42 tristate sym_toggle_tristate_value(struct symbol *sym);
43 bool sym_string_valid(struct symbol *sym, const char *newval);
44 bool sym_string_within_range(struct symbol *sym, const char *str);
45 bool sym_set_string_value(struct symbol *sym, const char *newval);
46 bool sym_is_changable(struct symbol *sym);
47 struct property * sym_get_choice_prop(struct symbol *sym);
[all …]
H A Dmconf.c468 struct symbol *sym; in build_conf() local
486 sym = menu->sym; in build_conf()
488 if (!sym) { in build_conf()
529 type = sym_get_type(sym); in build_conf()
530 if (sym_is_choice(sym)) { in build_conf()
531 struct symbol *def_sym = sym_get_choice_value(sym); in build_conf()
536 if (menu_is_visible(child) && child->sym == def_sym) in build_conf()
540 val = sym_get_tristate_value(sym); in build_conf()
541 if (sym_is_changable(sym)) { in build_conf()
584 val = sym_get_tristate_value(sym); in build_conf()
[all …]
H A Dnconf.c737 struct symbol *sym; in build_conf() local
747 sym = menu->sym; in build_conf()
749 if (!sym) { in build_conf()
794 type = sym_get_type(sym); in build_conf()
795 if (sym_is_choice(sym)) { in build_conf()
796 struct symbol *def_sym = sym_get_choice_value(sym); in build_conf()
801 if (menu_is_visible(child) && child->sym == def_sym) in build_conf()
805 val = sym_get_tristate_value(sym); in build_conf()
806 if (sym_is_changable(sym)) { in build_conf()
854 val = sym_get_tristate_value(sym); in build_conf()
[all …]
H A Dqconf.cc115 struct symbol* sym; in updateMenu() local
128 sym = menu->sym; in updateMenu()
138 if (sym && list->rootEntry == menu) in updateMenu()
142 if (sym) in updateMenu()
153 if (!sym) in updateMenu()
156 setText(nameColIdx, QString::fromLocal8Bit(sym->name)); in updateMenu()
158 type = sym_get_type(sym); in updateMenu()
164 if (!sym_is_changable(sym) && list->optMode == normalOpt) { in updateMenu()
171 expr = sym_get_tristate_value(sym); in updateMenu()
174 if (sym_is_choice_value(sym) && type == S_BOOLEAN) in updateMenu()
[all …]
H A Dgconf.c787 struct symbol *sym; in renderer_edited() local
793 sym = menu->sym; in renderer_edited()
798 sym_set_string_value(sym, new_def); in renderer_edited()
808 struct symbol *sym = menu->sym; in change_sym_value() local
811 if (!sym) in change_sym_value()
823 switch (sym_get_type(sym)) { in change_sym_value()
826 if (!sym_tristate_within_range(sym, newval)) in change_sym_value()
828 sym_set_tristate_value(sym, newval); in change_sym_value()
848 if (!menu->sym) in toggle_sym_value()
851 sym_toggle_tristate_value(menu->sym); in toggle_sym_value()
[all …]
H A Dzconf.y275 struct symbol *sym = sym_lookup($2, SYMBOL_CHOICE); variable
276 sym->flags |= SYMBOL_AUTO;
277 menu_add_entry(sym);
327 current_entry->sym->flags |= SYMBOL_OPTIONAL;
438 current_entry->sym->name ?: "<choice>");
444 current_entry->sym->name ?: "<choice>");
532 struct symbol *sym; variable
554 for_all_symbols(i, sym) { in for_all_symbols() argument
555 if (sym_check_deps(sym)) in for_all_symbols()
645 struct symbol *sym = menu->sym; in print_symbol() local
[all …]
/openbmc/u-boot/common/
H A Dkallsyms.c25 const char *sym, *csym; in symbol_lookup() local
29 sym = system_map; in symbol_lookup()
33 while (*sym) { in symbol_lookup()
34 sym_addr = simple_strtoul(sym, &esym, 16); in symbol_lookup()
35 sym = esym; in symbol_lookup()
39 csym = sym; in symbol_lookup()
40 sym += strlen(sym) + 1; in symbol_lookup()
/openbmc/u-boot/lib/zlib/
H A Dinftrees.c37 unsigned sym; /* index of code symbols */ in inflate_table() local
105 for (sym = 0; sym < codes; sym++) in inflate_table()
106 count[lens[sym]]++; in inflate_table()
142 for (sym = 0; sym < codes; sym++) in inflate_table()
143 if (lens[sym] != 0) work[offs[lens[sym]]++] = (unsigned short)sym; in inflate_table()
198 sym = 0; /* starting code symbol */ in inflate_table()
215 if ((int)(work[sym]) < end) { in inflate_table()
217 this.val = work[sym]; in inflate_table()
219 else if ((int)(work[sym]) > end) { in inflate_table()
220 this.op = (unsigned char)(extra[work[sym]]); in inflate_table()
[all …]
/openbmc/u-boot/tools/binman/
H A Delf.py75 sym = syms.get(sym_name)
76 if not sym:
78 return sym.address
101 for name, sym in syms.iteritems():
105 offset = sym.address - base.address
106 if offset < 0 or offset + sym.size > entry.contents_size:
109 sym.size, entry.contents_size))
110 if sym.size == 4:
112 elif sym.size == 8:
116 (msg, sym.size))
[all …]
/openbmc/u-boot/include/linux/
H A Dkbuild.h9 #define DEFINE(sym, val) \ argument
10 asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
14 #define OFFSET(sym, str, mem) \ argument
15 DEFINE(sym, offsetof(struct str, mem))
/openbmc/qemu/tests/tcg/xtensa/
H A Dtest_sr.S17 .macro sr_op sym, op_sym, op_byte, sr
18 .if \sym
25 .macro test_sr_op sym, mask, op, op_byte, sr
29 sr_op \sym, \op, \op_byte, \sr
33 sr_op \sym, \op, \op_byte, \sr
45 .macro test_sr_mask sr, sym, mask
47 test_sr_op \sym, \mask & 1, rsr, HI_RSR, \sr
48 test_sr_op \sym, \mask & 2, wsr, HI_WSR, \sr
49 test_sr_op \sym, \mask & 4, xsr, HI_XSR, \sr
/openbmc/qemu/tests/tcg/multiarch/gdbstub/
H A Dmemory.py32 sym, ok = gdb.lookup_symbol(sym_name)
40 "break @ %s (%s %d hits)" % (end_pc, sym.value(), bp.hit_count))
45 def do_one_watch(sym, wtype, text): argument
47 wp = gdb.Breakpoint(sym, gdb.BP_WATCHPOINT, wtype)
49 report_str = "%s for %s" % (text, sym)
/openbmc/u-boot/arch/arm/include/asm/
H A Dboot0-linux-kernel-header.h29 .macro le64sym, sym
30 .long \sym\()_lo32
31 .long \sym\()_hi32
/openbmc/qemu/contrib/elf2dmp/
H A Dpdb.c57 const union codeview_symbol *sym; in pdb_find_public_v3_symbol() local
62 sym = (const void *)(root + i); in pdb_find_public_v3_symbol()
63 length = sym->generic.len + 2; in pdb_find_public_v3_symbol()
65 if (!sym->generic.id || length < 4) { in pdb_find_public_v3_symbol()
69 if (sym->generic.id == S_PUB_V3 && in pdb_find_public_v3_symbol()
70 !strcmp(name, sym->public_v3.name)) { in pdb_find_public_v3_symbol()
71 pdb_seg *segment = get_seg_by_num(r, sym->public_v3.segment); in pdb_find_public_v3_symbol()
73 uint64_t rva = sect_rva + sym->public_v3.offset; in pdb_find_public_v3_symbol()
76 sect_rva, sym->public_v3.segment, in pdb_find_public_v3_symbol()
77 ((char *)segment - 8), sym->public_v3.offset, rva); in pdb_find_public_v3_symbol()
/openbmc/u-boot/tools/buildman/
H A Dkconfiglib.py158 sym = Symbol()
159 sym.is_special_ = True
160 sym.is_defined_ = True
161 sym.config = self
162 sym.name = name
163 sym.type = type_
164 sym.cached_val = val
165 self.syms[name] = sym
166 return sym
482 sym = self.syms[name]
[all …]
/openbmc/u-boot/arch/arm/cpu/armv8/
H A Dlinux-kernel-image-header-vars.h44 #define DEFINE_IMAGE_LE64(sym, data) \ argument
45 sym##_lo32 = DATA_LE32((data) & 0xffffffff); \
46 sym##_hi32 = DATA_LE32((data) >> 32)
/openbmc/openbmc/poky/bitbake/lib/ply/
H A Dyacc.py254 sym = YaccSymbol()
255 sym.type = '$end'
256 self.symstack.append(sym)
329 sym = YaccSymbol()
330 sym.type = "$end"
331 symstack.append(sym)
385 sym = YaccSymbol()
386 sym.type = pname # Production name
387 sym.value = None
399 targ[0] = sym
[all …]
/openbmc/qemu/include/hw/
H A Dboards.h616 #define _MACHINE_VER_SYM2(sym, prefix, major, minor) \ argument
617 prefix ## _machine_ ## major ## _ ## minor ## _ ## sym
619 #define _MACHINE_VER_SYM3(sym, prefix, major, minor, micro) \ argument
620 prefix ## _machine_ ## major ## _ ## minor ## _ ## micro ## _ ## sym
622 #define _MACHINE_VER_SYM4(sym, prefix, major, minor, _unused_, tag) \ argument
623 prefix ## _machine_ ## major ## _ ## minor ## _ ## tag ## _ ## sym
625 #define _MACHINE_VER_SYM5(sym, prefix, major, minor, micro, _unused_, tag) \ argument
626 prefix ## _machine_ ## major ## _ ## minor ## _ ## micro ## _ ## tag ## _ ## sym
628 #define MACHINE_VER_SYM(sym, prefix, ...) \ argument
633 _MACHINE_VER_SYM2) (sym, prefix, __VA_ARGS__)

123