Home
last modified time | relevance | path

Searched refs:cregs (Results 1 - 25 of 37) sorted by relevance

12

/kernel/linux/linux-6.6/arch/riscv/include/asm/
H A Dcompat.h55 static inline void regs_to_cregs(struct compat_user_regs_struct *cregs, in regs_to_cregs() argument
58 cregs->pc = (compat_ulong_t) regs->epc; in regs_to_cregs()
59 cregs->ra = (compat_ulong_t) regs->ra; in regs_to_cregs()
60 cregs->sp = (compat_ulong_t) regs->sp; in regs_to_cregs()
61 cregs->gp = (compat_ulong_t) regs->gp; in regs_to_cregs()
62 cregs->tp = (compat_ulong_t) regs->tp; in regs_to_cregs()
63 cregs->t0 = (compat_ulong_t) regs->t0; in regs_to_cregs()
64 cregs->t1 = (compat_ulong_t) regs->t1; in regs_to_cregs()
65 cregs->t2 = (compat_ulong_t) regs->t2; in regs_to_cregs()
66 cregs in regs_to_cregs()
92 cregs_to_regs(struct compat_user_regs_struct *cregs, struct pt_regs *regs) cregs_to_regs() argument
[all...]
/kernel/linux/linux-5.10/arch/arc/kernel/
H A Dptrace.c24 const struct callee_regs *cregs = task_callee_regs(target); in genregs_get() local
52 membuf_store(&to, cregs->r25); in genregs_get()
53 membuf_store(&to, cregs->r24); in genregs_get()
54 membuf_store(&to, cregs->r23); in genregs_get()
55 membuf_store(&to, cregs->r22); in genregs_get()
56 membuf_store(&to, cregs->r21); in genregs_get()
57 membuf_store(&to, cregs->r20); in genregs_get()
58 membuf_store(&to, cregs->r19); in genregs_get()
59 membuf_store(&to, cregs->r18); in genregs_get()
60 membuf_store(&to, cregs in genregs_get()
84 const struct callee_regs *cregs = task_callee_regs(target); genregs_set() local
[all...]
H A Ddisasm.c22 int userspace, struct pt_regs *regs, struct callee_regs *cregs) in disasm_instr()
115 state->src1 = get_reg(state->wb_reg, regs, cregs); in disasm_instr()
134 state->src1 = get_reg(state->src1, regs, cregs); in disasm_instr()
142 state->src2 = get_reg(state->wb_reg, regs, cregs); in disasm_instr()
187 state->target = get_reg(fieldC, regs, cregs); in disasm_instr()
222 cregs); in disasm_instr()
230 cregs); in disasm_instr()
285 state->src1 = get_reg(FIELD_S_B(state->words[0]), regs, cregs); in disasm_instr()
286 state->src2 = get_reg(FIELD_S_C(state->words[0]), regs, cregs); in disasm_instr()
305 regs, cregs); in disasm_instr()
21 disasm_instr(unsigned long addr, struct disasm_state *state, int userspace, struct pt_regs *regs, struct callee_regs *cregs) disasm_instr() argument
432 get_reg(int reg, struct pt_regs *regs, struct callee_regs *cregs) get_reg() argument
459 set_reg(int reg, long val, struct pt_regs *regs, struct callee_regs *cregs) set_reg() argument
500 disasm_next_pc(unsigned long pc, struct pt_regs *regs, struct callee_regs *cregs, unsigned long *next_pc, unsigned long *tgt_if_br) disasm_next_pc() argument
[all...]
H A Dunaligned.c133 struct callee_regs *cregs) in fixup_load()
139 set_reg(state->wb_reg, state->src1 + state->src2, regs, cregs); in fixup_load()
155 set_reg(state->dest, val, regs, cregs); in fixup_load()
163 struct callee_regs *cregs) in fixup_store()
167 set_reg(state->wb_reg, state->src2 + state->src3, regs, cregs); in fixup_store()
174 regs, cregs); in fixup_store()
177 regs, cregs); in fixup_store()
199 struct callee_regs *cregs) in misaligned_fixup()
223 disasm_instr(regs->ret, &state, 1, regs, cregs); in misaligned_fixup()
233 fixup_load(&state, regs, cregs); in misaligned_fixup()
132 fixup_load(struct disasm_state *state, struct pt_regs *regs, struct callee_regs *cregs) fixup_load() argument
162 fixup_store(struct disasm_state *state, struct pt_regs *regs, struct callee_regs *cregs) fixup_store() argument
198 misaligned_fixup(unsigned long address, struct pt_regs *regs, struct callee_regs *cregs) misaligned_fixup() argument
[all...]
H A Dkgdb.c15 struct callee_regs *cregs) in to_gdb_regs()
20 gdb_regs[_R0 + regno] = get_reg(regno, kernel_regs, cregs); in to_gdb_regs()
38 struct callee_regs *cregs) in from_gdb_regs()
43 set_reg(regno, gdb_regs[regno + _R0], kernel_regs, cregs); in from_gdb_regs()
14 to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *kernel_regs, struct callee_regs *cregs) to_gdb_regs() argument
37 from_gdb_regs(unsigned long *gdb_regs, struct pt_regs *kernel_regs, struct callee_regs *cregs) from_gdb_regs() argument
H A Dtroubleshoot.c171 struct callee_regs *cregs = (struct callee_regs *)tsk->thread.callee_reg; in show_regs() local
207 if (cregs) in show_regs()
208 print_regs_callee(cregs); in show_regs()
/kernel/linux/linux-6.6/arch/arc/kernel/
H A Ddisasm.c22 int userspace, struct pt_regs *regs, struct callee_regs *cregs) in disasm_instr()
115 state->src1 = get_reg(state->wb_reg, regs, cregs); in disasm_instr()
134 state->src1 = get_reg(state->src1, regs, cregs); in disasm_instr()
142 state->src2 = get_reg(state->wb_reg, regs, cregs); in disasm_instr()
187 state->target = get_reg(fieldC, regs, cregs); in disasm_instr()
222 cregs); in disasm_instr()
230 cregs); in disasm_instr()
285 state->src1 = get_reg(FIELD_S_B(state->words[0]), regs, cregs); in disasm_instr()
286 state->src2 = get_reg(FIELD_S_C(state->words[0]), regs, cregs); in disasm_instr()
305 regs, cregs); in disasm_instr()
21 disasm_instr(unsigned long addr, struct disasm_state *state, int userspace, struct pt_regs *regs, struct callee_regs *cregs) disasm_instr() argument
432 get_reg(int reg, struct pt_regs *regs, struct callee_regs *cregs) get_reg() argument
476 set_reg(int reg, long val, struct pt_regs *regs, struct callee_regs *cregs) set_reg() argument
560 disasm_next_pc(unsigned long pc, struct pt_regs *regs, struct callee_regs *cregs, unsigned long *next_pc, unsigned long *tgt_if_br) disasm_next_pc() argument
[all...]
H A Dptrace.c107 const struct callee_regs *cregs = task_callee_regs(target); in genregs_get() local
135 membuf_store(&to, cregs->r25); in genregs_get()
136 membuf_store(&to, cregs->r24); in genregs_get()
137 membuf_store(&to, cregs->r23); in genregs_get()
138 membuf_store(&to, cregs->r22); in genregs_get()
139 membuf_store(&to, cregs->r21); in genregs_get()
140 membuf_store(&to, cregs->r20); in genregs_get()
141 membuf_store(&to, cregs->r19); in genregs_get()
142 membuf_store(&to, cregs->r18); in genregs_get()
143 membuf_store(&to, cregs in genregs_get()
167 const struct callee_regs *cregs = task_callee_regs(target); genregs_set() local
[all...]
H A Dunaligned.c133 struct callee_regs *cregs) in fixup_load()
139 set_reg(state->wb_reg, state->src1 + state->src2, regs, cregs); in fixup_load()
155 set_reg(state->dest, val, regs, cregs); in fixup_load()
163 struct callee_regs *cregs) in fixup_store()
167 set_reg(state->wb_reg, state->src2 + state->src3, regs, cregs); in fixup_store()
174 regs, cregs); in fixup_store()
177 regs, cregs); in fixup_store()
199 struct callee_regs *cregs) in misaligned_fixup()
223 disasm_instr(regs->ret, &state, 1, regs, cregs); in misaligned_fixup()
233 fixup_load(&state, regs, cregs); in misaligned_fixup()
132 fixup_load(struct disasm_state *state, struct pt_regs *regs, struct callee_regs *cregs) fixup_load() argument
162 fixup_store(struct disasm_state *state, struct pt_regs *regs, struct callee_regs *cregs) fixup_store() argument
198 misaligned_fixup(unsigned long address, struct pt_regs *regs, struct callee_regs *cregs) misaligned_fixup() argument
[all...]
H A Dkgdb.c15 struct callee_regs *cregs) in to_gdb_regs()
20 gdb_regs[_R0 + regno] = get_reg(regno, kernel_regs, cregs); in to_gdb_regs()
38 struct callee_regs *cregs) in from_gdb_regs()
43 set_reg(regno, gdb_regs[regno + _R0], kernel_regs, cregs); in from_gdb_regs()
14 to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *kernel_regs, struct callee_regs *cregs) to_gdb_regs() argument
37 from_gdb_regs(unsigned long *gdb_regs, struct pt_regs *kernel_regs, struct callee_regs *cregs) from_gdb_regs() argument
H A Dtroubleshoot.c171 struct callee_regs *cregs = (struct callee_regs *)tsk->thread.callee_reg; in show_regs() local
208 if (cregs) in show_regs()
209 print_regs_callee(cregs); in show_regs()
/kernel/linux/linux-6.6/arch/parisc/kernel/
H A Dprocess.c207 struct pt_regs *cregs = &(p->thread.regs); in copy_thread() local
218 memset(cregs, 0, sizeof(struct pt_regs)); in copy_thread()
224 cregs->ksp = (unsigned long) stack + FRAME_SIZE + PT_SZ_ALGN; in copy_thread()
225 cregs->kpc = (unsigned long) &ret_from_kernel_thread; in copy_thread()
231 cregs->gr[27] = ((unsigned long *)args->fn)[3]; in copy_thread()
232 cregs->gr[26] = ((unsigned long *)args->fn)[2]; in copy_thread()
234 cregs->gr[26] = (unsigned long) args->fn; in copy_thread()
236 cregs->gr[25] = (unsigned long) args->fn_arg; in copy_thread()
245 cregs->gr[30] = usp; in copy_thread()
247 cregs in copy_thread()
[all...]
/kernel/linux/linux-5.10/arch/parisc/kernel/
H A Dprocess.c199 struct pt_regs *cregs = &(p->thread.regs); in copy_thread() local
210 memset(cregs, 0, sizeof(struct pt_regs)); in copy_thread()
216 cregs->ksp = (unsigned long)stack + THREAD_SZ_ALGN + FRAME_SIZE; in copy_thread()
217 cregs->kpc = (unsigned long) &ret_from_kernel_thread; in copy_thread()
223 cregs->gr[27] = ((unsigned long *)usp)[3]; in copy_thread()
224 cregs->gr[26] = ((unsigned long *)usp)[2]; in copy_thread()
226 cregs->gr[26] = usp; in copy_thread()
228 cregs->gr[25] = kthread_arg; in copy_thread()
237 cregs->gr[30] = usp; in copy_thread()
239 cregs in copy_thread()
[all...]
/kernel/linux/linux-5.10/drivers/hwmon/
H A Dltc4245.c59 u8 cregs[0x08]; member
105 gpio_curr = (data->cregs[LTC4245_GPIO] & 0xc0) >> 6; in ltc4245_update_gpios()
119 gpio_reg = (data->cregs[LTC4245_GPIO] & 0x3f) | ((gpio_next + 1) << 6); in ltc4245_update_gpios()
125 data->cregs[LTC4245_GPIO] = gpio_reg; in ltc4245_update_gpios()
140 for (i = 0; i < ARRAY_SIZE(data->cregs); i++) { in ltc4245_update_device()
143 data->cregs[i] = 0; in ltc4245_update_device()
145 data->cregs[i] = val; in ltc4245_update_device()
278 *val = !!(data->cregs[LTC4245_FAULT1] & BIT(channel + 4)); in ltc4245_read_curr()
304 *val = !!(data->cregs[LTC4245_FAULT1] & BIT(channel)); in ltc4245_read_in()
306 *val = !!(data->cregs[LTC4245_FAULT in ltc4245_read_in()
[all...]
/kernel/linux/linux-6.6/drivers/hwmon/
H A Dltc4245.c59 u8 cregs[0x08]; member
105 gpio_curr = (data->cregs[LTC4245_GPIO] & 0xc0) >> 6; in ltc4245_update_gpios()
119 gpio_reg = (data->cregs[LTC4245_GPIO] & 0x3f) | ((gpio_next + 1) << 6); in ltc4245_update_gpios()
125 data->cregs[LTC4245_GPIO] = gpio_reg; in ltc4245_update_gpios()
140 for (i = 0; i < ARRAY_SIZE(data->cregs); i++) { in ltc4245_update_device()
143 data->cregs[i] = 0; in ltc4245_update_device()
145 data->cregs[i] = val; in ltc4245_update_device()
278 *val = !!(data->cregs[LTC4245_FAULT1] & BIT(channel + 4)); in ltc4245_read_curr()
304 *val = !!(data->cregs[LTC4245_FAULT1] & BIT(channel)); in ltc4245_read_in()
306 *val = !!(data->cregs[LTC4245_FAULT in ltc4245_read_in()
[all...]
/kernel/linux/linux-6.6/arch/riscv/kernel/
H A Dcompat_signal.c106 struct compat_user_regs_struct cregs; in compat_restore_sigcontext() local
109 err = __copy_from_user(&cregs, &sc->sc_regs, sizeof(sc->sc_regs)); in compat_restore_sigcontext()
111 cregs_to_regs(&cregs, regs); in compat_restore_sigcontext()
163 struct compat_user_regs_struct cregs; in compat_setup_sigcontext() local
166 regs_to_cregs(&cregs, regs); in compat_setup_sigcontext()
169 err = __copy_to_user(&sc->sc_regs, &cregs, sizeof(sc->sc_regs)); in compat_setup_sigcontext()
H A Dptrace.c313 struct compat_user_regs_struct cregs; in compat_riscv_gpr_get() local
315 regs_to_cregs(&cregs, task_pt_regs(target)); in compat_riscv_gpr_get()
317 return membuf_write(&to, &cregs, in compat_riscv_gpr_get()
327 struct compat_user_regs_struct cregs; in compat_riscv_gpr_set() local
329 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &cregs, 0, -1); in compat_riscv_gpr_set()
331 cregs_to_regs(&cregs, task_pt_regs(target)); in compat_riscv_gpr_set()
/kernel/linux/linux-5.10/drivers/net/ethernet/sun/
H A Dsunqe.c87 void __iomem *cregs = qep->qcregs; in qe_stop() local
107 sbus_writel(CREG_CTRL_RESET, cregs + CREG_CTRL); in qe_stop()
110 u32 tmp = sbus_readl(cregs + CREG_CTRL); in qe_stop()
144 void __iomem *cregs = qep->qcregs; in qe_init() local
157 sbus_writel(qblk_dvma + qib_offset(qe_rxd, 0), cregs + CREG_RXDS); in qe_init()
158 sbus_writel(qblk_dvma + qib_offset(qe_txd, 0), cregs + CREG_TXDS); in qe_init()
161 sbus_writel(0, cregs + CREG_RIMASK); in qe_init()
162 sbus_writel(1, cregs + CREG_TIMASK); in qe_init()
164 sbus_writel(0, cregs + CREG_QMASK); in qe_init()
165 sbus_writel(CREG_MMASK_RXCOLL, cregs in qe_init()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/sun/
H A Dsunqe.c87 void __iomem *cregs = qep->qcregs; in qe_stop() local
107 sbus_writel(CREG_CTRL_RESET, cregs + CREG_CTRL); in qe_stop()
110 u32 tmp = sbus_readl(cregs + CREG_CTRL); in qe_stop()
144 void __iomem *cregs = qep->qcregs; in qe_init() local
157 sbus_writel(qblk_dvma + qib_offset(qe_rxd, 0), cregs + CREG_RXDS); in qe_init()
158 sbus_writel(qblk_dvma + qib_offset(qe_txd, 0), cregs + CREG_TXDS); in qe_init()
161 sbus_writel(0, cregs + CREG_RIMASK); in qe_init()
162 sbus_writel(1, cregs + CREG_TIMASK); in qe_init()
164 sbus_writel(0, cregs + CREG_QMASK); in qe_init()
165 sbus_writel(CREG_MMASK_RXCOLL, cregs in qe_init()
[all...]
/kernel/linux/linux-5.10/arch/arc/include/asm/
H A Ddisasm.h106 int userspace, struct pt_regs *regs, struct callee_regs *cregs);
108 *cregs, unsigned long *fall_thru, unsigned long *target);
109 long get_reg(int reg, struct pt_regs *regs, struct callee_regs *cregs);
111 struct callee_regs *cregs);
H A Dunaligned.h16 struct callee_regs *cregs);
20 struct callee_regs *cregs) in misaligned_fixup()
19 misaligned_fixup(unsigned long address, struct pt_regs *regs, struct callee_regs *cregs) misaligned_fixup() argument
/kernel/linux/linux-6.6/arch/arc/include/asm/
H A Ddisasm.h106 int userspace, struct pt_regs *regs, struct callee_regs *cregs);
108 *cregs, unsigned long *fall_thru, unsigned long *target);
109 long get_reg(int reg, struct pt_regs *regs, struct callee_regs *cregs);
111 struct callee_regs *cregs);
H A Dunaligned.h16 struct callee_regs *cregs);
20 struct callee_regs *cregs) in misaligned_fixup()
19 misaligned_fixup(unsigned long address, struct pt_regs *regs, struct callee_regs *cregs) misaligned_fixup() argument
/kernel/linux/linux-5.10/arch/sparc/mm/
H A Dleon_mm.c253 struct leon3_cacheregs cregs; in leon_flush_needed() local
254 leon3_getCacheRegs(&cregs); in leon_flush_needed()
255 sets = (cregs.dccr & LEON3_XCCR_SETS_MASK) >> 24; in leon_flush_needed()
257 ssize = 1 << ((cregs.dccr & LEON3_XCCR_SSIZE_MASK) >> 20); in leon_flush_needed()
/kernel/linux/linux-6.6/arch/sparc/mm/
H A Dleon_mm.c253 struct leon3_cacheregs cregs; in leon_flush_needed() local
254 leon3_getCacheRegs(&cregs); in leon_flush_needed()
255 sets = (cregs.dccr & LEON3_XCCR_SETS_MASK) >> 24; in leon_flush_needed()
257 ssize = 1 << ((cregs.dccr & LEON3_XCCR_SSIZE_MASK) >> 20); in leon_flush_needed()

Completed in 11 milliseconds

12