Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/mm/
H A Dpkey-helpers.h111 #ifndef PKEY_MASK
112 #define PKEY_MASK (PKEY_DISABLE_ACCESS | PKEY_DISABLE_WRITE) macro
127 reg &= ~((u64)PKEY_MASK << shift); in set_pkey_bits()
129 reg |= (flags & PKEY_MASK) << shift; in set_pkey_bits()
142 return ((reg >> shift) & PKEY_MASK); in get_pkey_bits()
H A Dpkey-arm64.h23 #define PKEY_MASK 0xf macro
100 reg &= ~((u64)PKEY_MASK << shift); in set_pkey_bits()
121 u32 perm = (reg >> shift) & PKEY_MASK; in get_pkey_bits()
H A Dmseal_helpers.h35 #ifndef PKEY_MASK
36 #define PKEY_MASK (PKEY_DISABLE_ACCESS | PKEY_DISABLE_WRITE) macro
H A Dmseal_test.c156 reg &= ~((u64)PKEY_MASK << shift); in set_pkey_bits()
158 reg |= (flags & PKEY_MASK) << shift; in set_pkey_bits()
H A Dprotection_keys.c510 ~PKEY_MASK); in alloc_pkey()