Home
last modified time | relevance | path

Searched refs:PKEY_BITS_PER_PKEY (Results 1 – 7 of 7) sorted by relevance

/linux/tools/testing/selftests/powerpc/include/
H A Dpkeys.h38 #define PKEY_BITS_PER_PKEY 2 macro
40 #define PKEY_BITS_MASK ((1UL << PKEY_BITS_PER_PKEY) - 1)
56 shift = (NR_PKEYS - pkey - 1) * PKEY_BITS_PER_PKEY; in pkey_set_rights()
/linux/tools/testing/selftests/mm/
H A Dmseal_helpers.h31 #ifndef PKEY_BITS_PER_PKEY
32 #define PKEY_BITS_PER_PKEY 2 macro
H A Dpkey-powerpc.h33 #define PKEY_BITS_PER_PKEY 2 macro
39 return (NR_PKEYS - pkey - 1) * PKEY_BITS_PER_PKEY; in pkey_bit_position()
H A Dpkey-x86.h32 #define PKEY_BITS_PER_PKEY 2 macro
107 return pkey * PKEY_BITS_PER_PKEY; in pkey_bit_position()
H A Dpkey-arm64.h35 #define PKEY_BITS_PER_PKEY 4 macro
75 return pkey * PKEY_BITS_PER_PKEY; in pkey_bit_position()
H A Dprotection_keys.c1675 u64 new_pkey = (POE_X << PKEY_BITS_PER_PKEY * 2) | in test_ptrace_modifies_pkru()
1676 (POE_NONE << PKEY_BITS_PER_PKEY) | in test_ptrace_modifies_pkru()
H A Dmseal_test.c148 return pkey * PKEY_BITS_PER_PKEY; in pkey_bit_position()