Home
last modified time | relevance | path

Searched full:regs (Results 1 – 25 of 2631) sorted by relevance

12345678910>>...106

/Linux-v5.10/arch/arm64/kernel/
Dentry-common.c24 static void noinstr enter_from_kernel_mode(struct pt_regs *regs) in enter_from_kernel_mode() argument
26 regs->exit_rcu = false; in enter_from_kernel_mode()
33 regs->exit_rcu = true; in enter_from_kernel_mode()
46 static void noinstr exit_to_kernel_mode(struct pt_regs *regs) in exit_to_kernel_mode() argument
50 if (interrupts_enabled(regs)) { in exit_to_kernel_mode()
51 if (regs->exit_rcu) { in exit_to_kernel_mode()
61 if (regs->exit_rcu) in exit_to_kernel_mode()
66 void noinstr arm64_enter_nmi(struct pt_regs *regs) in arm64_enter_nmi() argument
68 regs->lockdep_hardirqs = lockdep_hardirqs_enabled(); in arm64_enter_nmi()
79 void noinstr arm64_exit_nmi(struct pt_regs *regs) in arm64_exit_nmi() argument
[all …]
/Linux-v5.10/arch/csky/kernel/probes/
Dsimulate-insn.c10 static inline bool csky_insn_reg_get_val(struct pt_regs *regs, in csky_insn_reg_get_val() argument
15 *ptr = *(&regs->a0 + index); in csky_insn_reg_get_val()
18 *ptr = *(&regs->exregs[0] + index - 16); in csky_insn_reg_get_val()
22 *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()
39 static inline bool csky_insn_reg_set_val(struct pt_regs *regs, in csky_insn_reg_set_val() argument
44 *(&regs->a0 + index) = val; in csky_insn_reg_set_val()
47 *(&regs->exregs[0] + index - 16) = val; in csky_insn_reg_set_val()
51 regs->usp = val; in csky_insn_reg_set_val()
[all …]
/Linux-v5.10/drivers/media/platform/s5p-jpeg/
Djpeg-hw-s5p.c14 #include "jpeg-regs.h"
17 void s5p_jpeg_reset(void __iomem *regs) in s5p_jpeg_reset() argument
21 writel(1, regs + S5P_JPG_SW_RESET); in s5p_jpeg_reset()
22 reg = readl(regs + S5P_JPG_SW_RESET); in s5p_jpeg_reset()
26 reg = readl(regs + S5P_JPG_SW_RESET); in s5p_jpeg_reset()
30 void s5p_jpeg_poweron(void __iomem *regs) in s5p_jpeg_poweron() argument
32 writel(S5P_POWER_ON, regs + S5P_JPGCLKCON); in s5p_jpeg_poweron()
35 void s5p_jpeg_input_raw_mode(void __iomem *regs, unsigned long mode) in s5p_jpeg_input_raw_mode() argument
45 reg = readl(regs + S5P_JPGCMOD); in s5p_jpeg_input_raw_mode()
48 writel(reg, regs + S5P_JPGCMOD); in s5p_jpeg_input_raw_mode()
[all …]
Djpeg-hw-exynos3250.c15 #include "jpeg-regs.h"
18 void exynos3250_jpeg_reset(void __iomem *regs) in exynos3250_jpeg_reset() argument
23 writel(1, regs + EXYNOS3250_SW_RESET); in exynos3250_jpeg_reset()
28 reg = readl(regs + EXYNOS3250_SW_RESET); in exynos3250_jpeg_reset()
35 writel(1, regs + EXYNOS3250_JPGDRI); in exynos3250_jpeg_reset()
38 reg = readl(regs + EXYNOS3250_JPGDRI); in exynos3250_jpeg_reset()
41 writel(0, regs + EXYNOS3250_JPGDRI); in exynos3250_jpeg_reset()
44 void exynos3250_jpeg_poweron(void __iomem *regs) in exynos3250_jpeg_poweron() argument
46 writel(EXYNOS3250_POWER_ON, regs + EXYNOS3250_JPGCLKCON); in exynos3250_jpeg_poweron()
49 void exynos3250_jpeg_set_dma_num(void __iomem *regs) in exynos3250_jpeg_set_dma_num() argument
[all …]
/Linux-v5.10/arch/hexagon/kernel/
Dvm_events.c16 * @regs: pointer to pt_regs
22 void show_regs(struct pt_regs *regs) in show_regs() argument
27 regs->restart_r0, regs->syscall_nr); in show_regs()
28 printk(KERN_EMERG "preds: \t\t0x%08lx\n", regs->preds); 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()
37 printk(KERN_EMERG "r0: \t0x%08lx %08lx %08lx %08lx\n", regs->r00, in show_regs()
38 regs->r01, in show_regs()
[all …]
Dsignal.c28 static void __user *get_sigframe(struct ksignal *ksig, struct pt_regs *regs, in get_sigframe() argument
31 unsigned long sp = sigsp(regs->r29, ksig); in get_sigframe()
36 static int setup_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc) in setup_sigcontext() argument
41 err |= copy_to_user(&sc->sc_regs.r0, &regs->r00, in setup_sigcontext()
44 err |= __put_user(regs->sa0, &sc->sc_regs.sa0); in setup_sigcontext()
45 err |= __put_user(regs->lc0, &sc->sc_regs.lc0); in setup_sigcontext()
46 err |= __put_user(regs->sa1, &sc->sc_regs.sa1); in setup_sigcontext()
47 err |= __put_user(regs->lc1, &sc->sc_regs.lc1); in setup_sigcontext()
48 err |= __put_user(regs->m0, &sc->sc_regs.m0); in setup_sigcontext()
49 err |= __put_user(regs->m1, &sc->sc_regs.m1); in setup_sigcontext()
[all …]
/Linux-v5.10/arch/parisc/include/asm/
Dassembly.h162 .macro save_general regs
163 STREG %r1, PT_GR1 (\regs)
164 STREG %r2, PT_GR2 (\regs)
165 STREG %r3, PT_GR3 (\regs)
166 STREG %r4, PT_GR4 (\regs)
167 STREG %r5, PT_GR5 (\regs)
168 STREG %r6, PT_GR6 (\regs)
169 STREG %r7, PT_GR7 (\regs)
170 STREG %r8, PT_GR8 (\regs)
171 STREG %r9, PT_GR9 (\regs)
[all …]
/Linux-v5.10/arch/csky/abiv2/inc/abi/
Delf.h7 #define ELF_CORE_COPY_REGS(pr_reg, regs) do { \ argument
8 pr_reg[0] = regs->pc; \
9 pr_reg[1] = regs->a1; \
10 pr_reg[2] = regs->a0; \
11 pr_reg[3] = regs->sr; \
12 pr_reg[4] = regs->a2; \
13 pr_reg[5] = regs->a3; \
14 pr_reg[6] = regs->regs[0]; \
15 pr_reg[7] = regs->regs[1]; \
16 pr_reg[8] = regs->regs[2]; \
[all …]
/Linux-v5.10/arch/parisc/kernel/
Dkgdb.c27 struct pt_regs *regs = args->regs; in __kgdb_notify() local
29 if (kgdb_handle_exception(1, args->signr, cmd, regs)) in __kgdb_notify()
62 void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs) in pt_regs_to_gdb_regs() argument
68 memcpy(gr->gpr, regs->gr, sizeof(gr->gpr)); in pt_regs_to_gdb_regs()
69 memcpy(gr->fr, regs->fr, sizeof(gr->fr)); in pt_regs_to_gdb_regs()
71 gr->sr0 = regs->sr[0]; in pt_regs_to_gdb_regs()
72 gr->sr1 = regs->sr[1]; in pt_regs_to_gdb_regs()
73 gr->sr2 = regs->sr[2]; in pt_regs_to_gdb_regs()
74 gr->sr3 = regs->sr[3]; in pt_regs_to_gdb_regs()
75 gr->sr4 = regs->sr[4]; in pt_regs_to_gdb_regs()
[all …]
/Linux-v5.10/arch/openrisc/kernel/
Dtraps.c59 void show_registers(struct pt_regs *regs) in show_registers() argument
65 esp = (unsigned long)(regs->sp); in show_registers()
66 if (user_mode(regs)) in show_registers()
71 smp_processor_id(), regs->pc, regs->sr, regs->sp); in show_registers()
73 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()
[all …]
/Linux-v5.10/arch/sh/include/asm/
Dsyscall_32.h13 struct pt_regs *regs) in syscall_get_nr() argument
15 return (regs->tra >= 0) ? regs->regs[3] : -1L; in syscall_get_nr()
19 struct pt_regs *regs) in syscall_rollback() argument
28 struct pt_regs *regs) in syscall_get_error() argument
30 return IS_ERR_VALUE(regs->regs[0]) ? regs->regs[0] : 0; in syscall_get_error()
34 struct pt_regs *regs) in syscall_get_return_value() argument
36 return regs->regs[0]; in syscall_get_return_value()
40 struct pt_regs *regs, in syscall_set_return_value() argument
43 regs->regs[0] = (long) error ?: val; in syscall_set_return_value()
47 struct pt_regs *regs, in syscall_get_arguments() argument
[all …]
/Linux-v5.10/arch/sh/kernel/
Dsignal_32.c90 struct pt_regs *regs) in save_sigcontext_fpu() argument
108 unlazy_fpu(tsk, regs); in save_sigcontext_fpu()
115 restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc, int *r0_p) in restore_sigcontext() argument
119 #define COPY(x) err |= __get_user(regs->x, &sc->sc_##x) in restore_sigcontext()
120 COPY(regs[1]); in restore_sigcontext()
121 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()
125 COPY(regs[10]); COPY(regs[11]); in restore_sigcontext()
[all …]
/Linux-v5.10/arch/nds32/kernel/
Dsignal.c25 static inline int restore_sigcontext_fpu(struct pt_regs *regs, in restore_sigcontext_fpu() argument
43 disable_ptreg_fpu(regs); in restore_sigcontext_fpu()
47 clear_fpu(regs); in restore_sigcontext_fpu()
54 static inline int setup_sigcontext_fpu(struct pt_regs *regs, in setup_sigcontext_fpu() argument
79 static int restore_sigframe(struct pt_regs *regs, in restore_sigframe() argument
90 __get_user_error(regs->uregs[0], &sf->uc.uc_mcontext.nds32_r0, err); in restore_sigframe()
91 __get_user_error(regs->uregs[1], &sf->uc.uc_mcontext.nds32_r1, err); in restore_sigframe()
92 __get_user_error(regs->uregs[2], &sf->uc.uc_mcontext.nds32_r2, err); in restore_sigframe()
93 __get_user_error(regs->uregs[3], &sf->uc.uc_mcontext.nds32_r3, err); in restore_sigframe()
94 __get_user_error(regs->uregs[4], &sf->uc.uc_mcontext.nds32_r4, err); in restore_sigframe()
[all …]
/Linux-v5.10/arch/arc/kernel/
Dsignal.c23 * -In stash_usr_regs( ) and restore_usr_regs( ), save/restore of user regs
65 stash_usr_regs(struct rt_sigframe __user *sf, struct pt_regs *regs, in stash_usr_regs() argument
71 uregs.scratch.bta = regs->bta; in stash_usr_regs()
72 uregs.scratch.lp_start = regs->lp_start; in stash_usr_regs()
73 uregs.scratch.lp_end = regs->lp_end; in stash_usr_regs()
74 uregs.scratch.lp_count = regs->lp_count; in stash_usr_regs()
75 uregs.scratch.status32 = regs->status32; in stash_usr_regs()
76 uregs.scratch.ret = regs->ret; in stash_usr_regs()
77 uregs.scratch.blink = regs->blink; in stash_usr_regs()
78 uregs.scratch.fp = regs->fp; in stash_usr_regs()
[all …]
/Linux-v5.10/arch/arm64/include/asm/
Dptrace.h123 #define compat_usr(x) regs[(x)]
124 #define compat_fp regs[11]
125 #define compat_sp regs[13]
126 #define compat_lr regs[14]
127 #define compat_sp_hyp regs[15]
128 #define compat_lr_irq regs[16]
129 #define compat_sp_irq regs[17]
130 #define compat_lr_svc regs[18]
131 #define compat_sp_svc regs[19]
132 #define compat_lr_abt regs[20]
[all …]
/Linux-v5.10/tools/testing/selftests/x86/
Dptrace_syscall.c53 * Helper to invoke int80 with controlled regs and capture the final regs.
75 * controlled regs and capture the final regs. This is so nasty that it
152 printf("[FAIL]\tgetpid() failed to preserve regs\n"); in test_sys32_regs()
155 printf("[OK]\tgetpid() preserves regs\n"); in test_sys32_regs()
167 printf("[FAIL]\tkill(getpid(), SIGUSR1) failed to preserve regs\n"); in test_sys32_regs()
170 printf("[OK]\tkill(getpid(), SIGUSR1) preserves regs\n"); in test_sys32_regs()
201 struct user_regs_struct regs; in test_ptrace_syscall_restart() local
208 if (ptrace(PTRACE_GETREGS, chld, 0, &regs) != 0) in test_ptrace_syscall_restart()
211 if (regs.user_syscall_nr != SYS_gettid || in test_ptrace_syscall_restart()
212 regs.user_arg0 != 10 || regs.user_arg1 != 11 || in test_ptrace_syscall_restart()
[all …]
/Linux-v5.10/drivers/memory/tegra/
Dtegra186.c26 } regs; member
36 void __iomem *regs; member
49 override = readl(mc->regs + client->regs.override); in tegra186_mc_program_sid()
50 security = readl(mc->regs + client->regs.security); in tegra186_mc_program_sid()
57 writel(client->sid, mc->regs + client->regs.override); in tegra186_mc_program_sid()
59 override = readl(mc->regs + client->regs.override); in tegra186_mc_program_sid()
60 security = readl(mc->regs + client->regs.security); in tegra186_mc_program_sid()
72 .regs = {
79 .regs = {
86 .regs = {
[all …]
/Linux-v5.10/arch/mips/kernel/
Dbranch.c29 int __isa_exception_epc(struct pt_regs *regs) in __isa_exception_epc() argument
32 long epc = regs->cp0_epc; in __isa_exception_epc()
59 int __mm_isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn, in __mm_isBranchInstr() argument
79 regs->regs[insn.mm_i_format.rt] = in __mm_isBranchInstr()
80 regs->cp0_epc + in __mm_isBranchInstr()
83 *contpc = regs->regs[insn.mm_i_format.rs]; in __mm_isBranchInstr()
92 regs->regs[31] = regs->cp0_epc + in __mm_isBranchInstr()
97 if ((long)regs->regs[insn.mm_i_format.rs] < 0) in __mm_isBranchInstr()
98 *contpc = regs->cp0_epc + in __mm_isBranchInstr()
102 *contpc = regs->cp0_epc + in __mm_isBranchInstr()
[all …]
/Linux-v5.10/arch/powerpc/include/asm/
Dptrace.h8 * this should only contain volatile regs
114 static inline unsigned long instruction_pointer(struct pt_regs *regs) in instruction_pointer() argument
116 return regs->nip; in instruction_pointer()
119 static inline void instruction_pointer_set(struct pt_regs *regs, in instruction_pointer_set() argument
122 regs->nip = val; in instruction_pointer_set()
125 static inline unsigned long user_stack_pointer(struct pt_regs *regs) in user_stack_pointer() argument
127 return regs->gpr[1]; in user_stack_pointer()
130 static inline unsigned long frame_pointer(struct pt_regs *regs) in frame_pointer() argument
136 extern unsigned long profile_pc(struct pt_regs *regs);
138 #define profile_pc(regs) instruction_pointer(regs) argument
[all …]
/Linux-v5.10/drivers/media/tuners/
Dtda18271-common.c57 unsigned char *regs = priv->tda18271_regs; in tda18271_dump_regs() local
60 tda_reg("ID_BYTE = 0x%02x\n", 0xff & regs[R_ID]); in tda18271_dump_regs()
61 tda_reg("THERMO_BYTE = 0x%02x\n", 0xff & regs[R_TM]); in tda18271_dump_regs()
62 tda_reg("POWER_LEVEL_BYTE = 0x%02x\n", 0xff & regs[R_PL]); in tda18271_dump_regs()
63 tda_reg("EASY_PROG_BYTE_1 = 0x%02x\n", 0xff & regs[R_EP1]); in tda18271_dump_regs()
64 tda_reg("EASY_PROG_BYTE_2 = 0x%02x\n", 0xff & regs[R_EP2]); in tda18271_dump_regs()
65 tda_reg("EASY_PROG_BYTE_3 = 0x%02x\n", 0xff & regs[R_EP3]); in tda18271_dump_regs()
66 tda_reg("EASY_PROG_BYTE_4 = 0x%02x\n", 0xff & regs[R_EP4]); in tda18271_dump_regs()
67 tda_reg("EASY_PROG_BYTE_5 = 0x%02x\n", 0xff & regs[R_EP5]); in tda18271_dump_regs()
68 tda_reg("CAL_POST_DIV_BYTE = 0x%02x\n", 0xff & regs[R_CPD]); in tda18271_dump_regs()
[all …]
/Linux-v5.10/arch/x86/um/asm/
Delf.h36 #define ELF_PLAT_INIT(regs, load_addr) do { \ argument
37 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; \
48 #define ELF_CORE_COPY_REGS(pr_reg, regs) do { \ argument
49 pr_reg[0] = PT_REGS_BX(regs); \
[all …]
/Linux-v5.10/arch/csky/abiv1/inc/abi/
Delf.h6 #define ELF_CORE_COPY_REGS(pr_reg, regs) do { \ argument
7 pr_reg[0] = regs->pc; \
8 pr_reg[1] = regs->regs[9]; \
9 pr_reg[2] = regs->usp; \
10 pr_reg[3] = regs->sr; \
11 pr_reg[4] = regs->a0; \
12 pr_reg[5] = regs->a1; \
13 pr_reg[6] = regs->a2; \
14 pr_reg[7] = regs->a3; \
15 pr_reg[8] = regs->regs[0]; \
[all …]
/Linux-v5.10/arch/csky/kernel/
Dtraps.c86 void die(struct pt_regs *regs, const char *str) in die() argument
99 show_regs(regs); in die()
100 show_stack(current, (unsigned long *)regs->regs[4], KERN_INFO); in die()
102 ret = notify_die(DIE_OOPS, str, regs, 0, trap_no(regs), SIGSEGV); in die()
117 void do_trap(struct pt_regs *regs, int signo, int code, unsigned long addr) in do_trap() argument
125 print_vma_addr(KERN_CONT " in ", instruction_pointer(regs)); in do_trap()
127 show_regs(regs); in do_trap()
133 static void do_trap_error(struct pt_regs *regs, int signo, int code, in do_trap_error() argument
136 current->thread.trap_no = trap_no(regs); in do_trap_error()
138 if (user_mode(regs)) { in do_trap_error()
[all …]
/Linux-v5.10/arch/hexagon/include/asm/
Delf.h91 #define CS_COPYREGS(DEST,REGS) \ argument
93 DEST.cs0 = REGS->cs0;\
94 DEST.cs1 = REGS->cs1;\
97 #define CS_COPYREGS(DEST,REGS) argument
100 #define ELF_CORE_COPY_REGS(DEST, REGS) \ argument
102 DEST.r0 = REGS->r00; \
103 DEST.r1 = REGS->r01; \
104 DEST.r2 = REGS->r02; \
105 DEST.r3 = REGS->r03; \
106 DEST.r4 = REGS->r04; \
[all …]
/Linux-v5.10/arch/nios2/kernel/
Dsignal.c37 static inline int rt_restore_ucontext(struct pt_regs *regs, in rt_restore_ucontext() argument
52 err |= __get_user(regs->r1, &gregs[0]); in rt_restore_ucontext()
53 err |= __get_user(regs->r2, &gregs[1]); in rt_restore_ucontext()
54 err |= __get_user(regs->r3, &gregs[2]); in rt_restore_ucontext()
55 err |= __get_user(regs->r4, &gregs[3]); in rt_restore_ucontext()
56 err |= __get_user(regs->r5, &gregs[4]); in rt_restore_ucontext()
57 err |= __get_user(regs->r6, &gregs[5]); in rt_restore_ucontext()
58 err |= __get_user(regs->r7, &gregs[6]); in rt_restore_ucontext()
59 err |= __get_user(regs->r8, &gregs[7]); in rt_restore_ucontext()
60 err |= __get_user(regs->r9, &gregs[8]); in rt_restore_ucontext()
[all …]

12345678910>>...106