Home
last modified time | relevance | path

Searched refs:out_sg (Results 1 – 18 of 18) sorted by relevance

/linux/lib/
H A Dsg_split.c17 struct scatterlist *out_sg; member
80 struct scatterlist *in_sg, *out_sg; in sg_split_phys() local
85 out_sg = split->out_sg; in sg_split_phys()
86 for (j = 0; j < split->nents; j++, out_sg++) { in sg_split_phys()
87 *out_sg = *in_sg; in sg_split_phys()
89 out_sg->offset += split->skip_sg0; in sg_split_phys()
90 out_sg->length -= split->skip_sg0; in sg_split_phys()
92 out_sg->offset = 0; in sg_split_phys()
94 sg_dma_address(out_sg) = 0; in sg_split_phys()
95 sg_dma_len(out_sg) = 0; in sg_split_phys()
[all …]
/linux/drivers/crypto/nx/
H A Dnx-aes-xcbc.c63 struct nx_sg *in_sg, *out_sg; in nx_xcbc_empty() local
87 out_sg = nx_build_sg_list(nx_ctx->out_sg, (u8 *) keys, &len, in nx_xcbc_empty()
94 nx_ctx->op.outlen = (nx_ctx->out_sg - out_sg) * sizeof(struct nx_sg); in nx_xcbc_empty()
115 out_sg = nx_build_sg_list(nx_ctx->out_sg, out, &len, in nx_xcbc_empty()
122 nx_ctx->op.outlen = (nx_ctx->out_sg - out_sg) * sizeof(struct nx_sg); in nx_xcbc_empty()
173 struct nx_sg *out_sg; in nx_xcbc_update() local
202 out_sg = nx_build_sg_list(nx_ctx->out_sg, (u8 *)sctx->state, in nx_xcbc_update()
210 nx_ctx->op.outlen = (nx_ctx->out_sg - out_sg) * sizeof(struct nx_sg); in nx_xcbc_update()
297 struct nx_sg *in_sg, *out_sg; in nx_xcbc_final() local
333 out_sg = nx_build_sg_list(nx_ctx->out_sg, out, &len, in nx_xcbc_final()
[all …]
H A Dnx-sha256.c67 struct nx_sg *out_sg; in nx_sha256_update() local
98 out_sg = nx_build_sg_list(nx_ctx->out_sg, (u8 *)sctx->state, in nx_sha256_update()
100 nx_ctx->op.outlen = (nx_ctx->out_sg - out_sg) * sizeof(struct nx_sg); in nx_sha256_update()
186 struct nx_sg *in_sg, *out_sg; in nx_sha256_final() local
224 out_sg = nx_build_sg_list(nx_ctx->out_sg, out, &len, max_sg_len); in nx_sha256_final()
232 nx_ctx->op.outlen = (nx_ctx->out_sg - out_sg) * sizeof(struct nx_sg); in nx_sha256_final()
H A Dnx-sha512.c67 struct nx_sg *out_sg; in nx_sha512_update() local
98 out_sg = nx_build_sg_list(nx_ctx->out_sg, (u8 *)sctx->state, in nx_sha512_update()
100 nx_ctx->op.outlen = (nx_ctx->out_sg - out_sg) * sizeof(struct nx_sg); in nx_sha512_update()
189 struct nx_sg *in_sg, *out_sg; in nx_sha512_final() local
233 out_sg = nx_build_sg_list(nx_ctx->out_sg, out, &len, in nx_sha512_final()
237 nx_ctx->op.outlen = (nx_ctx->out_sg - out_sg) * sizeof(struct nx_sg); in nx_sha512_final()
H A Dnx.c270 struct nx_sg *nx_outsg = nx_ctx->out_sg; in nx_build_sg_lists()
295 nx_ctx->op.outlen = trim_sg_list(nx_ctx->out_sg, nx_outsg, delta, nbytes); in nx_build_sg_lists()
315 nx_ctx->op.out = __pa(nx_ctx->out_sg); in nx_ctx_init()
323 nx_ctx->op_aead.out = __pa(nx_ctx->out_sg); in nx_ctx_init()
678 nx_ctx->out_sg = (struct nx_sg *)((u8 *)nx_ctx->in_sg + NX_PAGE_SIZE); in nx_crypto_ctx_init()
682 (struct nx_csbcpb *)((u8 *)nx_ctx->out_sg + in nx_crypto_ctx_init()
754 nx_ctx->out_sg = NULL; in nx_crypto_ctx_exit()
H A Dnx-aes-gcm.c249 struct nx_sg *in_sg, *out_sg; in gcm_empty() local
276 out_sg = nx_build_sg_list(nx_ctx->out_sg, (u8 *) out, &len, in gcm_empty()
283 nx_ctx->op.outlen = (nx_ctx->out_sg - out_sg) * sizeof(struct nx_sg); in gcm_empty()
H A Dnx.h127 struct nx_sg *out_sg; /* aligned pointer into kmem to an sg list */ member
H A Dnx-aes-ccm.c162 struct nx_sg *nx_outsg = nx_ctx->out_sg; in generate_pat()
251 nx_ctx->op.outlen = (nx_ctx->out_sg - nx_outsg) * in generate_pat()
/linux/drivers/crypto/
H A Domap-aes-gcm.c37 dd->out_sg = NULL; in omap_aes_gcm_finish_req()
57 dma_sync_sg_for_device(dd->dev, dd->out_sg, dd->out_sg_len, in omap_aes_gcm_done_task()
60 dma_unmap_sg(dd->dev, dd->out_sg, dd->out_sg_len, DMA_FROM_DEVICE); in omap_aes_gcm_done_task()
63 omap_crypto_cleanup(dd->out_sg, dd->orig_out, in omap_aes_gcm_done_task()
153 dd->out_sg = req->dst; in omap_aes_gcm_copy_buffers()
156 dd->out_sg = scatterwalk_ffwd(sg_arr, req->dst, req->assoclen); in omap_aes_gcm_copy_buffers()
159 if (req->src == req->dst || dd->out_sg == sg_arr) in omap_aes_gcm_copy_buffers()
163 ret = omap_crypto_align_sg(&dd->out_sg, cryptlen, in omap_aes_gcm_copy_buffers()
172 dd->out_sg_len = sg_nents_for_len(dd->out_sg, clen); in omap_aes_gcm_copy_buffers()
/linux/drivers/crypto/gemini/
H A Dsl3516-ce-cipher.c31 struct scatterlist *out_sg; in sl3516_ce_need_fallback() local
88 out_sg = areq->dst; in sl3516_ce_need_fallback()
89 while (in_sg && out_sg) { in sl3516_ce_need_fallback()
90 if (in_sg->length != out_sg->length) { in sl3516_ce_need_fallback()
95 out_sg = sg_next(out_sg); in sl3516_ce_need_fallback()
97 if (in_sg || out_sg) in sl3516_ce_need_fallback()
/linux/net/vmw_vsock/
H A Dvirtio_transport.c101 int ret, in_sg = 0, out_sg = 0; in virtio_transport_send_skb() local
105 sg_init_one(sgs[out_sg], virtio_vsock_hdr(skb), in virtio_transport_send_skb()
107 out_sg++; in virtio_transport_send_skb()
111 sg_init_one(sgs[out_sg], skb->data, skb->len); in virtio_transport_send_skb()
112 out_sg++; in virtio_transport_send_skb()
136 sg_init_one(sgs[out_sg], in virtio_transport_send_skb()
139 out_sg++; in virtio_transport_send_skb()
143 ret = virtqueue_add_sgs(vq, sgs, out_sg, in_sg, skb, gfp); in virtio_transport_send_skb()
/linux/drivers/crypto/allwinner/sun8i-ss/
H A Dsun8i-ss-cipher.c29 struct scatterlist *out_sg = areq->dst; in sun8i_ss_need_fallback() local
77 out_sg = areq->dst; in sun8i_ss_need_fallback()
78 while (in_sg && out_sg) { in sun8i_ss_need_fallback()
79 if (in_sg->length != out_sg->length) in sun8i_ss_need_fallback()
82 out_sg = sg_next(out_sg); in sun8i_ss_need_fallback()
84 if (in_sg || out_sg) in sun8i_ss_need_fallback()
/linux/drivers/crypto/allwinner/sun4i-ss/
H A Dsun4i-ss-cipher.c183 struct scatterlist *out_sg = areq->dst; in sun4i_ss_cipher_poll() local
230 while (out_sg && no_chunk == 1) { in sun4i_ss_cipher_poll()
231 if ((out_sg->length | out_sg->offset) & 3u) in sun4i_ss_cipher_poll()
233 out_sg = sg_next(out_sg); in sun4i_ss_cipher_poll()
/linux/drivers/crypto/starfive/
H A Djh7110-aes.c313 scatterwalk_map_and_copy(cryp->tag_out, rctx->out_sg, in starfive_aes_read_authtag()
585 rctx->out_sg = req->dst; in starfive_aes_do_one_req()
598 ret = starfive_aes_map_sg(cryp, rctx->in_sg, rctx->out_sg); in starfive_aes_do_one_req()
654 rctx->out_sg = rctx->in_sg; in starfive_aes_aead_do_one_req()
656 rctx->out_sg = scatterwalk_ffwd(_dst, req->dst, cryp->assoclen); in starfive_aes_aead_do_one_req()
710 ret = starfive_aes_map_sg(cryp, rctx->in_sg, rctx->out_sg); in starfive_aes_aead_do_one_req()
H A Djh7110-cryp.h218 struct scatterlist *out_sg; member
/linux/arch/um/drivers/
H A Dvirt-pci.c112 struct scatterlist out_sg, extra_sg, in_sg; in um_pci_send_cmd() local
114 [0] = &out_sg, in um_pci_send_cmd()
167 sg_init_one(&out_sg, cmd, cmd_size); in um_pci_send_cmd()
/linux/drivers/crypto/aspeed/
H A Daspeed-hace-crypto.c155 struct scatterlist *out_sg; in aspeed_sk_transfer() local
161 out_sg = req->dst; in aspeed_sk_transfer()
164 nbytes = sg_copy_from_buffer(out_sg, rctx->dst_nents, in aspeed_sk_transfer()
/linux/net/tls/
H A Dtls_sw.c1466 struct scatterlist *out_sg, in tls_decrypt_sg() argument
1491 if (darg->zc && (out_iov || out_sg)) { in tls_decrypt_sg()
1498 n_sgout = sg_nents(out_sg); in tls_decrypt_sg()
1596 } else if (out_sg) { in tls_decrypt_sg()
1597 memcpy(sgout, out_sg, n_sgout * sizeof(*sgout)); in tls_decrypt_sg()