/linux/drivers/crypto/amlogic/ |
H A 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/drivers/crypto/ccp/ |
H A 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/security/keys/trusted-keys/ |
H A D | trusted_dcp.c | 80 struct scatterlist src_sg, dst_sg; in do_dcp_crypto() local 112 sg_init_one(&src_sg, in, AES_KEYSIZE_128); in do_dcp_crypto() 114 skcipher_request_set_crypt(req, &src_sg, &dst_sg, AES_KEYSIZE_128, in do_dcp_crypto() 133 struct scatterlist src_sg, dst_sg; in do_aead_crypto() local 156 sg_init_one(&src_sg, in, len); in do_aead_crypto() 166 aead_request_set_crypt(aead_req, &src_sg, &dst_sg, len, nonce); in do_aead_crypto()
|
/linux/drivers/scsi/arm/ |
H A 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/drivers/mailbox/ |
H A 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 …]
|
H A D | bcm-pdc-mailbox.c | 392 struct scatterlist *src_sg[PDC_RING_ENTRIES]; member 607 dma_unmap_sg(dev, pdcs->src_sg[pdcs->txin], in pdc_receive_one() 608 sg_nents(pdcs->src_sg[pdcs->txin]), DMA_TO_DEVICE); in pdc_receive_one() 731 pdcs->src_sg[pdcs->txout] = sg; in pdc_tx_list_sg_add()
|
/linux/drivers/crypto/qce/ |
H A 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 …]
|
H A 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()
|
H A D | cipher.h | 43 struct scatterlist *src_sg; member
|
H A D | aead.h | 37 struct scatterlist *src_sg; member
|
/linux/fs/crypto/ |
H A 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()
|
H A D | fname.c | 153 struct scatterlist src_sg, dst_sg; in fname_decrypt() local 171 sg_init_one(&src_sg, iname->name, iname->len); in fname_decrypt() 173 skcipher_request_set_crypt(req, &src_sg, &dst_sg, iname->len, &iv); in fname_decrypt()
|
/linux/drivers/crypto/aspeed/ |
H A D | aspeed-hace-hash.c | 132 rctx->bufcnt, rctx->src_sg, in aspeed_ahash_dma_prepare() 141 scatterwalk_map_and_copy(rctx->buffer, rctx->src_sg, in aspeed_ahash_dma_prepare() 181 sg_len = dma_map_sg(hace_dev->dev, rctx->src_sg, rctx->src_nents, in aspeed_ahash_dma_prepare_sg() 227 for_each_sg(rctx->src_sg, s, sg_len, i) { in aspeed_ahash_dma_prepare_sg() 265 dma_unmap_sg(hace_dev->dev, rctx->src_sg, rctx->src_nents, in aspeed_ahash_dma_prepare_sg() 461 dma_unmap_sg(hace_dev->dev, rctx->src_sg, rctx->src_nents, in aspeed_ahash_update_resume_sg() 472 scatterwalk_map_and_copy(rctx->buffer, rctx->src_sg, rctx->offset, in aspeed_ahash_update_resume_sg() 591 rctx->src_sg = req->src; in aspeed_sham_update() 602 rctx->src_sg, rctx->offset, in aspeed_sham_update()
|
H A D | aspeed-hace.h | 183 struct scatterlist *src_sg; member
|
/linux/fs/ecryptfs/ |
H A D | keystore.c | 599 struct scatterlist src_sg[2]; member 795 s->block_aligned_filename_size, s->src_sg, 2); in ecryptfs_write_tag_70_packet() 830 skcipher_request_set_crypt(s->skcipher_req, s->src_sg, s->dst_sg, in ecryptfs_write_tag_70_packet() 869 struct scatterlist src_sg[2]; member 983 s->block_aligned_filename_size, s->src_sg, 2); in ecryptfs_parse_tag_70_packet() 1046 skcipher_request_set_crypt(s->skcipher_req, s->src_sg, s->dst_sg, in ecryptfs_parse_tag_70_packet() 1652 struct scatterlist src_sg[2]; in decrypt_passphrase_encrypted_session_key() local 1676 src_sg, 2); in decrypt_passphrase_encrypted_session_key() 1718 skcipher_request_set_crypt(req, src_sg, dst_sg, in decrypt_passphrase_encrypted_session_key() 2185 struct scatterlist src_sg[2]; in write_tag_3_packet() local [all …]
|
/linux/drivers/crypto/tegra/ |
H A D | tegra-se-hash.c | 33 struct scatterlist *src_sg; member 318 rctx->src_sg = req->src; in tegra_sha_do_update() 328 rctx->src_sg, 0, req->nbytes, 0); in tegra_sha_do_update() 339 rctx->src_sg, 0, req->nbytes - nresidue, 0); in tegra_sha_do_update() 341 scatterwalk_map_and_copy(rctx->residue.buf, rctx->src_sg, in tegra_sha_do_update()
|
/linux/drivers/crypto/bcm/ |
H A D | cipher.h | 286 struct scatterlist *src_sg; member
|
/linux/drivers/dma/ |
H A D | ste_dma40.c | 2503 struct scatterlist src_sg; in d40_prep_memcpy() local 2506 sg_init_table(&src_sg, 1); in d40_prep_memcpy() 2509 sg_dma_address(&src_sg) = src; in d40_prep_memcpy() 2512 sg_dma_len(&src_sg) = size; in d40_prep_memcpy() 2514 return d40_prep_sg(chan, &src_sg, &dst_sg, 1, in d40_prep_memcpy()
|