/linux-6.3-rc2/arch/riscv/include/asm/ |
A D | compat.h | 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->s0 = (compat_ulong_t) regs->s0; in regs_to_cregs() 67 cregs->s1 = (compat_ulong_t) regs->s1; in regs_to_cregs() 68 cregs->a0 = (compat_ulong_t) regs->a0; in regs_to_cregs() [all …]
|
/linux-6.3-rc2/arch/parisc/kernel/ |
A D | process.c | 208 struct pt_regs *cregs = &(p->thread.regs); in copy_thread() local 219 memset(cregs, 0, sizeof(struct pt_regs)); in copy_thread() 226 cregs->kpc = (unsigned long) &ret_from_kernel_thread; in copy_thread() 232 cregs->gr[27] = ((unsigned long *)args->fn)[3]; in copy_thread() 233 cregs->gr[26] = ((unsigned long *)args->fn)[2]; in copy_thread() 235 cregs->gr[26] = (unsigned long) args->fn; in copy_thread() 237 cregs->gr[25] = (unsigned long) args->fn_arg; in copy_thread() 246 cregs->gr[30] = usp; in copy_thread() 248 cregs->ksp = (unsigned long) stack + FRAME_SIZE; in copy_thread() 249 cregs->kpc = (unsigned long) &child_return; in copy_thread() [all …]
|
/linux-6.3-rc2/arch/arc/kernel/ |
A D | disasm.c | 222 cregs); in disasm_instr() 230 cregs); in disasm_instr() 305 regs, cregs); in disasm_instr() 380 cregs); in disasm_instr() 459 if (cregs && (reg <= 25)) { in get_reg() 460 p = &cregs->r13; in get_reg() 477 struct callee_regs *cregs) in set_reg() argument 488 if (cregs) { in set_reg() 489 p = &cregs->r13; in set_reg() 518 if (cregs) { in set_reg() [all …]
|
A D | ptrace.c | 137 membuf_store(&to, cregs->r25); in genregs_get() 138 membuf_store(&to, cregs->r24); in genregs_get() 139 membuf_store(&to, cregs->r23); in genregs_get() 140 membuf_store(&to, cregs->r22); in genregs_get() 141 membuf_store(&to, cregs->r21); in genregs_get() 142 membuf_store(&to, cregs->r20); in genregs_get() 143 membuf_store(&to, cregs->r19); in genregs_get() 144 membuf_store(&to, cregs->r18); in genregs_get() 145 membuf_store(&to, cregs->r17); in genregs_get() 146 membuf_store(&to, cregs->r16); in genregs_get() [all …]
|
A D | unaligned.c | 133 struct callee_regs *cregs) in fixup_load() argument 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() argument 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() argument 223 disasm_instr(regs->ret, &state, 1, regs, cregs); in misaligned_fixup() 233 fixup_load(&state, regs, cregs); in misaligned_fixup() [all …]
|
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()
|
A D | troubleshoot.c | 171 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()
|
A D | traps.c | 80 struct callee_regs *cregs) in do_misaligned_access() argument 83 if (misaligned_fixup(address, regs, cregs) != 0) in do_misaligned_access()
|
/linux-6.3-rc2/drivers/hwmon/ |
A D | ltc4245.c | 59 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_FAULT2] & in ltc4245_read_in()
|
/linux-6.3-rc2/arch/riscv/kernel/ |
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()
|
A D | ptrace.c | 277 struct compat_user_regs_struct cregs; in compat_riscv_gpr_get() local 279 regs_to_cregs(&cregs, task_pt_regs(target)); in compat_riscv_gpr_get() 281 return membuf_write(&to, &cregs, in compat_riscv_gpr_get() 291 struct compat_user_regs_struct cregs; in compat_riscv_gpr_set() local 293 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &cregs, 0, -1); in compat_riscv_gpr_set() 295 cregs_to_regs(&cregs, task_pt_regs(target)); in compat_riscv_gpr_set()
|
/linux-6.3-rc2/drivers/net/ethernet/sun/ |
A D | sunqe.c | 87 void __iomem *cregs = qep->qcregs; in qe_stop() local 110 u32 tmp = sbus_readl(cregs + CREG_CTRL); in qe_stop() 144 void __iomem *cregs = qep->qcregs; in qe_init() local 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() 169 sbus_writel(tmp, cregs + CREG_RXRBUFPTR); in qe_init() 170 sbus_writel(tmp, cregs + CREG_RXWBUFPTR); in qe_init() 174 sbus_writel(tmp, cregs + CREG_TXRBUFPTR); in qe_init() 178 sbus_writel(0, cregs + CREG_CCNT); in qe_init() [all …]
|
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() 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() 695 sbus_writel(0, cregs + CREG_BMASK); in bigmac_init_hw() [all …]
|
/linux-6.3-rc2/arch/arc/include/asm/ |
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);
|
A D | unaligned.h | 16 struct callee_regs *cregs); 20 struct callee_regs *cregs) in misaligned_fixup() argument
|
/linux-6.3-rc2/arch/sparc/mm/ |
A D | leon_mm.c | 253 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()
|
/linux-6.3-rc2/arch/s390/kernel/ |
A D | smp.c | 583 unsigned long cregs[16]; in smp_ctl_bit_callback() local 585 __ctl_store(cregs, 0, 15); in smp_ctl_bit_callback() 586 cregs[pp->cr] = (cregs[pp->cr] & pp->andval) | pp->orval; in smp_ctl_bit_callback() 587 __ctl_load(cregs, 0, 15); in smp_ctl_bit_callback() 952 unsigned long cregs[16]; in __cpu_disable() local 964 __ctl_store(cregs, 0, 15); in __cpu_disable() 965 cregs[0] &= ~0x0000ee70UL; /* disable all external interrupts */ in __cpu_disable() 966 cregs[6] &= ~0xff000000UL; /* disable all I/O interrupts */ in __cpu_disable() 967 cregs[14] &= ~0x1f000000UL; /* disable most machine checks */ in __cpu_disable() 968 __ctl_load(cregs, 0, 15); in __cpu_disable()
|
/linux-6.3-rc2/arch/sparc/kernel/ |
A D | pci_fire.c | 279 unsigned long cregs = (unsigned long) pbm->pbm_regs; in pci_fire_msiq_build_irq() local 285 imap_reg = cregs + (0x001000UL + (devino * 0x08UL)); in pci_fire_msiq_build_irq() 286 iclr_reg = cregs + (0x001400UL + (devino * 0x08UL)); in pci_fire_msiq_build_irq()
|
/linux-6.3-rc2/arch/powerpc/platforms/cell/ |
A D | iommu.c | 688 void __iomem *xregs, *cregs; in cell_disable_iommus() local 697 cregs = xregs + IOC_IOCmd_Offset; in cell_disable_iommus() 703 val = in_be64(cregs + IOC_IOCmd_Cfg); in cell_disable_iommus() 705 out_be64(cregs + IOC_IOCmd_Cfg, val); in cell_disable_iommus() 706 (void)in_be64(cregs + IOC_IOCmd_Cfg); in cell_disable_iommus()
|
/linux-6.3-rc2/drivers/crypto/hisilicon/ |
A D | debugfs.c | 806 const struct dfx_diff_registers *cregs, u32 reg_len) in dfx_regs_init() argument 817 if (!cregs[i].reg_len) in dfx_regs_init() 820 diff_regs[i].reg_offset = cregs[i].reg_offset; in dfx_regs_init() 821 diff_regs[i].reg_len = cregs[i].reg_len; in dfx_regs_init() 822 diff_regs[i].regs = kcalloc(QM_DFX_REGS_LEN, cregs[i].reg_len, in dfx_regs_init()
|