Home
last modified time | relevance | path

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

/linux-6.12.1/arch/powerpc/mm/book3s64/
Dpkeys.c417 int pkey_shift; in pkey_access_permitted() local
420 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()
/linux-6.12.1/arch/x86/kernel/fpu/
Dxstate.c1025 int pkey_shift; in arch_set_user_pkey_access() local
1049 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()
/linux-6.12.1/arch/arm64/mm/
Dmmu.c1559 u64 pkey_shift; in arch_set_user_pkey_access() local
1584 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()