Lines Matching refs:NR_PKEYS
317 pkey_assert(siginfo_pkey < NR_PKEYS); in signal_handler()
611 int alloced_pkeys[NR_PKEYS]; in alloc_random_pkey()
617 max_nr_pkey_allocs = NR_PKEYS; in alloc_random_pkey()
666 pkey_assert(pkey < NR_PKEYS); in mprotect_pkey()
758 pkey_assert(pkey < NR_PKEYS); in malloc_pkey_with_mprotect()
852 pkey_assert(pkey < NR_PKEYS); in malloc_pkey_hugetlb()
870 pkey_assert(pkey < NR_PKEYS); in malloc_pkey_mmap_dax()
903 pkey_assert(pkey < NR_PKEYS); in malloc_pkey()
1109 for (i = 1; i < NR_PKEYS; i++) { in test_pkey_syscalls_on_non_allocated_pkey()
1129 int bad_pkey = NR_PKEYS+99; in test_pkey_syscalls_bad_args()
1140 int allocated_pkeys[NR_PKEYS] = {0}; in test_pkey_alloc_exhaust()
1144 for (i = 0; i < NR_PKEYS*2; i++) { in test_pkey_alloc_exhaust()
1157 pkey_assert(nr_allocated_pkeys < NR_PKEYS); in test_pkey_alloc_exhaust()
1167 pkey_assert(i < NR_PKEYS*2); in test_pkey_alloc_exhaust()
1178 pkey_assert(i >= NR_PKEYS-3); in test_pkey_alloc_exhaust()