Home
last modified time | relevance | path

Searched refs:gprs (Results 1 – 25 of 63) sorted by relevance

123

/Linux-v4.19/arch/s390/kernel/
Ddumpstack.c44 if (func(data, sf->gprs[8], 0)) in __dump_trace()
55 if (func(data, sf->gprs[8], 1)) in __dump_trace()
68 sp = regs->gprs[15]; in __dump_trace()
136 regs->gprs[0], regs->gprs[1], regs->gprs[2], regs->gprs[3]); in show_registers()
138 regs->gprs[4], regs->gprs[5], regs->gprs[6], regs->gprs[7]); in show_registers()
140 regs->gprs[8], regs->gprs[9], regs->gprs[10], regs->gprs[11]); in show_registers()
142 regs->gprs[12], regs->gprs[13], regs->gprs[14], regs->gprs[15]); in show_registers()
152 show_stack(NULL, (unsigned long *) regs->gprs[15]); in show_regs()
Dsignal.c129 memcpy(&user_sregs.regs.gprs, &regs->gprs, sizeof(sregs->regs.gprs)); in save_sigregs()
166 memcpy(&regs->gprs, &user_sregs.regs.gprs, sizeof(sregs->regs.gprs)); in restore_sigregs()
221 (struct sigframe __user *) regs->gprs[15]; in SYSCALL_DEFINE0()
233 return regs->gprs[2]; in SYSCALL_DEFINE0()
243 (struct rt_sigframe __user *)regs->gprs[15]; in SYSCALL_DEFINE0()
257 return regs->gprs[2]; in SYSCALL_DEFINE0()
272 sp = regs->gprs[15]; in get_sigframe()
309 if (__put_user(regs->gprs[15], (addr_t __user *) frame)) in setup_frame()
326 if (__put_user(regs->gprs[2], (int __user *) &frame->signo)) in setup_frame()
346 regs->gprs[14] = restorer; in setup_frame()
[all …]
Dcompat_signal.c77 user_sregs.regs.gprs[i] = (__u32) regs->gprs[i]; in save_sigregs32()
115 regs->gprs[i] = (__u64) user_sregs.regs.gprs[i]; in restore_sigregs32()
133 gprs_high[i] = regs->gprs[i] >> 32; in save_sigregs_ext32()
164 *(__u32 *)&regs->gprs[i] = gprs_high[i]; in restore_sigregs_ext32()
183 sigframe32 __user *frame = (sigframe32 __user *)regs->gprs[15]; in COMPAT_SYSCALL_DEFINE0()
195 return regs->gprs[2]; in COMPAT_SYSCALL_DEFINE0()
204 rt_sigframe32 __user *frame = (rt_sigframe32 __user *)regs->gprs[15]; in COMPAT_SYSCALL_DEFINE0()
218 return regs->gprs[2]; in COMPAT_SYSCALL_DEFINE0()
238 sp = (unsigned long) A(regs->gprs[15]); in get_sigframe()
275 if (__put_user(regs->gprs[15], (unsigned int __user *) frame)) in setup_frame32()
[all …]
Dprocess.c110 frame->sf.gprs[8] = (unsigned long) ret_from_fork; in copy_thread_tls()
112 frame->sf.gprs[9] = (unsigned long) frame; in copy_thread_tls()
122 frame->childregs.gprs[9] = new_stackp; /* function */ in copy_thread_tls()
123 frame->childregs.gprs[10] = arg; in copy_thread_tls()
124 frame->childregs.gprs[11] = (unsigned long) do_exit; in copy_thread_tls()
130 frame->childregs.gprs[2] = 0; /* child returns 0 on fork. */ in copy_thread_tls()
133 frame->childregs.gprs[15] = new_stackp; in copy_thread_tls()
195 return_address = sf->gprs[8]; in get_wchan()
Dperf_event.c48 struct stack_frame *stack = (struct stack_frame *) regs->gprs[15]; in sie_block()
111 if (!regs->gprs[15]) in perf_misc_flags()
235 dump_trace(__perf_callchain_kernel, entry, NULL, regs->gprs[15]); in perf_callchain_kernel()
Duprobes.c93 regs->gprs[reg] += utask->vaddr - utask->xol_vaddr; in arch_uprobe_post_xol()
148 orig = regs->gprs[14]; in arch_uretprobe_hijack_return_addr()
149 regs->gprs[14] = trampoline; in arch_uretprobe_hijack_return_addr()
278 rx = (union split_register *) &regs->gprs[insn->reg]; in handle_insn_ril()
Dcrash_dump.c43 u64 gprs[16]; member
90 memcpy(&sa->gprs, &lc->gpregs_save_area, sizeof(sa->gprs)); in save_area_add_regs()
363 memcpy(&nt_prstatus.pr_reg.gprs, sa->gprs, sizeof(sa->gprs)); in fill_cpu_elf_notes()
/Linux-v4.19/arch/s390/kvm/
Ddiag.c26 start = vcpu->run->s.regs.gprs[(vcpu->arch.sie_block->ipa & 0xf0) >> 4]; in diag_release_pages()
27 end = vcpu->run->s.regs.gprs[vcpu->arch.sie_block->ipa & 0xf] + PAGE_SIZE; in diag_release_pages()
77 vcpu->run->s.regs.gprs[rx]); in __diag_page_ref_service()
79 if (vcpu->run->s.regs.gprs[rx] & 7) in __diag_page_ref_service()
81 rc = read_guest(vcpu, vcpu->run->s.regs.gprs[rx], rx, &parm, sizeof(parm)); in __diag_page_ref_service()
98 vcpu->run->s.regs.gprs[ry] = 8; in __diag_page_ref_service()
112 vcpu->run->s.regs.gprs[ry] = 0; in __diag_page_ref_service()
126 vcpu->run->s.regs.gprs[ry] = 0; in __diag_page_ref_service()
132 vcpu->run->s.regs.gprs[ry] = 4; in __diag_page_ref_service()
159 tid = vcpu->run->s.regs.gprs[(vcpu->arch.sie_block->ipa & 0xf0) >> 4]; in __diag_time_slice_end_directed()
[all …]
Dpriv.c264 gaddr = vcpu->run->s.regs.gprs[reg2] & PAGE_MASK; in handle_iske()
288 vcpu->run->s.regs.gprs[reg1] &= ~0xff; in handle_iske()
289 vcpu->run->s.regs.gprs[reg1] |= key; in handle_iske()
311 gaddr = vcpu->run->s.regs.gprs[reg2] & PAGE_MASK; in handle_rrbe()
369 key = vcpu->run->s.regs.gprs[reg1] & 0xfe; in handle_sske()
370 start = vcpu->run->s.regs.gprs[reg2] & PAGE_MASK; in handle_sske()
411 vcpu->run->s.regs.gprs[reg1] &= ~0xff00UL; in handle_sske()
412 vcpu->run->s.regs.gprs[reg1] |= (u64) oldkey << 8; in handle_sske()
417 vcpu->run->s.regs.gprs[reg2] &= ~PAGE_MASK; in handle_sske()
419 vcpu->run->s.regs.gprs[reg2] &= ~0xfffff000UL; in handle_sske()
[all …]
Dsigp.c414 u16 cpu_addr = vcpu->run->s.regs.gprs[r3]; in kvm_s390_handle_sigp()
427 parameter = vcpu->run->s.regs.gprs[r1]; in kvm_s390_handle_sigp()
429 parameter = vcpu->run->s.regs.gprs[r1 + 1]; in kvm_s390_handle_sigp()
436 &vcpu->run->s.regs.gprs[r1]); in kvm_s390_handle_sigp()
441 &vcpu->run->s.regs.gprs[r1]); in kvm_s390_handle_sigp()
463 u16 cpu_addr = vcpu->run->s.regs.gprs[r3]; in kvm_s390_handle_sigp_pei()
Dkvm-s390.h107 return (base2 ? vcpu->run->s.regs.gprs[base2] : 0) + disp2; in kvm_s390_get_base_disp_s()
119 *address1 = (base1 ? vcpu->run->s.regs.gprs[base1] : 0) + disp1; in kvm_s390_get_base_disp_sse()
120 *address2 = (base2 ? vcpu->run->s.regs.gprs[base2] : 0) + disp2; in kvm_s390_get_base_disp_sse()
148 return (base2 ? vcpu->run->s.regs.gprs[base2] : 0) + (long)(int)disp2; in kvm_s390_get_base_disp_rsy()
159 return (base2 ? vcpu->run->s.regs.gprs[base2] : 0) + disp2; in kvm_s390_get_base_disp_rs()
Dintercept.c322 rc = guest_translate_address(vcpu, vcpu->run->s.regs.gprs[reg2], in handle_mvpg_pei()
331 rc = guest_translate_address(vcpu, vcpu->run->s.regs.gprs[reg1], in handle_mvpg_pei()
371 code = vcpu->run->s.regs.gprs[reg1]; in handle_sthyi()
372 addr = vcpu->run->s.regs.gprs[reg2]; in handle_sthyi()
406 vcpu->run->s.regs.gprs[reg2 + 1] = rc; in handle_sthyi()
/Linux-v4.19/arch/mips/kvm/
Dhypcall.c45 num = vcpu->arch.gprs[2]; /* v0 */ in kvm_mips_handle_hypcall()
46 args[0] = vcpu->arch.gprs[4]; /* a0 */ in kvm_mips_handle_hypcall()
47 args[1] = vcpu->arch.gprs[5]; /* a1 */ in kvm_mips_handle_hypcall()
48 args[2] = vcpu->arch.gprs[6]; /* a2 */ in kvm_mips_handle_hypcall()
49 args[3] = vcpu->arch.gprs[7]; /* a3 */ in kvm_mips_handle_hypcall()
52 args, &vcpu->arch.gprs[2] /* v0 */); in kvm_mips_handle_hypcall()
Demulate.c66 arch->gprs[insn.r_format.rd] = epc + 8; in kvm_compute_return_epc()
69 nextpc = arch->gprs[insn.r_format.rs]; in kvm_compute_return_epc()
85 if ((long)arch->gprs[insn.i_format.rs] < 0) in kvm_compute_return_epc()
94 if ((long)arch->gprs[insn.i_format.rs] >= 0) in kvm_compute_return_epc()
103 arch->gprs[31] = epc + 8; in kvm_compute_return_epc()
104 if ((long)arch->gprs[insn.i_format.rs] < 0) in kvm_compute_return_epc()
113 arch->gprs[31] = epc + 8; in kvm_compute_return_epc()
114 if ((long)arch->gprs[insn.i_format.rs] >= 0) in kvm_compute_return_epc()
142 arch->gprs[31] = instpc + 8; in kvm_compute_return_epc()
154 if (arch->gprs[insn.i_format.rs] == in kvm_compute_return_epc()
[all …]
Dentry.c434 UASM_i_LW(&p, i, offsetof(struct kvm_vcpu_arch, gprs[i]), K1); in kvm_mips_build_enter_guest()
447 UASM_i_LW(&p, K0, offsetof(struct kvm_vcpu_arch, gprs[K0]), K1); in kvm_mips_build_enter_guest()
448 UASM_i_LW(&p, K1, offsetof(struct kvm_vcpu_arch, gprs[K1]), K1); in kvm_mips_build_enter_guest()
485 UASM_i_SW(&p, K0, offsetof(struct kvm_vcpu, arch.gprs[K0]), K1); in kvm_mips_build_tlb_refill_exception()
522 UASM_i_LW(&p, K0, offsetof(struct kvm_vcpu, arch.gprs[K0]), K1); in kvm_mips_build_tlb_refill_exception()
561 UASM_i_SW(&p, K0, offsetof(struct kvm_vcpu_arch, gprs[K0]), K1); in kvm_mips_build_exception()
611 UASM_i_SW(&p, i, offsetof(struct kvm_vcpu_arch, gprs[i]), K1); in kvm_mips_build_exit()
626 UASM_i_SW(&p, T0, offsetof(struct kvm_vcpu_arch, gprs[K1]), K1); in kvm_mips_build_exit()
Dmips.c667 v = (long)vcpu->arch.gprs[reg->id - KVM_REG_MIPS_R0]; in kvm_mips_get_reg()
801 vcpu->arch.gprs[reg->id - KVM_REG_MIPS_R0] = v; in kvm_mips_set_reg()
1148 vcpu->arch.gprs[i], in kvm_arch_vcpu_dump_regs()
1149 vcpu->arch.gprs[i + 1], in kvm_arch_vcpu_dump_regs()
1150 vcpu->arch.gprs[i + 2], vcpu->arch.gprs[i + 3]); in kvm_arch_vcpu_dump_regs()
1171 for (i = 1; i < ARRAY_SIZE(vcpu->arch.gprs); i++) in kvm_arch_vcpu_ioctl_set_regs()
1172 vcpu->arch.gprs[i] = regs->gpr[i]; in kvm_arch_vcpu_ioctl_set_regs()
1173 vcpu->arch.gprs[0] = 0; /* zero is special, and cannot be set. */ in kvm_arch_vcpu_ioctl_set_regs()
1188 for (i = 0; i < ARRAY_SIZE(vcpu->arch.gprs); i++) in kvm_arch_vcpu_ioctl_get_regs()
1189 regs->gpr[i] = vcpu->arch.gprs[i]; in kvm_arch_vcpu_ioctl_get_regs()
/Linux-v4.19/arch/s390/include/asm/
Dsyscall.h35 regs->gprs[2] = regs->orig_gpr2; in syscall_rollback()
41 return IS_ERR_VALUE(regs->gprs[2]) ? regs->gprs[2] : 0; in syscall_get_error()
47 return regs->gprs[2]; in syscall_get_return_value()
54 regs->gprs[2] = error ? error : val; in syscall_set_return_value()
77 args[n] = regs->gprs[2 + i + n] & mask; in syscall_get_arguments()
90 regs->gprs[2 + i + n] = args[n]; in syscall_set_arguments()
Dptrace.h82 unsigned long gprs[NUM_GPRS]; member
163 #define user_stack_pointer(regs)((regs)->gprs[15])
168 return regs->gprs[2]; in regs_return_value()
184 return regs->gprs[15]; in kernel_stack_pointer()
Dprocessor.h172 unsigned long gprs[10]; member
179 unsigned long gprs[10]; member
197 regs->gprs[15] = new_stackp; \
204 regs->gprs[15] = new_stackp; \
232 #define KSTK_ESP(tsk) (task_pt_regs(tsk)->gprs[15])
/Linux-v4.19/tools/testing/selftests/bpf/
Dbpf_helpers.h254 #define PT_REGS_PARM1(x) ((x)->gprs[2])
255 #define PT_REGS_PARM2(x) ((x)->gprs[3])
256 #define PT_REGS_PARM3(x) ((x)->gprs[4])
257 #define PT_REGS_PARM4(x) ((x)->gprs[5])
258 #define PT_REGS_PARM5(x) ((x)->gprs[6])
259 #define PT_REGS_RET(x) ((x)->gprs[14])
260 #define PT_REGS_FP(x) ((x)->gprs[11]) /* Works only with CONFIG_FRAME_POINTER */
261 #define PT_REGS_RC(x) ((x)->gprs[2])
262 #define PT_REGS_SP(x) ((x)->gprs[15])
/Linux-v4.19/arch/x86/kernel/cpu/
Damd.c39 u32 gprs[8] = { 0 }; in rdmsrl_amd_safe() local
45 gprs[1] = msr; in rdmsrl_amd_safe()
46 gprs[7] = 0x9c5a203a; in rdmsrl_amd_safe()
48 err = rdmsr_safe_regs(gprs); in rdmsrl_amd_safe()
50 *p = gprs[0] | ((u64)gprs[2] << 32); in rdmsrl_amd_safe()
57 u32 gprs[8] = { 0 }; in wrmsrl_amd_safe() local
62 gprs[0] = (u32)val; in wrmsrl_amd_safe()
63 gprs[1] = msr; in wrmsrl_amd_safe()
64 gprs[2] = val >> 32; in wrmsrl_amd_safe()
65 gprs[7] = 0x9c5a203a; in wrmsrl_amd_safe()
[all …]
/Linux-v4.19/tools/arch/s390/include/uapi/asm/
Dptrace.h284 unsigned long gprs[NUM_GPRS]; member
296 unsigned long gprs[NUM_GPRS]; member
442 unsigned long gprs[NUM_GPRS]; member
/Linux-v4.19/arch/s390/include/uapi/asm/
Dptrace.h284 unsigned long gprs[NUM_GPRS]; member
296 unsigned long gprs[NUM_GPRS]; member
442 unsigned long gprs[NUM_GPRS]; member
/Linux-v4.19/net/phonet/
DMakefile12 pn_pep-y := pep.o pep-gprs.o
/Linux-v4.19/tools/perf/arch/s390/util/
Ddwarf-regs.c43 return offsetof(user_pt_regs, gprs) + 8 * gpr; in regs_query_register_offset()

123