/kernel/linux/linux-5.10/drivers/crypto/cavium/nitrox/ |
H A D | nitrox_skcipher.c | 51 static void free_src_sglist(struct skcipher_request *skreq) in free_src_sglist() argument 53 struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq); in free_src_sglist() 58 static void free_dst_sglist(struct skcipher_request *skreq) in free_dst_sglist() argument 60 struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq); in free_dst_sglist() 67 struct skcipher_request *skreq = arg; in nitrox_skcipher_callback() local 69 free_src_sglist(skreq); in nitrox_skcipher_callback() 70 free_dst_sglist(skreq); in nitrox_skcipher_callback() 76 skcipher_request_complete(skreq, err); in nitrox_skcipher_callback() 81 struct skcipher_request *skreq = arg; in nitrox_cbc_cipher_callback() local 82 struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq); in nitrox_cbc_cipher_callback() 208 alloc_src_sglist(struct skcipher_request *skreq, int ivsize) alloc_src_sglist() argument 226 alloc_dst_sglist(struct skcipher_request *skreq, int ivsize) alloc_dst_sglist() argument 247 nitrox_skcipher_crypt(struct skcipher_request *skreq, bool enc) nitrox_skcipher_crypt() argument 290 nitrox_cbc_decrypt(struct skcipher_request *skreq) nitrox_cbc_decrypt() argument 310 nitrox_aes_encrypt(struct skcipher_request *skreq) nitrox_aes_encrypt() argument 315 nitrox_aes_decrypt(struct skcipher_request *skreq) nitrox_aes_decrypt() argument 327 nitrox_3des_encrypt(struct skcipher_request *skreq) nitrox_3des_encrypt() argument 332 nitrox_3des_decrypt(struct skcipher_request *skreq) nitrox_3des_decrypt() argument [all...] |
/kernel/linux/linux-6.6/drivers/crypto/cavium/nitrox/ |
H A D | nitrox_skcipher.c | 51 static void free_src_sglist(struct skcipher_request *skreq) in free_src_sglist() argument 53 struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq); in free_src_sglist() 58 static void free_dst_sglist(struct skcipher_request *skreq) in free_dst_sglist() argument 60 struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq); in free_dst_sglist() 67 struct skcipher_request *skreq = arg; in nitrox_skcipher_callback() local 69 free_src_sglist(skreq); in nitrox_skcipher_callback() 70 free_dst_sglist(skreq); in nitrox_skcipher_callback() 76 skcipher_request_complete(skreq, err); in nitrox_skcipher_callback() 81 struct skcipher_request *skreq = arg; in nitrox_cbc_cipher_callback() local 82 struct nitrox_kcrypt_request *nkreq = skcipher_request_ctx(skreq); in nitrox_cbc_cipher_callback() 208 alloc_src_sglist(struct skcipher_request *skreq, int ivsize) alloc_src_sglist() argument 226 alloc_dst_sglist(struct skcipher_request *skreq, int ivsize) alloc_dst_sglist() argument 247 nitrox_skcipher_crypt(struct skcipher_request *skreq, bool enc) nitrox_skcipher_crypt() argument 290 nitrox_cbc_decrypt(struct skcipher_request *skreq) nitrox_cbc_decrypt() argument 310 nitrox_aes_encrypt(struct skcipher_request *skreq) nitrox_aes_encrypt() argument 315 nitrox_aes_decrypt(struct skcipher_request *skreq) nitrox_aes_decrypt() argument 327 nitrox_3des_encrypt(struct skcipher_request *skreq) nitrox_3des_encrypt() argument 332 nitrox_3des_decrypt(struct skcipher_request *skreq) nitrox_3des_decrypt() argument [all...] |
/kernel/linux/linux-5.10/drivers/block/ |
H A D | skd_main.c | 360 struct skd_request_context *skreq); 362 struct skd_request_context *skreq); 376 struct skd_request_context *skreq, const char *event); 423 struct skd_request_context *skreq) in skd_prep_zerosize_flush_cdb() 425 skreq->flush_cmd = 1; in skd_prep_zerosize_flush_cdb() 486 struct skd_request_context *const skreq = blk_mq_rq_to_pdu(req); in skd_mq_queue_rq() local 497 skreq->retries = 0; in skd_mq_queue_rq() 506 SKD_ASSERT(skreq->state == SKD_REQ_STATE_IDLE); in skd_mq_queue_rq() 512 skreq->id = tag + SKD_ID_RW_REQUEST; in skd_mq_queue_rq() 513 skreq in skd_mq_queue_rq() 422 skd_prep_zerosize_flush_cdb(struct skd_scsi_request *scsi_req, struct skd_request_context *skreq) skd_prep_zerosize_flush_cdb() argument 613 struct skd_request_context *skreq = blk_mq_rq_to_pdu(req); skd_complete_rq() local 618 skd_preop_sg_list(struct skd_device *skdev, struct skd_request_context *skreq) skd_preop_sg_list() argument 679 skd_postop_sg_list(struct skd_device *skdev, struct skd_request_context *skreq) skd_postop_sg_list() argument 1409 skd_resolve_req_exception(struct skd_device *skdev, struct skd_request_context *skreq, struct request *req) skd_resolve_req_exception() argument 1449 skd_release_skreq(struct skd_device *skdev, struct skd_request_context *skreq) skd_release_skreq() argument 1467 struct skd_request_context *skreq; skd_isr_completion_posted() local 1900 struct skd_request_context *skreq = blk_mq_rq_to_pdu(req); skd_recover_request() local 2745 struct skd_request_context *skreq = blk_mq_rq_to_pdu(rq); skd_init_request() local 2760 struct skd_request_context *skreq = blk_mq_rq_to_pdu(rq); skd_exit_request() local 3579 skd_log_skreq(struct skd_device *skdev, struct skd_request_context *skreq, const char *event) skd_log_skreq() argument [all...] |
/kernel/linux/linux-5.10/crypto/ |
H A D | authencesn.c | 171 SYNC_SKCIPHER_REQUEST_ON_STACK(skreq, ctx->null); in crypto_authenc_esn_copy() 173 skcipher_request_set_sync_tfm(skreq, ctx->null); in crypto_authenc_esn_copy() 174 skcipher_request_set_callback(skreq, aead_request_flags(req), in crypto_authenc_esn_copy() 176 skcipher_request_set_crypt(skreq, req->src, req->dst, len, NULL); in crypto_authenc_esn_copy() 178 return crypto_skcipher_encrypt(skreq); in crypto_authenc_esn_copy() 186 struct skcipher_request *skreq = (void *)(areq_ctx->tail + in crypto_authenc_esn_encrypt() local 207 skcipher_request_set_tfm(skreq, enc); in crypto_authenc_esn_encrypt() 208 skcipher_request_set_callback(skreq, aead_request_flags(req), in crypto_authenc_esn_encrypt() 210 skcipher_request_set_crypt(skreq, src, dst, cryptlen, req->iv); in crypto_authenc_esn_encrypt() 212 err = crypto_skcipher_encrypt(skreq); in crypto_authenc_esn_encrypt() 226 struct skcipher_request *skreq = (void *)(areq_ctx->tail + crypto_authenc_esn_decrypt_tail() local [all...] |
H A D | authenc.c | 181 SYNC_SKCIPHER_REQUEST_ON_STACK(skreq, ctx->null); in crypto_authenc_copy_assoc() 183 skcipher_request_set_sync_tfm(skreq, ctx->null); in crypto_authenc_copy_assoc() 184 skcipher_request_set_callback(skreq, aead_request_flags(req), in crypto_authenc_copy_assoc() 186 skcipher_request_set_crypt(skreq, req->src, req->dst, req->assoclen, in crypto_authenc_copy_assoc() 189 return crypto_skcipher_encrypt(skreq); in crypto_authenc_copy_assoc() 201 struct skcipher_request *skreq = (void *)(areq_ctx->tail + in crypto_authenc_encrypt() local 217 skcipher_request_set_tfm(skreq, enc); in crypto_authenc_encrypt() 218 skcipher_request_set_callback(skreq, aead_request_flags(req), in crypto_authenc_encrypt() 220 skcipher_request_set_crypt(skreq, src, dst, cryptlen, req->iv); in crypto_authenc_encrypt() 222 err = crypto_skcipher_encrypt(skreq); in crypto_authenc_encrypt() 238 struct skcipher_request *skreq = (void *)(areq_ctx->tail + crypto_authenc_decrypt_tail() local [all...] |
H A D | ccm.c | 48 struct skcipher_request skreq; member 289 struct skcipher_request *skreq = &pctx->skreq; in crypto_ccm_encrypt() local 308 skcipher_request_set_tfm(skreq, ctx->ctr); in crypto_ccm_encrypt() 309 skcipher_request_set_callback(skreq, pctx->flags, in crypto_ccm_encrypt() 311 skcipher_request_set_crypt(skreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_encrypt() 312 err = crypto_skcipher_encrypt(skreq); in crypto_ccm_encrypt() 349 struct skcipher_request *skreq = &pctx->skreq; in crypto_ccm_decrypt() local 373 skcipher_request_set_tfm(skreq, ct in crypto_ccm_decrypt() [all...] |
H A D | gcm.c | 73 struct skcipher_request skreq; member 183 struct skcipher_request *skreq = &pctx->u.skreq; in crypto_gcm_init_crypt() local 188 skcipher_request_set_tfm(skreq, ctx->ctr); in crypto_gcm_init_crypt() 189 skcipher_request_set_crypt(skreq, pctx->src, dst, in crypto_gcm_init_crypt() 454 struct skcipher_request *skreq = &pctx->u.skreq; in crypto_gcm_encrypt() local 459 skcipher_request_set_callback(skreq, flags, gcm_encrypt_done, req); in crypto_gcm_encrypt() 461 return crypto_skcipher_encrypt(skreq) ?: in crypto_gcm_encrypt() 493 struct skcipher_request *skreq in gcm_dec_hash_continue() local [all...] |
H A D | algif_aead.c | 78 SYNC_SKCIPHER_REQUEST_ON_STACK(skreq, null_tfm); in crypto_aead_copy_sgl() 80 skcipher_request_set_sync_tfm(skreq, null_tfm); in crypto_aead_copy_sgl() 81 skcipher_request_set_callback(skreq, CRYPTO_TFM_REQ_MAY_SLEEP, in crypto_aead_copy_sgl() 83 skcipher_request_set_crypt(skreq, src, dst, len, NULL); in crypto_aead_copy_sgl() 85 return crypto_skcipher_encrypt(skreq); in crypto_aead_copy_sgl()
|
/kernel/linux/linux-6.6/crypto/ |
H A D | authenc.c | 180 SYNC_SKCIPHER_REQUEST_ON_STACK(skreq, ctx->null); in crypto_authenc_copy_assoc() 182 skcipher_request_set_sync_tfm(skreq, ctx->null); in crypto_authenc_copy_assoc() 183 skcipher_request_set_callback(skreq, aead_request_flags(req), in crypto_authenc_copy_assoc() 185 skcipher_request_set_crypt(skreq, req->src, req->dst, req->assoclen, in crypto_authenc_copy_assoc() 188 return crypto_skcipher_encrypt(skreq); in crypto_authenc_copy_assoc() 200 struct skcipher_request *skreq = (void *)(areq_ctx->tail + in crypto_authenc_encrypt() local 216 skcipher_request_set_tfm(skreq, enc); in crypto_authenc_encrypt() 217 skcipher_request_set_callback(skreq, aead_request_flags(req), in crypto_authenc_encrypt() 219 skcipher_request_set_crypt(skreq, src, dst, cryptlen, req->iv); in crypto_authenc_encrypt() 221 err = crypto_skcipher_encrypt(skreq); in crypto_authenc_encrypt() 237 struct skcipher_request *skreq = (void *)(areq_ctx->tail + crypto_authenc_decrypt_tail() local [all...] |
H A D | authencesn.c | 169 SYNC_SKCIPHER_REQUEST_ON_STACK(skreq, ctx->null); in crypto_authenc_esn_copy() 171 skcipher_request_set_sync_tfm(skreq, ctx->null); in crypto_authenc_esn_copy() 172 skcipher_request_set_callback(skreq, aead_request_flags(req), in crypto_authenc_esn_copy() 174 skcipher_request_set_crypt(skreq, req->src, req->dst, len, NULL); in crypto_authenc_esn_copy() 176 return crypto_skcipher_encrypt(skreq); in crypto_authenc_esn_copy() 184 struct skcipher_request *skreq = (void *)(areq_ctx->tail + in crypto_authenc_esn_encrypt() local 205 skcipher_request_set_tfm(skreq, enc); in crypto_authenc_esn_encrypt() 206 skcipher_request_set_callback(skreq, aead_request_flags(req), in crypto_authenc_esn_encrypt() 208 skcipher_request_set_crypt(skreq, src, dst, cryptlen, req->iv); in crypto_authenc_esn_encrypt() 210 err = crypto_skcipher_encrypt(skreq); in crypto_authenc_esn_encrypt() 224 struct skcipher_request *skreq = (void *)(areq_ctx->tail + crypto_authenc_esn_decrypt_tail() local [all...] |
H A D | ccm.c | 49 struct skcipher_request skreq; member 290 struct skcipher_request *skreq = &pctx->skreq; in crypto_ccm_encrypt() local 309 skcipher_request_set_tfm(skreq, ctx->ctr); in crypto_ccm_encrypt() 310 skcipher_request_set_callback(skreq, pctx->flags, in crypto_ccm_encrypt() 312 skcipher_request_set_crypt(skreq, pctx->src, dst, cryptlen + 16, iv); in crypto_ccm_encrypt() 313 err = crypto_skcipher_encrypt(skreq); in crypto_ccm_encrypt() 349 struct skcipher_request *skreq = &pctx->skreq; in crypto_ccm_decrypt() local 373 skcipher_request_set_tfm(skreq, ct in crypto_ccm_decrypt() [all...] |
H A D | gcm.c | 73 struct skcipher_request skreq; member 183 struct skcipher_request *skreq = &pctx->u.skreq; in crypto_gcm_init_crypt() local 188 skcipher_request_set_tfm(skreq, ctx->ctr); in crypto_gcm_init_crypt() 189 skcipher_request_set_crypt(skreq, pctx->src, dst, in crypto_gcm_init_crypt() 452 struct skcipher_request *skreq = &pctx->u.skreq; in crypto_gcm_encrypt() local 457 skcipher_request_set_callback(skreq, flags, gcm_encrypt_done, req); in crypto_gcm_encrypt() 459 return crypto_skcipher_encrypt(skreq) ?: in crypto_gcm_encrypt() 491 struct skcipher_request *skreq in gcm_dec_hash_continue() local [all...] |
H A D | algif_aead.c | 78 SYNC_SKCIPHER_REQUEST_ON_STACK(skreq, null_tfm); in crypto_aead_copy_sgl() 80 skcipher_request_set_sync_tfm(skreq, null_tfm); in crypto_aead_copy_sgl() 81 skcipher_request_set_callback(skreq, CRYPTO_TFM_REQ_MAY_SLEEP, in crypto_aead_copy_sgl() 83 skcipher_request_set_crypt(skreq, src, dst, len, NULL); in crypto_aead_copy_sgl() 85 return crypto_skcipher_encrypt(skreq); in crypto_aead_copy_sgl()
|
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/sec/ |
H A D | sec_algs.c | 424 struct skcipher_request *skreq = container_of(req_base, in sec_skcipher_alg_callback() local 427 struct sec_request *sec_req = skcipher_request_ctx(skreq); in sec_skcipher_alg_callback() 431 struct crypto_skcipher *atfm = crypto_skcipher_reqtfm(skreq); in sec_skcipher_alg_callback() 461 skreq->iv, in sec_skcipher_alg_callback() 468 skreq->iv, in sec_skcipher_alg_callback() 477 crypto_inc(skreq->iv, 16); in sec_skcipher_alg_callback() 532 dma_unmap_sg(dev, skreq->src, sec_req->len_in, in sec_skcipher_alg_callback() 534 if (skreq->src != skreq->dst) in sec_skcipher_alg_callback() 535 dma_unmap_sg(dev, skreq in sec_skcipher_alg_callback() 707 sec_alg_skcipher_crypto(struct skcipher_request *skreq, bool encrypt) sec_alg_skcipher_crypto() argument [all...] |
/kernel/linux/linux-6.6/drivers/crypto/hisilicon/sec/ |
H A D | sec_algs.c | 424 struct skcipher_request *skreq = container_of(req_base, in sec_skcipher_alg_callback() local 427 struct sec_request *sec_req = skcipher_request_ctx(skreq); in sec_skcipher_alg_callback() 431 struct crypto_skcipher *atfm = crypto_skcipher_reqtfm(skreq); in sec_skcipher_alg_callback() 461 skreq->iv, in sec_skcipher_alg_callback() 468 skreq->iv, in sec_skcipher_alg_callback() 477 crypto_inc(skreq->iv, 16); in sec_skcipher_alg_callback() 532 dma_unmap_sg(dev, skreq->src, sec_req->len_in, in sec_skcipher_alg_callback() 534 if (skreq->src != skreq->dst) in sec_skcipher_alg_callback() 535 dma_unmap_sg(dev, skreq in sec_skcipher_alg_callback() 707 sec_alg_skcipher_crypto(struct skcipher_request *skreq, bool encrypt) sec_alg_skcipher_crypto() argument [all...] |
/kernel/linux/linux-6.6/drivers/crypto/marvell/cesa/ |
H A D | cipher.c | 145 struct skcipher_request *skreq = skcipher_request_cast(req); in mv_cesa_skcipher_process() local 146 struct mv_cesa_skcipher_req *creq = skcipher_request_ctx(skreq); in mv_cesa_skcipher_process() 150 return mv_cesa_skcipher_std_process(skreq, status); in mv_cesa_skcipher_process() 157 struct skcipher_request *skreq = skcipher_request_cast(req); in mv_cesa_skcipher_step() local 158 struct mv_cesa_skcipher_req *creq = skcipher_request_ctx(skreq); in mv_cesa_skcipher_step() 163 mv_cesa_skcipher_std_step(skreq); in mv_cesa_skcipher_step() 188 struct skcipher_request *skreq = skcipher_request_cast(req); in mv_cesa_skcipher_prepare() local 189 struct mv_cesa_skcipher_req *creq = skcipher_request_ctx(skreq); in mv_cesa_skcipher_prepare() 194 mv_cesa_skcipher_dma_prepare(skreq); in mv_cesa_skcipher_prepare() 196 mv_cesa_skcipher_std_prepare(skreq); in mv_cesa_skcipher_prepare() 202 struct skcipher_request *skreq = skcipher_request_cast(req); mv_cesa_skcipher_req_cleanup() local 210 struct skcipher_request *skreq = skcipher_request_cast(req); mv_cesa_skcipher_complete() local [all...] |
/kernel/linux/linux-5.10/drivers/crypto/marvell/cesa/ |
H A D | cipher.c | 138 struct skcipher_request *skreq = skcipher_request_cast(req); in mv_cesa_skcipher_process() local 139 struct mv_cesa_skcipher_req *creq = skcipher_request_ctx(skreq); in mv_cesa_skcipher_process() 143 return mv_cesa_skcipher_std_process(skreq, status); in mv_cesa_skcipher_process() 150 struct skcipher_request *skreq = skcipher_request_cast(req); in mv_cesa_skcipher_step() local 151 struct mv_cesa_skcipher_req *creq = skcipher_request_ctx(skreq); in mv_cesa_skcipher_step() 156 mv_cesa_skcipher_std_step(skreq); in mv_cesa_skcipher_step() 181 struct skcipher_request *skreq = skcipher_request_cast(req); in mv_cesa_skcipher_prepare() local 182 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() 195 struct skcipher_request *skreq = skcipher_request_cast(req); mv_cesa_skcipher_req_cleanup() local 203 struct skcipher_request *skreq = skcipher_request_cast(req); mv_cesa_skcipher_complete() local [all...] |