| /linux/arch/nios2/kernel/ |
| H A D | signal.c | 42 unsigned long __user *gregs = uc->uc_mcontext.gregs; in rt_restore_ucontext() local 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 …]
|
| /linux/arch/m68k/kernel/ |
| H A D | signal.c | 715 greg_t __user *gregs = uc->uc_mcontext.gregs; in rt_restore_ucontext() local 726 err |= __get_user(regs->d0, &gregs[0]); in rt_restore_ucontext() 727 err |= __get_user(regs->d1, &gregs[1]); in rt_restore_ucontext() 728 err |= __get_user(regs->d2, &gregs[2]); in rt_restore_ucontext() 729 err |= __get_user(regs->d3, &gregs[3]); in rt_restore_ucontext() 730 err |= __get_user(regs->d4, &gregs[4]); in rt_restore_ucontext() 731 err |= __get_user(regs->d5, &gregs[5]); in rt_restore_ucontext() 732 err |= __get_user(sw->d6, &gregs[6]); in rt_restore_ucontext() 733 err |= __get_user(sw->d7, &gregs[7]); in rt_restore_ucontext() 734 err |= __get_user(regs->a0, &gregs[8]); in rt_restore_ucontext() [all …]
|
| /linux/arch/x86/um/shared/sysdep/ |
| H A D | mcontext.h | 25 (fi).error_code = (mc)->gregs[REG_ERR]; \ 26 (fi).trap_no = (mc)->gregs[REG_TRAPNO]; \ 33 (fi).cr2 = (mc)->gregs[REG_CR2]; \ 34 (fi).error_code = (mc)->gregs[REG_ERR]; \ 35 (fi).trap_no = (mc)->gregs[REG_TRAPNO]; \
|
| /linux/tools/testing/selftests/x86/ |
| H A D | nx_stack.c | 125 stack_min_addr = ++uc->uc_mcontext.gregs[RDI]; in sigsegv() 129 uc->uc_mcontext.gregs[RIP] = (uintptr_t)&make_stack2; in sigsegv() 133 unsigned long stack_max_addr = uc->uc_mcontext.gregs[RDI]; in sigsegv() 138 uc->uc_mcontext.gregs[RIP] = stack_max_addr - PAGE_SIZE; in sigsegv() 142 uc->uc_mcontext.gregs[RIP] -= PAGE_SIZE; in sigsegv() 143 if (uc->uc_mcontext.gregs[RIP] == stack_min_addr) { in sigsegv() 156 unsigned long rip = uc->uc_mcontext.gregs[RIP]; in sigtrap()
|
| H A D | sigtrap_loop.c | 41 if (last_trap_ip == ctx->uc_mcontext.gregs[REG_IP]) { in sigtrap() 57 last_trap_ip = ctx->uc_mcontext.gregs[REG_IP]; in sigtrap()
|
| H A D | test_vsyscall.c | 317 segv_trapno = ctx->uc_mcontext.gregs[REG_TRAPNO]; in sigsegv() 318 segv_err = ctx->uc_mcontext.gregs[REG_ERR]; in sigsegv() 472 unsigned long ip = ctx->uc_mcontext.gregs[REG_RIP]; in sigtrap()
|
| /linux/drivers/memory/ |
| H A D | fsl_ifc.c | 51 if (!fsl_ifc_ctrl_dev || !fsl_ifc_ctrl_dev->gregs) in fsl_ifc_find() 55 u32 cspr = ifc_in32(&fsl_ifc_ctrl_dev->gregs->cspr_cs[i].cspr); in fsl_ifc_find() 68 struct fsl_ifc_global __iomem *ifc = ctrl->gregs; in fsl_ifc_ctrl_init() 98 iounmap(ctrl->gregs); in fsl_ifc_ctrl_remove() 148 struct fsl_ifc_global __iomem *ifc = ctrl->gregs; in fsl_ifc_ctrl_irq() 218 fsl_ifc_ctrl_dev->gregs = of_iomap(dev->dev.of_node, 0); in fsl_ifc_ctrl_probe() 219 if (!fsl_ifc_ctrl_dev->gregs) { in fsl_ifc_ctrl_probe() 232 version = ifc_in32(&fsl_ifc_ctrl_dev->gregs->ifc_rev) & in fsl_ifc_ctrl_probe() 242 addr = fsl_ifc_ctrl_dev->gregs; in fsl_ifc_ctrl_probe() 302 iounmap(fsl_ifc_ctrl_dev->gregs); in fsl_ifc_ctrl_probe()
|
| /linux/drivers/net/ethernet/sun/ |
| H A D | sunqe.c | 63 static inline int qec_global_reset(void __iomem *gregs) in qec_global_reset() argument 67 sbus_writel(GLOB_CTRL_RESET, gregs + GLOB_CTRL); in qec_global_reset() 69 u32 tmp = sbus_readl(gregs + GLOB_CTRL); in qec_global_reset() 146 void __iomem *gregs = qecp->gregs; in qe_init() local 168 tmp = qep->channel * sbus_readl(gregs + GLOB_MSIZE); in qe_init() 173 sbus_readl(gregs + GLOB_RSIZE); in qe_init() 475 qec_status = sbus_readl(qecp->gregs + GLOB_STAT); in qec_interrupt() 722 sbus_writel(GLOB_CTRL_B64, qecp->gregs + GLOB_CTRL); in qec_init_once() 724 sbus_writel(GLOB_CTRL_B32, qecp->gregs + GLOB_CTRL); in qec_init_once() 726 sbus_writel(GLOB_CTRL_B16, qecp->gregs + GLOB_CTRL); in qec_init_once() [all …]
|
| H A D | sunbmac.c | 80 static int qec_global_reset(void __iomem *gregs) in qec_global_reset() argument 84 sbus_writel(GLOB_CTRL_RESET, gregs + GLOB_CTRL); in qec_global_reset() 86 if (sbus_readl(gregs + GLOB_CTRL) & GLOB_CTRL_RESET) { in qec_global_reset() 101 void __iomem *gregs = bp->gregs; in qec_init() local 112 sbus_writel(regval | GLOB_CTRL_BMODE, gregs + GLOB_CTRL); in qec_init() 113 sbus_writel(GLOB_PSIZE_2048, gregs + GLOB_PSIZE); in qec_init() 117 gregs + GLOB_MSIZE); in qec_init() 121 gregs + GLOB_TSIZE); in qec_init() 123 gregs + GLOB_RSIZE); in qec_init() 622 void __iomem *gregs = bp->gregs; in bigmac_init_hw() local [all …]
|
| H A D | sunhme.c | 943 static void happy_meal_stop(struct happy_meal *hp, void __iomem *gregs) in happy_meal_stop() argument 950 hme_write32(hp, gregs + GREG_SWRESET, GREG_RESET_ALL); in happy_meal_stop() 951 while (hme_read32(hp, gregs + GREG_SWRESET) && --tries) in happy_meal_stop() 1259 void __iomem *gregs = hp->gregs; in happy_meal_init() local 1279 happy_meal_stop(hp, gregs); in happy_meal_init() 1395 hme_write32(hp, gregs + GREG_CFG, GREG_CFG_BURST64); in happy_meal_init() 1421 hme_write32(hp, gregs + GREG_CFG, gcfg); in happy_meal_init() 1424 hme_write32(hp, gregs + GREG_CFG, GREG_CFG_BURST32); in happy_meal_init() 1427 hme_write32(hp, gregs + GREG_CFG, GREG_CFG_BURST16); in happy_meal_init() 1430 hme_write32(hp, gregs + GREG_CFG, 0); in happy_meal_init() [all …]
|
| H A D | sunbmac.h | 290 void __iomem *gregs; /* QEC Global Registers */ member
|
| H A D | sunqe.h | 315 void __iomem *gregs; /* QEC Global Registers */ member
|
| H A D | sunhme.h | 402 void __iomem *gregs; /* Happy meal global registers */ member
|
| /linux/samples/seccomp/ |
| H A D | bpf-direct.c | 73 syscall = ctx->uc_mcontext.gregs[REG_SYSCALL]; in emulator() 74 buf = (char *) ctx->uc_mcontext.gregs[REG_ARG1]; in emulator() 75 len = (size_t) ctx->uc_mcontext.gregs[REG_ARG2]; in emulator() 79 if (ctx->uc_mcontext.gregs[REG_ARG0] != STDERR_FILENO) in emulator() 82 ctx->uc_mcontext.gregs[REG_RESULT] = -1; in emulator() 85 ctx->uc_mcontext.gregs[REG_RESULT] = bytes; in emulator()
|
| /linux/arch/powerpc/sysdev/ |
| H A D | mpic.c | 221 return _mpic_read(type, &mpic->gregs, offset); in _mpic_ipi_read() 229 _mpic_write(mpic->reg_type, &mpic->gregs, offset, value); in _mpic_ipi_write() 356 mpic_write(mpic->gregs, MPIC_INFO(GREG_IPI_VECTOR_PRI_0), MPIC_VECPRI_MASK); in mpic_test_broken_ipi() 357 r = mpic_read(mpic->gregs, MPIC_INFO(GREG_IPI_VECTOR_PRI_0)); in mpic_test_broken_ipi() 1360 mpic_map(mpic, mpic->paddr, &mpic->gregs, MPIC_INFO(GREG_BASE), 0x1000); in mpic_alloc() 1420 mpic_write(mpic->gregs, MPIC_INFO(GREG_GLOBAL_CONF_0), in mpic_alloc() 1421 mpic_read(mpic->gregs, MPIC_INFO(GREG_GLOBAL_CONF_0)) in mpic_alloc() 1423 while( mpic_read(mpic->gregs, MPIC_INFO(GREG_GLOBAL_CONF_0)) in mpic_alloc() 1430 mpic_write(mpic->gregs, MPIC_INFO(GREG_GLOBAL_CONF_0), in mpic_alloc() 1431 mpic_read(mpic->gregs, MPIC_INFO(GREG_GLOBAL_CONF_0)) in mpic_alloc() [all …]
|
| /linux/arch/powerpc/include/asm/ |
| H A D | elf.h | 54 #define ELF_CORE_COPY_REGS(gregs, regs) ppc_elf_core_copy_regs(gregs, regs); argument
|
| H A D | mpic.h | 307 struct mpic_reg_bank gregs; member
|
| /linux/arch/nios2/include/uapi/asm/ |
| H A D | sigcontext.h | 28 unsigned long gregs[32]; member
|
| /linux/tools/testing/selftests/powerpc/include/ |
| H A D | utils.h | 205 #define UCONTEXT_NIA(UC) (UC)->uc_mcontext.uc_regs->gregs[PT_NIP] 206 #define UCONTEXT_MSR(UC) (UC)->uc_mcontext.uc_regs->gregs[PT_MSR]
|
| /linux/tools/testing/selftests/powerpc/alignment/ |
| H A D | copy_first_unaligned.c | 24 unsigned int *pc = (unsigned int *)ctx->uc_mcontext.uc_regs->gregs[PT_NIP]; in signal_action_handler()
|
| /linux/tools/testing/selftests/powerpc/tm/ |
| H A D | tm-signal-msr-resv.c | 43 ucp->uc_mcontext.uc_regs->gregs[PT_MSR] |= (7ULL); in signal_usr1()
|
| /linux/tools/testing/selftests/powerpc/copyloops/ |
| H A D | exc_validate.c | 16 #define UCONTEXT_NIA(UC) (UC)->uc_mcontext.uc_regs->gregs[PT_NIP]
|
| /linux/tools/testing/selftests/riscv/cfi/ |
| H A D | cfitests.c | 26 ksft_print_msg("PC where violation happened %lx\n", ctx->uc_mcontext.gregs[0]); in sigsegv_handler()
|
| /linux/tools/testing/selftests/mm/ |
| H A D | pkey-powerpc.h | 17 #define gregs gp_regs macro
|
| /linux/arch/powerpc/kernel/ |
| H A D | signal_32.c | 94 elf_greg_t64 *gregs = (elf_greg_t64 *)regs; in __unsafe_save_general_regs() local 102 val = gregs[i]; in __unsafe_save_general_regs() 115 elf_greg_t64 *gregs = (elf_greg_t64 *)regs; in __unsafe_restore_general_regs() local 121 unsafe_get_user(gregs[i], &sr->mc_gregs[i], failed); in __unsafe_restore_general_regs()
|