Home
last modified time | relevance | path

Searched refs:NR_PKEYS (Results 1 – 6 of 6) sorted by relevance

/linux-6.15/tools/testing/selftests/mm/
H A Dprotection_keys.c519 int alloced_pkeys[NR_PKEYS]; in alloc_random_pkey()
525 max_nr_pkey_allocs = NR_PKEYS; in alloc_random_pkey()
578 pkey_assert(pkey < NR_PKEYS); in mprotect_pkey()
670 pkey_assert(pkey < NR_PKEYS); in malloc_pkey_with_mprotect()
773 pkey_assert(pkey < NR_PKEYS); in malloc_pkey_hugetlb()
798 pkey_assert(pkey < NR_PKEYS); in malloc_pkey()
898 int alloced_pkeys[NR_PKEYS]; in test_pkey_alloc_free_attach_pkey0()
914 max_nr_pkey_allocs = NR_PKEYS; in test_pkey_alloc_free_attach_pkey0()
1094 for (i = 1; i < NR_PKEYS; i++) { in test_pkey_syscalls_on_non_allocated_pkey()
1114 int bad_pkey = NR_PKEYS+99; in test_pkey_syscalls_bad_args()
[all …]
H A Dpkey-powerpc.h27 #define NR_PKEYS 32 macro
41 return (NR_PKEYS - pkey - 1) * PKEY_BITS_PER_PKEY; in pkey_bit_position()
127 pkey_assert(pkey < NR_PKEYS); in malloc_pkey_with_mprotect_subpage()
H A Dpkey-arm64.h30 #define NR_PKEYS 8 macro
H A Dpkey-x86.h30 #define NR_PKEYS 16 macro
/linux-6.15/tools/testing/selftests/powerpc/include/
H A Dpkeys.h46 #define NR_PKEYS 32 macro
67 shift = (NR_PKEYS - pkey - 1) * PKEY_BITS_PER_PKEY; in pkey_set_rights()
/linux-6.15/tools/testing/selftests/powerpc/mm/
H A Dpkey_siginfo.c229 int pkeys[NR_PKEYS], i; in reset_pkeys()
232 for (i = 0; i < NR_PKEYS; i++) in reset_pkeys()
236 for (i = 0; i < NR_PKEYS; i++) in reset_pkeys()