Lines Matching refs:amr
218 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);
296 return amr;
360 return (regs->amr & AMR_KUAP_BLOCK_WRITE) == AMR_KUAP_BLOCK_WRITE;
362 return (regs->amr & AMR_KUAP_BLOCK_READ) == AMR_KUAP_BLOCK_READ;