Home
last modified time | relevance | path

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

1234567

/linux-6.12.1/arch/powerpc/lib/
Dtest_emulate_step.c96 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 …]
Dsstep.c132 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, &regs->gpr[reg]); in emulate_lq()
749 err = read_mem(&regs->gpr[reg + IS_LE], ea, 8, regs); in emulate_lq()
751 err = read_mem(&regs->gpr[reg + IS_BE], ea + 8, 8, regs); in emulate_lq()
754 do_byte_reverse(&regs->gpr[reg], 16); in emulate_lq()
[all …]
/linux-6.12.1/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 …]
/linux-6.12.1/arch/powerpc/kernel/ptrace/
Dptrace.c210 regs->gpr[3] = -ENOSYS; in do_seccomp()
228 regs->gpr[3] = regs->orig_gpr3; in do_seccomp()
294 if (regs->gpr[0] >= NR_syscalls) in do_syscall_trace_enter()
298 trace_sys_enter(regs, regs->gpr[0]); in do_syscall_trace_enter()
301 audit_syscall_entry(regs->gpr[0], regs->gpr[3], regs->gpr[4], in do_syscall_trace_enter()
302 regs->gpr[5], regs->gpr[6]); in do_syscall_trace_enter()
304 audit_syscall_entry(regs->gpr[0], in do_syscall_trace_enter()
305 regs->gpr[3] & 0xffffffff, in do_syscall_trace_enter()
306 regs->gpr[4] & 0xffffffff, in do_syscall_trace_enter()
307 regs->gpr[5] & 0xffffffff, in do_syscall_trace_enter()
[all …]
/linux-6.12.1/arch/openrisc/kernel/
Dtraps.c91 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()
289 regs->gpr[9] = regs->pc + 8; in adjust_pc()
[all …]
Dptrace.c56 membuf_write(&to, regs->gpr + 1, 31 * 4); in genregs_get()
76 regs->gpr+1, 4, 4*32); in genregs_set()
208 audit_syscall_entry(regs->gpr[11], regs->gpr[3], regs->gpr[4], in do_syscall_trace_enter()
209 regs->gpr[5], regs->gpr[6]); in do_syscall_trace_enter()
211 return ret ? : regs->gpr[11]; in do_syscall_trace_enter()
Dprocess.c190 kregs->gpr[20] = (unsigned long)args->fn; in copy_thread()
191 kregs->gpr[22] = (unsigned long)args->fn_arg; in copy_thread()
202 userregs->gpr[10] = tls; in copy_thread()
204 userregs->gpr[11] = 0; /* Result from fork() */ in copy_thread()
206 kregs->gpr[20] = 0; /* Userspace thread */ in copy_thread()
214 kregs->gpr[9] = (unsigned long)ret_from_fork; in copy_thread()
276 memcpy(dest+1, regs->gpr+1, 31*sizeof(unsigned long)); in dump_elf_thread()
Dsignal.c87 err |= __copy_from_user(regs, sc->regs.gpr, 32 * sizeof(unsigned long)); in restore_sigcontext()
131 return regs->gpr[11]; in _sys_rt_sigreturn()
150 err |= __copy_to_user(sc->regs.gpr, regs, 32 * sizeof(unsigned long)); in setup_sigcontext()
231 regs->gpr[9] = (unsigned long)return_ip; /* what we enter LATER */ in setup_rt_frame()
232 regs->gpr[3] = (unsigned long)ksig->sig; /* arg 1: signo */ in setup_rt_frame()
233 regs->gpr[4] = (unsigned long)&frame->info; /* arg 2: (siginfo_t*) */ in setup_rt_frame()
234 regs->gpr[5] = (unsigned long)&frame->uc; /* arg 3: ucontext */ in setup_rt_frame()
275 retval = regs->gpr[11]; in do_signal()
289 regs->gpr[11] = regs->orig_gpr11; in do_signal()
308 regs->gpr[11] = -EINTR; in do_signal()
/linux-6.12.1/sound/pci/emu10k1/
Demufx.c379 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()
543 if (!test_bit(gpr, icode->gpr_valid)) in snd_emu10k1_gpr_poke()
[all …]
/linux-6.12.1/arch/powerpc/kernel/
Dkgdb.c202 PACK64(ptr, regs->gpr[reg]); 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]) },
252 { "r7", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[7]) },
[all …]
Dsyscall.c125 return 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()
171 ret = f(regs->gpr[3], regs->gpr[4], regs->gpr[5], in system_call_exception()
[all …]
Dasm-offsets.c264 STACK_PT_REGS_OFFSET(GPR0, gpr[0]); in main()
265 STACK_PT_REGS_OFFSET(GPR1, gpr[1]); in main()
266 STACK_PT_REGS_OFFSET(GPR2, gpr[2]); in main()
267 STACK_PT_REGS_OFFSET(GPR3, gpr[3]); in main()
268 STACK_PT_REGS_OFFSET(GPR4, gpr[4]); in main()
269 STACK_PT_REGS_OFFSET(GPR5, gpr[5]); in main()
270 STACK_PT_REGS_OFFSET(GPR6, gpr[6]); in main()
271 STACK_PT_REGS_OFFSET(GPR7, gpr[7]); in main()
272 STACK_PT_REGS_OFFSET(GPR8, gpr[8]); in main()
273 STACK_PT_REGS_OFFSET(GPR9, gpr[9]); in main()
[all …]
/linux-6.12.1/arch/powerpc/include/asm/
Dsyscall.h37 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()
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()
Dsyscall_wrapper.h15 ,,regs->gpr[3],,regs->gpr[4],,regs->gpr[5] \
16 ,,regs->gpr[6],,regs->gpr[7],,regs->gpr[8])
Dptrace.h33 unsigned long gpr[32]; member
218 return regs->gpr[1]; in user_stack_pointer()
286 #define kernel_stack_pointer(regs) ((regs)->gpr[1])
290 return !IS_ERR_VALUE((unsigned long)regs->gpr[3]); in is_syscall_success()
298 return regs->gpr[3]; in regs_return_value()
301 return regs->gpr[3]; in regs_return_value()
303 return -regs->gpr[3]; in regs_return_value()
308 regs->gpr[3] = rc; in regs_set_return_value()
413 return regs_get_register(regs, offsetof(struct pt_regs, gpr[3 + n])); in regs_get_kernel_argument()
/linux-6.12.1/arch/arm/mach-imx/
Dmach-imx6q.c84 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()
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()
156 regmap_update_bits(gpr, IOMUXC_GPR6, in imx6q_axi_init()
160 regmap_update_bits(gpr, IOMUXC_GPR7, in imx6q_axi_init()
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-imx7d.c40 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()
/linux-6.12.1/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()
/linux-6.12.1/drivers/net/ethernet/intel/ice/
Dice_parser_rt.c8 rt->gpr[ICE_GPR_TSR_IDX] = tsr; in ice_rt_tsr_set()
13 rt->gpr[ICE_GPR_HO_IDX] = ho; in ice_rt_ho_set()
14 memcpy(&rt->gpr[ICE_GPR_HV_IDX], &rt->pkt_buf[ho], ICE_GPR_HV_SIZE); in ice_rt_ho_set()
19 rt->gpr[ICE_GPR_NP_IDX] = pc; in ice_rt_np_set()
24 rt->gpr[ICE_GPR_NN_IDX] = node; in ice_rt_nn_set()
37 rt->gpr[ICE_GPR_FLG_IDX + word] |= (u16)BIT(id); in ice_rt_flag_set()
40 rt->gpr[ICE_GPR_FLG_IDX + word] &= ~(u16)BIT(id); in ice_rt_flag_set()
52 rt->gpr[idx] = val; in ice_rt_gpr_set()
62 rt->gpr[ICE_GPR_ERR_IDX] |= (u16)BIT(idx); in ice_rt_err_set()
65 rt->gpr[ICE_GPR_ERR_IDX] &= ~(u16)BIT(idx); in ice_rt_err_set()
[all …]
/linux-6.12.1/arch/powerpc/kvm/
Dbook3s_pr.c196 svcpu->gpr[0] = vcpu->arch.regs.gpr[0]; in kvmppc_copy_to_svcpu()
197 svcpu->gpr[1] = vcpu->arch.regs.gpr[1]; in kvmppc_copy_to_svcpu()
198 svcpu->gpr[2] = vcpu->arch.regs.gpr[2]; in kvmppc_copy_to_svcpu()
199 svcpu->gpr[3] = vcpu->arch.regs.gpr[3]; in kvmppc_copy_to_svcpu()
200 svcpu->gpr[4] = vcpu->arch.regs.gpr[4]; in kvmppc_copy_to_svcpu()
201 svcpu->gpr[5] = vcpu->arch.regs.gpr[5]; in kvmppc_copy_to_svcpu()
202 svcpu->gpr[6] = vcpu->arch.regs.gpr[6]; in kvmppc_copy_to_svcpu()
203 svcpu->gpr[7] = vcpu->arch.regs.gpr[7]; in kvmppc_copy_to_svcpu()
204 svcpu->gpr[8] = vcpu->arch.regs.gpr[8]; in kvmppc_copy_to_svcpu()
205 svcpu->gpr[9] = vcpu->arch.regs.gpr[9]; in kvmppc_copy_to_svcpu()
[all …]
/linux-6.12.1/tools/perf/arch/s390/util/
Ddwarf-regs.c32 unsigned long gpr; in regs_query_register_offset() local
38 gpr = strtoul(name + 2, NULL, 10); in regs_query_register_offset()
39 if (errno || gpr >= 16) in regs_query_register_offset()
42 return offsetof(user_pt_regs, gprs) + 8 * gpr; in regs_query_register_offset()
/linux-6.12.1/tools/testing/selftests/powerpc/ptrace/
DMakefile3 TM_TESTS := ptrace-tm-gpr
4 TM_TESTS += ptrace-tm-spd-gpr
21 TESTS += ptrace-gpr
39 $(OUTPUT)/ptrace-gpr: ptrace-gpr.S
Dptrace-syscall.c28 #define user_syscall_nr gpr[0]
29 #define user_arg0 gpr[3]
30 #define user_arg1 gpr[4]
31 #define user_arg2 gpr[5]
32 #define user_arg3 gpr[6]
33 #define user_arg4 gpr[7]
34 #define user_arg5 gpr[8]
/linux-6.12.1/arch/mips/kvm/
Demulate.c1512 unsigned long *gpr = &vcpu->arch.gprs[vcpu->arch.io_gpr]; in kvm_mips_complete_mmio_load() local
1515 if (run->mmio.len > sizeof(*gpr)) { in kvm_mips_complete_mmio_load()
1528 *gpr = (vcpu->arch.gprs[vcpu->arch.io_gpr] & 0xffffffffffffff) | in kvm_mips_complete_mmio_load()
1532 *gpr = (vcpu->arch.gprs[vcpu->arch.io_gpr] & 0xffffffffffff) | in kvm_mips_complete_mmio_load()
1536 *gpr = (vcpu->arch.gprs[vcpu->arch.io_gpr] & 0xffffffffff) | in kvm_mips_complete_mmio_load()
1540 *gpr = (vcpu->arch.gprs[vcpu->arch.io_gpr] & 0xffffffff) | in kvm_mips_complete_mmio_load()
1544 *gpr = (vcpu->arch.gprs[vcpu->arch.io_gpr] & 0xffffff) | in kvm_mips_complete_mmio_load()
1548 *gpr = (vcpu->arch.gprs[vcpu->arch.io_gpr] & 0xffff) | in kvm_mips_complete_mmio_load()
1552 *gpr = (vcpu->arch.gprs[vcpu->arch.io_gpr] & 0xff) | in kvm_mips_complete_mmio_load()
1557 *gpr = *(s64 *)run->mmio.data; in kvm_mips_complete_mmio_load()
[all …]

1234567