Home
last modified time | relevance | path

Searched refs:amr (Results 1 – 25 of 26) sorted by relevance

12

/Linux-v5.4/arch/powerpc/mm/book3s64/
Dpkeys.c277 thread->amr = read_amr(); in thread_pkey_regs_save()
288 if (old_thread->amr != new_thread->amr) in thread_pkey_regs_restore()
289 write_amr(new_thread->amr); in thread_pkey_regs_restore()
301 thread->amr = pkey_amr_mask; in thread_pkey_regs_init()
364 u64 amr; in pkey_access_permitted() local
373 amr = read_amr(); /* Delay reading amr until absolutely needed */ in pkey_access_permitted()
374 return ((!write && !(amr & (AMR_RD_BIT << pkey_shift))) || in pkey_access_permitted()
375 (write && !(amr & (AMR_WR_BIT << pkey_shift)))); in pkey_access_permitted()
/Linux-v5.4/tools/testing/selftests/powerpc/ptrace/
Dcore-pkey.c52 unsigned long amr; member
139 info->amr |= 3ul << pkeyshift(pkey1) | 2ul << pkeyshift(pkey2); in child()
151 user_write, info->amr, pkey1, pkey2, pkey3); in child()
153 mtspr(SPRN_AMR, info->amr); in child()
249 FAIL_IF(regs[0] != info->amr); in check_core_file()
272 info->amr = regs[0]; in parent()
/Linux-v5.4/drivers/misc/cxl/
Dnative.c662 static int process_element_entry_psl9(struct cxl_context *ctx, u64 wed, u64 amr) in process_element_entry_psl9() argument
711 ctx->elem->common.amr = cpu_to_be64(amr); in process_element_entry_psl9()
717 int cxl_attach_afu_directed_psl9(struct cxl_context *ctx, u64 wed, u64 amr) in cxl_attach_afu_directed_psl9() argument
722 result = process_element_entry_psl9(ctx, wed, amr); in cxl_attach_afu_directed_psl9()
736 int cxl_attach_afu_directed_psl8(struct cxl_context *ctx, u64 wed, u64 amr) in cxl_attach_afu_directed_psl8() argument
776 ctx->elem->common.amr = cpu_to_be64(amr); in cxl_attach_afu_directed_psl8()
904 int cxl_attach_dedicated_process_psl9(struct cxl_context *ctx, u64 wed, u64 amr) in cxl_attach_dedicated_process_psl9() argument
910 result = process_element_entry_psl9(ctx, wed, amr); in cxl_attach_dedicated_process_psl9()
932 int cxl_attach_dedicated_process_psl8(struct cxl_context *ctx, u64 wed, u64 amr) in cxl_attach_dedicated_process_psl8() argument
953 cxl_p2n_write(afu, CXL_PSL_AMR_An, amr); in cxl_attach_dedicated_process_psl8()
[all …]
Dcxl.h635 int (*attach_afu_directed)(struct cxl_context *ctx, u64 wed, u64 amr);
636 int (*attach_dedicated_process)(struct cxl_context *ctx, u64 wed, u64 amr);
741 __be64 amr; member
900 int cxl_attach_afu_directed_psl9(struct cxl_context *ctx, u64 wed, u64 amr);
901 int cxl_attach_afu_directed_psl8(struct cxl_context *ctx, u64 wed, u64 amr);
904 int cxl_attach_dedicated_process_psl9(struct cxl_context *ctx, u64 wed, u64 amr);
905 int cxl_attach_dedicated_process_psl8(struct cxl_context *ctx, u64 wed, u64 amr);
1080 u64 wed, u64 amr);
Dfile.c151 u64 amr = 0; in afu_ioctl_start_work() local
190 amr = work.amr & mfspr(SPRN_UAMOR); in afu_ioctl_start_work()
251 trace_cxl_attach(ctx, work.work_element_descriptor, work.num_interrupts, amr); in afu_ioctl_start_work()
254 amr))) { in afu_ioctl_start_work()
Dtrace.h89 TP_PROTO(struct cxl_context *ctx, u64 wed, s16 num_interrupts, u64 amr),
91 TP_ARGS(ctx, wed, num_interrupts, amr),
99 __field(u64, amr)
109 __entry->amr = amr;
120 __entry->amr
Dguest.c515 static int attach_afu_directed(struct cxl_context *ctx, u64 wed, u64 amr) in attach_afu_directed() argument
580 elem->common.amr = cpu_to_be64(amr); in attach_afu_directed()
620 static int guest_attach_process(struct cxl_context *ctx, bool kernel, u64 wed, u64 amr) in guest_attach_process() argument
626 return attach_afu_directed(ctx, wed, amr); in guest_attach_process()
/Linux-v5.4/arch/powerpc/include/asm/
Dkvm_book3s_64.h464 static inline int hpte_get_skey_perm(unsigned long hpte_r, unsigned long amr) in hpte_get_skey_perm() argument
470 return (amr >> (62 - 2 * skey)) & 3; in hpte_get_skey_perm()
594 vcpu->arch.amr = vcpu->arch.amr_tm; in copy_from_checkpoint()
611 vcpu->arch.amr_tm = vcpu->arch.amr; in copy_to_checkpoint()
Dprocessor.h228 unsigned long amr; member
Dkvm_host.h574 ulong amr; member
/Linux-v5.4/include/misc/
Docxl.h156 int ocxl_context_attach(struct ocxl_context *ctx, u64 amr,
470 u64 amr, struct mm_struct *mm,
/Linux-v5.4/drivers/misc/ocxl/
Dfile.c77 u64 amr = 0; in afu_ioctl_attach() local
89 amr = arg.amr & mfspr(SPRN_UAMOR); in afu_ioctl_attach()
90 rc = ocxl_context_attach(ctx, amr, current->mm); in afu_ioctl_attach()
Dcontext.c69 int ocxl_context_attach(struct ocxl_context *ctx, u64 amr, struct mm_struct *mm) in ocxl_context_attach() argument
85 amr, mm, xsl_fault_error, ctx); in ocxl_context_attach()
Docxl_internal.h92 __be64 amr; member
Dlink.c496 u64 amr, struct mm_struct *mm, in ocxl_link_add_pe() argument
534 pe->amr = cpu_to_be64(amr); in ocxl_link_add_pe()
/Linux-v5.4/arch/powerpc/platforms/powernv/
Didle.c306 u64 amr; member
378 sprs.amr = mfspr(SPRN_AMR); in power7_idle_insn()
397 mtspr(SPRN_AMR, sprs.amr); in power7_idle_insn()
599 u64 amr; member
686 sprs.amr = mfspr(SPRN_AMR); in power9_idle_stop()
709 mtspr(SPRN_AMR, sprs.amr); in power9_idle_stop()
/Linux-v5.4/include/uapi/misc/
Docxl.h29 __u64 amr; member
Dcxl.h21 __u64 amr; member
/Linux-v5.4/arch/powerpc/kvm/
Dbook3s_emulate.c98 vcpu->arch.amr_tm = vcpu->arch.amr; in kvmppc_copyto_vcpu_tm()
117 vcpu->arch.amr = vcpu->arch.amr_tm; in kvmppc_copyfrom_vcpu_tm()
Dbook3s_64_mmu_radix.c283 if (vcpu->arch.amr & (1ul << 62)) in kvmppc_mmu_radix_xlate()
285 if (vcpu->arch.amr & (1ul << 63)) in kvmppc_mmu_radix_xlate()
Dbook3s_hv.c1651 *val = get_reg_val(id, vcpu->arch.amr); in kvmppc_get_one_reg_hv()
1872 vcpu->arch.amr = set_reg_val(id, *val); in kvmppc_set_one_reg_hv()
3578 mtspr(SPRN_AMR, vcpu->arch.amr); in kvmhv_p9_guest_entry()
3649 vcpu->arch.amr = mfspr(SPRN_AMR); in kvmhv_p9_guest_entry()
3661 if (host_amr != vcpu->arch.amr) in kvmhv_p9_guest_entry()
Dbook3s_hv_rm_mmu.c1277 unsigned int perm = hpte_get_skey_perm(gr, vcpu->arch.amr); in kvmppc_hpte_hv_fault()
/Linux-v5.4/Documentation/powerpc/
Dcxl.rst204 __u64 amr;
224 amr:
/Linux-v5.4/arch/powerpc/kernel/
Dptrace.c1821 BUILD_BUG_ON(TSO(amr) + sizeof(unsigned long) != TSO(iamr)); in pkey_get()
1828 &target->thread.amr, 0, in pkey_get()
1853 target->thread.amr = (new_amr & target->thread.uamor) | in pkey_set()
1854 (target->thread.amr & ~target->thread.uamor); in pkey_set()
Dasm-offsets.c524 OFFSET(VCPU_AMR, kvm_vcpu, arch.amr); in main()

12