Home
last modified time | relevance | path

Searched refs:regs (Results 1 – 25 of 3561) sorted by relevance

12345678910>>...143

/linux/arch/arm64/kernel/
A Dentry-common.c84 if (regs->exit_rcu) in __exit_to_kernel_mode()
256 handler(regs); in do_interrupt_handler()
275 __show_regs(regs); in __panic_unhandled()
408 el1_undef(regs); in el1h_64_sync_handler()
560 do_sp_pc_abort(regs->sp, esr, regs); in el0_sp()
576 do_bti(regs); in el0_bti()
603 do_el0_svc(regs); in el0_svc()
621 el0_svc(regs); in el0t_64_sync_handler()
649 el0_undef(regs); in el0t_64_sync_handler()
652 el0_bti(regs); in el0t_64_sync_handler()
[all …]
/linux/arch/openrisc/kernel/
A Dtraps.c75 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()
133 0, regs->pc, regs->sr, regs->sp); in nommu_dump_state()
137 regs->gpr[4], regs->gpr[5], regs->gpr[6], regs->gpr[7]); in nommu_dump_state()
139 regs->gpr[8], regs->gpr[9], regs->gpr[10], regs->gpr[11]); in nommu_dump_state()
[all …]
/linux/arch/hexagon/kernel/
A Dvm_events.c27 regs->restart_r0, regs->syscall_nr); in show_regs()
30 regs->lc0, regs->sa0, regs->m0); in show_regs()
32 regs->lc1, regs->sa1, regs->m1); in show_regs()
34 regs->gp, regs->ugp, regs->usr); in show_regs()
36 regs->cs0, regs->cs1); in show_regs()
38 regs->r01, in show_regs()
39 regs->r02, in show_regs()
42 regs->r05, in show_regs()
43 regs->r06, in show_regs()
71 pt_elr(regs), pt_cause(regs), user_mode(regs)); in show_regs()
[all …]
A Dtraps.c146 pt_psp(regs), pt_elr(regs)); in do_show_stack()
152 ex_name(pt_cause(regs)), pt_cause(regs), in do_show_stack()
202 show_regs(regs); in die()
203 do_show_stack(current, &regs->r30, pt_elr(regs), KERN_EMERG); in die()
367 regs->syscall_nr = regs->r06; in do_trap0()
375 regs->restart_r0 = regs->r00; in do_trap0()
378 regs->r00 = -1; in do_trap0()
382 regs->r00 = syscall(regs->r00, regs->r01, in do_trap0()
383 regs->r02, regs->r03, in do_trap0()
384 regs->r04, regs->r05); in do_trap0()
[all …]
/linux/arch/arm64/include/asm/
A Dptrace.h182 u64 regs[31]; member
243 (!((regs)->pstate & PSR_I_BIT) && irqs_priority_unmasked(regs))
252 return regs->sp; in user_stack_pointer()
277 val = regs->regs[offset]; in regs_get_register()
301 return (r == 31) ? 0 : regs->regs[r]; in pt_regs_read_reg()
312 regs->regs[r] = val; in pt_regs_write_reg()
323 unsigned long val = regs->regs[0]; in regs_return_value()
338 regs->regs[0] = rc; in regs_set_return_value()
374 regs->pc = val; in instruction_pointer_set()
379 return regs->regs[29]; in frame_pointer()
[all …]
/linux/arch/csky/kernel/probes/
A Dsimulate-insn.c22 *ptr = regs->usp; in csky_insn_reg_get_val()
25 *ptr = regs->lr; in csky_insn_reg_get_val()
28 *ptr = regs->tls; in csky_insn_reg_get_val()
51 regs->usp = val; in csky_insn_reg_set_val()
54 regs->lr = val; in csky_insn_reg_set_val()
57 regs->tls = val; in csky_insn_reg_set_val()
85 if (regs->sr & 1) in simulate_bt16()
95 if (regs->sr & 1) in simulate_bt32()
105 if (!(regs->sr & 1)) in simulate_bf16()
211 instruction_pointer_set(regs, regs->lr); in simulate_pop16()
[all …]
/linux/arch/x86/kernel/
A Dtraps.c149 regs->ip, regs->sp, error_code); in show_signal()
239 if (report_bug(regs->ip, regs) == BUG_TRAP_TYPE_WARN) { in handle_bug()
259 if (!user_mode(regs) && handle_bug(regs)) in DEFINE_IDTENTRY_RAW()
558 regs->ip += 1; in fixup_iopl_exception()
573 if (user_mode(regs) && fixup_umip_exception(regs)) in DEFINE_IDTENTRY_ERRORCODE()
665 if (do_int3(regs)) in do_int3_user()
717 *regs = *eregs; in sync_regs()
718 return regs; in sync_regs()
742 sp = regs->sp; in vc_switch_off_ist()
784 __memcpy(&tmp.regs.ip, (void *)s->regs.sp, 5*8); in fixup_bad_iret()
[all …]
/linux/arch/parisc/kernel/
A Dtraps.c143 level, regs->iasq[0], regs->iasq[1], regs->iaoq[0], regs->iaoq[1]); in show_regs()
145 level, regs->iir, regs->isr, regs->ior); in show_regs()
261 show_regs(regs); in die_if_kernel()
290 tt = report_bug(regs->iaoq[0] & ~3, regs); in handle_break()
511 regs->iaoq[1] = regs->iaoq[0] + 4; in handle_interruption()
512 regs->iasq[0] = regs->iasq[1] = regs->sr[7]; in handle_interruption()
600 regs->gr[regs->iir & 0x1f] = mfctl(27); in handle_interruption()
602 regs->gr[regs->iir & 0x1f] = mfctl(26); in handle_interruption()
604 regs->iaoq[0] = regs->iaoq[1]; in handle_interruption()
606 regs->iasq[0] = regs->iasq[1]; in handle_interruption()
[all …]
A Dkgdb.c27 struct pt_regs *regs = args->regs; in __kgdb_notify() local
80 gr->sar = regs->sar; in pt_regs_to_gdb_regs()
81 gr->iir = regs->iir; in pt_regs_to_gdb_regs()
82 gr->isr = regs->isr; in pt_regs_to_gdb_regs()
83 gr->ior = regs->ior; in pt_regs_to_gdb_regs()
99 memcpy(regs->gr, gr->gpr, sizeof(regs->gr)); in gdb_regs_to_pt_regs()
100 memcpy(regs->fr, gr->fr, sizeof(regs->fr)); in gdb_regs_to_pt_regs()
134 regs->gr[30] = regs->ksp; in sleeping_thread_to_gdb_regs()
135 regs->iaoq[0] = regs->kpc; in sleeping_thread_to_gdb_regs()
145 regs->iaoq[0] = regs->iaoq[1]; in step_instruction_queue()
[all …]
A Dunaligned.c128 regs->isr, regs->ior, toreg); in emulate_ldh()
162 regs->isr, regs->ior, toreg); in emulate_ldw()
201 regs->isr, regs->ior, toreg); in emulate_ldd()
277 val, regs->isr, regs->ior); in emulate_sth()
312 val, regs->isr, regs->ior); in emulate_stw()
358 val, regs->isr, regs->ior); in emulate_std()
438 unsigned long newbase = R1(regs->iir)?regs->gr[R1(regs->iir)]:0; in handle_unaligned()
493 newbase += (R2(regs->iir)?regs->gr[R2(regs->iir)]:0)<<shift; in handle_unaligned()
495 newbase += (R2(regs->iir)?regs->gr[R2(regs->iir)]:0); in handle_unaligned()
531 ret = emulate_ldh(regs, R3(regs->iir)); in handle_unaligned()
[all …]
/linux/arch/powerpc/kernel/
A Dtraps.c326 addr, regs->nip, regs->link, code); in show_signal_msg()
570 #define get_reason(regs) ((regs)->esr) argument
1079 regs->nip, regs->msr, regs->trap); in DEFINE_INTERRUPT_HANDLER()
1087 regs->nip, regs->msr, regs->trap); in DEFINE_INTERRUPT_HANDLER_ASYNC()
1095 regs->nip, regs->msr, regs->trap); in DEFINE_INTERRUPT_HANDLER_NMI()
1361 regs->ccr = (regs->ccr & ~msk) | ((regs->xer >> shift) & msk); in emulate_instruction()
1817 regs->nip, regs->msr); in DEFINE_INTERRUPT_HANDLER()
1853 regs->nip, regs->msr); in DEFINE_INTERRUPT_HANDLER()
1871 regs->nip, regs->msr); in DEFINE_INTERRUPT_HANDLER()
2195 regs->trap, regs->nip, regs->msr); in unrecoverable_exception()
[all …]
/linux/drivers/media/tuners/
A Dtda18271-common.c405 regs[R_EP3] = 0x1f; in tda18271_init_regs()
406 regs[R_EP4] = 0x66; in tda18271_init_regs()
407 regs[R_EP5] = 0x81; in tda18271_init_regs()
408 regs[R_CPD] = 0xcc; in tda18271_init_regs()
409 regs[R_CD1] = 0x6c; in tda18271_init_regs()
410 regs[R_CD2] = 0x00; in tda18271_init_regs()
411 regs[R_CD3] = 0x00; in tda18271_init_regs()
412 regs[R_MPD] = 0xcd; in tda18271_init_regs()
413 regs[R_MD1] = 0x77; in tda18271_init_regs()
414 regs[R_MD2] = 0x08; in tda18271_init_regs()
[all …]
/linux/arch/mips/kernel/
A Dmips-r2-to-r6-emul.c208 regs->regs[MIPSInst_RD(ir)] = regs->regs[MIPSInst_RS(ir)]; in movf_func()
231 regs->regs[MIPSInst_RD(ir)] = regs->regs[MIPSInst_RS(ir)]; in movt_func()
307 regs->regs[MIPSInst_RD(ir)] = regs->regs[MIPSInst_RS(ir)]; in movz_func()
323 regs->regs[MIPSInst_RD(ir)] = regs->regs[MIPSInst_RS(ir)]; in movn_func()
339 regs->regs[MIPSInst_RD(ir)] = regs->hi; in mfhi_func()
355 regs->hi = regs->regs[MIPSInst_RS(ir)]; in mthi_func()
372 regs->regs[MIPSInst_RD(ir)] = regs->lo; in mflo_func()
388 regs->lo = regs->regs[MIPSInst_RS(ir)]; in mtlo_func()
917 r31 = regs->regs[31]; in mipsr2_decoder()
1119 regs->regs[31] = r31; in mipsr2_decoder()
[all …]
A Dbranch.c92 regs->regs[31] = regs->cp0_epc + in __mm_isBranchInstr()
108 regs->regs[31] = regs->cp0_epc + in __mm_isBranchInstr()
181 regs->regs[31] = regs->cp0_epc + in __mm_isBranchInstr()
233 regs->regs[31] = regs->cp0_epc + in __mm_isBranchInstr()
242 regs->regs[31] = regs->cp0_epc + in __mm_isBranchInstr()
352 regs->regs[31] = epc + 6; in __MIPS16e_compute_return_epc()
377 regs->cp0_epc = regs->regs[31]; in __MIPS16e_compute_return_epc()
441 regs->cp0_epc = regs->regs[insn.r_format.rs]; in __compute_return_epc_for_insn()
486 regs->regs[31] = epc + 8; in __compute_return_epc_for_insn()
518 regs->regs[31] = epc + 8; in __compute_return_epc_for_insn()
[all …]
/linux/arch/sh/kernel/
A Dsignal_32.c121 COPY(regs[2]); COPY(regs[3]); in restore_sigcontext()
122 COPY(regs[4]); COPY(regs[5]); in restore_sigcontext()
123 COPY(regs[6]); COPY(regs[7]); in restore_sigcontext()
124 COPY(regs[8]); COPY(regs[9]); in restore_sigcontext()
224 COPY(regs[0]); COPY(regs[1]); in setup_sigcontext()
225 COPY(regs[2]); COPY(regs[3]); in setup_sigcontext()
311 regs->regs[5] = 0; in setup_frame()
411 switch (regs->regs[0]) { in handle_syscall_restart()
415 regs->regs[0] = -EINTR; in handle_syscall_restart()
423 regs->regs[0] = save_r0; in handle_syscall_restart()
[all …]
A Dprocess_32.c40 regs->regs[15], regs->sr); in show_regs()
48 regs->regs[0], regs->regs[1], regs->regs[2], regs->regs[3]); in show_regs()
50 regs->regs[4], regs->regs[5], regs->regs[6], regs->regs[7]); in show_regs()
52 regs->regs[8], regs->regs[9], regs->regs[10], regs->regs[11]); in show_regs()
54 regs->regs[12], regs->regs[13], regs->regs[14]); in show_regs()
56 regs->mach, regs->macl, regs->gbr, regs->pr); in show_regs()
58 show_trace(NULL, (unsigned long *)regs->regs[15], regs, KERN_DEFAULT); in show_regs()
59 show_code(regs); in show_regs()
65 regs->pr = 0; in start_thread()
66 regs->sr = SR_FD; in start_thread()
[all …]
/linux/arch/arc/kernel/
A Dsignal.c70 v2abi.r30 = regs->r30; in save_arcv2_regs()
72 v2abi.r58 = regs->r58; in save_arcv2_regs()
73 v2abi.r59 = regs->r59; in save_arcv2_regs()
90 regs->r30 = v2abi.r30; in restore_arcv2_regs()
207 if (regs->sp & 3) in SYSCALL_DEFINE0()
237 return regs->r0; in SYSCALL_DEFINE0()
345 switch (regs->r0) { in arc_restart_syscall()
380 regs->r0 = regs->orig_r0; in arc_restart_syscall()
406 restart_scall = in_syscall(regs) && syscall_restartable(regs); in do_signal()
420 regs->r0 == -ERESTARTSYS || regs->r0 == -ERESTARTNOINTR) { in do_signal()
[all …]
A Dtroubleshoot.c24 regs->bta, regs->sp, regs->fp, (void *)regs->blink); in print_regs_scratch()
26 regs->lp_start, regs->lp_end, regs->lp_count); in print_regs_scratch()
33 regs->r0, regs->r1, regs->r2, in print_regs_scratch()
34 regs->r3, regs->r4, regs->r5, in print_regs_scratch()
35 regs->r6, regs->r7, regs->r8, in print_regs_scratch()
36 regs->r9, regs->r10, regs->r11, in print_regs_scratch()
47 regs->r13, regs->r14, in print_regs_callee()
48 regs->r15, regs->r16, regs->r17, in print_regs_callee()
49 regs->r18, regs->r19, regs->r20, in print_regs_callee()
50 regs->r21, regs->r22, regs->r23, in print_regs_callee()
[all …]
/linux/tools/testing/selftests/x86/
A Dptrace_syscall.c212 regs.user_arg0 != 10 || regs.user_arg1 != 11 || in test_ptrace_syscall_restart()
213 regs.user_arg2 != 12 || regs.user_arg3 != 13 || in test_ptrace_syscall_restart()
214 regs.user_arg4 != 14 || regs.user_arg5 != 15) { in test_ptrace_syscall_restart()
230 regs.user_ax = regs.user_syscall_nr; in test_ptrace_syscall_restart()
275 regs.user_arg0 != 20 || regs.user_arg1 != 21 || regs.user_arg2 != 22 || in test_ptrace_syscall_restart()
276 regs.user_arg3 != 23 || regs.user_arg4 != 24 || regs.user_arg5 != 25) { in test_ptrace_syscall_restart()
335 regs.user_arg0 != 0 || regs.user_arg1 != 0 || in test_restart_under_ptrace()
336 regs.user_arg2 != 0 || regs.user_arg3 != 0 || in test_restart_under_ptrace()
337 regs.user_arg4 != 0 || regs.user_arg5 != 0) { in test_restart_under_ptrace()
357 regs.user_arg0 != 0 || regs.user_arg1 != 0 || in test_restart_under_ptrace()
[all …]
/linux/drivers/media/platform/s5p-jpeg/
A Djpeg-hw-s5p.c21 writel(1, regs + S5P_JPG_SW_RESET); in s5p_jpeg_reset()
45 reg = readl(regs + S5P_JPGCMOD); in s5p_jpeg_input_raw_mode()
48 writel(reg, regs + S5P_JPGCMOD); in s5p_jpeg_input_raw_mode()
60 reg = readl(regs + S5P_JPGMOD); in s5p_jpeg_proc_mode()
63 writel(reg, regs + S5P_JPGMOD); in s5p_jpeg_proc_mode()
75 reg = readl(regs + S5P_JPGMOD); in s5p_jpeg_subsampling_mode()
78 writel(reg, regs + S5P_JPGMOD); in s5p_jpeg_subsampling_mode()
137 reg = readl(regs + S5P_JPGY_U); in s5p_jpeg_y()
275 writel(1, regs + S5P_JSTART); in s5p_jpeg_start()
292 readl(regs + S5P_JPGINTST); in s5p_jpeg_clear_int()
[all …]
/linux/arch/csky/abiv2/inc/abi/
A Delf.h8 pr_reg[0] = regs->pc; \
14 pr_reg[6] = regs->regs[0]; \
15 pr_reg[7] = regs->regs[1]; \
16 pr_reg[8] = regs->regs[2]; \
17 pr_reg[9] = regs->regs[3]; \
18 pr_reg[10] = regs->regs[4]; \
19 pr_reg[11] = regs->regs[5]; \
20 pr_reg[12] = regs->regs[6]; \
21 pr_reg[13] = regs->regs[7]; \
22 pr_reg[14] = regs->regs[8]; \
[all …]
/linux/arch/powerpc/include/asm/
A Dptrace.h155 #define profile_pc(regs) instruction_pointer(regs) argument
183 regs_set_return_ip(regs, regs->nip + offset); in regs_add_return_ip()
207 #define user_mode(regs) (((regs)->msr & MSR_PR) != 0) argument
231 #define IS_CRITICAL_EXC(regs) (((regs)->trap & 2) != 0) argument
232 #define IS_MCHECK_EXC(regs) (((regs)->trap & 4) != 0) argument
233 #define IS_DEBUG_EXC(regs) (((regs)->trap & 8) != 0) argument
235 #define TRAP(regs) ((regs)->trap & ~TRAP_FLAGS_MASK) argument
254 return (trap_is_scv(regs) || TRAP(regs) == 0xc00); in trap_is_syscall()
267 #define kernel_stack_pointer(regs) ((regs)->gpr[1]) argument
305 regs_set_return_msr(regs, regs->msr | MSR_RI); in regs_set_recoverable()
[all …]
/linux/tools/testing/selftests/powerpc/ptrace/
A Dptrace-syscall.c56 struct pt_regs regs; in test_ptrace_syscall_restart() local
104 regs.user_arg0 != 10 || regs.user_arg1 != 11 || in test_ptrace_syscall_restart()
105 regs.user_arg2 != 12 || regs.user_arg3 != 13 || in test_ptrace_syscall_restart()
106 regs.user_arg4 != 14 || regs.user_arg5 != 15) { in test_ptrace_syscall_restart()
126 regs.user_ip -= 4; in test_ptrace_syscall_restart()
138 regs.user_arg0 != 10 || regs.user_arg1 != 11 || in test_ptrace_syscall_restart()
139 regs.user_arg2 != 12 || regs.user_arg3 != 13 || in test_ptrace_syscall_restart()
140 regs.user_arg4 != 14 || regs.user_arg5 != 15) { in test_ptrace_syscall_restart()
186 || regs.user_arg0 != 20 || regs.user_arg1 != 21 in test_ptrace_syscall_restart()
187 || regs.user_arg2 != 22 || regs.user_arg3 != 23 in test_ptrace_syscall_restart()
[all …]
/linux/arch/x86/um/asm/
A Delf.h37 PT_REGS_BX(regs) = 0; \
38 PT_REGS_CX(regs) = 0; \
39 PT_REGS_DX(regs) = 0; \
40 PT_REGS_SI(regs) = 0; \
41 PT_REGS_DI(regs) = 0; \
42 PT_REGS_BP(regs) = 0; \
43 PT_REGS_AX(regs) = 0; \
132 PT_REGS_BX(regs) = 0; \
133 PT_REGS_CX(regs) = 0; \
134 PT_REGS_DX(regs) = 0; \
[all …]
/linux/arch/x86/entry/
A Dcommon.c50 regs->ax = sys_call_table[unr](regs); in do_syscall_x64()
67 regs->ax = x32_sys_call_table[xnr](regs); in do_syscall_x32()
80 if (!do_syscall_x64(regs, nr) && !do_syscall_x32(regs, nr) && nr != -1) { in do_syscall_64()
82 regs->ax = __x64_sys_ni_syscall(regs); in do_syscall_64()
112 regs->ax = ia32_sys_call_table[unr](regs); in do_syscall_32_irqs_on()
114 regs->ax = __ia32_sys_ni_syscall(regs); in do_syscall_32_irqs_on()
167 regs->ax = -EFAULT; in __do_fast_syscall_32()
200 regs->ip = landing_pad; in do_fast_syscall_32()
216 return regs->cs == __USER32_CS && regs->ss == __USER_DS && in do_fast_syscall_32()
231 regs->cs == __USER_CS && regs->ss == __USER_DS && in do_fast_syscall_32()
[all …]

Completed in 97 milliseconds

12345678910>>...143