Searched refs:NR_PKEYS (Results 1 – 5 of 5) sorted by relevance
22 #define NR_PKEYS 32 macro36 return (NR_PKEYS - pkey - 1) * PKEY_BITS_PER_PKEY; in pkey_bit_position()112 pkey_assert(pkey < NR_PKEYS); in malloc_pkey_with_mprotect_subpage()
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()1182 int bad_pkey = NR_PKEYS+99; in test_pkey_syscalls_bad_args()[all …]
26 #define NR_PKEYS 16 macro
39 #define NR_PKEYS 32 macro56 shift = (NR_PKEYS - pkey - 1) * PKEY_BITS_PER_PKEY; in pkey_set_rights()
229 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()