Lines Matching refs:tfm
30 struct qce_alg_template *tmpl = to_cipher_tmpl(async_req->tfm); in qce_ablkcipher_done()
67 struct qce_alg_template *tmpl = to_cipher_tmpl(async_req->tfm); in qce_ablkcipher_async_req_handle()
165 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(ablk); in qce_ablkcipher_setkey() local
166 struct qce_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in qce_ablkcipher_setkey()
167 unsigned long flags = to_cipher_tmpl(tfm)->alg_flags; in qce_ablkcipher_setkey()
205 struct crypto_tfm *tfm = in qce_ablkcipher_crypt() local
207 struct qce_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in qce_ablkcipher_crypt()
209 struct qce_alg_template *tmpl = to_cipher_tmpl(tfm); in qce_ablkcipher_crypt()
220 ablkcipher_request_set_tfm(req, __crypto_ablkcipher_cast(tfm)); in qce_ablkcipher_crypt()
237 static int qce_ablkcipher_init(struct crypto_tfm *tfm) in qce_ablkcipher_init() argument
239 struct qce_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in qce_ablkcipher_init()
242 tfm->crt_ablkcipher.reqsize = sizeof(struct qce_cipher_reqctx); in qce_ablkcipher_init()
244 ctx->fallback = crypto_alloc_ablkcipher(crypto_tfm_alg_name(tfm), in qce_ablkcipher_init()
254 static void qce_ablkcipher_exit(struct crypto_tfm *tfm) in qce_ablkcipher_exit() argument
256 struct qce_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in qce_ablkcipher_exit()