/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/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/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) 95 gp.print_error_report(error_message). 110 l_value = gp.get_arg_name(None, -1, stack_frame_ix=3) 119 gp.print_error_report(error_message, stack_frame_ix=4) 132 # error_message += gp.sprint_varx(var_name, var_value, gp.blank()) 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) [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) 241 cmd_buf = "gp.register_passwords(" + parm + ")" 455 gp.qprintn() 456 gp.qprint_executing() 457 gp.lprint_executing() 465 gp.qprintn() 466 gp.qprint_executing() 467 gp.lprint_executing() [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 | 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 | gen_robot_print.py | 11 import gen_print as gp namespace 31 … # Find format option names in kwargs['fmt'] and wrap them with "gp." and "()" to make them into 32 …# function calls. For example, verbose would be converted to "gp.verbose()". This allows the user 33 # to simply specify "fmt=verbose" (vs. fmt=gp.verbose()). 36 regex = "(" + "|".join(gp.valid_fmts()) + "|terse)" 37 kwargs["fmt"] = re.sub(regex, "gp.\\1()", kwargs["fmt"]) 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) [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_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 | 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 …]
|
/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/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 …]
|
H A D | ptrace_64.h | 44 #define UPT_R8(r) REGS_R8((r)->gp) 45 #define UPT_R9(r) REGS_R9((r)->gp) 46 #define UPT_R10(r) REGS_R10((r)->gp) 47 #define UPT_R11(r) REGS_R11((r)->gp) 48 #define UPT_R12(r) REGS_R12((r)->gp) 49 #define UPT_R13(r) REGS_R13((r)->gp) 50 #define UPT_R14(r) REGS_R14((r)->gp) 51 #define UPT_R15(r) REGS_R15((r)->gp)
|
/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() 33 printf("%s: sda=%d scl=%d sda.gp=0x%x scl.gp=0x%x\n", __func__, 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() [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() 74 printk(KERN_ERR "fm801-gp: Memory allocation failed\n"); 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() 95 printk(KERN_DEBUG "fm801-gp: unable to grab region 0x%x-0x%x\n", in fm801_gp_probe() 101 pci_set_drvdata(pci, gp); in fm801_gp_probe() 112 kfree(gp); in fm801_gp_probe() [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/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/kernel/rcu/ |
H A D | tree.h | 50 unsigned long gp_seq_needed; /* Track furthest future GP request. */ 58 unsigned long rcu_gp_init_mask; /* Mask of offline CPUs at GP init. */ 60 /* Per-GP initial value for qsmask. */ 65 /* to allow the current expedited GP */ 68 /* Per-GP initial values for expmask. */ 70 /* beginning of each expedited GP. */ 72 /* Online CPUs for next expedited GP. */ 127 /* Place for rcu_nocb_kthread() to wait GP. */ 182 unsigned long gp_seq_needed; /* Track furthest future GP request. */ 210 int dynticks_snap; /* Per-GP tracking for dynticks. */ [all …]
|
/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() 255 "PCI Bus of the host bridge associated with this GP affinity structure"); in acpi_generic_port_class_init() [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/linux/arch/x86/um/os-Linux/ |
H A D | mcontext.c | 10 #define COPY2(X,Y) regs->gp[X] = mc->gregs[REG_##Y] in get_regs_from_mc() 11 #define COPY(X) regs->gp[X] = mc->gregs[REG_##X] in get_regs_from_mc() 12 #define COPY_SEG(X) regs->gp[X] = mc->gregs[REG_##X] & 0xffff; in get_regs_from_mc() 13 #define COPY_SEG_CPL3(X) regs->gp[X] = (mc->gregs[REG_##X] & 0xffff) | 3; in get_regs_from_mc() 20 #define COPY2(X,Y) regs->gp[X/sizeof(unsigned long)] = mc->gregs[REG_##Y] in get_regs_from_mc() 21 #define COPY(X) regs->gp[X/sizeof(unsigned long)] = mc->gregs[REG_##X] in get_regs_from_mc() 29 regs->gp[CS / sizeof(unsigned long)] &= 0xffff; in get_regs_from_mc() 30 regs->gp[CS / sizeof(unsigned long)] |= 3; in get_regs_from_mc()
|