Home
last modified time | relevance | path

Searched refs:gp_regs (Results 1 – 22 of 22) sorted by relevance

/linux-6.1.9/tools/testing/selftests/powerpc/signal/
Dsigfuz.c119 ucp->uc_link->uc_mcontext.gp_regs[PT_MSR] |= MSR_TS_S; in trap_signal_handler()
122 ucp->uc_link->uc_mcontext.gp_regs[PT_MSR] |= in trap_signal_handler()
125 ucp->uc_link->uc_mcontext.gp_regs[PT_MSR] |= in trap_signal_handler()
132 ucp->uc_mcontext.gp_regs[PT_MSR] |= MSR_TS_S; in trap_signal_handler()
135 ucp->uc_mcontext.gp_regs[PT_MSR] |= in trap_signal_handler()
138 ucp->uc_mcontext.gp_regs[PT_MSR] |= in trap_signal_handler()
153 ucp->uc_mcontext.gp_regs[PT_MSR] = random(); in trap_signal_handler()
155 ucp->uc_mcontext.gp_regs[PT_NIP] = random(); in trap_signal_handler()
157 ucp->uc_link->uc_mcontext.gp_regs[PT_MSR] = random(); in trap_signal_handler()
159 ucp->uc_link->uc_mcontext.gp_regs[PT_NIP] = random(); in trap_signal_handler()
[all …]
/linux-6.1.9/arch/powerpc/kernel/
Dsignal_64.c179 unsafe_put_user(&sc->gp_regs, &sc->regs, efault_out); in __unsafe_setup_sigcontext()
180 unsafe_copy_to_user(&sc->gp_regs, regs, GP_REGS_SIZE, efault_out); in __unsafe_setup_sigcontext()
181 unsafe_put_user(msr, &sc->gp_regs[PT_MSR], efault_out); in __unsafe_setup_sigcontext()
182 unsafe_put_user(softe, &sc->gp_regs[PT_SOFTE], efault_out); in __unsafe_setup_sigcontext()
314 err |= __put_user(&sc->gp_regs, &sc->regs); in setup_tm_sigcontexts()
315 err |= __put_user(&tm_sc->gp_regs, &tm_sc->regs); in setup_tm_sigcontexts()
316 err |= __copy_to_user(&tm_sc->gp_regs, regs, GP_REGS_SIZE); in setup_tm_sigcontexts()
317 err |= __copy_to_user(&sc->gp_regs, in setup_tm_sigcontexts()
319 err |= __put_user(msr, &tm_sc->gp_regs[PT_MSR]); in setup_tm_sigcontexts()
320 err |= __put_user(msr, &sc->gp_regs[PT_MSR]); in setup_tm_sigcontexts()
[all …]
/linux-6.1.9/tools/testing/selftests/powerpc/tm/
Dtm-trap.c67 thread_endianness = MSR_LE & ucp->uc_mcontext.gp_regs[PT_MSR]; in trap_signal_handler()
116 ucp->uc_mcontext.gp_regs[PT_NIP] += 16; in trap_signal_handler()
123 ucp->uc_mcontext.gp_regs[PT_MSR] |= 1UL; in trap_signal_handler()
124 ucp->uc_mcontext.gp_regs[PT_NIP] += 4; in trap_signal_handler()
141 ucp->uc_mcontext.gp_regs[PT_MSR] |= 1UL; in trap_signal_handler()
171 ucp->uc_mcontext.gp_regs[PT_MSR] &= ~1UL; in trap_signal_handler()
172 ucp->uc_mcontext.gp_regs[PT_NIP] += 8; in trap_signal_handler()
Dtm-signal-context-chk-gpr.c57 fail = (ucp->uc_mcontext.gp_regs[R14 + i] != gprs[i]); in signal_usr1()
61 R14 + i, ucp->uc_mcontext.gp_regs[R14 + i], gprs[i]); in signal_usr1()
67 fail = (tm_ucp->uc_mcontext.gp_regs[R14 + i] != gprs[NV_GPR_REGS + i]); in signal_usr1()
71 R14 + i, tm_ucp->uc_mcontext.gp_regs[R14 + i], gprs[NV_GPR_REGS + i]); in signal_usr1()
Dtm-signal-msr-resv.c41 ucp->uc_mcontext.gp_regs[PT_MSR] |= (7ULL << 32); in signal_usr1()
/linux-6.1.9/drivers/video/fbdev/geode/
Dgxfb.h23 void __iomem *gp_regs; member
295 return readl(par->gp_regs + 4*reg); in read_gp()
300 writel(val, par->gp_regs + 4*reg); in write_gp()
Dgxfb_core.c242 par->gp_regs = pci_ioremap_bar(dev, 1); in gxfb_map_video_memory()
244 if (!par->gp_regs) in gxfb_map_video_memory()
430 if (par->gp_regs) { in gxfb_probe()
431 iounmap(par->gp_regs); in gxfb_probe()
456 iounmap(par->gp_regs); in gxfb_remove()
Dlxfb.h29 void __iomem *gp_regs; member
378 return readl(par->gp_regs + 4*reg); in read_gp()
383 writel(val, par->gp_regs + 4*reg); in write_gp()
Dlxfb_core.c365 par->gp_regs = pci_ioremap_bar(dev, 1); in lxfb_map_video_memory()
367 if (par->gp_regs == NULL) in lxfb_map_video_memory()
552 if (par->gp_regs) { in lxfb_probe()
553 iounmap(par->gp_regs); in lxfb_probe()
581 iounmap(par->gp_regs); in lxfb_remove()
Dsuspend_gx.c30 memcpy(par->gp, par->gp_regs, sizeof(par->gp)); in gx_save_regs()
Dlxfb_ops.c602 memcpy(par->gp, par->gp_regs, sizeof(par->gp)); in lx_save_regs()
/linux-6.1.9/tools/testing/selftests/powerpc/include/
Dutils.h154 #define UCONTEXT_NIA(UC) (UC)->uc_mcontext.gp_regs[PT_NIP]
155 #define UCONTEXT_MSR(UC) (UC)->uc_mcontext.gp_regs[PT_MSR]
/linux-6.1.9/drivers/soc/bcm/brcmstb/pm/
Ds3-mips.S25 la t0, gp_regs
115 la t0, gp_regs
Dpm-mips.c84 u32 gp_regs[MAX_GP_REGS]; variable
/linux-6.1.9/arch/powerpc/include/uapi/asm/
Dsigcontext.h31 elf_gregset_t gp_regs; member
/linux-6.1.9/tools/testing/selftests/powerpc/alignment/
Dcopy_first_unaligned.c22 unsigned int *pc = (unsigned int *)ctx->uc_mcontext.gp_regs[PT_NIP]; in signal_action_handler()
Dalignment_handler.c71 u32 inst = *(u32 *)ucp->uc_mcontext.gp_regs[PT_NIP]; in sighandler()
72 ucp->uc_mcontext.gp_regs[PT_NIP] += ((inst >> 26 == 1) ? 8 : 4); in sighandler()
74 ucp->uc_mcontext.gp_regs[PT_NIP] += 4; in sighandler()
/linux-6.1.9/tools/testing/selftests/powerpc/pmu/sampling_tests/
Dmmcr2_fcs_fch_test.c23 is_hv = !!(uctx->uc_mcontext.gp_regs[PT_MSR] & MSR_HV); in sig_usr2_handler()
/linux-6.1.9/tools/testing/selftests/vm/
Dpkey-powerpc.h15 #define gregs gp_regs
/linux-6.1.9/arch/powerpc/perf/
Dcallchain_64.c103 uregs = sigframe->uc.uc_mcontext.gp_regs; in perf_callchain_user_64()
/linux-6.1.9/tools/testing/selftests/powerpc/copyloops/
Dexc_validate.c14 #define UCONTEXT_NIA(UC) (UC)->uc_mcontext.gp_regs[PT_NIP]
/linux-6.1.9/tools/perf/util/
Dintel-pt.c2077 const u64 *gp_regs = items->val[INTEL_PT_GP_REGS_POS]; in intel_pt_add_gp_regs() local
2095 *pos++ = gp_regs[n]; in intel_pt_add_gp_regs()