Lines Matching refs:key_ref

751 static inline key_ref_t __key_update(key_ref_t key_ref,  in __key_update()  argument
754 struct key *key = key_ref_to_ptr(key_ref); in __key_update()
758 ret = key_permission(key_ref, KEY_NEED_WRITE); in __key_update()
780 return key_ref; in __key_update()
784 key_ref = ERR_PTR(ret); in __key_update()
828 key_ref_t key_ref; in key_create_or_update() local
836 key_ref = ERR_PTR(-ENODEV); in key_create_or_update()
840 key_ref = ERR_PTR(-EINVAL); in key_create_or_update()
852 key_ref = ERR_PTR(-ENOTDIR); in key_create_or_update()
864 key_ref = ERR_PTR(ret); in key_create_or_update()
869 key_ref = ERR_PTR(-EINVAL); in key_create_or_update()
878 key_ref = ERR_PTR(ret); in key_create_or_update()
884 key_ref = ERR_PTR(ret); in key_create_or_update()
892 key_ref = ERR_PTR(ret); in key_create_or_update()
901 key_ref = ERR_PTR(ret); in key_create_or_update()
910 key_ref = find_key_to_update(keyring_ref, &index_key); in key_create_or_update()
911 if (key_ref) in key_create_or_update()
932 key_ref = ERR_CAST(key); in key_create_or_update()
940 key_ref = ERR_PTR(ret); in key_create_or_update()
947 key_ref = make_key_ref(key, is_key_possessed(keyring_ref)); in key_create_or_update()
957 return key_ref; in key_create_or_update()
965 key = key_ref_to_ptr(key_ref); in key_create_or_update()
969 key_ref_put(key_ref); in key_create_or_update()
970 key_ref = ERR_PTR(ret); in key_create_or_update()
975 key_ref = __key_update(key_ref, &prep); in key_create_or_update()
977 if (!IS_ERR(key_ref)) in key_create_or_update()
999 int key_update(key_ref_t key_ref, const void *payload, size_t plen) in key_update() argument
1002 struct key *key = key_ref_to_ptr(key_ref); in key_update()
1008 ret = key_permission(key_ref, KEY_NEED_WRITE); in key_update()