Lines Matching refs:err
63 int err = -EEXIST; in bpf_crypto_register_type() local
72 err = -ENOMEM; in bpf_crypto_register_type()
78 err = 0; in bpf_crypto_register_type()
83 return err; in bpf_crypto_register_type()
90 int err = -ENOENT; in bpf_crypto_unregister_type() local
99 err = 0; in bpf_crypto_unregister_type()
104 return err; in bpf_crypto_unregister_type()
147 int *err) in bpf_crypto_ctx_create() argument
154 *err = -EINVAL; in bpf_crypto_ctx_create()
160 *err = PTR_ERR(type); in bpf_crypto_ctx_create()
165 *err = -EOPNOTSUPP; in bpf_crypto_ctx_create()
170 *err = -EOPNOTSUPP; in bpf_crypto_ctx_create()
175 *err = -EINVAL; in bpf_crypto_ctx_create()
181 *err = -ENOMEM; in bpf_crypto_ctx_create()
188 *err = PTR_ERR(ctx->tfm); in bpf_crypto_ctx_create()
193 *err = type->setauthsize(ctx->tfm, params->authsize); in bpf_crypto_ctx_create()
194 if (*err) in bpf_crypto_ctx_create()
198 *err = type->setkey(ctx->tfm, params->key, params->key_len); in bpf_crypto_ctx_create()
199 if (*err) in bpf_crypto_ctx_create()
203 *err = -EINVAL; in bpf_crypto_ctx_create()
273 int err; in bpf_crypto_crypt() local
298 err = decrypt ? ctx->type->decrypt(ctx->tfm, psrc, pdst, src_len, piv) in bpf_crypto_crypt()
301 return err; in bpf_crypto_crypt()