/linux-6.12.1/drivers/crypto/amlogic/ |
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-6.12.1/security/keys/trusted-keys/ |
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-6.12.1/drivers/crypto/ccp/ |
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-6.12.1/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() 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 …]
|
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-6.12.1/drivers/crypto/qce/ |
D | skcipher.c | 51 dma_unmap_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_skcipher_done() 124 rctx->dst_sg = rctx->dst_tbl.sgl; in qce_skcipher_async_req_handle() 126 dst_nents = dma_map_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_skcipher_async_req_handle() 140 rctx->src_sg = rctx->dst_sg; in qce_skcipher_async_req_handle() 145 rctx->dst_sg, dst_nents, in qce_skcipher_async_req_handle() 164 dma_unmap_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_skcipher_async_req_handle()
|
D | aead.c | 51 dma_unmap_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_aead_done() 174 rctx->dst_sg = rctx->dst_tbl.sgl; in qce_aead_prepare_dst_buf() 175 rctx->dst_nents = sg_nents_for_len(rctx->dst_sg, totallen) + 1; in qce_aead_prepare_dst_buf() 292 rctx->dst_sg = rctx->src_sg; in qce_aead_ccm_prepare_buf_assoclen() 324 rctx->src_sg = rctx->dst_sg; in qce_aead_prepare_buf() 355 rctx->dst_sg = rctx->src_sg; in qce_aead_ccm_prepare_buf() 452 dst_nents = dma_map_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_aead_async_req_handle() 471 ret = qce_dma_prep_sgs(&qce->dma, rctx->src_sg, src_nents, rctx->dst_sg, dst_nents, in qce_aead_async_req_handle() 490 dma_unmap_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_aead_async_req_handle()
|
D | cipher.h | 42 struct scatterlist *dst_sg; member
|
D | aead.h | 36 struct scatterlist *dst_sg; member
|
/linux-6.12.1/drivers/dma/ |
D | nbpfaxi.c | 920 struct scatterlist *src_sg, struct scatterlist *dst_sg, in nbpf_prep_sg() argument 933 mem_sg = dst_sg; in nbpf_prep_sg() 966 sg_dma_address(dst_sg), in nbpf_prep_sg() 977 dst_sg = sg_next(dst_sg); in nbpf_prep_sg() 978 mem_sg = direction == DMA_DEV_TO_MEM ? dst_sg : src_sg; in nbpf_prep_sg() 993 struct scatterlist dst_sg; in nbpf_prep_memcpy() local 996 sg_init_table(&dst_sg, 1); in nbpf_prep_memcpy() 999 sg_dma_address(&dst_sg) = dst; in nbpf_prep_memcpy() 1002 sg_dma_len(&dst_sg) = len; in nbpf_prep_memcpy() 1008 return nbpf_prep_sg(chan, &src_sg, &dst_sg, 1, in nbpf_prep_memcpy()
|
D | ste_dma40.c | 2502 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-6.12.1/fs/crypto/ |
D | keysetup_v1.c | 54 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()
|
D | fname.c | 153 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-6.12.1/fs/ecryptfs/ |
D | keystore.c | 600 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 …]
|
D | crypto.c | 275 struct scatterlist *dst_sg, in crypt_scatterlist() argument 316 skcipher_request_set_crypt(req, src_sg, dst_sg, size, iv); in crypt_scatterlist() 358 struct scatterlist src_sg, dst_sg; in crypt_extent() local 373 sg_init_table(&dst_sg, 1); in crypt_extent() 377 sg_set_page(&dst_sg, dst_page, extent_size, in crypt_extent() 380 rc = crypt_scatterlist(crypt_stat, &dst_sg, &src_sg, extent_size, in crypt_extent()
|
/linux-6.12.1/drivers/crypto/tegra/ |
D | tegra-se-aes.c | 54 struct scatterlist *dst_sg; member 744 scatterwalk_map_and_copy(rctx->outbuf.buf, rctx->dst_sg, in tegra_gcm_do_crypt() 769 scatterwalk_map_and_copy(rctx->outbuf.buf, rctx->dst_sg, in tegra_gcm_do_final() 1026 scatterwalk_map_and_copy(rctx->outbuf.buf + 16, rctx->dst_sg, in tegra_ccm_ctr_result() 1030 scatterwalk_map_and_copy(rctx->outbuf.buf, rctx->dst_sg, in tegra_ccm_ctr_result() 1050 sg = rctx->encrypt ? rctx->src_sg : rctx->dst_sg; in tegra_ccm_compute_auth() 1116 rctx->dst_sg = req->dst; in tegra_ccm_crypt_init() 1236 rctx->dst_sg = req->dst; in tegra_gcm_do_one_req()
|
/linux-6.12.1/drivers/crypto/bcm/ |
D | cipher.h | 294 struct scatterlist *dst_sg; member
|
D | cipher.c | 160 datalen = spu_msg_sg_add(&sg, &rctx->dst_sg, &rctx->dst_skip, in spu_skcipher_rx_sg_create() 348 rctx->dst_nents = spu_sg_count(rctx->dst_sg, rctx->dst_skip, chunksize); in handle_skcipher_req() 1104 datalen = spu_msg_sg_add(&sg, &rctx->dst_sg, &rctx->dst_skip, in spu_aead_rx_sg_create() 1344 rctx->dst_nents = spu_sg_count(rctx->dst_sg, rctx->dst_skip, chunksize); in handle_aead_req() 1736 rctx->dst_sg = req->dst; in skcipher_enqueue() 1923 rctx->dst_sg = NULL; in ahash_enqueue() 2645 rctx->dst_sg = rctx->src_sg; in aead_enqueue() 2653 if (spu_sg_at_offset(req->dst, req->assoclen, &rctx->dst_sg, in aead_enqueue() 2683 rctx->dst_sg, rctx->dst_skip); in aead_enqueue()
|