Home
last modified time | relevance | path

Searched refs:dst_sg (Results 1 – 12 of 12) 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.c54 struct scatterlist src_sg, dst_sg; in derive_key_aes() local
76 sg_init_one(&dst_sg, derived_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 Dfname.c153 struct scatterlist src_sg, dst_sg; in fname_decrypt() local
172 sg_init_one(&dst_sg, oname->name, oname->len); in fname_decrypt()
173 skcipher_request_set_crypt(req, &src_sg, &dst_sg, iname->len, &iv); in fname_decrypt()
/linux/fs/ecryptfs/
H A Dkeystore.c600 struct scatterlist dst_sg[2]; member
804 s->dst_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()
870 struct scatterlist dst_sg[2]; member
999 s->block_aligned_filename_size, s->dst_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()
1651 struct scatterlist dst_sg[2]; in decrypt_passphrase_encrypted_session_key() local
1689 dst_sg, 2); in decrypt_passphrase_encrypted_session_key()
1718 skcipher_request_set_crypt(req, src_sg, dst_sg, in decrypt_passphrase_encrypted_session_key()
2184 struct scatterlist dst_sg[2]; in write_tag_3_packet() local
[all …]
/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/bcm/
H A Dcipher.h294 struct scatterlist *dst_sg; member
/linux/drivers/dma/
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()