Lines Matching refs:pkey_rights
214 int pkey_rights; in pkey_disable_set() local
221 pkey_rights = hw_pkey_get(pkey, syscall_flags); in pkey_disable_set()
224 pkey, pkey, pkey_rights); in pkey_disable_set()
226 pkey_assert(pkey_rights >= 0); in pkey_disable_set()
228 pkey_rights |= flags; in pkey_disable_set()
230 ret = hw_pkey_set(pkey, pkey_rights, syscall_flags); in pkey_disable_set()
233 shadow_pkey_reg = set_pkey_bits(shadow_pkey_reg, pkey, pkey_rights); in pkey_disable_set()
239 pkey_rights = hw_pkey_get(pkey, syscall_flags); in pkey_disable_set()
241 pkey, pkey, pkey_rights); in pkey_disable_set()
255 int pkey_rights = hw_pkey_get(pkey, syscall_flags); in pkey_disable_clear() local
261 pkey, pkey, pkey_rights); in pkey_disable_clear()
262 pkey_assert(pkey_rights >= 0); in pkey_disable_clear()
264 pkey_rights &= ~flags; in pkey_disable_clear()
266 ret = hw_pkey_set(pkey, pkey_rights, 0); in pkey_disable_clear()
267 shadow_pkey_reg = set_pkey_bits(shadow_pkey_reg, pkey, pkey_rights); in pkey_disable_clear()
270 pkey_rights = hw_pkey_get(pkey, syscall_flags); in pkey_disable_clear()
272 pkey, pkey, pkey_rights); in pkey_disable_clear()