Home
last modified time | relevance | path

Searched refs:gpr (Results 1 – 25 of 99) sorted by relevance

1234

/arch/powerpc/lib/
Dtest_emulate_step.c97 regs.gpr[3] = (unsigned long) &a; in test_ld()
102 if (stepped == 1 && regs.gpr[5] == a) in test_ld()
120 regs.gpr[3] = (unsigned long)&a; in test_pld()
125 if (stepped == 1 && regs.gpr[5] == a) in test_pld()
138 regs.gpr[3] = (unsigned long) &a; in test_lwz()
143 if (stepped == 1 && regs.gpr[5] == a) in test_lwz()
161 regs.gpr[3] = (unsigned long)&a; in test_plwz()
167 if (stepped == 1 && regs.gpr[5] == a) in test_plwz()
180 regs.gpr[3] = (unsigned long) a; in test_lwzx()
181 regs.gpr[4] = 8; in test_lwzx()
[all …]
Dsstep.c133 ea += regs->gpr[ra]; in dform_ea()
151 ea += regs->gpr[ra]; in dsform_ea()
168 ea += regs->gpr[ra]; in dqform_ea()
185 ea = regs->gpr[rb]; in xform_ea()
187 ea += regs->gpr[ra]; in xform_ea()
219 ea += regs->gpr[ra]; in mlsd_8lsd_ea()
673 err = do_lq(ea, &regs->gpr[reg]); in emulate_lq()
675 err = read_mem(&regs->gpr[reg + IS_LE], ea, 8, regs); in emulate_lq()
677 err = read_mem(&regs->gpr[reg + IS_BE], ea + 8, 8, regs); in emulate_lq()
680 do_byte_reverse(&regs->gpr[reg], 16); in emulate_lq()
[all …]
/arch/openrisc/kernel/
Dtraps.c73 0L, regs->gpr[1], regs->gpr[2], regs->gpr[3]); in show_registers()
75 regs->gpr[4], regs->gpr[5], regs->gpr[6], regs->gpr[7]); in show_registers()
77 regs->gpr[8], regs->gpr[9], regs->gpr[10], regs->gpr[11]); in show_registers()
79 regs->gpr[12], regs->gpr[13], regs->gpr[14], regs->gpr[15]); in show_registers()
81 regs->gpr[16], regs->gpr[17], regs->gpr[18], regs->gpr[19]); in show_registers()
83 regs->gpr[20], regs->gpr[21], regs->gpr[22], regs->gpr[23]); in show_registers()
85 regs->gpr[24], regs->gpr[25], regs->gpr[26], regs->gpr[27]); in show_registers()
87 regs->gpr[28], regs->gpr[29], regs->gpr[30], regs->gpr[31]); in show_registers()
89 regs->gpr[11], regs->orig_gpr11); in show_registers()
135 0L, regs->gpr[1], regs->gpr[2], regs->gpr[3]); in nommu_dump_state()
[all …]
Dptrace.c53 membuf_write(&to, regs->gpr + 1, 31 * 4); in genregs_get()
74 regs->gpr+1, 4, 4*32); in genregs_set()
170 audit_syscall_entry(regs->gpr[11], regs->gpr[3], regs->gpr[4], in do_syscall_trace_enter()
171 regs->gpr[5], regs->gpr[6]); in do_syscall_trace_enter()
173 return ret ? : regs->gpr[11]; in do_syscall_trace_enter()
Dprocess.c172 kregs->gpr[20] = usp; /* fn, kernel thread */ in copy_thread()
173 kregs->gpr[22] = arg; in copy_thread()
184 userregs->gpr[10] = tls; in copy_thread()
186 userregs->gpr[11] = 0; /* Result from fork() */ in copy_thread()
188 kregs->gpr[20] = 0; /* Userspace thread */ in copy_thread()
196 kregs->gpr[9] = (unsigned long)ret_from_fork; in copy_thread()
254 memcpy(dest+1, regs->gpr+1, 31*sizeof(unsigned long)); in dump_elf_thread()
Dsignal.c52 err |= __copy_from_user(regs, sc->regs.gpr, 32 * sizeof(unsigned long)); in restore_sigcontext()
95 return regs->gpr[11]; in _sys_rt_sigreturn()
114 err |= __copy_to_user(sc->regs.gpr, regs, 32 * sizeof(unsigned long)); in setup_sigcontext()
194 regs->gpr[9] = (unsigned long)return_ip; /* what we enter LATER */ in setup_rt_frame()
195 regs->gpr[3] = (unsigned long)ksig->sig; /* arg 1: signo */ in setup_rt_frame()
196 regs->gpr[4] = (unsigned long)&frame->info; /* arg 2: (siginfo_t*) */ in setup_rt_frame()
197 regs->gpr[5] = (unsigned long)&frame->uc; /* arg 3: ucontext */ in setup_rt_frame()
238 retval = regs->gpr[11]; in do_signal()
252 regs->gpr[11] = regs->orig_gpr11; in do_signal()
271 regs->gpr[11] = -EINTR; in do_signal()
/arch/powerpc/perf/
Dperf_regs.c23 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 …]
/arch/powerpc/kernel/ptrace/
Dptrace.c254 regs->gpr[3] = -ENOSYS; in do_seccomp()
272 regs->gpr[3] = regs->orig_gpr3; in do_seccomp()
341 if (regs->gpr[0] >= NR_syscalls) in do_syscall_trace_enter()
345 trace_sys_enter(regs, regs->gpr[0]); in do_syscall_trace_enter()
348 audit_syscall_entry(regs->gpr[0], regs->gpr[3], regs->gpr[4], in do_syscall_trace_enter()
349 regs->gpr[5], regs->gpr[6]); in do_syscall_trace_enter()
351 audit_syscall_entry(regs->gpr[0], in do_syscall_trace_enter()
352 regs->gpr[3] & 0xffffffff, in do_syscall_trace_enter()
353 regs->gpr[4] & 0xffffffff, in do_syscall_trace_enter()
354 regs->gpr[5] & 0xffffffff, in do_syscall_trace_enter()
[all …]
/arch/powerpc/kernel/
Dkgdb.c205 PACK64(ptr, regs->gpr[reg]); in sleeping_thread_to_gdb_regs()
212 PACK64(ptr, regs->gpr[reg]); in sleeping_thread_to_gdb_regs()
248 { "r0", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[0]) },
249 { "r1", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[1]) },
250 { "r2", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[2]) },
251 { "r3", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[3]) },
252 { "r4", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[4]) },
253 { "r5", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[5]) },
254 { "r6", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[6]) },
255 { "r7", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[7]) },
[all …]
Dsyscall_64.c66 return regs->gpr[3]; in system_call_exception()
77 return regs->gpr[3]; in system_call_exception()
78 r3 = regs->gpr[3]; in system_call_exception()
79 r4 = regs->gpr[4]; in system_call_exception()
80 r5 = regs->gpr[5]; in system_call_exception()
81 r6 = regs->gpr[6]; in system_call_exception()
82 r7 = regs->gpr[7]; in system_call_exception()
83 r8 = regs->gpr[8]; in system_call_exception()
89 return regs->gpr[3]; in system_call_exception()
180 regs->gpr[3] = r3; in syscall_exit_prepare()
[all …]
Dasm-offsets.c311 STACK_PT_REGS_OFFSET(GPR0, gpr[0]); in main()
312 STACK_PT_REGS_OFFSET(GPR1, gpr[1]); in main()
313 STACK_PT_REGS_OFFSET(GPR2, gpr[2]); in main()
314 STACK_PT_REGS_OFFSET(GPR3, gpr[3]); in main()
315 STACK_PT_REGS_OFFSET(GPR4, gpr[4]); in main()
316 STACK_PT_REGS_OFFSET(GPR5, gpr[5]); in main()
317 STACK_PT_REGS_OFFSET(GPR6, gpr[6]); in main()
318 STACK_PT_REGS_OFFSET(GPR7, gpr[7]); in main()
319 STACK_PT_REGS_OFFSET(GPR8, gpr[8]); in main()
320 STACK_PT_REGS_OFFSET(GPR9, gpr[9]); in main()
[all …]
Dsignal_64.c339 save_r13 = regs->gpr[13]; in restore_sigcontext()
342 err |= __copy_from_user(regs->gpr, sc->gp_regs, sizeof(regs->gpr)); in restore_sigcontext()
360 regs->gpr[13] = save_r13; in restore_sigcontext()
438 err |= __copy_from_user(regs->gpr, tm_sc->gp_regs, sizeof(regs->gpr)); in restore_tm_sigcontexts()
440 sizeof(regs->gpr)); in restore_tm_sigcontexts()
707 struct ucontext __user *uc = (struct ucontext __user *)regs->gpr[1]; in SYSCALL_DEFINE0()
839 err |= __save_altstack(&frame->uc.uc_stack, regs->gpr[1]); in handle_rt_signal64()
878 err |= put_user(regs->gpr[1], (unsigned long __user *)newsp); in handle_rt_signal64()
883 regs->gpr[12] = regs->ctr; in handle_rt_signal64()
894 err |= get_user(regs->gpr[2], &funct_desc_ptr->toc); in handle_rt_signal64()
[all …]
/arch/powerpc/include/asm/
Dsyscall.h30 return regs->gpr[0]; in syscall_get_nr()
38 regs->gpr[3] = regs->orig_gpr3; in syscall_rollback()
45 unsigned long error = regs->gpr[3]; in syscall_get_error()
53 return (regs->ccr & 0x10000000UL) ? -regs->gpr[3] : 0; in syscall_get_error()
60 return regs->gpr[3]; in syscall_get_return_value()
68 regs->gpr[3] = (long) error ?: val; in syscall_set_return_value()
78 regs->gpr[3] = error; in syscall_set_return_value()
81 regs->gpr[3] = val; in syscall_set_return_value()
101 val = regs->gpr[3 + n]; in syscall_get_arguments()
111 memcpy(&regs->gpr[3], args, 6 * sizeof(args[0])); in syscall_set_arguments()
Dptrace.h32 unsigned long gpr[32]; member
131 return regs->gpr[1]; in user_stack_pointer()
230 #define kernel_stack_pointer(regs) ((regs)->gpr[1])
234 return !IS_ERR_VALUE((unsigned long)regs->gpr[3]); in is_syscall_success()
242 return regs->gpr[3]; in regs_return_value()
245 return regs->gpr[3]; in regs_return_value()
247 return -regs->gpr[3]; in regs_return_value()
252 regs->gpr[3] = rc; in regs_set_return_value()
/arch/openrisc/include/asm/
Dsyscall.h31 regs->gpr[11] = regs->orig_gpr11; in syscall_rollback()
37 return IS_ERR_VALUE(regs->gpr[11]) ? regs->gpr[11] : 0; in syscall_get_error()
43 return regs->gpr[11]; in syscall_get_return_value()
50 regs->gpr[11] = (long) error ?: val; in syscall_set_return_value()
57 memcpy(args, &regs->gpr[3], 6 * sizeof(args[0])); in syscall_get_arguments()
64 memcpy(&regs->gpr[3], args, 6 * sizeof(args[0])); in syscall_set_arguments()
/arch/arm/mach-imx/
Dmach-imx6sl.c20 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()
Dmach-imx6sx.c45 struct regmap *gpr; in imx6sx_enet_clk_sel() local
47 gpr = syscon_regmap_lookup_by_compatible("fsl,imx6sx-iomuxc-gpr"); in imx6sx_enet_clk_sel()
48 if (!IS_ERR(gpr)) { in imx6sx_enet_clk_sel()
49 regmap_update_bits(gpr, IOMUXC_GPR1, in imx6sx_enet_clk_sel()
51 regmap_update_bits(gpr, IOMUXC_GPR1, in imx6sx_enet_clk_sel()
Dmach-imx7d.c62 struct regmap *gpr; in imx7d_enet_clk_sel() local
64 gpr = syscon_regmap_lookup_by_compatible("fsl,imx7d-iomuxc-gpr"); in imx7d_enet_clk_sel()
65 if (!IS_ERR(gpr)) { in imx7d_enet_clk_sel()
66 regmap_update_bits(gpr, IOMUXC_GPR1, IMX7D_GPR1_ENET_TX_CLK_SEL_MASK, 0); in imx7d_enet_clk_sel()
67 regmap_update_bits(gpr, IOMUXC_GPR1, IMX7D_GPR1_ENET_CLK_DIR_MASK, 0); in imx7d_enet_clk_sel()
Dmach-imx6q.c169 struct regmap *gpr; in imx6q_1588_init() local
198 gpr = syscon_regmap_lookup_by_compatible("fsl,imx6q-iomuxc-gpr"); in imx6q_1588_init()
199 if (!IS_ERR(gpr)) in imx6q_1588_init()
200 regmap_update_bits(gpr, IOMUXC_GPR1, in imx6q_1588_init()
215 struct regmap *gpr; in imx6q_axi_init() local
218 gpr = syscon_regmap_lookup_by_compatible("fsl,imx6q-iomuxc-gpr"); in imx6q_axi_init()
219 if (!IS_ERR(gpr)) { in imx6q_axi_init()
230 regmap_update_bits(gpr, IOMUXC_GPR4, mask, mask); in imx6q_axi_init()
233 regmap_update_bits(gpr, IOMUXC_GPR6, in imx6q_axi_init()
237 regmap_update_bits(gpr, IOMUXC_GPR7, in imx6q_axi_init()
Dmach-imx6ul.c20 struct regmap *gpr; in imx6ul_enet_clk_init() local
22 gpr = syscon_regmap_lookup_by_compatible("fsl,imx6ul-iomuxc-gpr"); in imx6ul_enet_clk_init()
23 if (!IS_ERR(gpr)) in imx6ul_enet_clk_init()
24 regmap_update_bits(gpr, IOMUXC_GPR1, IMX6UL_GPR1_ENET_CLK_DIR, in imx6ul_enet_clk_init()
/arch/powerpc/include/asm/nohash/32/
Dkup-8xx.h24 .macro kuap_check current, gpr
26 mfspr \gpr, SPRN_MD_AP
27 rlwinm \gpr, \gpr, 16, 0xffff
28 999: twnei \gpr, MD_APG_KUAP@h
/arch/powerpc/kvm/
Dbook3s_pr.c189 svcpu->gpr[0] = vcpu->arch.regs.gpr[0]; in kvmppc_copy_to_svcpu()
190 svcpu->gpr[1] = vcpu->arch.regs.gpr[1]; in kvmppc_copy_to_svcpu()
191 svcpu->gpr[2] = vcpu->arch.regs.gpr[2]; in kvmppc_copy_to_svcpu()
192 svcpu->gpr[3] = vcpu->arch.regs.gpr[3]; in kvmppc_copy_to_svcpu()
193 svcpu->gpr[4] = vcpu->arch.regs.gpr[4]; in kvmppc_copy_to_svcpu()
194 svcpu->gpr[5] = vcpu->arch.regs.gpr[5]; in kvmppc_copy_to_svcpu()
195 svcpu->gpr[6] = vcpu->arch.regs.gpr[6]; in kvmppc_copy_to_svcpu()
196 svcpu->gpr[7] = vcpu->arch.regs.gpr[7]; in kvmppc_copy_to_svcpu()
197 svcpu->gpr[8] = vcpu->arch.regs.gpr[8]; in kvmppc_copy_to_svcpu()
198 svcpu->gpr[9] = vcpu->arch.regs.gpr[9]; in kvmppc_copy_to_svcpu()
[all …]
Dpowerpc.c895 u64 gpr) in kvmppc_set_vsr_dword() argument
906 val.vsxval[offset] = gpr; in kvmppc_set_vsr_dword()
909 VCPU_VSX_FPR(vcpu, index, offset) = gpr; in kvmppc_set_vsr_dword()
914 u64 gpr) in kvmppc_set_vsr_dword_dump() argument
921 val.vsxval[0] = gpr; in kvmppc_set_vsr_dword_dump()
922 val.vsxval[1] = gpr; in kvmppc_set_vsr_dword_dump()
925 VCPU_VSX_FPR(vcpu, index, 0) = gpr; in kvmppc_set_vsr_dword_dump()
926 VCPU_VSX_FPR(vcpu, index, 1) = gpr; in kvmppc_set_vsr_dword_dump()
931 u32 gpr) in kvmppc_set_vsr_word_dump() argument
937 val.vsx32val[0] = gpr; in kvmppc_set_vsr_word_dump()
[all …]
/arch/powerpc/sysdev/
Dfsl_pci.c955 regs->gpr[rd] = 0xffffffff; in mcheck_handle_load()
959 regs->gpr[rd] = 0xffffffff; in mcheck_handle_load()
960 regs->gpr[ra] += regs->gpr[rb]; in mcheck_handle_load()
964 regs->gpr[rd] = 0xff; in mcheck_handle_load()
968 regs->gpr[rd] = 0xff; in mcheck_handle_load()
969 regs->gpr[ra] += regs->gpr[rb]; in mcheck_handle_load()
974 regs->gpr[rd] = 0xffff; in mcheck_handle_load()
978 regs->gpr[rd] = 0xffff; in mcheck_handle_load()
979 regs->gpr[ra] += regs->gpr[rb]; in mcheck_handle_load()
983 regs->gpr[rd] = ~0UL; in mcheck_handle_load()
[all …]
/arch/arm/boot/dts/
Dimx6sx-sdb-sai.dts23 gpr = <&gpr>;

1234