Lines Matching refs:pkey
39 static inline u32 pkey_bit_position(int pkey) in pkey_bit_position() argument
41 return (NR_PKEYS - pkey - 1) * PKEY_BITS_PER_PKEY; in pkey_bit_position()
96 static inline void expect_fault_on_read_execonly_key(void *p1, int pkey) in expect_fault_on_read_execonly_key() argument
120 static inline void *malloc_pkey_with_mprotect_subpage(long size, int prot, u16 pkey) in malloc_pkey_with_mprotect_subpage() argument
126 size, prot, pkey); in malloc_pkey_with_mprotect_subpage()
127 pkey_assert(pkey < NR_PKEYS); in malloc_pkey_with_mprotect_subpage()
137 ret = mprotect_pkey((void *)ptr, PAGE_SIZE, prot, pkey); in malloc_pkey_with_mprotect_subpage()
141 dprintf1("%s() for pkey %d @ %p\n", __func__, pkey, ptr); in malloc_pkey_with_mprotect_subpage()