Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/arch/powerpc/mm/book3s64/
Dpkeys.c395 int pkey_shift; in pkey_access_permitted() local
398 pkey_shift = pkeyshift(pkey); in pkey_access_permitted()
400 return !(read_iamr() & (IAMR_EX_BIT << pkey_shift)); in pkey_access_permitted()
404 return !(amr & (AMR_WR_BIT << pkey_shift)); in pkey_access_permitted()
406 return !(amr & (AMR_RD_BIT << pkey_shift)); in pkey_access_permitted()
/kernel/linux/linux-5.10/arch/x86/kernel/fpu/
Dxstate.c1033 int pkey_shift = (pkey * PKRU_BITS_PER_PKEY); in arch_set_user_pkey_access() local
1057 new_pkru_bits <<= pkey_shift; in arch_set_user_pkey_access()
1061 old_pkru &= ~((PKRU_AD_BIT|PKRU_WD_BIT) << pkey_shift); in arch_set_user_pkey_access()