Home
last modified time | relevance | path

Searched refs:iamr (Results 1 – 13 of 13) sorted by relevance

/linux-6.6.21/arch/powerpc/include/asm/book3s/64/
Dkup.h226 return current->thread.regs->iamr; in current_thread_iamr()
236 unsigned long amr, iamr; in kuap_user_restore() local
250 iamr = mfspr(SPRN_IAMR); in kuap_user_restore()
251 if (iamr != regs->iamr) in kuap_user_restore()
263 mtspr(SPRN_IAMR, regs->iamr); in kuap_user_restore()
/linux-6.6.21/arch/powerpc/kernel/
Dsyscall.c39 unsigned long amr, iamr; in system_call_exception() local
46 iamr = mfspr(SPRN_IAMR); in system_call_exception()
48 regs->iamr = iamr; in system_call_exception()
Dasm-offsets.c304 STACK_PT_REGS_OFFSET(STACK_REGS_IAMR, iamr); in main()
444 OFFSET(VCPU_IAMR, kvm_vcpu, arch.iamr); in main()
Dprocess.c1635 current->thread.regs->iamr = default_iamr; in arch_setup_new_exec()
/linux-6.6.21/tools/testing/selftests/powerpc/ptrace/
Dcore-pkey.c55 unsigned long iamr; member
142 info->iamr |= 1ul << pkeyshift(pkey1); in child()
144 info->iamr &= ~(1ul << pkeyshift(pkey1)); in child()
146 info->iamr &= ~(1ul << pkeyshift(pkey2) | 1ul << pkeyshift(pkey3)); in child()
250 FAIL_IF(regs[1] != info->iamr); in check_core_file()
273 info->iamr = regs[1]; in parent()
/linux-6.6.21/arch/powerpc/kvm/
Dbook3s_hv.h7 unsigned long iamr; member
106 KVMPPC_BOOK3S_HV_VCPU_ACCESSOR(iamr, 64)
Dbook3s_hv_p9_entry.c34 if (host_os_sprs->iamr != vcpu->arch.iamr) in load_spr_state()
35 mtspr(SPRN_IAMR, vcpu->arch.iamr); in load_spr_state()
75 vcpu->arch.iamr = mfspr(SPRN_IAMR); in store_spr_state()
150 host_os_sprs->iamr = mfspr(SPRN_IAMR); in save_p9_host_os_sprs()
171 if (host_os_sprs->iamr != vcpu->arch.iamr) in restore_p9_host_os_sprs()
172 mtspr(SPRN_IAMR, host_os_sprs->iamr); in restore_p9_host_os_sprs()
Dbook3s_64_mmu_radix.c302 if (vcpu->arch.iamr & (1ul << 62)) in kvmppc_mmu_radix_xlate()
/linux-6.6.21/arch/powerpc/platforms/powernv/
Didle.c309 u64 iamr; member
381 sprs.iamr = mfspr(SPRN_IAMR); in power7_idle_insn()
399 mtspr(SPRN_IAMR, sprs.iamr); in power7_idle_insn()
603 u64 iamr; member
690 sprs.iamr = mfspr(SPRN_IAMR); in power9_idle_stop()
710 mtspr(SPRN_IAMR, sprs.iamr); in power9_idle_stop()
/linux-6.6.21/arch/powerpc/include/asm/
Dptrace.h74 unsigned long iamr; member
Dkvm_host.h578 ulong iamr; member
/linux-6.6.21/arch/powerpc/mm/book3s64/
Dpkeys.c330 current->thread.regs->iamr = old_iamr | new_iamr_bits; in init_iamr()
/linux-6.6.21/arch/powerpc/kernel/ptrace/
Dptrace-view.c534 membuf_store(&to, target->thread.regs->iamr); in pkey_get()