Home
last modified time | relevance | path

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

123456

/Linux-v5.4/arch/openrisc/kernel/
Dtraps.c79 0L, regs->gpr[1], regs->gpr[2], regs->gpr[3]); in show_registers()
81 regs->gpr[4], regs->gpr[5], regs->gpr[6], regs->gpr[7]); in show_registers()
83 regs->gpr[8], regs->gpr[9], regs->gpr[10], regs->gpr[11]); in show_registers()
85 regs->gpr[12], regs->gpr[13], regs->gpr[14], regs->gpr[15]); in show_registers()
87 regs->gpr[16], regs->gpr[17], regs->gpr[18], regs->gpr[19]); in show_registers()
89 regs->gpr[20], regs->gpr[21], regs->gpr[22], regs->gpr[23]); in show_registers()
91 regs->gpr[24], regs->gpr[25], regs->gpr[26], regs->gpr[27]); in show_registers()
93 regs->gpr[28], regs->gpr[29], regs->gpr[30], regs->gpr[31]); in show_registers()
95 regs->gpr[11], regs->orig_gpr11); in show_registers()
141 0L, regs->gpr[1], regs->gpr[2], regs->gpr[3]); in nommu_dump_state()
[all …]
Dptrace.c59 regs->gpr+1, 4, 4*32); in genregs_get()
89 regs->gpr+1, 4, 4*32); in genregs_set()
185 audit_syscall_entry(regs->gpr[11], regs->gpr[3], regs->gpr[4], in do_syscall_trace_enter()
186 regs->gpr[5], regs->gpr[6]); in do_syscall_trace_enter()
188 return ret ? : regs->gpr[11]; in do_syscall_trace_enter()
Dprocess.c173 kregs->gpr[20] = usp; /* fn, kernel thread */ in copy_thread()
174 kregs->gpr[22] = arg; in copy_thread()
191 userregs->gpr[10] = userregs->gpr[7]; in copy_thread()
193 userregs->gpr[11] = 0; /* Result from fork() */ in copy_thread()
195 kregs->gpr[20] = 0; /* Userspace thread */ in copy_thread()
203 kregs->gpr[9] = (unsigned long)ret_from_fork; in copy_thread()
268 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()
/Linux-v5.4/arch/powerpc/lib/
Dtest_emulate_step.c103 regs.gpr[3] = (unsigned long) &a; in test_ld()
108 if (stepped == 1 && regs.gpr[5] == a) in test_ld()
121 regs.gpr[3] = (unsigned long) &a; in test_lwz()
126 if (stepped == 1 && regs.gpr[5] == a) in test_lwz()
139 regs.gpr[3] = (unsigned long) a; in test_lwzx()
140 regs.gpr[4] = 8; in test_lwzx()
141 regs.gpr[5] = 0x8765; in test_lwzx()
145 if (stepped == 1 && regs.gpr[5] == a[2]) in test_lwzx()
158 regs.gpr[3] = (unsigned long) &a; in test_std()
159 regs.gpr[5] = 0x5678; in test_std()
[all …]
Dsstep.c131 ea += regs->gpr[ra]; in dform_ea()
149 ea += regs->gpr[ra]; in dsform_ea()
166 ea += regs->gpr[ra]; in dqform_ea()
183 ea = regs->gpr[rb]; in xform_ea()
185 ea += regs->gpr[ra]; in xform_ea()
620 err = do_lq(ea, &regs->gpr[reg]); in emulate_lq()
622 err = read_mem(&regs->gpr[reg + IS_LE], ea, 8, regs); in emulate_lq()
624 err = read_mem(&regs->gpr[reg + IS_BE], ea + 8, 8, regs); in emulate_lq()
627 do_byte_reverse(&regs->gpr[reg], 16); in emulate_lq()
639 vals[0] = regs->gpr[reg]; in emulate_stq()
[all …]
/Linux-v5.4/arch/powerpc/perf/
Dperf_regs.c21 PT_REGS_OFFSET(PERF_REG_POWERPC_R0, gpr[0]),
22 PT_REGS_OFFSET(PERF_REG_POWERPC_R1, gpr[1]),
23 PT_REGS_OFFSET(PERF_REG_POWERPC_R2, gpr[2]),
24 PT_REGS_OFFSET(PERF_REG_POWERPC_R3, gpr[3]),
25 PT_REGS_OFFSET(PERF_REG_POWERPC_R4, gpr[4]),
26 PT_REGS_OFFSET(PERF_REG_POWERPC_R5, gpr[5]),
27 PT_REGS_OFFSET(PERF_REG_POWERPC_R6, gpr[6]),
28 PT_REGS_OFFSET(PERF_REG_POWERPC_R7, gpr[7]),
29 PT_REGS_OFFSET(PERF_REG_POWERPC_R8, gpr[8]),
30 PT_REGS_OFFSET(PERF_REG_POWERPC_R9, gpr[9]),
[all …]
/Linux-v5.4/sound/pci/emu10k1/
Demufx.c356 snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[i], 0, val); in snd_emu10k1_gpr_ctl_put()
359 snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[i], 0, db_table[val]); in snd_emu10k1_gpr_ctl_put()
367 … 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()
375 …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()
378 snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[i], 0, onoff_table[val]); in snd_emu10k1_gpr_ctl_put()
509 int gpr; in snd_emu10k1_gpr_poke() local
512 for (gpr = 0; gpr < (emu->audigy ? 0x200 : 0x100); gpr++) { in snd_emu10k1_gpr_poke()
513 if (!test_bit(gpr, icode->gpr_valid)) in snd_emu10k1_gpr_poke()
516 val = *(__force u32 *)&icode->gpr_map[gpr]; in snd_emu10k1_gpr_poke()
517 else if (get_user(val, &icode->gpr_map[gpr])) in snd_emu10k1_gpr_poke()
[all …]
/Linux-v5.4/arch/powerpc/kernel/
Dkgdb.c204 PACK64(ptr, regs->gpr[reg]); in sleeping_thread_to_gdb_regs()
211 PACK64(ptr, regs->gpr[reg]); in sleeping_thread_to_gdb_regs()
247 { "r0", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[0]) },
248 { "r1", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[1]) },
249 { "r2", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[2]) },
250 { "r3", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[3]) },
251 { "r4", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[4]) },
252 { "r5", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[5]) },
253 { "r6", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[6]) },
254 { "r7", GDB_SIZEOF_REG, offsetof(struct pt_regs, gpr[7]) },
[all …]
Dsignal.c56 unsigned long ret = regs->gpr[3]; in check_syscall_restart()
92 regs->gpr[0] = __NR_restart_syscall; in check_syscall_restart()
94 regs->gpr[3] = regs->orig_gpr3; in check_syscall_restart()
99 regs->gpr[3] = EINTR; in check_syscall_restart()
209 return tsk->thread.ckpt_regs.gpr[1]; in get_tm_stackpointer()
212 return tsk->thread.regs->gpr[1]; in get_tm_stackpointer()
/Linux-v5.4/arch/powerpc/include/asm/
Dsyscall.h29 return TRAP(regs) == 0xc00 ? regs->gpr[0] : -1; in syscall_get_nr()
35 regs->gpr[3] = regs->orig_gpr3; in syscall_rollback()
45 return (regs->ccr & 0x10000000UL) ? -regs->gpr[3] : 0; in syscall_get_error()
51 return regs->gpr[3]; in syscall_get_return_value()
66 regs->gpr[3] = error; in syscall_set_return_value()
69 regs->gpr[3] = val; in syscall_set_return_value()
88 val = regs->gpr[3 + n]; in syscall_get_arguments()
98 memcpy(&regs->gpr[3], args, 6 * sizeof(args[0])); in syscall_set_arguments()
Dptrace.h31 unsigned long gpr[32]; member
127 return regs->gpr[1]; in user_stack_pointer()
141 #define kernel_stack_pointer(regs) ((regs)->gpr[1])
150 return regs->gpr[3]; in regs_return_value()
152 return -regs->gpr[3]; in regs_return_value()
157 regs->gpr[3] = rc; in regs_set_return_value()
/Linux-v5.4/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()
/Linux-v5.4/arch/arm/mach-imx/
Dmach-imx6q.c182 struct regmap *gpr; in imx6q_1588_init() local
211 gpr = syscon_regmap_lookup_by_compatible("fsl,imx6q-iomuxc-gpr"); in imx6q_1588_init()
212 if (!IS_ERR(gpr)) in imx6q_1588_init()
213 regmap_update_bits(gpr, IOMUXC_GPR1, in imx6q_1588_init()
228 struct regmap *gpr; in imx6q_axi_init() local
231 gpr = syscon_regmap_lookup_by_compatible("fsl,imx6q-iomuxc-gpr"); in imx6q_axi_init()
232 if (!IS_ERR(gpr)) { in imx6q_axi_init()
243 regmap_update_bits(gpr, IOMUXC_GPR4, mask, mask); in imx6q_axi_init()
246 regmap_update_bits(gpr, IOMUXC_GPR6, in imx6q_axi_init()
250 regmap_update_bits(gpr, IOMUXC_GPR7, in imx6q_axi_init()
Dmach-imx6sl.c21 struct regmap *gpr; in imx6sl_fec_init() local
24 gpr = syscon_regmap_lookup_by_compatible("fsl,imx6sl-iomuxc-gpr"); in imx6sl_fec_init()
25 if (!IS_ERR(gpr)) { in imx6sl_fec_init()
26 regmap_update_bits(gpr, IOMUXC_GPR1, in imx6sl_fec_init()
28 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()
/Linux-v5.4/drivers/ata/
Dahci_imx.c104 struct regmap *gpr; member
235 regmap_update_bits(imxpriv->gpr, IOMUXC_GPR5, in imx_sata_phy_reset()
238 regmap_update_bits(imxpriv->gpr, IOMUXC_GPR5, in imx_sata_phy_reset()
241 regmap_update_bits(imxpriv->gpr, IOMUXC_GPR5, in imx_sata_phy_reset()
479 regmap_read(imxpriv->gpr, IMX8QM_CSR_PCIEA_OFFSET + in imx8_sata_enable()
483 regmap_update_bits(imxpriv->gpr, in imx8_sata_enable()
490 regmap_read(imxpriv->gpr, IMX8QM_CSR_PCIEB_OFFSET + in imx8_sata_enable()
494 regmap_update_bits(imxpriv->gpr, in imx8_sata_enable()
503 regmap_update_bits(imxpriv->gpr, in imx8_sata_enable()
512 regmap_update_bits(imxpriv->gpr, in imx8_sata_enable()
[all …]
/Linux-v5.4/tools/perf/arch/s390/util/
Ddwarf-regs.c33 unsigned long gpr; in regs_query_register_offset() local
39 gpr = strtoul(name + 2, NULL, 10); in regs_query_register_offset()
40 if (errno || gpr >= 16) in regs_query_register_offset()
43 return offsetof(user_pt_regs, gprs) + 8 * gpr; in regs_query_register_offset()
/Linux-v5.4/arch/powerpc/include/asm/nohash/32/
Dkup-8xx.h23 .macro kuap_check current, gpr
25 mfspr \gpr, SPRN_MD_AP
26 rlwinm \gpr, \gpr, 16, 0xffff
27 999: twnei \gpr, MD_APG_KUAP@h
/Linux-v5.4/arch/powerpc/kvm/
Dbook3s_pr.c153 svcpu->gpr[0] = vcpu->arch.regs.gpr[0]; in kvmppc_copy_to_svcpu()
154 svcpu->gpr[1] = vcpu->arch.regs.gpr[1]; in kvmppc_copy_to_svcpu()
155 svcpu->gpr[2] = vcpu->arch.regs.gpr[2]; in kvmppc_copy_to_svcpu()
156 svcpu->gpr[3] = vcpu->arch.regs.gpr[3]; in kvmppc_copy_to_svcpu()
157 svcpu->gpr[4] = vcpu->arch.regs.gpr[4]; in kvmppc_copy_to_svcpu()
158 svcpu->gpr[5] = vcpu->arch.regs.gpr[5]; in kvmppc_copy_to_svcpu()
159 svcpu->gpr[6] = vcpu->arch.regs.gpr[6]; in kvmppc_copy_to_svcpu()
160 svcpu->gpr[7] = vcpu->arch.regs.gpr[7]; in kvmppc_copy_to_svcpu()
161 svcpu->gpr[8] = vcpu->arch.regs.gpr[8]; in kvmppc_copy_to_svcpu()
162 svcpu->gpr[9] = vcpu->arch.regs.gpr[9]; in kvmppc_copy_to_svcpu()
[all …]
/Linux-v5.4/tools/testing/selftests/powerpc/ptrace/
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]
Dptrace-gpr.c19 void gpr(void) in gpr() function
57 unsigned long gpr[18]; in trace_gpr() local
61 FAIL_IF(show_gpr(child, gpr)); in trace_gpr()
62 FAIL_IF(validate_gpr(gpr, GPR_1)); in trace_gpr()
84 gpr(); in ptrace_gpr()
/Linux-v5.4/Documentation/devicetree/bindings/display/imx/
Dhdmi.txt22 - gpr : Shall contain a phandle to the iomuxc-gpr region containing the HDMI
35 gpr: iomuxc-gpr@20e0000 {
45 gpr = <&gpr>;
/Linux-v5.4/arch/powerpc/sysdev/
Dfsl_pci.c947 regs->gpr[rd] = 0xffffffff; in mcheck_handle_load()
951 regs->gpr[rd] = 0xffffffff; in mcheck_handle_load()
952 regs->gpr[ra] += regs->gpr[rb]; in mcheck_handle_load()
956 regs->gpr[rd] = 0xff; in mcheck_handle_load()
960 regs->gpr[rd] = 0xff; in mcheck_handle_load()
961 regs->gpr[ra] += regs->gpr[rb]; in mcheck_handle_load()
966 regs->gpr[rd] = 0xffff; in mcheck_handle_load()
970 regs->gpr[rd] = 0xffff; in mcheck_handle_load()
971 regs->gpr[ra] += regs->gpr[rb]; in mcheck_handle_load()
975 regs->gpr[rd] = ~0UL; in mcheck_handle_load()
[all …]

123456