Lines Matching refs:key_ref
754 static inline key_ref_t __key_update(key_ref_t key_ref, in __key_update() argument
757 struct key *key = key_ref_to_ptr(key_ref); in __key_update()
761 ret = key_permission(key_ref, KEY_NEED_WRITE); in __key_update()
783 return key_ref; in __key_update()
787 key_ref = ERR_PTR(ret); in __key_update()
831 key_ref_t key_ref; in key_create_or_update() local
839 key_ref = ERR_PTR(-ENODEV); in key_create_or_update()
843 key_ref = ERR_PTR(-EINVAL); in key_create_or_update()
855 key_ref = ERR_PTR(-ENOTDIR); in key_create_or_update()
868 key_ref = ERR_PTR(ret); in key_create_or_update()
873 key_ref = ERR_PTR(-EINVAL); in key_create_or_update()
882 key_ref = ERR_PTR(ret); in key_create_or_update()
888 key_ref = ERR_PTR(ret); in key_create_or_update()
896 key_ref = ERR_PTR(ret); in key_create_or_update()
905 key_ref = ERR_PTR(ret); in key_create_or_update()
914 key_ref = find_key_to_update(keyring_ref, &index_key); in key_create_or_update()
915 if (key_ref) in key_create_or_update()
936 key_ref = ERR_CAST(key); in key_create_or_update()
944 key_ref = ERR_PTR(ret); in key_create_or_update()
951 key_ref = make_key_ref(key, is_key_possessed(keyring_ref)); in key_create_or_update()
961 return key_ref; in key_create_or_update()
969 key = key_ref_to_ptr(key_ref); in key_create_or_update()
973 key_ref_put(key_ref); in key_create_or_update()
974 key_ref = ERR_PTR(ret); in key_create_or_update()
979 key_ref = __key_update(key_ref, &prep); in key_create_or_update()
981 if (!IS_ERR(key_ref)) in key_create_or_update()
1003 int key_update(key_ref_t key_ref, const void *payload, size_t plen) in key_update() argument
1006 struct key *key = key_ref_to_ptr(key_ref); in key_update()
1012 ret = key_permission(key_ref, KEY_NEED_WRITE); in key_update()