/Linux-v5.4/arch/powerpc/mm/book3s64/ |
D | pkeys.c | 277 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/ |
D | core-pkey.c | 52 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/ |
D | native.c | 662 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 …]
|
D | cxl.h | 635 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);
|
D | file.c | 151 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()
|
D | trace.h | 89 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
|
D | guest.c | 515 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/ |
D | kvm_book3s_64.h | 464 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()
|
D | processor.h | 228 unsigned long amr; member
|
D | kvm_host.h | 574 ulong amr; member
|
/Linux-v5.4/include/misc/ |
D | ocxl.h | 156 int ocxl_context_attach(struct ocxl_context *ctx, u64 amr, 470 u64 amr, struct mm_struct *mm,
|
/Linux-v5.4/drivers/misc/ocxl/ |
D | file.c | 77 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()
|
D | context.c | 69 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()
|
D | ocxl_internal.h | 92 __be64 amr; member
|
D | link.c | 496 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/ |
D | idle.c | 306 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/ |
D | ocxl.h | 29 __u64 amr; member
|
D | cxl.h | 21 __u64 amr; member
|
/Linux-v5.4/arch/powerpc/kvm/ |
D | book3s_emulate.c | 98 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()
|
D | book3s_64_mmu_radix.c | 283 if (vcpu->arch.amr & (1ul << 62)) in kvmppc_mmu_radix_xlate() 285 if (vcpu->arch.amr & (1ul << 63)) in kvmppc_mmu_radix_xlate()
|
D | book3s_hv.c | 1651 *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()
|
D | book3s_hv_rm_mmu.c | 1277 unsigned int perm = hpte_get_skey_perm(gr, vcpu->arch.amr); in kvmppc_hpte_hv_fault()
|
/Linux-v5.4/Documentation/powerpc/ |
D | cxl.rst | 204 __u64 amr; 224 amr:
|
/Linux-v5.4/arch/powerpc/kernel/ |
D | ptrace.c | 1821 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()
|
D | asm-offsets.c | 524 OFFSET(VCPU_AMR, kvm_vcpu, arch.amr); in main()
|