| /linux/arch/riscv/include/asm/ |
| H A D | compat.h | 73 static inline void regs_to_cregs(struct compat_user_regs_struct *cregs, in regs_to_cregs() argument 76 cregs->pc = (compat_ulong_t) regs->epc; in regs_to_cregs() 77 cregs->ra = (compat_ulong_t) regs->ra; in regs_to_cregs() 78 cregs->sp = (compat_ulong_t) regs->sp; in regs_to_cregs() 79 cregs->gp = (compat_ulong_t) regs->gp; in regs_to_cregs() 80 cregs->tp = (compat_ulong_t) regs->tp; in regs_to_cregs() 81 cregs->t0 = (compat_ulong_t) regs->t0; in regs_to_cregs() 82 cregs->t1 = (compat_ulong_t) regs->t1; in regs_to_cregs() 83 cregs->t2 = (compat_ulong_t) regs->t2; in regs_to_cregs() 84 cregs->s0 = (compat_ulong_t) regs->s0; in regs_to_cregs() [all …]
|
| /linux/arch/arc/kernel/ |
| H A D | disasm.c | 22 int userspace, struct pt_regs *regs, struct callee_regs *cregs) in disasm_instr() argument 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() [all …]
|
| H A D | ptrace.c | 107 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->r17); in genregs_get() [all …]
|
| H A D | kgdb.c | 15 struct callee_regs *cregs) in to_gdb_regs() argument 20 gdb_regs[_R0 + regno] = get_reg(regno, kernel_regs, cregs); in to_gdb_regs() 38 struct callee_regs *cregs) in from_gdb_regs() argument 43 set_reg(regno, gdb_regs[regno + _R0], kernel_regs, cregs); in from_gdb_regs()
|
| H A D | unaligned.h | 6 struct callee_regs *cregs); 10 struct callee_regs *cregs) in misaligned_fixup() argument
|
| H A D | troubleshoot.c | 173 struct callee_regs *cregs = (struct callee_regs *)tsk->thread.callee_reg; in show_regs() local 210 if (cregs) in show_regs() 211 print_regs_callee(cregs); in show_regs()
|
| H A D | traps.c | 82 struct callee_regs *cregs) in do_misaligned_access() argument 85 if (misaligned_fixup(address, regs, cregs) != 0) in do_misaligned_access()
|
| /linux/arch/riscv/kernel/ |
| H A D | compat_signal.c | 106 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()
|
| /linux/drivers/net/ethernet/sun/ |
| H A D | sunqe.c | 87 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 + CREG_MMASK); in qe_init() [all …]
|
| H A D | sunbmac.c | 623 void __iomem *cregs = bp->creg; in bigmac_init_hw() local 675 cregs + CREG_RXDS); in bigmac_init_hw() 677 cregs + CREG_TXDS); in bigmac_init_hw() 680 sbus_writel(0, cregs + CREG_RXRBUFPTR); in bigmac_init_hw() 681 sbus_writel(0, cregs + CREG_RXWBUFPTR); in bigmac_init_hw() 683 cregs + CREG_TXRBUFPTR); in bigmac_init_hw() 685 cregs + CREG_TXWBUFPTR); in bigmac_init_hw() 692 sbus_writel(0, cregs + CREG_RIMASK); in bigmac_init_hw() 693 sbus_writel(0, cregs + CREG_TIMASK); in bigmac_init_hw() 694 sbus_writel(0, cregs + CREG_QMASK); in bigmac_init_hw() [all …]
|
| /linux/arch/arc/include/asm/ |
| H A D | disasm.h | 106 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);
|
| /linux/arch/sparc/mm/ |
| H A D | leon_mm.c | 247 struct leon3_cacheregs cregs; in leon_flush_needed() local 248 leon3_getCacheRegs(&cregs); in leon_flush_needed() 249 sets = (cregs.dccr & LEON3_XCCR_SETS_MASK) >> 24; in leon_flush_needed() 251 ssize = 1 << ((cregs.dccr & LEON3_XCCR_SSIZE_MASK) >> 20); in leon_flush_needed()
|
| /linux/arch/s390/kernel/ |
| H A D | smp.c | 896 struct ctlreg cregs[16]; in __cpu_disable() local 908 __local_ctl_store(0, 15, cregs); in __cpu_disable() 909 cregs[0].val &= ~0x0000ee70UL; /* disable all external interrupts */ in __cpu_disable() 910 cregs[6].val &= ~0xff000000UL; /* disable all I/O interrupts */ in __cpu_disable() 911 cregs[14].val &= ~0x1f000000UL; /* disable most machine checks */ in __cpu_disable() 912 __local_ctl_load(0, 15, cregs); in __cpu_disable()
|
| /linux/arch/sparc/kernel/ |
| H A D | pci_fire.c | 280 unsigned long cregs = (unsigned long) pbm->pbm_regs; in pci_fire_msiq_build_irq() local 286 imap_reg = cregs + (0x001000UL + (devino * 0x08UL)); in pci_fire_msiq_build_irq() 287 iclr_reg = cregs + (0x001400UL + (devino * 0x08UL)); in pci_fire_msiq_build_irq()
|
| /linux/drivers/crypto/hisilicon/ |
| H A D | debugfs.c | 835 const struct dfx_diff_registers *cregs, u32 reg_len) in dfx_regs_init() argument 846 if (!cregs[i].reg_len) in dfx_regs_init() 849 diff_regs[i].reg_offset = cregs[i].reg_offset; in dfx_regs_init() 850 diff_regs[i].reg_len = cregs[i].reg_len; in dfx_regs_init() 851 diff_regs[i].regs = kcalloc(QM_DFX_REGS_LEN, cregs[i].reg_len, in dfx_regs_init()
|