Home
last modified time | relevance | path

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

/Linux-v6.6/arch/powerpc/mm/book3s64/
Dpkeys.c416 int pkey_shift; in pkey_access_permitted() local
419 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()
/Linux-v6.6/arch/x86/kernel/fpu/
Dxstate.c1004 int pkey_shift; in arch_set_user_pkey_access() local
1028 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()