Searched refs:pkey_shift (Results 1 – 3 of 3) sorted by relevance
417 int pkey_shift; in pkey_access_permitted() local420 pkey_shift = pkeyshift(pkey); in pkey_access_permitted()422 return !(current_thread_iamr() & (IAMR_EX_BIT << pkey_shift)); in pkey_access_permitted()426 return !(amr & (AMR_WR_BIT << pkey_shift)); in pkey_access_permitted()428 return !(amr & (AMR_RD_BIT << pkey_shift)); in pkey_access_permitted()
1025 int pkey_shift; in arch_set_user_pkey_access() local1049 pkey_shift = pkey * PKRU_BITS_PER_PKEY; in arch_set_user_pkey_access()1050 new_pkru_bits <<= pkey_shift; in arch_set_user_pkey_access()1054 old_pkru &= ~((PKRU_AD_BIT|PKRU_WD_BIT) << pkey_shift); in arch_set_user_pkey_access()
1559 u64 pkey_shift; in arch_set_user_pkey_access() local1584 pkey_shift = pkey * POR_BITS_PER_PKEY; in arch_set_user_pkey_access()1585 new_por <<= pkey_shift; in arch_set_user_pkey_access()1589 old_por &= ~(POE_MASK << pkey_shift); in arch_set_user_pkey_access()