Lines Matching refs:NR_PKEYS
375 pkey_assert(siginfo_pkey < NR_PKEYS); in signal_handler()
554 int alloced_pkeys[NR_PKEYS]; in alloc_random_pkey()
560 max_nr_pkey_allocs = NR_PKEYS; in alloc_random_pkey()
613 pkey_assert(pkey < NR_PKEYS); in mprotect_pkey()
706 pkey_assert(pkey < NR_PKEYS); in malloc_pkey_with_mprotect()
809 pkey_assert(pkey < NR_PKEYS); in malloc_pkey_hugetlb()
827 pkey_assert(pkey < NR_PKEYS); in malloc_pkey_mmap_dax()
861 pkey_assert(pkey < NR_PKEYS); in malloc_pkey()
961 int alloced_pkeys[NR_PKEYS]; in test_pkey_alloc_free_attach_pkey0()
977 max_nr_pkey_allocs = NR_PKEYS; in test_pkey_alloc_free_attach_pkey0()
1156 for (i = 1; i < NR_PKEYS; i++) { in test_pkey_syscalls_on_non_allocated_pkey()
1176 int bad_pkey = NR_PKEYS+99; in test_pkey_syscalls_bad_args()
1202 int allocated_pkeys[NR_PKEYS] = {0}; in test_pkey_alloc_exhaust()
1206 for (i = 0; i < NR_PKEYS*3; i++) { in test_pkey_alloc_exhaust()
1225 pkey_assert(nr_allocated_pkeys < NR_PKEYS); in test_pkey_alloc_exhaust()
1233 if (i == NR_PKEYS*2) in test_pkey_alloc_exhaust()
1257 pkey_assert(i >= (NR_PKEYS - get_arch_reserved_keys() - 1)); in test_pkey_alloc_exhaust()
1308 int allocated_pkeys[NR_PKEYS] = {0}; in test_pkey_init_state()
1312 for (i = 0; i < NR_PKEYS; i++) { in test_pkey_init_state()