Lines Matching refs:NR_PKEYS
384 pkey_assert(siginfo_pkey < NR_PKEYS); in signal_handler()
561 int alloced_pkeys[NR_PKEYS]; in alloc_random_pkey()
567 max_nr_pkey_allocs = NR_PKEYS; in alloc_random_pkey()
620 pkey_assert(pkey < NR_PKEYS); in mprotect_pkey()
713 pkey_assert(pkey < NR_PKEYS); in malloc_pkey_with_mprotect()
816 pkey_assert(pkey < NR_PKEYS); in malloc_pkey_hugetlb()
834 pkey_assert(pkey < NR_PKEYS); in malloc_pkey_mmap_dax()
868 pkey_assert(pkey < NR_PKEYS); in malloc_pkey()
976 int alloced_pkeys[NR_PKEYS]; in test_pkey_alloc_free_attach_pkey0()
992 max_nr_pkey_allocs = NR_PKEYS; in test_pkey_alloc_free_attach_pkey0()
1171 for (i = 1; i < NR_PKEYS; i++) { in test_pkey_syscalls_on_non_allocated_pkey()
1191 int bad_pkey = NR_PKEYS+99; in test_pkey_syscalls_bad_args()
1217 int allocated_pkeys[NR_PKEYS] = {0}; in test_pkey_alloc_exhaust()
1221 for (i = 0; i < NR_PKEYS*3; i++) { in test_pkey_alloc_exhaust()
1240 pkey_assert(nr_allocated_pkeys < NR_PKEYS); in test_pkey_alloc_exhaust()
1248 if (i == NR_PKEYS*2) in test_pkey_alloc_exhaust()
1272 pkey_assert(i >= (NR_PKEYS - get_arch_reserved_keys() - 1)); in test_pkey_alloc_exhaust()
1323 int allocated_pkeys[NR_PKEYS] = {0}; in test_pkey_init_state()
1327 for (i = 0; i < NR_PKEYS; i++) { in test_pkey_init_state()