Home
last modified time | relevance | path

Searched refs:PKRU_BITS_PER_PKEY (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.4/arch/x86/mm/
Dpkeys.c114 #define PKRU_AD_KEY(pkey) (PKRU_AD_BIT << ((pkey) * PKRU_BITS_PER_PKEY))
/Linux-v5.4/tools/testing/selftests/x86/
Dpkey-helpers.h17 #define PKRU_BITS_PER_PKEY 2 macro
Dprotection_keys.c413 shifted_pkru = (pkru >> (pkey * PKRU_BITS_PER_PKEY)); in hw_pkey_get()
436 new_pkru &= ~(mask << (pkey * PKRU_BITS_PER_PKEY)); in hw_pkey_set()
438 new_pkru |= (rights << (pkey * PKRU_BITS_PER_PKEY)); in hw_pkey_set()
/Linux-v5.4/arch/x86/include/asm/
Dpgtable.h1376 #define PKRU_BITS_PER_PKEY 2 macro
1386 int pkru_pkey_bits = pkey * PKRU_BITS_PER_PKEY; in __pkru_allows_read()
1392 int pkru_pkey_bits = pkey * PKRU_BITS_PER_PKEY; in __pkru_allows_write()
/Linux-v5.4/arch/x86/kernel/fpu/
Dxstate.c908 int pkey_shift = (pkey * PKRU_BITS_PER_PKEY); in arch_set_user_pkey_access()