Home
last modified time | relevance | path

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

12

/hal_espressif-3.5.0/tools/kconfig/
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 …]
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 …]
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()
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()
124 sym->name ? sym->name : "<choice>", in menu_set_type()
[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()
154 e1->left.sym == e2->left.sym && in __expr_eliminate_eq()
155 (e1->left.sym == &symbol_yes || e1->left.sym == &symbol_no)) in __expr_eliminate_eq()
213 return e1->left.sym == e2->left.sym && e1->right.sym == e2->right.sym; in expr_eq()
215 return e1->left.sym == e2->left.sym; in expr_eq()
[all …]
Dconf.c85 static int conf_askvalue(struct symbol *sym, const char *def) in conf_askvalue() argument
87 enum symbol_type type = sym_get_type(sym); in conf_askvalue()
89 if (!sym_has_value(sym)) in conf_askvalue()
95 if (!sym_is_changable(sym)) { in conf_askvalue()
105 if (sym_has_value(sym)) { in conf_askvalue()
136 struct symbol *sym = menu->sym; in conf_string() local
141 printf("(%s) ", sym->name); in conf_string()
142 def = sym_get_string_value(sym); in conf_string()
143 if (sym_get_string_value(sym)) in conf_string()
145 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)
90 #define for_all_symbols(i, sym) for (i = 0; i < SYMBOL_HASHSIZE; i++) for (sym = symbol_hash[i]; sy… argument
146 struct symbol *sym; /* the symbol for which the property is associated */ member
158 #define for_all_properties(sym, st, tok) \ argument
159 for (st = sym->prop; st; st = st->next) \
161 #define for_all_defaults(sym, st) for_all_properties(sym, st, P_DEFAULT) argument
162 #define for_all_choices(sym, st) for_all_properties(sym, st, P_CHOICE) argument
163 #define for_all_prompts(sym, st) \ argument
164 for (st = sym->prop; st; st = st->next) \
[all …]
Dlkc.h104 void menu_add_entry(struct symbol *sym);
110 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 …]
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 …]
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 …]
Dnconf.c735 struct symbol *sym; in build_conf() local
745 sym = menu->sym; in build_conf()
747 if (!sym) { in build_conf()
792 type = sym_get_type(sym); in build_conf()
793 if (sym_is_choice(sym)) { in build_conf()
794 struct symbol *def_sym = sym_get_choice_value(sym); in build_conf()
799 if (menu_is_visible(child) && child->sym == def_sym) in build_conf()
803 val = sym_get_tristate_value(sym); in build_conf()
804 if (sym_is_changable(sym)) { in build_conf()
852 val = sym_get_tristate_value(sym); in build_conf()
[all …]
Dqconf.cc107 struct symbol* sym; in updateMenu() local
120 sym = menu->sym; in updateMenu()
130 if (sym && list->rootEntry == menu) in updateMenu()
134 if (sym) in updateMenu()
145 if (!sym) in updateMenu()
148 setText(nameColIdx, QString::fromLocal8Bit(sym->name)); in updateMenu()
150 type = sym_get_type(sym); in updateMenu()
156 if (!sym_is_changable(sym) && list->optMode == normalOpt) { in updateMenu()
163 expr = sym_get_tristate_value(sym); in updateMenu()
166 if (sym_is_choice_value(sym) && type == S_BOOLEAN) in updateMenu()
[all …]
Dzconf.y152 struct symbol *sym = sym_lookup($2, 0); variable
153 sym->flags |= SYMBOL_OPTIONAL;
154 menu_add_entry(sym);
166 struct symbol *sym = sym_lookup($2, 0); variable
167 sym->flags |= SYMBOL_OPTIONAL;
168 menu_add_entry(sym);
209 char *str = expand_environment($2->left.sym->name, zconf_curname(), zconf_lineno());
210 if (strcmp($2->left.sym->name, str) != 0) {
211 $2->left.sym->name = realloc($2->left.sym->name, strlen(str) + 1);
212 strncpy($2->left.sym->name, str, strlen(str) + 1);
[all …]
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 …]
Dutil.c52 struct symbol *sym, *env_sym; in file_write_dep() local
72 expr_list_for_each_sym(sym_env_list, e, sym) { in file_write_dep()
76 prop = sym_get_env_prop(sym); in file_write_dep()
Dqconf.h260 QString debug_info(struct symbol *sym);
262 static void expr_print_help(void *data, struct symbol *sym, const char *str);
266 struct symbol *sym; variable
Dkxgettext.c179 if (menu->sym != NULL && menu_has_help(menu)) in menu_build_message_list()
180 message__add(menu_get_help(menu), menu->sym->name, in menu_build_message_list()
/hal_espressif-3.5.0/tools/ci/
Dcheck_callgraph.py45 self.sym = None
126 for sym in s.iter_symbols():
127 sym_type = sym.entry['st_info']['type']
129 filename = sym.name
131 local = sym.entry['st_info']['bind'] == 'STB_LOCAL'
132 addr = sym.entry['st_value']
135 sym.name,
165 for sym in self.symbols:
166 if sym.name == name:
167 res.append(sym)
[all …]
/hal_espressif-3.5.0/tools/kconfig_new/
Dconfserver.py216 for (sym,val) in set_pass:
217 if sym.type in (kconfiglib.BOOL, kconfiglib.TRISTATE):
219 sym.set_value(2)
221 sym.set_value(0)
223 error.append('Boolean symbol %s only accepts true/false values' % sym.name)
224 elif sym.type == kconfiglib.HEX:
228 sym.set_value(hex(val))
232 sym.set_value(str(val))
233 print('Set %s' % sym.name)
234 del to_set[sym]
[all …]
Dconfgen.py152 for sym in syms:
153 if sym.name in self.rev_r_dic:
155 dep_name = self.rev_r_dic[sym.name]
415 sym = node.item
416 if not isinstance(sym, kconfiglib.Symbol):
419 if sym.config_string:
420 val = sym.str_value
421 if sym.orig_type in (kconfiglib.BOOL, kconfiglib.TRISTATE) and val == 'n':
423 elif sym.orig_type == kconfiglib.STRING:
425 elif sym.orig_type == kconfiglib.HEX:
[all …]
/hal_espressif-3.5.0/tools/kconfig_new/test/gen_kconfig_doc/
Dtest_target_visibility.py22 sym = self.config.syms.get(name)
23 if sym and len(sym.nodes) > 0:
24 return sym.nodes[0]
Dtest_kconfig_out.py27 sym = self.config.syms.get(name)
28 if sym:
29 return sym.nodes[0]
/hal_espressif-3.5.0/components/ulp/cmake/
DCMakeLists.txt128 add_custom_command(OUTPUT ${ULP_APP_NAME}.sym
129 … COMMAND ${CMAKE_NM} ${DUMP_SYMBOL_ARGS} $<TARGET_FILE:${ULP_APP_NAME}> > ${ULP_APP_NAME}.sym
140 … COMMAND ${ULP_MAP_GEN} ${MAP_GEN_EXTRA_ARGS} -s ${ULP_APP_NAME}.sym -o ${ULP_APP_NAME}
141 DEPENDS ${ULP_APP_NAME}.sym
147 DEPENDS ${ULP_APP_NAME} ${ULP_APP_NAME}.bin ${ULP_APP_NAME}.sym
/hal_espressif-3.5.0/docs/zh_CN/api-guides/
Dulp-legacy.rst69 6. **使用 esp32ulp-elf-nm 在 ELF 文件中生成全局符号列表** (ulp_app_name.sym)。
71 …7. **创建 LD 导出脚本和头文件** (ulp_app_name.ld 和 ulp_app_name.h),包含来自 ulp_app_name.sym 的符号。此步骤通过 esp32ulp_…
Dulp-risc-v.rst58 6. 使用 ``riscv32-esp-elf-nm`` 在 ELF 文件中 **生成全局符号列表** (``ulp_app_name.sym``)。
60 …7. **创建 LD 导出脚本和头文件** (``ulp_app_name.ld`` 和 ``ulp_app_name.h``),包含来自 ``ulp_app_name.sym`` 的符号。此步骤…
Dulp.rst63 6. 使用 ``esp32ulp-elf-nm`` 在 ELF 文件中 **生成全局符号列表** (``ulp_app_name.sym``)。
65 …7. **创建 LD 导出脚本和头文件** (``ulp_app_name.ld`` 和 ``ulp_app_name.h``),包含来自 ``ulp_app_name.sym`` 的符号。此步骤…

12