Lines Matching refs:NR_PKEYS
375 pkey_assert(siginfo_pkey < NR_PKEYS); in signal_handler()
552 int alloced_pkeys[NR_PKEYS]; in alloc_random_pkey()
558 max_nr_pkey_allocs = NR_PKEYS; in alloc_random_pkey()
611 pkey_assert(pkey < NR_PKEYS); in mprotect_pkey()
704 pkey_assert(pkey < NR_PKEYS); in malloc_pkey_with_mprotect()
807 pkey_assert(pkey < NR_PKEYS); in malloc_pkey_hugetlb()
825 pkey_assert(pkey < NR_PKEYS); in malloc_pkey_mmap_dax()
859 pkey_assert(pkey < NR_PKEYS); in malloc_pkey()
967 int alloced_pkeys[NR_PKEYS]; in test_pkey_alloc_free_attach_pkey0()
983 max_nr_pkey_allocs = NR_PKEYS; in test_pkey_alloc_free_attach_pkey0()
1162 for (i = 1; i < NR_PKEYS; i++) { in test_pkey_syscalls_on_non_allocated_pkey()
1182 int bad_pkey = NR_PKEYS+99; in test_pkey_syscalls_bad_args()
1208 int allocated_pkeys[NR_PKEYS] = {0}; in test_pkey_alloc_exhaust()
1212 for (i = 0; i < NR_PKEYS*3; i++) { in test_pkey_alloc_exhaust()
1231 pkey_assert(nr_allocated_pkeys < NR_PKEYS); in test_pkey_alloc_exhaust()
1239 if (i == NR_PKEYS*2) in test_pkey_alloc_exhaust()
1263 pkey_assert(i >= (NR_PKEYS - get_arch_reserved_keys() - 1)); in test_pkey_alloc_exhaust()
1314 int allocated_pkeys[NR_PKEYS] = {0}; in test_pkey_init_state()
1318 for (i = 0; i < NR_PKEYS; i++) { in test_pkey_init_state()