/openbmc/qemu/linux-user/hexagon/ |
H A D | signal.c | 79 __put_user(env->gpr[HEX_REG_R00], &sc->r0); in setup_sigcontext() 80 __put_user(env->gpr[HEX_REG_R01], &sc->r1); in setup_sigcontext() 81 __put_user(env->gpr[HEX_REG_R02], &sc->r2); in setup_sigcontext() 82 __put_user(env->gpr[HEX_REG_R03], &sc->r3); in setup_sigcontext() 83 __put_user(env->gpr[HEX_REG_R04], &sc->r4); in setup_sigcontext() 84 __put_user(env->gpr[HEX_REG_R05], &sc->r5); in setup_sigcontext() 85 __put_user(env->gpr[HEX_REG_R06], &sc->r6); in setup_sigcontext() 86 __put_user(env->gpr[HEX_REG_R07], &sc->r7); in setup_sigcontext() 87 __put_user(env->gpr[HEX_REG_R08], &sc->r8); in setup_sigcontext() 88 __put_user(env->gpr[HEX_REG_R09], &sc->r9); in setup_sigcontext() [all …]
|
H A D | cpu_loop.c | 46 syscallnum = env->gpr[6]; in cpu_loop() 47 env->gpr[HEX_REG_PC] += 4; in cpu_loop() 50 env->gpr[0], in cpu_loop() 51 env->gpr[1], in cpu_loop() 52 env->gpr[2], in cpu_loop() 53 env->gpr[3], in cpu_loop() 54 env->gpr[4], in cpu_loop() 55 env->gpr[5], in cpu_loop() 58 env->gpr[HEX_REG_PC] -= 4; in cpu_loop() 60 env->gpr[0] = ret; in cpu_loop() [all …]
|
/openbmc/qemu/bsd-user/riscv/ |
H A D | signal.c | 41 regs->gpr[xA0] = sig; in set_sigtramp_args() 42 regs->gpr[xA1] = frame_addr + in set_sigtramp_args() 44 regs->gpr[xA2] = frame_addr + in set_sigtramp_args() 47 regs->gpr[xSP] = frame_addr; in set_sigtramp_args() 48 regs->gpr[xRA] = TARGET_PS_STRINGS - TARGET_SZSIGCODE; in set_sigtramp_args() 73 mcp->mc_gpregs.gp_t[0] = tswap64(regs->gpr[5]); in get_mcontext() 74 mcp->mc_gpregs.gp_t[1] = tswap64(regs->gpr[6]); in get_mcontext() 75 mcp->mc_gpregs.gp_t[2] = tswap64(regs->gpr[7]); in get_mcontext() 76 mcp->mc_gpregs.gp_t[3] = tswap64(regs->gpr[28]); in get_mcontext() 77 mcp->mc_gpregs.gp_t[4] = tswap64(regs->gpr[29]); in get_mcontext() [all …]
|
H A D | target_arch_reg.h | 48 regs->ra = tswapreg(env->gpr[1]); in target_copy_regs() 49 regs->sp = tswapreg(env->gpr[2]); in target_copy_regs() 50 regs->gp = tswapreg(env->gpr[3]); in target_copy_regs() 51 regs->tp = tswapreg(env->gpr[4]); in target_copy_regs() 53 regs->t[0] = tswapreg(env->gpr[5]); in target_copy_regs() 54 regs->t[1] = tswapreg(env->gpr[6]); in target_copy_regs() 55 regs->t[2] = tswapreg(env->gpr[7]); in target_copy_regs() 56 regs->t[3] = tswapreg(env->gpr[28]); in target_copy_regs() 57 regs->t[4] = tswapreg(env->gpr[29]); in target_copy_regs() 58 regs->t[5] = tswapreg(env->gpr[30]); in target_copy_regs() [all …]
|
H A D | target_arch_cpu.h | 34 env->gpr[i] = regs->regs[i]; in target_cpu_init() 64 syscall_num = env->gpr[xT0]; in target_cpu_loop() 70 env->gpr[xA0], in target_cpu_loop() 71 env->gpr[xA1], in target_cpu_loop() 72 env->gpr[xA2], in target_cpu_loop() 73 env->gpr[xA3], in target_cpu_loop() 74 env->gpr[xA4], in target_cpu_loop() 75 env->gpr[xA5], in target_cpu_loop() 76 env->gpr[xA6], in target_cpu_loop() 77 env->gpr[xA7], in target_cpu_loop() [all …]
|
/openbmc/linux/sound/pci/emu10k1/ |
H A D | emufx.c | 37 MODULE_PARM_DESC(high_res_gpr_volume, "GPR mixer controls use 31-bit range."); 379 snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[i], 0, val); in snd_emu10k1_gpr_ctl_put() 382 snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[i], 0, ~val); in snd_emu10k1_gpr_ctl_put() 385 snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[i], 0, db_table[val]); in snd_emu10k1_gpr_ctl_put() 388 snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[i], 0, in snd_emu10k1_gpr_ctl_put() 397 … snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[j * ctl->vcount + i], 0, bass_table[val][j]); in snd_emu10k1_gpr_ctl_put() 405 …snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[j * ctl->vcount + i], 0, treble_table[val][j]); in snd_emu10k1_gpr_ctl_put() 408 snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[i], 0, onoff_table[val]); in snd_emu10k1_gpr_ctl_put() 539 int gpr; in snd_emu10k1_gpr_poke() local 542 for (gpr = 0; gpr < (emu->audigy ? 0x200 : 0x100); gpr++) { in snd_emu10k1_gpr_poke() [all …]
|
/openbmc/linux/arch/powerpc/perf/ |
H A D | perf_regs.c | 23 PT_REGS_OFFSET(PERF_REG_POWERPC_R0, gpr[0]), 24 PT_REGS_OFFSET(PERF_REG_POWERPC_R1, gpr[1]), 25 PT_REGS_OFFSET(PERF_REG_POWERPC_R2, gpr[2]), 26 PT_REGS_OFFSET(PERF_REG_POWERPC_R3, gpr[3]), 27 PT_REGS_OFFSET(PERF_REG_POWERPC_R4, gpr[4]), 28 PT_REGS_OFFSET(PERF_REG_POWERPC_R5, gpr[5]), 29 PT_REGS_OFFSET(PERF_REG_POWERPC_R6, gpr[6]), 30 PT_REGS_OFFSET(PERF_REG_POWERPC_R7, gpr[7]), 31 PT_REGS_OFFSET(PERF_REG_POWERPC_R8, gpr[8]), 32 PT_REGS_OFFSET(PERF_REG_POWERPC_R9, gpr[9]), [all …]
|
/openbmc/linux/arch/powerpc/lib/ |
H A D | test_emulate_step.c | 96 regs.gpr[3] = (unsigned long) &a; in test_ld() 101 if (stepped == 1 && regs.gpr[5] == a) in test_ld() 119 regs.gpr[3] = (unsigned long)&a; in test_pld() 124 if (stepped == 1 && regs.gpr[5] == a) in test_pld() 137 regs.gpr[3] = (unsigned long) &a; in test_lwz() 142 if (stepped == 1 && regs.gpr[5] == a) in test_lwz() 160 regs.gpr[3] = (unsigned long)&a; in test_plwz() 166 if (stepped == 1 && regs.gpr[5] == a) in test_plwz() 179 regs.gpr[3] = (unsigned long) a; in test_lwzx() 180 regs.gpr[4] = 8; in test_lwzx() [all …]
|
H A D | sstep.c | 132 ea += regs->gpr[ra]; in dform_ea() 150 ea += regs->gpr[ra]; in dsform_ea() 167 ea += regs->gpr[ra]; in dqform_ea() 184 ea = regs->gpr[rb]; in xform_ea() 186 ea += regs->gpr[ra]; in xform_ea() 218 ea += regs->gpr[ra]; in mlsd_8lsd_ea() 747 err = do_lq(ea, ®s->gpr[reg]); in emulate_lq() 749 err = read_mem(®s->gpr[reg + IS_LE], ea, 8, regs); in emulate_lq() 751 err = read_mem(®s->gpr[reg + IS_BE], ea + 8, 8, regs); in emulate_lq() 754 do_byte_reverse(®s->gpr[reg], 16); in emulate_lq() [all …]
|
/openbmc/qemu/target/mips/tcg/sysemu/ |
H A D | mips-semi.c | 122 int op = env->active_tc.gpr[25]; in report_fault() 161 env->active_tc.gpr[2] = ret; in uhi_cb() 162 env->active_tc.gpr[3] = err; in uhi_cb() 171 target_ulong addr = env->active_tc.gpr[5]; in uhi_fstat_cb() 205 target_ulong *gpr = env->active_tc.gpr; in mips_semihosting() local 206 const UHIOp op = gpr[25]; in mips_semihosting() 211 gdb_exit(gpr[4]); in mips_semihosting() 212 exit(gpr[4]); in mips_semihosting() 216 target_ulong fname = gpr[4]; in mips_semihosting() 234 gpr[2] = ret; in mips_semihosting() [all …]
|
/openbmc/linux/arch/powerpc/kernel/ptrace/ |
H A D | ptrace.c | 213 regs->gpr[3] = -ENOSYS; in do_seccomp() 231 regs->gpr[3] = regs->orig_gpr3; in do_seccomp() 284 * the tracer may also just change regs->gpr[0] to an in do_syscall_trace_enter() 292 /* Run seccomp after ptrace; allow it to set gpr[3]. */ in do_syscall_trace_enter() 297 if (regs->gpr[0] >= NR_syscalls) in do_syscall_trace_enter() 301 trace_sys_enter(regs, regs->gpr[0]); in do_syscall_trace_enter() 304 audit_syscall_entry(regs->gpr[0], regs->gpr[3], regs->gpr[4], in do_syscall_trace_enter() 305 regs->gpr[5], regs->gpr[6]); in do_syscall_trace_enter() 307 audit_syscall_entry(regs->gpr[0], in do_syscall_trace_enter() 308 regs->gpr[3] & 0xffffffff, in do_syscall_trace_enter() [all …]
|
/openbmc/linux/arch/openrisc/kernel/ |
H A D | traps.c | 91 0L, regs->gpr[1], regs->gpr[2], regs->gpr[3]); in show_registers() 93 regs->gpr[4], regs->gpr[5], regs->gpr[6], regs->gpr[7]); in show_registers() 95 regs->gpr[8], regs->gpr[9], regs->gpr[10], regs->gpr[11]); in show_registers() 97 regs->gpr[12], regs->gpr[13], regs->gpr[14], regs->gpr[15]); in show_registers() 99 regs->gpr[16], regs->gpr[17], regs->gpr[18], regs->gpr[19]); in show_registers() 101 regs->gpr[20], regs->gpr[21], regs->gpr[22], regs->gpr[23]); in show_registers() 103 regs->gpr[24], regs->gpr[25], regs->gpr[26], regs->gpr[27]); in show_registers() 105 regs->gpr[28], regs->gpr[29], regs->gpr[30], regs->gpr[31]); in show_registers() 107 regs->gpr[11], regs->orig_gpr11); in show_registers() 286 regs->gpr[9] = regs->pc + 8; in adjust_pc() [all …]
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | kgdb.c | 202 PACK64(ptr, regs->gpr[reg]); in sleeping_thread_to_gdb_regs() 204 /* Regs GPR3-13 are caller saved, not in regs->gpr[] */ in sleeping_thread_to_gdb_regs() 209 PACK64(ptr, regs->gpr[reg]); in sleeping_thread_to_gdb_regs() 245 { "r0", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[0]) }, 246 { "r1", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[1]) }, 247 { "r2", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[2]) }, 248 { "r3", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[3]) }, 249 { "r4", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[4]) }, 250 { "r5", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[5]) }, 251 { "r6", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[6]) }, [all …]
|
H A D | syscall.c | 125 return regs->gpr[3]; in system_call_exception() 132 * value to be used is in regs->gpr[3]. in system_call_exception() 136 return regs->gpr[3]; in system_call_exception() 142 return regs->gpr[3]; in system_call_exception() 160 r3 = regs->gpr[3] & 0x00000000ffffffffULL; in system_call_exception() 161 r4 = regs->gpr[4] & 0x00000000ffffffffULL; in system_call_exception() 162 r5 = regs->gpr[5] & 0x00000000ffffffffULL; in system_call_exception() 163 r6 = regs->gpr[6] & 0x00000000ffffffffULL; in system_call_exception() 164 r7 = regs->gpr[7] & 0x00000000ffffffffULL; in system_call_exception() 165 r8 = regs->gpr[8] & 0x00000000ffffffffULL; in system_call_exception() [all …]
|
/openbmc/qemu/disas/ |
H A D | nanomips.c | 93 * decode_gpr_gpr4() - decoder for 'gpr4' gpr encoding type 128 * decode_gpr_gpr4_zero() - decoder for 'gpr4.zero' gpr encoding type 145 * This pattern is the same one used for 'gpr4' gpr encoding type, except for 164 * decode_gpr_gpr3() - decoder for 'gpr3' gpr encoding type 222 * decode_gpr_gpr3_src_store() - decoder for 'gpr3.src.store' gpr encoding 243 * This pattern is the same one used for 'gpr3' gpr encoding type, except for 262 * decode_gpr_gpr2_reg1() - decoder for 'gpr2.reg1' gpr encoding type 292 * decode_gpr_gpr2_reg2() - decoder for 'gpr2.reg2' gpr encoding type 322 * decode_gpr_gpr1() - decoder for 'gpr1' gpr encoding type 405 static const char *GPR(uint64 reg, Dis_info *info) in GPR() function [all …]
|
/openbmc/linux/arch/arm/mach-imx/ |
H A D | mach-imx6q.c | 15 #include <linux/mfd/syscon/imx6q-iomuxc-gpr.h> 84 struct regmap *gpr; in imx6q_1588_init() local 121 gpr = syscon_regmap_lookup_by_compatible("fsl,imx6q-iomuxc-gpr"); in imx6q_1588_init() 122 if (!IS_ERR(gpr)) in imx6q_1588_init() 123 regmap_update_bits(gpr, IOMUXC_GPR1, in imx6q_1588_init() 127 pr_err("failed to find fsl,imx6q-iomuxc-gpr regmap\n"); in imx6q_1588_init() 138 struct regmap *gpr; in imx6q_axi_init() local 141 gpr = syscon_regmap_lookup_by_compatible("fsl,imx6q-iomuxc-gpr"); in imx6q_axi_init() 142 if (!IS_ERR(gpr)) { in imx6q_axi_init() 153 regmap_update_bits(gpr, IOMUXC_GPR4, mask, mask); in imx6q_axi_init() [all …]
|
H A D | mach-imx6sx.c | 10 #include <linux/mfd/syscon/imx6q-iomuxc-gpr.h> 18 struct regmap *gpr; in imx6sx_enet_clk_sel() local 20 gpr = syscon_regmap_lookup_by_compatible("fsl,imx6sx-iomuxc-gpr"); in imx6sx_enet_clk_sel() 21 if (!IS_ERR(gpr)) { in imx6sx_enet_clk_sel() 22 regmap_update_bits(gpr, IOMUXC_GPR1, in imx6sx_enet_clk_sel() 24 regmap_update_bits(gpr, IOMUXC_GPR1, in imx6sx_enet_clk_sel() 27 pr_err("failed to find fsl,imx6sx-iomux-gpr regmap\n"); in imx6sx_enet_clk_sel()
|
H A D | mach-imx6sl.c | 9 #include <linux/mfd/syscon/imx6q-iomuxc-gpr.h> 20 struct regmap *gpr; in imx6sl_fec_init() local 23 gpr = syscon_regmap_lookup_by_compatible("fsl,imx6sl-iomuxc-gpr"); in imx6sl_fec_init() 24 if (!IS_ERR(gpr)) { in imx6sl_fec_init() 25 regmap_update_bits(gpr, IOMUXC_GPR1, in imx6sl_fec_init() 27 regmap_update_bits(gpr, IOMUXC_GPR1, in imx6sl_fec_init() 30 pr_err("failed to find fsl,imx6sl-iomux-gpr regmap\n"); in imx6sl_fec_init()
|
H A D | mach-imx7d.c | 7 #include <linux/mfd/syscon/imx7-iomuxc-gpr.h> 40 struct regmap *gpr; in imx7d_enet_clk_sel() local 42 gpr = syscon_regmap_lookup_by_compatible("fsl,imx7d-iomuxc-gpr"); in imx7d_enet_clk_sel() 43 if (!IS_ERR(gpr)) { in imx7d_enet_clk_sel() 44 regmap_update_bits(gpr, IOMUXC_GPR1, IMX7D_GPR1_ENET_TX_CLK_SEL_MASK, 0); in imx7d_enet_clk_sel() 45 regmap_update_bits(gpr, IOMUXC_GPR1, IMX7D_GPR1_ENET_CLK_DIR_MASK, 0); in imx7d_enet_clk_sel() 47 pr_err("failed to find fsl,imx7d-iomux-gpr regmap\n"); in imx7d_enet_clk_sel()
|
/openbmc/qemu/linux-user/mips/ |
H A D | cpu_loop.c | 83 syscall_num = env->active_tc.gpr[2] - 4000; in cpu_loop() 98 sp_reg = env->active_tc.gpr[29]; in cpu_loop() 124 ret = do_syscall(env, env->active_tc.gpr[2], in cpu_loop() 125 env->active_tc.gpr[4], in cpu_loop() 126 env->active_tc.gpr[5], in cpu_loop() 127 env->active_tc.gpr[6], in cpu_loop() 128 env->active_tc.gpr[7], in cpu_loop() 133 ret = do_syscall(env, env->active_tc.gpr[2], in cpu_loop() 134 env->active_tc.gpr[4], env->active_tc.gpr[5], in cpu_loop() 135 env->active_tc.gpr[6], env->active_tc.gpr[7], in cpu_loop() [all …]
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | syscall.h | 37 return regs->gpr[0]; in syscall_get_nr() 45 regs->gpr[3] = regs->orig_gpr3; in syscall_rollback() 52 unsigned long error = regs->gpr[3]; in syscall_get_error() 58 * regs->gpr[3] contains a positive ERRORCODE. in syscall_get_error() 60 return (regs->ccr & 0x10000000UL) ? -regs->gpr[3] : 0; in syscall_get_error() 67 return regs->gpr[3]; in syscall_get_return_value() 75 regs->gpr[3] = (long) error ?: val; in syscall_set_return_value() 85 regs->gpr[3] = error; in syscall_set_return_value() 88 regs->gpr[3] = val; in syscall_set_return_value() 107 val = regs->gpr[3 + n]; in syscall_get_arguments()
|
/openbmc/qemu/linux-user/riscv/ |
H A D | cpu_loop.c | 50 if (env->gpr[xA7] == TARGET_NR_riscv_flush_icache) { in cpu_loop() 56 env->gpr[(env->elf_flags & EF_RISCV_RVE) in cpu_loop() 58 env->gpr[xA0], in cpu_loop() 59 env->gpr[xA1], in cpu_loop() 60 env->gpr[xA2], in cpu_loop() 61 env->gpr[xA3], in cpu_loop() 62 env->gpr[xA4], in cpu_loop() 63 env->gpr[xA5], in cpu_loop() 69 env->gpr[xA0] = ret; in cpu_loop() 104 env->gpr[xSP] = regs->sp; in target_cpu_copy_regs()
|
/openbmc/qemu/linux-user/loongarch64/ |
H A D | cpu_loop.c | 32 ret = do_syscall(env, env->gpr[11], in cpu_loop() 33 env->gpr[4], env->gpr[5], in cpu_loop() 34 env->gpr[6], env->gpr[7], in cpu_loop() 35 env->gpr[8], env->gpr[9], in cpu_loop() 48 env->gpr[4] = ret; in cpu_loop() 105 env->gpr[i] = regs->regs[i]; in target_cpu_copy_regs()
|
/openbmc/linux/Documentation/devicetree/bindings/soc/qcom/ |
H A D | qcom,apr.yaml | 7 title: Qualcomm APR/GPR (Asynchronous/Generic Packet Router) 13 This binding describes the Qualcomm APR/GPR, APR/GPR is a IPC protocol for 14 communication between Application processor and QDSP. APR/GPR is mainly 22 - qcom,gpr 54 Selects the processor domain for gpr 97 APR/GPR static port services. 118 - qcom,gpr 186 #include <dt-bindings/soc/qcom,gpr.h> 187 gpr { 188 compatible = "qcom,gpr";
|
/openbmc/qemu/hw/ppc/ |
H A D | spapr_nested.c | 141 memcpy(save->gpr, env->gpr, sizeof(save->gpr)); in nested_save_state() 240 memcpy(env->gpr, load->gpr, sizeof(env->gpr)); in nested_load_state() 389 len = sizeof(l2_state.gpr); in h_enter_nested() 390 assert(len == sizeof(regs->gpr)); in h_enter_nested() 391 memcpy(l2_state.gpr, regs->gpr, len); in h_enter_nested() 451 * The spapr hcall helper sets env->gpr[3] to the return value, but at in h_enter_nested() 453 * start running the L2, so r3 must not be clobbered, so return env->gpr[3] in h_enter_nested() 456 return env->gpr[3]; in h_enter_nested() 465 target_ulong hv_ptr = spapr_cpu->nested_host_state->gpr[4]; in spapr_exit_nested_hv() 466 target_ulong regs_ptr = spapr_cpu->nested_host_state->gpr[5]; in spapr_exit_nested_hv() [all …]
|