| /openbmc/openbmc-test-automation/lib/ |
| H A D | gen_valid.py | 12 import gen_print as gp namespace 67 return var_name or gp.get_arg_name(0, 1, stack_frame_ix=3) 110 l_value = gp.get_arg_name(None, -1, stack_frame_ix=3) 119 gp.print_error_report(error_message, stack_frame_ix=4) 180 error_message += gp.sprint_varx( 181 var_name, var_value, gp.blank() | gp.show_type() 184 error_message += gp.sprint_var(required_type) 228 error_message += gp.sprint_var(invalid_values) 229 error_message += gp.sprint_var(valid_values) 246 error_message += gp.sprint_varx( [all …]
|
| H A D | gen_robot_ssh.py | 22 import gen_print as gp namespace 38 buffer = gp.sindent("", indent) 41 buffer += gp.sprint_varx("index", connection.index, 0, indent) 42 buffer += gp.sprint_varx("host", connection.host, 0, indent) 43 buffer += gp.sprint_varx("alias", connection.alias, 0, indent) 44 buffer += gp.sprint_varx("port", connection.port, 0, indent) 45 buffer += gp.sprint_varx("timeout", connection.timeout, 0, indent) 46 buffer += gp.sprint_varx("newline", connection.newline, 0, indent) 47 buffer += gp.sprint_varx("prompt", connection.prompt, 0, indent) 48 buffer += gp.sprint_varx("term_type", connection.term_type, 0, indent) [all …]
|
| H A D | obmc_boot_test.py | 26 import gen_print as gp namespace 175 host_var_name = gp.get_arg_name(0, 1, stack_frame_ix=2) 229 gp.dpissuing(cmd_buf) 451 gp.qprintn() 452 gp.qprint_executing() 453 gp.lprint_executing() 461 gp.qprintn() 462 gp.qprint_executing() 463 gp.lprint_executing() 475 gp.qprintn() [all …]
|
| H A D | func_timer.py | 13 import gen_print as gp namespace 58 buffer += gp.sprint_var(func_name, indent=indent) 59 buffer += gp.sprint_varx("time_out", self.__time_out, indent=indent) 60 buffer += gp.sprint_varx("child_pid", self.__child_pid, indent=indent) 61 buffer += gp.sprint_varx( 81 gp.lprint_executing() 82 gp.lprint_var(self.__child_pid) 99 gp.lprint_timen("Killing child pid " + str(self.__child_pid) + ".") 102 gp.lprint_timen("Tolerated kill failure.") 104 gp.lprint_timen("os.waitpid(" + str(self.__child_pid) + ")") [all …]
|
| H A D | state.py | 37 import gen_print as gp namespace 429 BuiltIn().fail(gp.sprint_error(error_message)) 492 quiet = int(gp.get_var_value(quiet, 0)) 499 BuiltIn().fail(gp.sprint_error(error_message)) 505 BuiltIn().fail(gp.sprint_error(error_message)) 511 BuiltIn().fail(gp.sprint_error(error_message)) 521 + gp.sprint_var(invalid_req_states) 523 BuiltIn().fail(gp.sprint_error(error_message)) 566 gp.dprint_vars(output, stderr) 567 gp.dprint_vars(rc, 1) [all …]
|
| H A D | openbmc_ffdc.py | 9 import gen_print as gp namespace 60 gp.qprint_var(state) 62 gp.print_error( 68 gp.print_error("%s commands to the BMC are failing." % interface) 71 gp.print_error("BMC is not communicating via ssh.\n") 75 gp.print_error( 81 gp.qprint_timen("Collecting FFDC.") 85 gp.qprint_var(ffdc_dir_path) 86 gp.qprint_var(ffdc_prefix) 93 gp.qprint_issuing(cmd_buf) [all …]
|
| H A D | gen_cmd.py | 18 import gen_print as gp namespace 21 robot_env = gp.robot_env 64 gp.print_vars(cmd_buf, quiet, test_mode, debug) 71 gp.pissuing(cmd_buf, test_mode) 104 gp.gp_print(line) 113 gp.gp_print(line) 120 err_msg += gp.sprint_var(shell_rc, gp.hexa()) 125 gp.print_error_report(err_msg) 262 gp.dprint_executing() 266 sub_proc = gp.get_stack_var("sub_proc", 0) [all …]
|
| H A D | gen_robot_plug_in.py | 14 import gen_print as gp namespace 33 gp.sprint_error( 105 plug_in_packages_list = gp.get_var_value(plug_in_packages_list, []) 114 quiet = int(gp.get_var_value(quiet, 0)) 115 debug = int(gp.get_var_value(debug, 0)) 157 gp.print_issuing(cmd_buf) 159 gp.print_timen( 202 gp.dprint_issuing(cmd_buf) 216 gp.print_var(grep_rc, gp.hexa()) 217 gp.print_var(proc_plug_pkg_rc, gp.hexa()) [all …]
|
| H A D | gen_misc.py | 40 import gen_print as gp namespace 42 robot_env = gp.robot_env 73 quiet = int(dft(quiet, gp.get_stack_var("quiet", 0))) 74 gp.qprint_issuing("os.makedirs('" + path + "', mode=" + oct(mode) + ")") 92 quiet = int(dft(quiet, gp.get_stack_var("quiet", 0))) 93 print_string = gp.sprint_executing(max_width=2000) 97 gp.qprintn(re.sub(r", quiet[ ]?=.*", ")", print_string)) 112 quiet = int(dft(quiet, gp.get_stack_var("quiet", 0))) 113 gp.qprint_issuing("os.chdir('" + path + "')") 134 error_message += gp.sprint_var(shell_rc, gp.hexa()) [all …]
|
| H A D | gen_robot_print.py | 11 import gen_print as gp namespace 36 regex = "(" + "|".join(gp.valid_fmts()) + "|terse)" 42 buffer += gp.sprint_varx(var_name, var_value, **kwargs) 59 buffer += gp.sprint_dashes() 90 buffer += gp.sprint_dashes() 107 gp.gp_print(buffer) 140 gp_debug_print("gp.robot_env: " + str(gp.robot_env) + "\n") 148 func_defs = gp.create_print_wrapper_funcs(
|
| H A D | gen_call_robot.py | 17 import gen_print as gp namespace 43 gp.dprint_executing() 145 gp.dprint_vars( 154 gp.dprint_vars(ROBOT_TEST_RUNNING_FROM_SB) 157 gp.dprint_timen( 170 gp.dprint_vars( 221 gp.dprint_vars(abs_path, robot_file_path) 229 gp.dprint_var(robot_file_search_paths) 234 gp.dprint_var(candidate_file_path) 236 gp.dprint_timen("Found full path to " + robot_file_path + ".") [all …]
|
| H A D | gen_arg.py | 29 import gen_print as gp namespace 93 + gp.sprint_var(stock_list) 108 + gp.sprint_var(master_stock_list) 225 var_name = gp.get_arg_name(None, 1, 2) 248 col1_width = gp.dft_col1_width + indent 252 buffer += gp.sprint_varx( 395 report += gp.sprint_issuing(cmd_buf) 444 "\n" + gp.sprint_dashes(width=120) + gp.sprint_executing() + "\n" 457 gp.print_vars(terminate_descendants_temp_file_path) 460 gp.sprint_varx("pgm_name", gp.pgm_name) [all …]
|
| H A D | gen_plug_in_utils.py | 15 import gen_print as gp namespace 30 plug_in_package_name = os.path.basename(gp.pgm_dir_path[:-1]) 107 os.path.dirname(gp.pgm_dir_path.rstrip("/")) 175 map(gp.register_passwords, password_vals) 199 buffer += "\n" + gp.sprint_dashes() 201 buffer += gp.sprint_varx(key, value) 203 buffer += gp.sprint_dashes() + "\n" 393 gp.dprint_vars( 474 var_name = gp.get_arg_name(0, 1, stack_frame_ix=2) 477 gp.qprint_timen('Saving "' + var_name + '" value.') [all …]
|
| H A D | func_args.py | 9 import gen_print as gp namespace 56 arg_name = gp.get_arg_name(None, arg_num=-3, stack_frame_ix=2) 133 if type(value) not in gp.get_string_types(): 163 type_of_dict = gp.is_dict(args) 165 if type_of_dict == gp.dict_type(): 167 elif type_of_dict == gp.ordered_dict_type(): 169 elif type_of_dict == gp.dot_dict_type(): 171 elif type_of_dict == gp.normalized_dict_type():
|
| H A D | boot_data.py | 23 import gen_print as gp namespace 178 BuiltIn().fail(gp.sprint_error(error_message)) 270 buffer += gp.sprint(header_footer) 272 buffer += gp.sprint(header_footer) 286 quiet = int(gm.dft(quiet, gp.get_stack_var("quiet", 0))) 288 gp.qprint(self.sprint_report(header_footer)) 298 buffer += gp.sprint_var(self.__obj_name) 300 buffer += gp.sprint_var(self.__initial_boot_pass) 301 buffer += gp.sprint_var(self.__initial_boot_fail) 310 gp.gp_print(self.sprint_obj()) [all …]
|
| H A D | dump_utils.py | 13 import gen_print as gp namespace 54 quiet = int(gp.get_var_value(quiet, 1)) 88 message += gp.sprint_var(dump_id) 89 message += gp.sprint_var(dump_dict) 90 BuiltIn().fail(gp.sprint_error(message)) 97 message += gp.sprint_var(dump_id) 99 message += gp.sprint_var(dump_file_path) 100 BuiltIn().fail(gp.sprint_error(message))
|
| H A D | gen_plug_in.py | 12 import gen_print as gp namespace 88 gp.dprint_executing() 96 gp.print_error_report( 107 gp.print_error_report( 112 + gp.sprint_var(PATH_LIST) 118 gp.print_error_report( 121 + gp.sprint_varx("supports_file_path", supports_file_path)
|
| H A D | tftp_update_utils.py | 7 import gen_print as gp # NOQA namespace 21 gp.qprint_timen("Get system state.") 23 gp.qprint_var(state) 48 gp.qprintn()
|
| /openbmc/u-boot/arch/arm/mach-imx/ |
| H A D | i2c-mxv7.c | 22 gpio_direction_input(p->sda.gp); in force_idle_bus() 23 gpio_direction_input(p->scl.gp); in force_idle_bus() 28 sda = gpio_get_value(p->sda.gp); in force_idle_bus() 29 scl = gpio_get_value(p->scl.gp); in force_idle_bus() 34 sda, scl, p->sda.gp, p->scl.gp); in force_idle_bus() 37 gpio_direction_output(p->scl.gp, 0); in force_idle_bus() 39 gpio_direction_input(p->scl.gp); in force_idle_bus() 44 sda = gpio_get_value(p->sda.gp); in force_idle_bus() 45 scl = gpio_get_value(p->scl.gp); in force_idle_bus() 85 ret = gpio_request(p->sda.gp, name); in setup_i2c() [all …]
|
| /openbmc/u-boot/arch/arm/include/asm/arch-armada100/ |
| H A D | gpio.h | 20 #define GPIO_TO_REG(gp) (gp >> 5) argument 21 #define GPIO_TO_BIT(gp) (1 << (gp & 0x1F)) argument 22 #define GPIO_VAL(gp, val) ((val >> (gp & 0x1F)) & 0x01) argument
|
| /openbmc/qemu/bsd-user/freebsd/ |
| H A D | os-proc.c | 37 abi_ulong gp; in freebsd_exec_common() local 45 for (gp = guest_argp; gp; gp += sizeof(abi_ulong)) { in freebsd_exec_common() 46 if (get_user_ual(addr, gp)) { in freebsd_exec_common() 55 for (gp = guest_envp; gp; gp += sizeof(abi_ulong)) { in freebsd_exec_common() 56 if (get_user_ual(addr, gp)) { in freebsd_exec_common() 70 for (gp = guest_argp, q = argp; gp; gp += sizeof(abi_ulong), q++) { in freebsd_exec_common() 71 if (get_user_ual(addr, gp)) { in freebsd_exec_common() 87 for (gp = guest_envp, q = envp; gp; gp += sizeof(abi_ulong), q++) { in freebsd_exec_common() 88 if (get_user_ual(addr, gp)) { in freebsd_exec_common() 126 for (gp = guest_argp, q = argp; *q; gp += sizeof(abi_ulong), q++) { in freebsd_exec_common() [all …]
|
| /openbmc/openbmc-test-automation/templates/ |
| H A D | pgm_template.py | 7 import gen_print as gp namespace 16 gp.qprintn() 20 gp.qprint_pgm_header() 28 gp.qprintn() 29 gp.qprint_executing() 48 gp.qprint_pgm_footer()
|
| /openbmc/openbmc-test-automation/extended/ |
| H A D | run_keyword.py | 9 import gen_print as gp namespace 20 gp.qprintn() 24 gp.qprint_pgm_header() 42 gp.qprint_pgm_footer() 92 gp.dprint_issuing('import_library("' + lib_file_path + '")') 95 gp.dprint_issuing('my_import_resource("' + lib_file_path + '")') 113 gp.print_issuing(cmd_buf, test_mode) 123 gp.gp_print(output)
|
| /openbmc/qemu/hw/acpi/ |
| H A D | pci.c | 209 AcpiGenericPort *gp = ACPI_GENERIC_PORT(obj); in OBJECT_DECLARE_SIMPLE_TYPE() local 211 gp->node = MAX_NODES; in OBJECT_DECLARE_SIMPLE_TYPE() 212 gp->pci_bus = NULL; in OBJECT_DECLARE_SIMPLE_TYPE() 217 AcpiGenericPort *gp = ACPI_GENERIC_PORT(obj); in acpi_generic_port_finalize() local 219 g_free(gp->pci_bus); in acpi_generic_port_finalize() 225 AcpiGenericPort *gp = ACPI_GENERIC_PORT(obj); in acpi_generic_port_set_pci_bus() local 227 gp->pci_bus = g_strdup(val); in acpi_generic_port_set_pci_bus() 234 AcpiGenericPort *gp = ACPI_GENERIC_PORT(obj); in acpi_generic_port_set_node() local 247 gp->node = value; in acpi_generic_port_set_node() 267 AcpiGenericPort *gp; in build_acpi_generic_port() local [all …]
|
| /openbmc/u-boot/board/dhelectronics/dh_imx6/ |
| H A D | dh_imx6.c | 48 .gp = IMX_GPIO_NR(3, 21) 53 .gp = IMX_GPIO_NR(3, 28) 61 .gp = IMX_GPIO_NR(4, 12) 66 .gp = IMX_GPIO_NR(4, 13) 74 .gp = IMX_GPIO_NR(1, 3) 79 .gp = IMX_GPIO_NR(1, 6) 87 .gp = IMX_GPIO_NR(3, 21) 92 .gp = IMX_GPIO_NR(3, 28) 100 .gp = IMX_GPIO_NR(4, 12) 105 .gp = IMX_GPIO_NR(4, 13) [all …]
|