/openbmc/linux/drivers/net/ethernet/sun/ |
H A D | sungem.c | 117 static u16 __sungem_phy_read(struct gem *gp, int phy_addr, int reg) in __sungem_phy_read() argument 127 writel(cmd, gp->regs + MIF_FRAME); in __sungem_phy_read() 130 cmd = readl(gp->regs + MIF_FRAME); in __sungem_phy_read() 145 struct gem *gp = netdev_priv(dev); in _sungem_phy_read() local 146 return __sungem_phy_read(gp, mii_id, reg); in _sungem_phy_read() 149 static inline u16 sungem_phy_read(struct gem *gp, int reg) in sungem_phy_read() argument 151 return __sungem_phy_read(gp, gp->mii_phy_addr, reg); in sungem_phy_read() 154 static void __sungem_phy_write(struct gem *gp, int phy_addr, int reg, u16 val) in __sungem_phy_write() argument 165 writel(cmd, gp->regs + MIF_FRAME); in __sungem_phy_write() 168 cmd = readl(gp->regs + MIF_FRAME); in __sungem_phy_write() [all …]
|
/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 178 host_var_name = gp.get_arg_name(0, 1, stack_frame_ix=2) 232 gp.dpissuing(cmd_buf) 455 gp.qprintn() 456 gp.qprint_executing() 457 gp.lprint_executing() 465 gp.qprintn() 466 gp.qprint_executing() 467 gp.lprint_executing() 479 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 | 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 | 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_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_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_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_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 | 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 …]
|
/openbmc/linux/drivers/video/fbdev/ |
H A D | sunxvr1000.c | 30 static int gfb_get_props(struct gfb_info *gp) in gfb_get_props() argument 32 gp->width = of_getintprop_default(gp->of_node, "width", 0); in gfb_get_props() 33 gp->height = of_getintprop_default(gp->of_node, "height", 0); in gfb_get_props() 34 gp->depth = of_getintprop_default(gp->of_node, "depth", 32); in gfb_get_props() 36 if (!gp->width || !gp->height) { in gfb_get_props() 38 gp->of_node); in gfb_get_props() 69 static int gfb_set_fbinfo(struct gfb_info *gp) in gfb_set_fbinfo() argument 71 struct fb_info *info = gp->info; in gfb_set_fbinfo() 75 info->screen_base = gp->fb_base; in gfb_set_fbinfo() 76 info->screen_size = gp->fb_size; in gfb_set_fbinfo() [all …]
|
/openbmc/linux/arch/powerpc/kvm/ |
H A D | book3s_hv_nested.c | 27 static void kvmhv_update_ptbl_cache(struct kvm_nested_guest *gp); 522 static void kvmhv_set_nested_ptbl(struct kvm_nested_guest *gp) in kvmhv_set_nested_ptbl() argument 527 __pa(gp->shadow_pgtable) | RADIX_PGD_INDEX_SIZE; in kvmhv_set_nested_ptbl() 528 kvmhv_set_ptbl_entry(gp->shadow_lpid, dw0, gp->process_table); in kvmhv_set_nested_ptbl() 566 struct kvm_nested_guest *gp; in kvmhv_copy_tofrom_guest_nested() local 587 gp = kvmhv_get_nested(vcpu->kvm, l1_lpid, false); in kvmhv_copy_tofrom_guest_nested() 588 if (!gp) { in kvmhv_copy_tofrom_guest_nested() 593 mutex_lock(&gp->tlb_lock); in kvmhv_copy_tofrom_guest_nested() 597 rc = __kvmhv_copy_tofrom_guest_radix(gp->shadow_lpid, pid, in kvmhv_copy_tofrom_guest_nested() 617 rc = __kvmhv_copy_tofrom_guest_radix(gp->shadow_lpid, pid, in kvmhv_copy_tofrom_guest_nested() [all …]
|
/openbmc/linux/net/phonet/ |
H A D | pep-gprs.c | 53 static void gprs_writeable(struct gprs_dev *gp) in gprs_writeable() argument 55 struct net_device *dev = gp->dev; in gprs_writeable() 57 if (pep_writeable(gp->sk)) in gprs_writeable() 67 struct gprs_dev *gp = sk->sk_user_data; in gprs_state_change() local 70 struct net_device *dev = gp->dev; in gprs_state_change() 77 static int gprs_recv(struct gprs_dev *gp, struct sk_buff *skb) in gprs_recv() argument 79 struct net_device *dev = gp->dev; in gprs_recv() 140 struct gprs_dev *gp = sk->sk_user_data; in gprs_data_ready() local 147 gprs_recv(gp, skb); in gprs_data_ready() 153 struct gprs_dev *gp = sk->sk_user_data; in gprs_write_space() local [all …]
|
/openbmc/linux/arch/x86/um/asm/ |
H A D | elf.h | 150 (pr_reg)[0] = (_regs)->regs.gp[0]; \ 151 (pr_reg)[1] = (_regs)->regs.gp[1]; \ 152 (pr_reg)[2] = (_regs)->regs.gp[2]; \ 153 (pr_reg)[3] = (_regs)->regs.gp[3]; \ 154 (pr_reg)[4] = (_regs)->regs.gp[4]; \ 155 (pr_reg)[5] = (_regs)->regs.gp[5]; \ 156 (pr_reg)[6] = (_regs)->regs.gp[6]; \ 157 (pr_reg)[7] = (_regs)->regs.gp[7]; \ 158 (pr_reg)[8] = (_regs)->regs.gp[8]; \ 159 (pr_reg)[9] = (_regs)->regs.gp[9]; \ [all …]
|
/openbmc/linux/arch/x86/um/shared/sysdep/ |
H A D | ptrace.h | 26 #define UPT_IP(r) REGS_IP((r)->gp) 27 #define UPT_SP(r) REGS_SP((r)->gp) 28 #define UPT_EFLAGS(r) REGS_EFLAGS((r)->gp) 29 #define UPT_AX(r) REGS_AX((r)->gp) 30 #define UPT_BX(r) REGS_BX((r)->gp) 31 #define UPT_CX(r) REGS_CX((r)->gp) 32 #define UPT_DX(r) REGS_DX((r)->gp) 33 #define UPT_SI(r) REGS_SI((r)->gp) 34 #define UPT_DI(r) REGS_DI((r)->gp) 35 #define UPT_BP(r) REGS_BP((r)->gp) [all …]
|
/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/linux/sound/pci/au88x0/ |
H A D | au88x0_game.c | 84 struct gameport *gp; in vortex_gameport_register() local 86 vortex->gameport = gp = gameport_allocate_port(); in vortex_gameport_register() 87 if (!gp) { in vortex_gameport_register() 93 gameport_set_name(gp, "AU88x0 Gameport"); in vortex_gameport_register() 94 gameport_set_phys(gp, "pci%s/gameport0", pci_name(vortex->pci_dev)); in vortex_gameport_register() 95 gameport_set_dev_parent(gp, &vortex->pci_dev->dev); in vortex_gameport_register() 97 gp->read = vortex_game_read; in vortex_gameport_register() 98 gp->trigger = vortex_game_trigger; in vortex_gameport_register() 99 gp->cooked_read = vortex_game_cooked_read; in vortex_gameport_register() 100 gp->open = vortex_game_open; in vortex_gameport_register() [all …]
|
/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/linux/drivers/net/wireless/ti/wl12xx/ |
H A D | cmd.c | 52 struct wl1271_ini_general_params *gp = in wl1271_cmd_general_parms() local 61 if (gp->tx_bip_fem_manufacturer >= WL1271_INI_FEM_MODULE_COUNT) { in wl1271_cmd_general_parms() 72 memcpy(&gen_parms->general_params, gp, sizeof(*gp)); in wl1271_cmd_general_parms() 90 gp->tx_bip_fem_manufacturer = in wl1271_cmd_general_parms() 93 if (gp->tx_bip_fem_manufacturer >= WL1271_INI_FEM_MODULE_COUNT) { in wl1271_cmd_general_parms() 101 wl->fem_manuf = gp->tx_bip_fem_manufacturer; in wl1271_cmd_general_parms() 109 gp->tx_bip_fem_manufacturer); in wl1271_cmd_general_parms() 119 struct wl128x_ini_general_params *gp = in wl128x_cmd_general_parms() local 128 if (gp->tx_bip_fem_manufacturer >= WL1271_INI_FEM_MODULE_COUNT) { in wl128x_cmd_general_parms() 139 memcpy(&gen_parms->general_params, gp, sizeof(*gp)); in wl128x_cmd_general_parms() [all …]
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-amd8111.c | 158 static struct amd_gpio gp = { variable 197 err = pci_read_config_dword(pdev, 0x58, &gp.pmbase); in amd_gpio_init() 201 gp.pmbase &= 0x0000FF00; in amd_gpio_init() 202 if (gp.pmbase == 0) in amd_gpio_init() 204 if (!devm_request_region(&pdev->dev, gp.pmbase + PMBASE_OFFSET, in amd_gpio_init() 207 gp.pmbase + PMBASE_OFFSET); in amd_gpio_init() 211 gp.pm = ioport_map(gp.pmbase + PMBASE_OFFSET, PMBASE_SIZE); in amd_gpio_init() 212 if (!gp.pm) { in amd_gpio_init() 217 gp.pdev = pdev; in amd_gpio_init() 218 gp.chip.parent = &pdev->dev; in amd_gpio_init() [all …]
|
/openbmc/linux/drivers/input/gameport/ |
H A D | fm801-gp.c | 67 struct fm801_gp *gp; in fm801_gp_probe() local 71 gp = kzalloc(sizeof(struct fm801_gp), GFP_KERNEL); in fm801_gp_probe() 73 if (!gp || !port) { in fm801_gp_probe() 92 gp->gameport = port; in fm801_gp_probe() 93 gp->res_port = request_region(port->io, 0x10, "FM801 GP"); in fm801_gp_probe() 94 if (!gp->res_port) { in fm801_gp_probe() 101 pci_set_drvdata(pci, gp); in fm801_gp_probe() 112 kfree(gp); in fm801_gp_probe() 118 struct fm801_gp *gp = pci_get_drvdata(pci); in fm801_gp_remove() local 120 gameport_unregister_port(gp->gameport); in fm801_gp_remove() [all …]
|