Home
last modified time | relevance | path

Searched refs:var_name (Results 1 – 25 of 54) sorted by relevance

123

/openbmc/openbmc-test-automation/lib/
H A Dgen_robot_valid.py15 def valid_var_name(var_name): argument
27 var_value = BuiltIn().get_variable_value("${" + var_name + "}")
31 var_value, invalid_values=[var_value], var_name=var_name
38 def valid_init(var_name, *args, **kwargs): argument
52 var_value = valid_var_name(var_name)
131 def valid_type(var_name, *args, **kwargs): argument
132 var_value, args, kwargs = valid_init(var_name, *args, **kwargs)
134 var_value, *args, var_name=var_name, **kwargs
139 def valid_value(var_name, *args, **kwargs): argument
140 var_value, args, kwargs = valid_init(var_name, *args, **kwargs)
[all …]
H A Dgen_valid.py32 def get_var_name(var_name): argument
67 return var_name or gp.get_arg_name(0, 1, stack_frame_ix=3)
154 def valid_type(var_value, required_type, var_name=None): argument
178 var_name = get_var_name(var_name)
181 var_name, var_value, gp.blank() | gp.show_type()
189 def valid_value(var_value, valid_values=[], invalid_values=[], var_name=None): argument
232 error_message = valid_type(valid_values, list, var_name="valid_values")
236 error_message = valid_type(invalid_values, list, var_name="invalid_values")
244 var_name = get_var_name(var_name)
247 var_name, var_value, gp.blank() | gp.verbose() | gp.show_type()
[all …]
H A Dvalid.tcl8 proc valid_value { var_name { invalid_values {}} { valid_values {}} } {
27 set stack_level [get_stack_var_level $var_name]
29 upvar $stack_level $var_name var_value
54 append error_message [sprint_varx $var_name $var_value "" "" 1]
75 append error_message [sprint_varx $var_name $var_value "" "" 1]
88 proc valid_list { var_name args } {
126 set stack_level [get_stack_var_level $var_name]
128 upvar $stack_level $var_name var_value
147 upvar $stack_level $var_name $var_name
149 set printed_var [sprint_list $var_name "" "" 1]
[all …]
H A Dgen_plug_in_utils.py138 for var_name in plug_in_parm_names:
141 default_value = gm.get_mod_global(var_name, "")
143 non_string_defaults[var_name] = type(default_value)
144 os.environ[var_name] = os.environ.get(var_name, str(default_value))
145 if os.environ[var_name] == "":
146 os.environ[var_name] = str(default_value)
252 def get_plug_default(var_name, default=None): argument
301 var_name = var_name.upper()
304 package_var_name = plug_in_package_name + "_" + var_name
310 plug_var_name = PLUG_VAR_PREFIX + "_OVERRIDE_" + var_name
[all …]
H A Dvar_stack.py102 def push(self, var_value, var_name=""): argument
114 if var_name == "":
117 var_name = gp.get_arg_name(0, 1, stack_frame_ix)
118 if var_name in self.__stack_dict:
119 self.__stack_dict[var_name].append(var_value)
121 self.__stack_dict[var_name] = copy.deepcopy([var_value])
123 def pop(self, var_name=""): argument
131 return self.__stack_dict[var_name].pop()
H A Dprint.tcl326 proc sprint_varx { var_name var_value { indent 0 } { width {} } { hex 0 } } {
393 proc sprint_var { var_name args } {
446 upvar $upvar_level $var_name var_value
454 append buffer [format "%-${indent}s%s\n" "" "$var_name:"]
462 append buffer [sprint_varx "${var_name}(${key})" $arr_value $indent\
470 if {[catch {set buffer [sprint_varx $var_name $var_value {*}$args]} error_text options]} {
473 return [sprint_varx $var_name {** variable not set **} {*}$args]
485 proc sprint_list { var_name args } {
517 upvar $upvar_level $var_name var_value
523 append buffer [format "%-${indent}s%s\n" "" "$var_name:"]
[all …]
H A Dcall_stack.tcl32 proc get_stack_var { var_name { default {} } { init_stack_ix 1 } } {
43 upvar $stack_ix $var_name var_ref
52 proc get_stack_var_level { var_name { init_stack_ix 1 } { fail_on_err 1 } } {
66 upvar $stack_ix $var_name var_ref
72 append message "Programmer error - Couldn't find variable \"${var_name}\""
H A Dgen_print.py996 var_name, argument
1148 var_name = re.sub(r".*\[", "[", var_name)
1150 var_name = re.sub(r"[\[\]]", "", var_name)
1154 str(var_name) + delim,
1158 return format_string % ("", str(var_name) + delim, var_value)
1167 loc_var_name = re.sub(r".*\[", "[", var_name)
1169 loc_var_name = var_name
1200 var_name + key,
1216 var_name + key,
1258 return format_string % ("", str(var_name) + ":", var_value)
[all …]
H A Dgen_misc.py193 def get_mod_global(var_name, default=None, mod_name="__main__"): argument
207 return BuiltIn().get_variable_value("${" + var_name + "}", default)
220 return getattr(module, var_name)
222 return getattr(module, var_name, default)
243 var_name = gp.get_arg_name(0, 1, stack_frame_ix=2)
245 return dft(var_value, get_mod_global(var_name, 0))
248 def set_mod_global(var_value, mod_name="__main__", var_name=None): argument
269 if var_name is None:
270 var_name = gp.get_arg_name(None, 1, 2)
272 setattr(module, var_name, var_value)
H A Dgen_arg.py213 def set_pgm_arg(var_value, var_name=None): argument
224 if var_name is None:
225 var_name = gp.get_arg_name(None, 1, 2)
227 arg_obj.__dict__[var_name] = var_value
229 setattr(module, var_name, var_value)
230 if var_name == "quiet":
232 elif var_name == "debug":
234 elif var_name == "test_mode":
H A Dgen_robot_print.py40 for var_name in args:
41 var_value = BuiltIn().get_variable_value("${" + str(var_name) + "}")
42 buffer += gp.sprint_varx(var_name, var_value, **kwargs)
H A Dipmi_client.py81 var_name = "ipmi_" + ipmi_option_name_map[option]
82 value = eval(var_name)
H A Dobmc_boot_test.py341 for var_name in plug_in_vars:
342 var_value = BuiltIn().get_variable_value("${" + var_name + "}")
343 var_name = var_name.upper()
346 os.environ["AUTOBOOT_" + var_name] = str(var_value)
400 for var_name in plug_in_vars:
401 var_value = BuiltIn().get_variable_value("${" + var_name + "}")
402 var_name = var_name.upper()
405 os.environ["AUTOBOOT_" + var_name] = str(var_value)
/openbmc/linux/fs/efivarfs/
H A Dvars.c28 validate_device_path(efi_char16_t *var_name, int match, u8 *buffer, in validate_device_path() argument
61 validate_boot_order(efi_char16_t *var_name, int match, u8 *buffer, in validate_boot_order() argument
72 validate_load_option(efi_char16_t *var_name, int match, u8 *buffer, in validate_load_option() argument
78 namelen = ucs2_strnlen(var_name, EFI_VAR_NAME_LEN); in validate_load_option()
82 if (var_name[i] > 127 || in validate_load_option()
83 hex_to_bin(var_name[i] & 0xff) < 0) in validate_load_option()
118 return validate_device_path(var_name, match, buffer + desclength + 6, in validate_load_option()
123 validate_uint16(efi_char16_t *var_name, int match, u8 *buffer, in validate_uint16() argument
134 validate_ascii_string(efi_char16_t *var_name, int match, u8 *buffer, in validate_ascii_string() argument
153 bool (*validate)(efi_char16_t *var_name, int match, u8 *data,
[all …]
/openbmc/openbmc-test-automation/extended/
H A Drun_keyword.py107 var_name = cmd_buf[0].strip("${}=")
110 var_name = ""
119 if var_name != "":
120 BuiltIn().set_global_variable("${" + var_name + "}", output)
/openbmc/openbmc/poky/bitbake/lib/bb/ui/
H A Deventreplay.py52 var_name = command_line[1]
53 variable = self.variables.get(var_name)
56 return None, "Missing variable %s" % var_name
/openbmc/u-boot/cmd/
H A Defidebug.c478 char var_name[9]; in do_efi_boot_add() local
496 sprintf(var_name, "Boot%04X", id); in do_efi_boot_add()
498 utf8_utf16_strncpy(&p, var_name, 9); in do_efi_boot_add()
569 char var_name[9]; in do_efi_boot_rm() local
582 sprintf(var_name, "Boot%04X", id); in do_efi_boot_rm()
583 utf8_utf16_strncpy((u16 **)&var_name16, var_name, 9); in do_efi_boot_rm()
649 char var_name[9]; in show_efi_boot_opt() local
656 sprintf(var_name, "Boot%04X", id); in show_efi_boot_opt()
658 utf8_utf16_strncpy(&p, var_name, 9); in show_efi_boot_opt()
741 char var_name[9]; in show_efi_boot_order() local
[all …]
H A Dnvedit_efi.c344 char *var_name, *value = NULL; in do_env_set_efi() local
362 var_name = argv[1]; in do_env_set_efi()
378 len = utf8_utf16_strnlen(var_name, strlen(var_name)); in do_env_set_efi()
385 utf8_utf16_strncpy(&p, var_name, len + 1); in do_env_set_efi()
/openbmc/u-boot/env/
H A Dcallback.c47 const char *var_name = var_entry->key; in env_callback_init() local
59 ret = env_attr_lookup(callback_list, var_name, callback_name); in env_callback_init()
63 ret = env_attr_lookup(ENV_CALLBACK_LIST_STATIC, var_name, in env_callback_init()
/openbmc/openbmc-test-automation/bin/
H A Dgen_list.sh96 cmd_buf="${var_name}=\$(echo \"\${${var_name}}\" | sed -re 's#[/]+#/#g' -e 's#/\$##g')"
/openbmc/openbmc/meta-arm/meta-arm-bsp/recipes-security/trusted-services/corstone1000/
H A D0012-Fix-GetNextVariableName-NameSize-input.patch412 - std::u16string var_name = null_name;
416 - efi_status = m_client->get_next_variable_name(guid, var_name,
417 - (var_name.size() + 1) * sizeof(int16_t) + 1);
430 - efi_status = m_client->get_next_variable_name(guid, var_name);
432 + efi_status = m_client->get_next_variable_name(guid, var_name, std::numeric_limits<size_t>::max());
437 - efi_status = m_client->get_next_variable_name(guid, var_name,
440 + var_name = null_name;
441 + efi_status = m_client->get_next_variable_name(guid, var_name, 1);
446 + var_name = null_name;
447 + efi_status = m_client->get_next_variable_name(guid, var_name, 2);
[all …]
/openbmc/openbmc/poky/bitbake/lib/toaster/tests/functional/
H A Dtest_project_config.py227 var_name, field, btn_id, input_id, value, save_btn, *_ = kwargs.values()
253 var_name='DISTRO',
264 var_name='IMAGE_INSTALL:append',
275 var_name='PACKAGE_CLASSES',
287 var_name='New_Custom_Variable',
/openbmc/linux/kernel/trace/
H A Dtrace_events_hist.c1111 const char *var_name) in find_var_field() argument
1119 strcmp(hist_field->var.name, var_name) == 0) { in find_var_field()
1130 const char *var_name) in find_var() argument
1138 hist_field = find_var_field(hist_data, var_name); in find_var()
1145 hist_field = find_var_field(test_data, var_name); in find_var()
1157 char *var_name) in find_var_file() argument
1172 if (find_var_field(var_hist_data, var_name)) { in find_var_file()
1174 hist_err(tr, HIST_ERR_VAR_NOT_UNIQUE, errpos(var_name)); in find_var_file()
1186 const char *var_name) in find_file_var() argument
1197 hist_field = find_var_field(test_data, var_name); in find_file_var()
[all …]
/openbmc/u-boot/tools/dtoc/
H A Ddtb_platdata.py463 var_name = conv_name_to_c(node.name)
465 (STRUCT_PREFIX, struct_name, VAL_PREFIX, var_name))
511 self.buf('U_BOOT_DEVICE(%s) = {\n' % var_name)
513 self.buf('\t.platdata\t= &%s%s,\n' % (VAL_PREFIX, var_name))
514 self.buf('\t.platdata_size\t= sizeof(%s%s),\n' % (VAL_PREFIX, var_name))
/openbmc/linux/arch/alpha/kernel/
H A Dsetup.c446 char *type_name, *var_name, *p; in setup_arch() local
570 cpu->type, &type_name, &var_name); in setup_arch()
571 if (*var_name == '0') in setup_arch()
572 var_name = ""; in setup_arch()
581 type_name, (*var_name ? " variation " : ""), var_name, in setup_arch()
593 type_name, (*var_name ? " variation " : ""), in setup_arch()
594 var_name, alpha_mv.vector_name, in setup_arch()

123