| /linux/drivers/crypto/amlogic/ |
| H A D | amlogic-gxl-cipher.c | 28 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 D | trusted_dcp.c | 80 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 D | ccp-dmaengine.c | 353 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/tee/ |
| H A D | tee_heap.c | 71 struct scatterlist *dst_sg; in copy_sg_table() local 80 dst_sg = dst->sgl; in copy_sg_table() 82 sg_set_page(dst_sg, sg_page(src_sg), src_sg->length, in copy_sg_table() 84 dst_sg = sg_next(dst_sg); in copy_sg_table()
|
| /linux/drivers/crypto/qce/ |
| H A D | cipher.h | 42 struct scatterlist *dst_sg; member
|
| H A D | aead.h | 36 struct scatterlist *dst_sg; member
|
| /linux/fs/ecryptfs/ |
| H A D | keystore.c | 599 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 963 s->block_aligned_filename_size, s->dst_sg, 2); in ecryptfs_parse_tag_70_packet() 1010 skcipher_request_set_crypt(s->skcipher_req, s->src_sg, s->dst_sg, in ecryptfs_parse_tag_70_packet() 1628 struct scatterlist dst_sg[2]; in decrypt_passphrase_encrypted_session_key() local 1666 dst_sg, 2); in decrypt_passphrase_encrypted_session_key() 1695 skcipher_request_set_crypt(req, src_sg, dst_sg, in decrypt_passphrase_encrypted_session_key() 2169 struct scatterlist dst_sg[2]; in write_tag_3_packet() local [all …]
|
| H A D | crypto.c | 208 struct scatterlist *dst_sg, in crypt_scatterlist() argument 249 skcipher_request_set_crypt(req, src_sg, dst_sg, size, iv); in crypt_scatterlist() 292 struct scatterlist src_sg, dst_sg; in crypt_extent() local 300 sg_init_table(&dst_sg, 1); in crypt_extent() 304 sg_set_page(&dst_sg, dst_page, extent_size, in crypt_extent() 307 rc = crypt_scatterlist(crypt_stat, &dst_sg, &src_sg, extent_size, in crypt_extent()
|
| /linux/drivers/mailbox/ |
| H A D | bcm-pdc-mailbox.c | 270 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/drivers/crypto/tegra/ |
| H A D | tegra-se-aes.c | 58 struct scatterlist *dst_sg; member 796 scatterwalk_map_and_copy(rctx->outbuf.buf, rctx->dst_sg, in tegra_gcm_do_crypt() 821 scatterwalk_map_and_copy(rctx->outbuf.buf, rctx->dst_sg, in tegra_gcm_do_final() 1078 scatterwalk_map_and_copy(rctx->outbuf.buf + 16, rctx->dst_sg, in tegra_ccm_ctr_result() 1082 scatterwalk_map_and_copy(rctx->outbuf.buf, rctx->dst_sg, in tegra_ccm_ctr_result() 1102 sg = rctx->encrypt ? rctx->src_sg : rctx->dst_sg; in tegra_ccm_compute_auth() 1168 rctx->dst_sg = req->dst; in tegra_ccm_crypt_init() 1285 rctx->dst_sg = req->dst; in tegra_gcm_do_one_req()
|
| /linux/drivers/crypto/bcm/ |
| H A D | cipher.h | 294 struct scatterlist *dst_sg; member
|