Home
last modified time | relevance | path

Searched refs:dst_sg (Results 1 – 15 of 15) sorted by relevance

/linux/drivers/crypto/amlogic/
H A Damlogic-gxl-cipher.c28 struct scatterlist *dst_sg = areq->dst; 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()
43 if ((dst_sg->length % 16) != 0) in meson_cipher_need_fallback()
45 if (src_sg->length != dst_sg->length) in meson_cipher_need_fallback()
49 if (!IS_ALIGNED(dst_sg->offset, sizeof(u32))) in meson_cipher_need_fallback()
52 dst_sg = sg_next(dst_sg); in meson_cipher_need_fallback()
95 struct scatterlist *dst_sg = areq->dst; in meson_cipher() local
204 dst_sg = areq->dst; in meson_cipher()
[all …]
/linux/security/keys/trusted-keys/
H A Dtrusted_dcp.c80 struct scatterlist src_sg, dst_sg; in do_dcp_crypto() local
113 sg_init_one(&dst_sg, out, 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
161 sg_init_one(&dst_sg, out, len + DCP_BLOB_AUTHLEN); in do_aead_crypto()
163 sg_init_one(&dst_sg, out, len); in do_aead_crypto()
166 aead_request_set_crypt(aead_req, &src_sg, &dst_sg, len, nonce); in do_aead_crypto()
/linux/drivers/crypto/ccp/
H A Dccp-dmaengine.c353 struct scatterlist *dst_sg, in ccp_create_desc() argument
372 if (!dst_sg || !src_sg) in ccp_create_desc()
387 dst_len = sg_dma_len(dst_sg); in ccp_create_desc()
410 dst_sg = sg_next(dst_sg); in ccp_create_desc()
411 if (!dst_sg) in ccp_create_desc()
414 dst_len = sg_dma_len(dst_sg); in ccp_create_desc()
434 ccp_pt->dst_dma = sg_dma_address(dst_sg) + dst_offset; in ccp_create_desc()
485 struct scatterlist dst_sg, src_sg; in ccp_prep_dma_memcpy() local
491 sg_init_table(&dst_sg, 1); in ccp_prep_dma_memcpy()
492 sg_dma_address(&dst_sg) = dst; in ccp_prep_dma_memcpy()
[all …]
/linux/drivers/mailbox/
H A 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()
606 while (dst_target && dst_sg) { in flexrm_spu_estimate_nonheader_desc_count()
608 if (dst_sg->length < dst_target) in flexrm_spu_estimate_nonheader_desc_count()
609 dst_target -= dst_sg->length; in flexrm_spu_estimate_nonheader_desc_count()
612 dst_sg = sg_next(dst_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()
674 while (dst_target && dst_sg) { in flexrm_spu_write_descs()
675 if (sg_dma_len(dst_sg) & 0xf) in flexrm_spu_write_descs()
[all …]
H A Dbcm-pdc-mailbox.c270 struct scatterlist *dst_sg; member
623 dma_unmap_sg(dev, rx_ctx->dst_sg, sg_nents(rx_ctx->dst_sg), in pdc_receive_one()
810 static int pdc_rx_list_init(struct pdc_state *pdcs, struct scatterlist *dst_sg, in pdc_rx_list_init() argument
849 rx_ctx->dst_sg = dst_sg; in pdc_rx_list_init()
/linux/fs/crypto/
H A Dkeysetup_v1.c61 struct scatterlist src_sg, dst_sg; in derive_key_aes() local
68 sg_init_one(&dst_sg, derived_key, derived_keysize); in derive_key_aes()
69 skcipher_request_set_crypt(req, &src_sg, &dst_sg, in derive_key_aes()
H A Dfname.c145 struct scatterlist src_sg, dst_sg; in fname_decrypt() local
154 sg_init_one(&dst_sg, oname->name, oname->len); in fname_decrypt()
155 skcipher_request_set_crypt(req, &src_sg, &dst_sg, iname->len, &iv); in fname_decrypt()
/linux/drivers/dma/
H A Dnbpfaxi.c933 struct scatterlist *src_sg, struct scatterlist *dst_sg, in nbpf_prep_sg() argument
946 mem_sg = dst_sg; in nbpf_prep_sg()
979 sg_dma_address(dst_sg), in nbpf_prep_sg()
990 dst_sg = sg_next(dst_sg); in nbpf_prep_sg()
991 mem_sg = direction == DMA_DEV_TO_MEM ? dst_sg : src_sg; in nbpf_prep_sg()
1006 struct scatterlist dst_sg; in nbpf_prep_memcpy() local
1009 sg_init_table(&dst_sg, 1); in nbpf_prep_memcpy()
1012 sg_dma_address(&dst_sg) = dst; in nbpf_prep_memcpy()
1015 sg_dma_len(&dst_sg) = len; in nbpf_prep_memcpy()
1021 return nbpf_prep_sg(chan, &src_sg, &dst_sg, 1, in nbpf_prep_memcpy()
H A Dste_dma40.c2502 struct scatterlist dst_sg; in d40_prep_memcpy() local
2505 sg_init_table(&dst_sg, 1); in d40_prep_memcpy()
2508 sg_dma_address(&dst_sg) = dst; in d40_prep_memcpy()
2511 sg_dma_len(&dst_sg) = size; in d40_prep_memcpy()
2514 return d40_prep_sg(chan, &src_sg, &dst_sg, 1, in d40_prep_memcpy()
/linux/fs/ecryptfs/
H A Dkeystore.c599 struct scatterlist dst_sg[2]; member
764 s->dst_sg, 2); in ecryptfs_write_tag_70_packet()
790 skcipher_request_set_crypt(s->skcipher_req, s->src_sg, s->dst_sg, in ecryptfs_write_tag_70_packet()
827 struct scatterlist dst_sg[2]; member
956 s->block_aligned_filename_size, s->dst_sg, 2); in ecryptfs_parse_tag_70_packet()
1003 skcipher_request_set_crypt(s->skcipher_req, s->src_sg, s->dst_sg, in ecryptfs_parse_tag_70_packet()
1608 struct scatterlist dst_sg[2]; in decrypt_passphrase_encrypted_session_key() local
1646 dst_sg, 2); in decrypt_passphrase_encrypted_session_key()
1675 skcipher_request_set_crypt(req, src_sg, dst_sg, in decrypt_passphrase_encrypted_session_key()
2141 struct scatterlist dst_sg[2]; in write_tag_3_packet() local
[all …]
H A Dcrypto.c221 struct scatterlist *dst_sg, in crypt_scatterlist() argument
262 skcipher_request_set_crypt(req, src_sg, dst_sg, size, iv); in crypt_scatterlist()
305 struct scatterlist src_sg, dst_sg; in crypt_extent() local
313 sg_init_table(&dst_sg, 1); in crypt_extent()
317 sg_set_page(&dst_sg, dst_page, extent_size, in crypt_extent()
320 rc = crypt_scatterlist(crypt_stat, &dst_sg, &src_sg, extent_size, in crypt_extent()
/linux/drivers/crypto/qce/
H A Dcipher.h42 struct scatterlist *dst_sg; member
H A Daead.h36 struct scatterlist *dst_sg; member
/linux/drivers/crypto/tegra/
H A Dtegra-se-aes.c58 struct scatterlist *dst_sg; member
793 scatterwalk_map_and_copy(rctx->outbuf.buf, rctx->dst_sg, in tegra_gcm_do_crypt()
818 scatterwalk_map_and_copy(rctx->outbuf.buf, rctx->dst_sg, in tegra_gcm_do_final()
1075 scatterwalk_map_and_copy(rctx->outbuf.buf + 16, rctx->dst_sg, in tegra_ccm_ctr_result()
1079 scatterwalk_map_and_copy(rctx->outbuf.buf, rctx->dst_sg, in tegra_ccm_ctr_result()
1099 sg = rctx->encrypt ? rctx->src_sg : rctx->dst_sg; in tegra_ccm_compute_auth()
1165 rctx->dst_sg = req->dst; in tegra_ccm_crypt_init()
1278 rctx->dst_sg = req->dst; in tegra_gcm_do_one_req()
/linux/drivers/crypto/bcm/
H A Dcipher.h294 struct scatterlist *dst_sg; member