| /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/dma/ |
| H A D | nbpfaxi.c | 933 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) in nbpf_prep_memcpy() [all...] |
| H A D | ste_dma40.c | 2495 struct scatterlist dst_sg; in d40_prep_memcpy() local 2498 sg_init_table(&dst_sg, 1); in d40_prep_memcpy() 2501 sg_dma_address(&dst_sg) = dst; in d40_prep_memcpy() 2504 sg_dma_len(&dst_sg) = size; in d40_prep_memcpy() 2507 return d40_prep_sg(chan, &src_sg, &dst_sg, 1, in d40_prep_memcpy()
|
| /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/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 | 59 struct scatterlist *dst_sg; member 797 scatterwalk_map_and_copy(rctx->outbuf.buf, rctx->dst_sg, in tegra_gcm_do_crypt() 822 scatterwalk_map_and_copy(rctx->outbuf.buf, rctx->dst_sg, in tegra_gcm_do_final() 1079 scatterwalk_map_and_copy(rctx->outbuf.buf + 16, rctx->dst_sg, in tegra_ccm_ctr_result() 1083 scatterwalk_map_and_copy(rctx->outbuf.buf, rctx->dst_sg, in tegra_ccm_ctr_result() 1103 sg = rctx->encrypt ? rctx->src_sg : rctx->dst_sg; in tegra_ccm_compute_auth() 1169 rctx->dst_sg = req->dst; in tegra_ccm_crypt_init() 1286 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
|
| H A D | cipher.c | 160 datalen = spu_msg_sg_add(&sg, &rctx->dst_sg, &rctx->dst_skip, in spu_skcipher_rx_sg_create() 347 rctx->dst_nents = spu_sg_count(rctx->dst_sg, rctx->dst_skip, chunksize); in handle_skcipher_req() 1100 datalen = spu_msg_sg_add(&sg, &rctx->dst_sg, &rctx->dst_skip, in spu_aead_rx_sg_create() 1339 rctx->dst_nents = spu_sg_count(rctx->dst_sg, rctx->dst_skip, chunksize); in handle_aead_req() 1731 rctx->dst_sg = req->dst; in skcipher_enqueue() 1918 rctx->dst_sg = NULL; in ahash_enqueue() 2643 rctx->dst_sg = rctx->src_sg; in aead_enqueue() 2648 * output data and ICV, if encrypt. So initialize dst_sg in aead_enqueue() 2651 if (spu_sg_at_offset(req->dst, req->assoclen, &rctx->dst_sg, in aead_enqueue() 2680 flow_log(" rctx->dst_sg in aead_enqueue() [all...] |