Home
last modified time | relevance | path

Searched refs:src_sg (Results 1 – 20 of 20) sorted by relevance

/linux-6.1.9/drivers/crypto/amlogic/
Damlogic-gxl-cipher.c27 struct scatterlist *src_sg = areq->src; in meson_cipher_need_fallback() local
33 if (sg_nents(src_sg) != sg_nents(dst_sg)) in meson_cipher_need_fallback()
37 if (sg_nents(src_sg) > MAXDESC - 3 || sg_nents(dst_sg) > MAXDESC - 3) in meson_cipher_need_fallback()
40 while (src_sg && dst_sg) { in meson_cipher_need_fallback()
41 if ((src_sg->length % 16) != 0) in meson_cipher_need_fallback()
45 if (src_sg->length != dst_sg->length) in meson_cipher_need_fallback()
47 if (!IS_ALIGNED(src_sg->offset, sizeof(u32))) in meson_cipher_need_fallback()
51 src_sg = sg_next(src_sg); in meson_cipher_need_fallback()
94 struct scatterlist *src_sg = areq->src; in meson_cipher() local
203 src_sg = areq->src; in meson_cipher()
[all …]
/linux-6.1.9/drivers/crypto/ccp/
Dccp-dmaengine.c355 struct scatterlist *src_sg, in ccp_create_desc() argument
372 if (!dst_sg || !src_sg) in ccp_create_desc()
384 src_len = sg_dma_len(src_sg); in ccp_create_desc()
396 src_sg = sg_next(src_sg); in ccp_create_desc()
397 if (!src_sg) in ccp_create_desc()
400 src_len = sg_dma_len(src_sg); in ccp_create_desc()
433 ccp_pt->src_dma = sg_dma_address(src_sg) + src_offset; in ccp_create_desc()
485 struct scatterlist dst_sg, src_sg; in ccp_prep_dma_memcpy() local
495 sg_init_table(&src_sg, 1); in ccp_prep_dma_memcpy()
496 sg_dma_address(&src_sg) = src; in ccp_prep_dma_memcpy()
[all …]
/linux-6.1.9/drivers/scsi/arm/
Darm_scsi.h45 struct scatterlist *src_sg; in copy_SCp_to_sg() local
48 for_each_sg(sg_next(SCp->buffer), src_sg, bufs, i) in copy_SCp_to_sg()
49 *(++sg) = *src_sg; in copy_SCp_to_sg()
/linux-6.1.9/drivers/mailbox/
Dbcm-flexrm-mailbox.c596 struct scatterlist *src_sg = msg->spu.src, *dst_sg = msg->spu.dst; in flexrm_spu_estimate_nonheader_desc_count() local
598 while (src_sg || dst_sg) { in flexrm_spu_estimate_nonheader_desc_count()
599 if (src_sg) { in flexrm_spu_estimate_nonheader_desc_count()
601 dst_target = src_sg->length; in flexrm_spu_estimate_nonheader_desc_count()
602 src_sg = sg_next(src_sg); in flexrm_spu_estimate_nonheader_desc_count()
655 struct scatterlist *src_sg = msg->spu.src, *dst_sg = msg->spu.dst; in flexrm_spu_write_descs() local
657 while (src_sg || dst_sg) { in flexrm_spu_write_descs()
658 if (src_sg) { in flexrm_spu_write_descs()
659 if (sg_dma_len(src_sg) & 0xf) in flexrm_spu_write_descs()
660 d = flexrm_src_desc(sg_dma_address(src_sg), in flexrm_spu_write_descs()
[all …]
Dbcm-pdc-mailbox.c396 struct scatterlist *src_sg[PDC_RING_ENTRIES]; member
611 dma_unmap_sg(dev, pdcs->src_sg[pdcs->txin], in pdc_receive_one()
612 sg_nents(pdcs->src_sg[pdcs->txin]), DMA_TO_DEVICE); in pdc_receive_one()
735 pdcs->src_sg[pdcs->txout] = sg; in pdc_tx_list_sg_add()
/linux-6.1.9/drivers/crypto/qce/
Daead.c49 dma_unmap_sg(qce->dev, rctx->src_sg, rctx->src_nents, dir_src); in qce_aead_done()
277 rctx->src_sg = rctx->src_tbl.sgl; in qce_aead_ccm_prepare_buf_assoclen()
279 rctx->src_nents = sg_nents_for_len(rctx->src_sg, totallen); in qce_aead_ccm_prepare_buf_assoclen()
292 rctx->dst_sg = rctx->src_sg; in qce_aead_ccm_prepare_buf_assoclen()
321 rctx->src_sg = req->src; in qce_aead_prepare_buf()
324 rctx->src_sg = rctx->dst_sg; in qce_aead_prepare_buf()
347 rctx->src_sg = req->src; in qce_aead_ccm_prepare_buf()
353 rctx->src_sg = req->src; in qce_aead_ccm_prepare_buf()
355 rctx->dst_sg = rctx->src_sg; in qce_aead_ccm_prepare_buf()
459 src_nents = dma_map_sg(qce->dev, rctx->src_sg, rctx->src_nents, dir_src); in qce_aead_async_req_handle()
[all …]
Dcipher.h43 struct scatterlist *src_sg; member
Dskcipher.c50 dma_unmap_sg(qce->dev, rctx->src_sg, rctx->src_nents, dir_src); in qce_skcipher_done()
138 rctx->src_sg = req->src; in qce_skcipher_async_req_handle()
140 rctx->src_sg = rctx->dst_sg; in qce_skcipher_async_req_handle()
144 ret = qce_dma_prep_sgs(&qce->dma, rctx->src_sg, src_nents, in qce_skcipher_async_req_handle()
Daead.h37 struct scatterlist *src_sg; member
/linux-6.1.9/crypto/asymmetric_keys/
Dpublic_key.c363 struct scatterlist src_sg[2]; in public_key_verify_signature() local
427 sg_init_table(src_sg, 2); in public_key_verify_signature()
428 sg_set_buf(&src_sg[0], sig->s, sig->s_size); in public_key_verify_signature()
429 sg_set_buf(&src_sg[1], sig->digest, sig->digest_size); in public_key_verify_signature()
430 akcipher_request_set_crypt(req, src_sg, NULL, sig->s_size, in public_key_verify_signature()
/linux-6.1.9/drivers/dma/
Dnbpfaxi.c921 struct scatterlist *src_sg, struct scatterlist *dst_sg, in nbpf_prep_sg() argument
940 mem_sg = src_sg; in nbpf_prep_sg()
947 mem_sg = src_sg; in nbpf_prep_sg()
966 sg_dma_address(src_sg), in nbpf_prep_sg()
976 src_sg = sg_next(src_sg); in nbpf_prep_sg()
979 mem_sg = direction == DMA_DEV_TO_MEM ? dst_sg : src_sg; in nbpf_prep_sg()
995 struct scatterlist src_sg; in nbpf_prep_memcpy() local
998 sg_init_table(&src_sg, 1); in nbpf_prep_memcpy()
1001 sg_dma_address(&src_sg) = src; in nbpf_prep_memcpy()
1004 sg_dma_len(&src_sg) = len; in nbpf_prep_memcpy()
[all …]
Dste_dma40.c2481 struct scatterlist src_sg; in d40_prep_memcpy() local
2484 sg_init_table(&src_sg, 1); in d40_prep_memcpy()
2487 sg_dma_address(&src_sg) = src; in d40_prep_memcpy()
2490 sg_dma_len(&src_sg) = size; in d40_prep_memcpy()
2492 return d40_prep_sg(chan, &src_sg, &dst_sg, 1, in d40_prep_memcpy()
/linux-6.1.9/fs/crypto/
Dkeysetup_v1.c54 struct scatterlist src_sg, dst_sg; in derive_key_aes() local
75 sg_init_one(&src_sg, master_key, derived_keysize); in derive_key_aes()
77 skcipher_request_set_crypt(req, &src_sg, &dst_sg, derived_keysize, in derive_key_aes()
Dfname.c159 struct scatterlist src_sg, dst_sg; in fname_decrypt() local
177 sg_init_one(&src_sg, iname->name, iname->len); in fname_decrypt()
179 skcipher_request_set_crypt(req, &src_sg, &dst_sg, iname->len, &iv); in fname_decrypt()
/linux-6.1.9/drivers/crypto/aspeed/
Daspeed-hace-hash.c143 rctx->bufcnt, rctx->src_sg, in aspeed_ahash_dma_prepare()
152 scatterwalk_map_and_copy(rctx->buffer, rctx->src_sg, in aspeed_ahash_dma_prepare()
192 sg_len = dma_map_sg(hace_dev->dev, rctx->src_sg, rctx->src_nents, in aspeed_ahash_dma_prepare_sg()
238 for_each_sg(rctx->src_sg, s, sg_len, i) { in aspeed_ahash_dma_prepare_sg()
276 dma_unmap_sg(hace_dev->dev, rctx->src_sg, rctx->src_nents, in aspeed_ahash_dma_prepare_sg()
472 dma_unmap_sg(hace_dev->dev, rctx->src_sg, rctx->src_nents, in aspeed_ahash_update_resume_sg()
483 scatterwalk_map_and_copy(rctx->buffer, rctx->src_sg, rctx->offset, in aspeed_ahash_update_resume_sg()
598 rctx->src_sg = req->src; in aspeed_sham_update()
609 rctx->src_sg, rctx->offset, in aspeed_sham_update()
Daspeed-hace.h195 struct scatterlist *src_sg; member
/linux-6.1.9/fs/ecryptfs/
Dkeystore.c597 struct scatterlist src_sg[2]; member
793 s->block_aligned_filename_size, s->src_sg, 2); in ecryptfs_write_tag_70_packet()
828 skcipher_request_set_crypt(s->skcipher_req, s->src_sg, s->dst_sg, in ecryptfs_write_tag_70_packet()
867 struct scatterlist src_sg[2]; member
981 s->block_aligned_filename_size, s->src_sg, 2); in ecryptfs_parse_tag_70_packet()
1044 skcipher_request_set_crypt(s->skcipher_req, s->src_sg, s->dst_sg, in ecryptfs_parse_tag_70_packet()
1650 struct scatterlist src_sg[2]; in decrypt_passphrase_encrypted_session_key() local
1674 src_sg, 2); in decrypt_passphrase_encrypted_session_key()
1716 skcipher_request_set_crypt(req, src_sg, dst_sg, in decrypt_passphrase_encrypted_session_key()
2183 struct scatterlist src_sg[2]; in write_tag_3_packet() local
[all …]
Dcrypto.c292 struct scatterlist *src_sg, int size, in crypt_scatterlist() argument
334 skcipher_request_set_crypt(req, src_sg, dst_sg, size, iv); in crypt_scatterlist()
382 struct scatterlist src_sg, dst_sg; in crypt_extent() local
396 sg_init_table(&src_sg, 1); in crypt_extent()
399 sg_set_page(&src_sg, src_page, extent_size, in crypt_extent()
404 rc = crypt_scatterlist(crypt_stat, &dst_sg, &src_sg, extent_size, in crypt_extent()
/linux-6.1.9/drivers/crypto/bcm/
Dcipher.c225 datalen = spu_msg_sg_add(&sg, &rctx->src_sg, &rctx->src_skip, in spu_skcipher_tx_sg_create()
348 rctx->src_nents = spu_sg_count(rctx->src_sg, rctx->src_skip, chunksize); in handle_skcipher_req()
422 dump_sg(rctx->src_sg, rctx->src_skip, chunksize); in handle_skcipher_req()
606 datalen = spu_msg_sg_add(&sg, &rctx->src_sg, &rctx->src_skip, in spu_ahash_tx_sg_create()
769 rctx->src_nents = spu_sg_count(rctx->src_sg, rctx->src_skip, in handle_ahash_req()
854 dump_sg(rctx->src_sg, rctx->src_skip, new_data_len); in handle_ahash_req()
1217 written = spu_msg_sg_add(&sg, &rctx->src_sg, &rctx->src_skip, in spu_aead_tx_sg_create()
1344 rctx->src_nents = spu_sg_count(rctx->src_sg, rctx->src_skip, chunksize); in handle_aead_req()
1461 dump_sg(rctx->src_sg, rctx->src_skip, chunksize); in handle_aead_req()
1734 rctx->src_sg = req->src; in skcipher_enqueue()
[all …]
Dcipher.h286 struct scatterlist *src_sg; member