Lines Matching refs:key_ref
740 static inline key_ref_t __key_update(key_ref_t key_ref, in __key_update() argument
743 struct key *key = key_ref_to_ptr(key_ref); in __key_update()
747 ret = key_permission(key_ref, KEY_NEED_WRITE); in __key_update()
767 return key_ref; in __key_update()
771 key_ref = ERR_PTR(ret); in __key_update()
815 key_ref_t key_ref; in key_create_or_update() local
823 key_ref = ERR_PTR(-ENODEV); in key_create_or_update()
827 key_ref = ERR_PTR(-EINVAL); in key_create_or_update()
839 key_ref = ERR_PTR(-ENOTDIR); in key_create_or_update()
851 key_ref = ERR_PTR(ret); in key_create_or_update()
856 key_ref = ERR_PTR(-EINVAL); in key_create_or_update()
864 key_ref = ERR_PTR(ret); in key_create_or_update()
872 key_ref = ERR_PTR(ret); in key_create_or_update()
881 key_ref = ERR_PTR(ret); in key_create_or_update()
890 key_ref = find_key_to_update(keyring_ref, &index_key); in key_create_or_update()
891 if (key_ref) in key_create_or_update()
912 key_ref = ERR_CAST(key); in key_create_or_update()
920 key_ref = ERR_PTR(ret); in key_create_or_update()
924 key_ref = make_key_ref(key, is_key_possessed(keyring_ref)); in key_create_or_update()
934 return key_ref; in key_create_or_update()
942 key = key_ref_to_ptr(key_ref); in key_create_or_update()
946 key_ref_put(key_ref); in key_create_or_update()
947 key_ref = ERR_PTR(ret); in key_create_or_update()
952 key_ref = __key_update(key_ref, &prep); in key_create_or_update()
970 int key_update(key_ref_t key_ref, const void *payload, size_t plen) in key_update() argument
973 struct key *key = key_ref_to_ptr(key_ref); in key_update()
979 ret = key_permission(key_ref, KEY_NEED_WRITE); in key_update()