Lines Matching refs:tfm
30 struct qce_alg_template *tmpl = to_cipher_tmpl(async_req->tfm); in qce_ablkcipher_done()
65 struct qce_alg_template *tmpl = to_cipher_tmpl(async_req->tfm); in qce_ablkcipher_async_req_handle()
155 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(ablk); in qce_ablkcipher_setkey() local
156 struct qce_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in qce_ablkcipher_setkey()
157 unsigned long flags = to_cipher_tmpl(tfm)->alg_flags; in qce_ablkcipher_setkey()
195 struct crypto_tfm *tfm = in qce_ablkcipher_crypt() local
197 struct qce_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in qce_ablkcipher_crypt()
199 struct qce_alg_template *tmpl = to_cipher_tmpl(tfm); in qce_ablkcipher_crypt()
210 ablkcipher_request_set_tfm(req, __crypto_ablkcipher_cast(tfm)); in qce_ablkcipher_crypt()
227 static int qce_ablkcipher_init(struct crypto_tfm *tfm) in qce_ablkcipher_init() argument
229 struct qce_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in qce_ablkcipher_init()
232 tfm->crt_ablkcipher.reqsize = sizeof(struct qce_cipher_reqctx); in qce_ablkcipher_init()
234 ctx->fallback = crypto_alloc_ablkcipher(crypto_tfm_alg_name(tfm), in qce_ablkcipher_init()
244 static void qce_ablkcipher_exit(struct crypto_tfm *tfm) in qce_ablkcipher_exit() argument
246 struct qce_cipher_ctx *ctx = crypto_tfm_ctx(tfm); in qce_ablkcipher_exit()