Searched refs:pkey_shift (Results 1 – 2 of 2) sorted by relevance
395 int pkey_shift; in pkey_access_permitted() local398 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()
1033 int pkey_shift = (pkey * PKRU_BITS_PER_PKEY); in arch_set_user_pkey_access() local1057 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()