Home
last modified time | relevance | path

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

12

/linux/arch/powerpc/include/asm/book3s/64/
A Dkup.h218 return current->thread.regs->amr;
235 unsigned long amr, iamr;
241 amr = mfspr(SPRN_AMR);
242 if (amr != regs->amr)
260 mtspr(SPRN_AMR, regs->amr);
272 unsigned long amr)
275 if (unlikely(regs->amr != amr)) {
277 mtspr(SPRN_AMR, regs->amr);
293 unsigned long amr = mfspr(SPRN_AMR);
295 WARN_ON_ONCE(amr != AMR_KUAP_BLOCKED);
[all …]
/linux/tools/testing/selftests/powerpc/include/
A Dpkeys.h47 inline void pkeyreg_set(unsigned long amr) in pkeyreg_set() argument
49 set_amr(amr); in pkeyreg_set()
54 unsigned long amr, shift; in pkey_set_rights() local
57 amr = pkeyreg_get(); in pkey_set_rights()
58 amr &= ~(PKEY_BITS_MASK << shift); in pkey_set_rights()
59 amr |= (rights & PKEY_BITS_MASK) << shift; in pkey_set_rights()
60 pkeyreg_set(amr); in pkey_set_rights()
/linux/arch/powerpc/mm/book3s64/
A Dpkeys.c318 current->thread.regs->amr = old_amr | new_amr_bits; in init_amr()
416 u64 amr; in pkey_access_permitted() local
422 amr = current_thread_amr(); in pkey_access_permitted()
424 return !(amr & (AMR_WR_BIT << pkey_shift)); in pkey_access_permitted()
426 return !(amr & (AMR_RD_BIT << pkey_shift)); in pkey_access_permitted()
/linux/tools/testing/selftests/powerpc/ptrace/
A 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 set_amr(info->amr); in child()
249 FAIL_IF(regs[0] != info->amr); in check_core_file()
272 info->amr = regs[0]; in parent()
/linux/drivers/misc/cxl/
A 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()
953 cxl_p2n_write(afu, CXL_PSL_AMR_An, amr); in cxl_attach_dedicated_process_psl8()
1009 u64 wed, u64 amr) in native_attach_process() argument
[all …]
A 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);
A 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
A 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()
A Dguest.c519 static int attach_afu_directed(struct cxl_context *ctx, u64 wed, u64 amr) in attach_afu_directed() argument
584 elem->common.amr = cpu_to_be64(amr); in attach_afu_directed()
624 static int guest_attach_process(struct cxl_context *ctx, bool kernel, u64 wed, u64 amr) in guest_attach_process() argument
630 return attach_afu_directed(ctx, wed, amr); in guest_attach_process()
/linux/tools/testing/selftests/vm/
A Dpkey-powerpc.h53 u64 amr = pkey_reg; in __write_pkey_reg() local
59 : : "r" ((unsigned long)(amr)) : "memory"); in __write_pkey_reg()
/linux/arch/powerpc/kernel/
A Dinterrupt.c102 unsigned long amr, iamr; in system_call_exception() local
108 amr = mfspr(SPRN_AMR); in system_call_exception()
110 regs->amr = amr; in system_call_exception()
/linux/arch/powerpc/include/asm/
A Dkvm_book3s_64.h478 static inline int hpte_get_skey_perm(unsigned long hpte_r, unsigned long amr) in hpte_get_skey_perm() argument
484 return (amr >> (62 - 2 * skey)) & 3; in hpte_get_skey_perm()
608 vcpu->arch.amr = vcpu->arch.amr_tm; in copy_from_checkpoint()
625 vcpu->arch.amr_tm = vcpu->arch.amr; in copy_to_checkpoint()
A Dkup.h60 static inline void kuap_kernel_restore(struct pt_regs *regs, unsigned long amr) { }
A Dptrace.h70 unsigned long amr; member
/linux/include/misc/
A Docxl.h147 int ocxl_context_attach(struct ocxl_context *ctx, u64 amr,
450 u64 amr, u16 bdf, struct mm_struct *mm,
/linux/drivers/misc/ocxl/
A Dfile.c76 u64 amr = 0; in afu_ioctl_attach() local
88 amr = arg.amr & mfspr(SPRN_UAMOR); in afu_ioctl_attach()
89 rc = ocxl_context_attach(ctx, amr, current->mm); in afu_ioctl_attach()
A Dcontext.c69 int ocxl_context_attach(struct ocxl_context *ctx, u64 amr, struct mm_struct *mm) in ocxl_context_attach() argument
87 amr, pci_dev_id(dev), mm, xsl_fault_error, ctx); in ocxl_context_attach()
A Dlink.c538 u64 amr, u16 bdf, struct mm_struct *mm, in ocxl_link_add_pe() argument
580 pe->amr = cpu_to_be64(amr); in ocxl_link_add_pe()
A Docxl_internal.h95 __be64 amr; member
/linux/arch/powerpc/platforms/powernv/
A Didle.c307 u64 amr; member
379 sprs.amr = mfspr(SPRN_AMR); in power7_idle_insn()
398 mtspr(SPRN_AMR, sprs.amr); in power7_idle_insn()
601 u64 amr; member
688 sprs.amr = mfspr(SPRN_AMR); in power9_idle_stop()
709 mtspr(SPRN_AMR, sprs.amr); in power9_idle_stop()
/linux/include/uapi/misc/
A Docxl.h29 __u64 amr; member
A Dcxl.h21 __u64 amr; member
/linux/arch/powerpc/kernel/ptrace/
A Dptrace-view.c469 membuf_store(&to, target->thread.regs->amr); in pkey_get()
503 target->thread.regs->amr = (new_amr & default_uamor) | in pkey_set()
504 (target->thread.regs->amr & ~default_uamor); in pkey_set()
/linux/arch/powerpc/kvm/
A Dbook3s_emulate.c94 vcpu->arch.amr_tm = vcpu->arch.amr; in kvmppc_copyto_vcpu_tm()
113 vcpu->arch.amr = vcpu->arch.amr_tm; in kvmppc_copyfrom_vcpu_tm()
A Dbook3s_hv.c2042 *val = get_reg_val(id, vcpu->arch.amr); in kvmppc_get_one_reg_hv()
2287 vcpu->arch.amr = set_reg_val(id, *val); in kvmppc_set_one_reg_hv()
3784 mtspr(SPRN_AMR, vcpu->arch.amr); in load_spr_state()
3810 vcpu->arch.amr = mfspr(SPRN_AMR); in store_spr_state()
3822 unsigned long amr; member
3831 host_os_sprs->amr = mfspr(SPRN_AMR); in save_p9_host_os_sprs()
3846 if (host_os_sprs->amr != vcpu->arch.amr) in restore_p9_host_os_sprs()
3847 mtspr(SPRN_AMR, host_os_sprs->amr); in restore_p9_host_os_sprs()

Completed in 76 milliseconds

12