/linux-6.1.9/drivers/crypto/amlogic/ |
D | amlogic-gxl-cipher.c | 27 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/ |
D | ccp-dmaengine.c | 355 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/ |
D | arm_scsi.h | 45 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/ |
D | bcm-flexrm-mailbox.c | 596 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 …]
|
D | bcm-pdc-mailbox.c | 396 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/ |
D | aead.c | 49 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 …]
|
D | cipher.h | 43 struct scatterlist *src_sg; member
|
D | skcipher.c | 50 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()
|
D | aead.h | 37 struct scatterlist *src_sg; member
|
/linux-6.1.9/crypto/asymmetric_keys/ |
D | public_key.c | 363 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/ |
D | nbpfaxi.c | 921 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 …]
|
D | ste_dma40.c | 2481 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/ |
D | keysetup_v1.c | 54 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()
|
D | fname.c | 159 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/ |
D | aspeed-hace-hash.c | 143 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()
|
D | aspeed-hace.h | 195 struct scatterlist *src_sg; member
|
/linux-6.1.9/fs/ecryptfs/ |
D | keystore.c | 597 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 …]
|
D | crypto.c | 292 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/ |
D | cipher.c | 225 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 …]
|
D | cipher.h | 286 struct scatterlist *src_sg; member
|