/openbmc/openbmc-test-automation/lib/ |
H A D | gen_robot_valid.py | 15 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 D | gen_valid.py | 32 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 D | valid.tcl | 8 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 D | gen_plug_in_utils.py | 138 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 D | var_stack.py | 102 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 D | print.tcl | 326 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 D | call_stack.tcl | 32 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 D | gen_print.py | 996 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 D | gen_misc.py | 193 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 D | gen_arg.py | 213 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 D | gen_robot_print.py | 40 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 D | ipmi_client.py | 81 var_name = "ipmi_" + ipmi_option_name_map[option] 82 value = eval(var_name)
|
H A D | obmc_boot_test.py | 341 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 D | vars.c | 28 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 D | run_keyword.py | 107 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 D | eventreplay.py | 52 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 D | efidebug.c | 478 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 D | nvedit_efi.c | 344 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 D | callback.c | 47 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 D | gen_list.sh | 96 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 D | 0012-Fix-GetNextVariableName-NameSize-input.patch | 412 - 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 D | test_project_config.py | 227 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 D | trace_events_hist.c | 1111 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 D | dtb_platdata.py | 463 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 D | setup.c | 446 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()
|