Lines Matching refs:pkey_rights
451 int pkey_rights; in pkey_disable_set() local
458 pkey_rights = hw_pkey_get(pkey, syscall_flags); in pkey_disable_set()
461 pkey, pkey, pkey_rights); in pkey_disable_set()
462 pkey_assert(pkey_rights >= 0); in pkey_disable_set()
464 pkey_rights |= flags; in pkey_disable_set()
466 ret = hw_pkey_set(pkey, pkey_rights, syscall_flags); in pkey_disable_set()
474 pkey_rights = hw_pkey_get(pkey, syscall_flags); in pkey_disable_set()
476 pkey, pkey, pkey_rights); in pkey_disable_set()
489 int pkey_rights = hw_pkey_get(pkey, syscall_flags); in pkey_disable_clear() local
495 pkey, pkey, pkey_rights); in pkey_disable_clear()
496 pkey_assert(pkey_rights >= 0); in pkey_disable_clear()
498 pkey_rights |= flags; in pkey_disable_clear()
500 ret = hw_pkey_set(pkey, pkey_rights, 0); in pkey_disable_clear()
505 pkey_rights = hw_pkey_get(pkey, syscall_flags); in pkey_disable_clear()
507 pkey, pkey, pkey_rights); in pkey_disable_clear()