Home
last modified time | relevance | path

Searched refs:skreq (Results 1 – 12 of 12) sorted by relevance

/Linux-v4.19/drivers/crypto/cavium/nitrox/
Dnitrox_algs.c156 static void nitrox_skcipher_callback(struct skcipher_request *skreq, in nitrox_skcipher_callback() argument
163 skcipher_request_complete(skreq, err); in nitrox_skcipher_callback()
166 static int nitrox_skcipher_crypt(struct skcipher_request *skreq, bool enc) in nitrox_skcipher_crypt() argument
168 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(skreq); in nitrox_skcipher_crypt()
170 struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq); in nitrox_skcipher_crypt()
175 creq->flags = skreq->base.flags; in nitrox_skcipher_crypt()
176 creq->gfp = (skreq->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP) ? in nitrox_skcipher_crypt()
184 creq->gph.param0 = cpu_to_be16(skreq->cryptlen); in nitrox_skcipher_crypt()
194 memcpy(creq->iv, skreq->iv, ivsize); in nitrox_skcipher_crypt()
196 creq->src = skreq->src; in nitrox_skcipher_crypt()
[all …]
Dnitrox_reqmgr.c477 struct skcipher_request *skreq; in post_backlog_cmds() local
490 skreq = sr->skreq; in post_backlog_cmds()
495 skcipher_request_complete(skreq, -EINPROGRESS); in post_backlog_cmds()
532 struct skcipher_request *skreq) in nitrox_process_se_request() argument
549 sr->skreq = skreq; in nitrox_process_se_request()
672 struct skcipher_request *skreq; in process_response_list() local
703 skreq = sr->skreq; in process_response_list()
710 callback(skreq, err); in process_response_list()
Dnitrox_req.h195 struct skcipher_request *skreq; member
407 typedef void (*completion_t)(struct skcipher_request *skreq, int err);
443 struct skcipher_request *skreq; member
Dnitrox_common.h25 struct skcipher_request *skreq);
/Linux-v4.19/drivers/block/
Dskd_main.c362 struct skd_request_context *skreq);
364 struct skd_request_context *skreq);
378 struct skd_request_context *skreq, const char *event);
424 struct skd_request_context *skreq) in skd_prep_zerosize_flush_cdb() argument
426 skreq->flush_cmd = 1; in skd_prep_zerosize_flush_cdb()
487 struct skd_request_context *const skreq = blk_mq_rq_to_pdu(req); in skd_mq_queue_rq() local
502 SKD_ASSERT(skreq->state == SKD_REQ_STATE_IDLE); in skd_mq_queue_rq()
508 skreq->id = tag + SKD_ID_RW_REQUEST; in skd_mq_queue_rq()
509 skreq->flush_cmd = 0; in skd_mq_queue_rq()
510 skreq->n_sg = 0; in skd_mq_queue_rq()
[all …]
/Linux-v4.19/drivers/crypto/hisilicon/sec/
Dsec_algs.c436 struct skcipher_request *skreq = container_of(req_base, in sec_skcipher_alg_callback() local
439 struct sec_request *sec_req = skcipher_request_ctx(skreq); in sec_skcipher_alg_callback()
443 struct crypto_skcipher *atfm = crypto_skcipher_reqtfm(skreq); in sec_skcipher_alg_callback()
473 skreq->iv, in sec_skcipher_alg_callback()
480 skreq->iv, in sec_skcipher_alg_callback()
489 crypto_inc(skreq->iv, 16); in sec_skcipher_alg_callback()
544 dma_unmap_sg(dev, skreq->src, sec_req->len_in, in sec_skcipher_alg_callback()
546 if (skreq->src != skreq->dst) in sec_skcipher_alg_callback()
547 dma_unmap_sg(dev, skreq->dst, sec_req->len_out, in sec_skcipher_alg_callback()
549 skreq->base.complete(&skreq->base, sec_req->err); in sec_skcipher_alg_callback()
[all …]
/Linux-v4.19/crypto/
Dauthenc.c188 SKCIPHER_REQUEST_ON_STACK(skreq, ctx->null); in crypto_authenc_copy_assoc()
190 skcipher_request_set_tfm(skreq, ctx->null); in crypto_authenc_copy_assoc()
191 skcipher_request_set_callback(skreq, aead_request_flags(req), in crypto_authenc_copy_assoc()
193 skcipher_request_set_crypt(skreq, req->src, req->dst, req->assoclen, in crypto_authenc_copy_assoc()
196 return crypto_skcipher_encrypt(skreq); in crypto_authenc_copy_assoc()
208 struct skcipher_request *skreq = (void *)(areq_ctx->tail + in crypto_authenc_encrypt() local
224 skcipher_request_set_tfm(skreq, enc); in crypto_authenc_encrypt()
225 skcipher_request_set_callback(skreq, aead_request_flags(req), in crypto_authenc_encrypt()
227 skcipher_request_set_crypt(skreq, src, dst, cryptlen, req->iv); in crypto_authenc_encrypt()
229 err = crypto_skcipher_encrypt(skreq); in crypto_authenc_encrypt()
[all …]
Dauthencesn.c186 SKCIPHER_REQUEST_ON_STACK(skreq, ctx->null); in crypto_authenc_esn_copy()
188 skcipher_request_set_tfm(skreq, ctx->null); in crypto_authenc_esn_copy()
189 skcipher_request_set_callback(skreq, aead_request_flags(req), in crypto_authenc_esn_copy()
191 skcipher_request_set_crypt(skreq, req->src, req->dst, len, NULL); in crypto_authenc_esn_copy()
193 return crypto_skcipher_encrypt(skreq); in crypto_authenc_esn_copy()
201 struct skcipher_request *skreq = (void *)(areq_ctx->tail + in crypto_authenc_esn_encrypt() local
222 skcipher_request_set_tfm(skreq, enc); in crypto_authenc_esn_encrypt()
223 skcipher_request_set_callback(skreq, aead_request_flags(req), in crypto_authenc_esn_encrypt()
225 skcipher_request_set_crypt(skreq, src, dst, cryptlen, req->iv); in crypto_authenc_esn_encrypt()
227 err = crypto_skcipher_encrypt(skreq); in crypto_authenc_esn_encrypt()
[all …]
Dccm.c53 struct skcipher_request skreq; member
300 struct skcipher_request *skreq = &pctx->skreq; in crypto_ccm_encrypt() local
319 skcipher_request_set_tfm(skreq, ctx->ctr); in crypto_ccm_encrypt()
320 skcipher_request_set_callback(skreq, pctx->flags, in crypto_ccm_encrypt()
322 skcipher_request_set_crypt(skreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_encrypt()
323 err = crypto_skcipher_encrypt(skreq); in crypto_ccm_encrypt()
360 struct skcipher_request *skreq = &pctx->skreq; in crypto_ccm_decrypt() local
384 skcipher_request_set_tfm(skreq, ctx->ctr); in crypto_ccm_decrypt()
385 skcipher_request_set_callback(skreq, pctx->flags, in crypto_ccm_decrypt()
387 skcipher_request_set_crypt(skreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_decrypt()
[all …]
Dgcm.c77 struct skcipher_request skreq; member
205 struct skcipher_request *skreq = &pctx->u.skreq; in crypto_gcm_init_crypt() local
210 skcipher_request_set_tfm(skreq, ctx->ctr); in crypto_gcm_init_crypt()
211 skcipher_request_set_crypt(skreq, pctx->src, dst, in crypto_gcm_init_crypt()
476 struct skcipher_request *skreq = &pctx->u.skreq; in crypto_gcm_encrypt() local
481 skcipher_request_set_callback(skreq, flags, gcm_encrypt_done, req); in crypto_gcm_encrypt()
483 return crypto_skcipher_encrypt(skreq) ?: in crypto_gcm_encrypt()
515 struct skcipher_request *skreq = &pctx->u.skreq; in gcm_dec_hash_continue() local
519 skcipher_request_set_callback(skreq, flags, gcm_decrypt_done, req); in gcm_dec_hash_continue()
520 return crypto_skcipher_decrypt(skreq) ?: crypto_gcm_verify(req); in gcm_dec_hash_continue()
Dalgif_aead.c82 SKCIPHER_REQUEST_ON_STACK(skreq, null_tfm); in crypto_aead_copy_sgl()
84 skcipher_request_set_tfm(skreq, null_tfm); in crypto_aead_copy_sgl()
85 skcipher_request_set_callback(skreq, CRYPTO_TFM_REQ_MAY_BACKLOG, in crypto_aead_copy_sgl()
87 skcipher_request_set_crypt(skreq, src, dst, len, NULL); in crypto_aead_copy_sgl()
89 return crypto_skcipher_encrypt(skreq); in crypto_aead_copy_sgl()
/Linux-v4.19/drivers/crypto/marvell/
Dcipher.c139 struct skcipher_request *skreq = skcipher_request_cast(req); in mv_cesa_skcipher_process() local
140 struct mv_cesa_skcipher_req *creq = skcipher_request_ctx(skreq); in mv_cesa_skcipher_process()
144 return mv_cesa_skcipher_std_process(skreq, status); in mv_cesa_skcipher_process()
151 struct skcipher_request *skreq = skcipher_request_cast(req); in mv_cesa_skcipher_step() local
152 struct mv_cesa_skcipher_req *creq = skcipher_request_ctx(skreq); in mv_cesa_skcipher_step()
157 mv_cesa_skcipher_std_step(skreq); in mv_cesa_skcipher_step()
182 struct skcipher_request *skreq = skcipher_request_cast(req); in mv_cesa_skcipher_prepare() local
183 struct mv_cesa_skcipher_req *creq = skcipher_request_ctx(skreq); in mv_cesa_skcipher_prepare()
187 mv_cesa_skcipher_dma_prepare(skreq); in mv_cesa_skcipher_prepare()
189 mv_cesa_skcipher_std_prepare(skreq); in mv_cesa_skcipher_prepare()
[all …]