Searched refs:PKRU_BITS_PER_PKEY (Results 1 – 5 of 5) sorted by relevance
114 #define PKRU_AD_KEY(pkey) (PKRU_AD_BIT << ((pkey) * PKRU_BITS_PER_PKEY))
17 #define PKRU_BITS_PER_PKEY 2 macro
413 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()
1376 #define PKRU_BITS_PER_PKEY 2 macro1386 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()
908 int pkey_shift = (pkey * PKRU_BITS_PER_PKEY); in arch_set_user_pkey_access()