Searched refs:pkey_shift (Results 1 – 2 of 2) sorted by relevance
416 int pkey_shift; in pkey_access_permitted() local419 pkey_shift = pkeyshift(pkey); in pkey_access_permitted()421 return !(current_thread_iamr() & (IAMR_EX_BIT << pkey_shift)); in pkey_access_permitted()425 return !(amr & (AMR_WR_BIT << pkey_shift)); in pkey_access_permitted()427 return !(amr & (AMR_RD_BIT << pkey_shift)); in pkey_access_permitted()
1004 int pkey_shift; in arch_set_user_pkey_access() local1028 pkey_shift = pkey * PKRU_BITS_PER_PKEY; in arch_set_user_pkey_access()1029 new_pkru_bits <<= pkey_shift; in arch_set_user_pkey_access()1033 old_pkru &= ~((PKRU_AD_BIT|PKRU_WD_BIT) << pkey_shift); in arch_set_user_pkey_access()