Home
last modified time | relevance | path

Searched refs:pkey_shift (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.4/arch/powerpc/mm/book3s64/
Dpkeys.c312 int pkey_shift = pkeyshift(pkey); in pkey_allows_readwrite() local
317 return !(read_amr() & ((AMR_RD_BIT|AMR_WR_BIT) << pkey_shift)); in pkey_allows_readwrite()
363 int pkey_shift; in pkey_access_permitted() local
369 pkey_shift = pkeyshift(pkey); in pkey_access_permitted()
370 if (execute && !(read_iamr() & (IAMR_EX_BIT << pkey_shift))) 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/arch/x86/kernel/fpu/
Dxstate.c908 int pkey_shift = (pkey * PKRU_BITS_PER_PKEY); in arch_set_user_pkey_access() local
925 new_pkru_bits <<= pkey_shift; in arch_set_user_pkey_access()
929 old_pkru &= ~((PKRU_AD_BIT|PKRU_WD_BIT) << pkey_shift); in arch_set_user_pkey_access()