Home
last modified time | relevance | path

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

/linux-6.12.1/tools/testing/selftests/powerpc/include/
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-6.12.1/tools/testing/selftests/mm/
Dmseal_helpers.h31 #ifndef PKEY_BITS_PER_PKEY
32 #define PKEY_BITS_PER_PKEY 2 macro
Dpkey-powerpc.h33 #define PKEY_BITS_PER_PKEY 2 macro
39 return (NR_PKEYS - pkey - 1) * PKEY_BITS_PER_PKEY; in pkey_bit_position()
Dpkey-arm64.h35 #define PKEY_BITS_PER_PKEY 4 macro
75 return pkey * PKEY_BITS_PER_PKEY; in pkey_bit_position()
Dpkey-x86.h32 #define PKEY_BITS_PER_PKEY 2 macro
107 return pkey * PKEY_BITS_PER_PKEY; in pkey_bit_position()
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()
Dmseal_test.c148 return pkey * PKEY_BITS_PER_PKEY; in pkey_bit_position()