Home
last modified time | relevance | path

Searched refs:in_sg (Results 1 – 17 of 17) sorted by relevance

/drivers/crypto/nx/
Dnx-aes-xcbc.c63 struct nx_sg *in_sg, *out_sg; in nx_xcbc_empty() local
81 in_sg = nx_build_sg_list(nx_ctx->in_sg, (u8 *) keys, &len, in nx_xcbc_empty()
93 nx_ctx->op.inlen = (nx_ctx->in_sg - in_sg) * sizeof(struct nx_sg); in nx_xcbc_empty()
108 in_sg = nx_build_sg_list(nx_ctx->in_sg, (u8 *) keys[1], &len, in nx_xcbc_empty()
121 nx_ctx->op.inlen = (nx_ctx->in_sg - in_sg) * sizeof(struct nx_sg); in nx_xcbc_empty()
172 struct nx_sg *in_sg; in nx_xcbc_update() local
195 in_sg = nx_ctx->in_sg; in nx_xcbc_update()
230 in_sg = nx_build_sg_list(nx_ctx->in_sg, in nx_xcbc_update()
241 in_sg = nx_build_sg_list(in_sg, in nx_xcbc_update()
251 nx_ctx->op.inlen = (nx_ctx->in_sg - in_sg) * in nx_xcbc_update()
[all …]
Dnx-sha256.c104 struct nx_sg *in_sg = nx_ctx->in_sg; in nx_sha256_update() local
108 in_sg = nx_build_sg_list(in_sg, in nx_sha256_update()
117 used_sgs = in_sg - nx_ctx->in_sg; in nx_sha256_update()
132 in_sg = nx_build_sg_list(in_sg, (u8 *) data, in nx_sha256_update()
135 nx_ctx->op.inlen = (nx_ctx->in_sg - in_sg) * sizeof(struct nx_sg); in nx_sha256_update()
181 struct nx_sg *in_sg, *out_sg; in nx_sha256_final() local
210 in_sg = nx_build_sg_list(nx_ctx->in_sg, (u8 *) sctx->buf, in nx_sha256_final()
226 nx_ctx->op.inlen = (nx_ctx->in_sg - in_sg) * sizeof(struct nx_sg); in nx_sha256_final()
Dnx-sha512.c104 struct nx_sg *in_sg = nx_ctx->in_sg; in nx_sha512_update() local
108 in_sg = nx_build_sg_list(in_sg, in nx_sha512_update()
116 used_sgs = in_sg - nx_ctx->in_sg; in nx_sha512_update()
131 in_sg = nx_build_sg_list(in_sg, (u8 *) data, in nx_sha512_update()
134 nx_ctx->op.inlen = (nx_ctx->in_sg - in_sg) * sizeof(struct nx_sg); in nx_sha512_update()
184 struct nx_sg *in_sg, *out_sg; in nx_sha512_final() local
219 in_sg = nx_build_sg_list(nx_ctx->in_sg, sctx->buf, &len, in nx_sha512_final()
231 nx_ctx->op.inlen = (nx_ctx->in_sg - in_sg) * sizeof(struct nx_sg); in nx_sha512_final()
Dnx-aes-gcm.c107 struct nx_sg *nx_sg = nx_ctx->in_sg; in nx_gca()
137 nx_sg = nx_walk_and_build(nx_ctx->in_sg, max_sg_len, in nx_gca()
145 nx_ctx->op_aead.inlen = (nx_ctx->in_sg - nx_sg) in nx_gca()
204 nx_sg = nx_walk_and_build(nx_ctx->in_sg, max_sg_len, in gmac()
212 nx_ctx->op.inlen = (nx_ctx->in_sg - nx_sg) in gmac()
249 struct nx_sg *in_sg, *out_sg; in gcm_empty() local
269 in_sg = nx_build_sg_list(nx_ctx->in_sg, (u8 *) iv, in gcm_empty()
282 nx_ctx->op.inlen = (nx_ctx->in_sg - in_sg) * sizeof(struct nx_sg); in gcm_empty()
Dnx.c268 struct nx_sg *nx_insg = nx_ctx->in_sg; in nx_build_sg_lists()
293 nx_ctx->op.inlen = trim_sg_list(nx_ctx->in_sg, nx_insg, delta, nbytes); in nx_build_sg_lists()
313 nx_ctx->op.in = __pa(nx_ctx->in_sg); in nx_ctx_init()
321 nx_ctx->op_aead.in = __pa(nx_ctx->in_sg); in nx_ctx_init()
676 nx_ctx->in_sg = (struct nx_sg *)((u8 *)nx_ctx->csbcpb + NX_PAGE_SIZE); in nx_crypto_ctx_init()
677 nx_ctx->out_sg = (struct nx_sg *)((u8 *)nx_ctx->in_sg + NX_PAGE_SIZE); in nx_crypto_ctx_init()
752 nx_ctx->in_sg = NULL; in nx_crypto_ctx_exit()
Dnx-aes-ccm.c164 struct nx_sg *nx_insg = nx_ctx->in_sg; in generate_pat()
252 nx_ctx->op.inlen = (nx_ctx->in_sg - nx_insg) * in generate_pat()
285 nx_insg = nx_walk_and_build(nx_ctx->in_sg, in generate_pat()
299 nx_ctx->op_aead.inlen = (nx_ctx->in_sg - nx_insg) * in generate_pat()
Dnx.h126 struct nx_sg *in_sg; /* aligned pointer into kmem to an sg list */ member
/drivers/crypto/
Domap-des.c152 struct scatterlist *in_sg; member
378 struct scatterlist *in_sg, struct scatterlist *out_sg, in omap_des_crypt_dma() argument
388 scatterwalk_start(&dd->in_walk, dd->in_sg); in omap_des_crypt_dma()
397 dma_sync_sg_for_device(dd->dev, dd->in_sg, in_sg_len, DMA_TO_DEVICE); in omap_des_crypt_dma()
416 tx_in = dmaengine_prep_slave_sg(dd->dma_lch_in, in_sg, in_sg_len, in omap_des_crypt_dma()
467 err = dma_map_sg(dd->dev, dd->in_sg, dd->in_sg_len, in omap_des_crypt_dma_start()
482 err = omap_des_crypt_dma(tfm, dd->in_sg, dd->out_sg, dd->in_sg_len, in omap_des_crypt_dma_start()
485 dma_unmap_sg(dd->dev, dd->in_sg, dd->in_sg_len, DMA_TO_DEVICE); in omap_des_crypt_dma_start()
544 dd->in_sg = req->src; in omap_des_prepare_req()
552 ret = omap_crypto_align_sg(&dd->in_sg, dd->total, DES_BLOCK_SIZE, in omap_des_prepare_req()
[all …]
Domap-aes.c268 struct scatterlist *in_sg, in omap_aes_crypt_dma() argument
277 scatterwalk_start(&dd->in_walk, dd->in_sg); in omap_aes_crypt_dma()
287 dma_sync_sg_for_device(dd->dev, dd->in_sg, in_sg_len, DMA_TO_DEVICE); in omap_aes_crypt_dma()
306 tx_in = dmaengine_prep_slave_sg(dd->dma_lch_in, in_sg, in_sg_len, in omap_aes_crypt_dma()
369 err = dma_map_sg(dd->dev, dd->in_sg, dd->in_sg_len, in omap_aes_crypt_dma_start()
386 err = omap_aes_crypt_dma(dd, dd->in_sg, dd->out_sg, dd->in_sg_len, in omap_aes_crypt_dma_start()
389 dma_unmap_sg(dd->dev, dd->in_sg, dd->in_sg_len, DMA_TO_DEVICE); in omap_aes_crypt_dma_start()
447 dd->in_sg = req->src; in omap_aes_prepare_req()
455 ret = omap_crypto_align_sg(&dd->in_sg, dd->total, AES_BLOCK_SIZE, in omap_aes_prepare_req()
467 dd->in_sg_len = sg_nents_for_len(dd->in_sg, dd->total); in omap_aes_prepare_req()
[all …]
Dsahara.c182 struct scatterlist *in_sg; member
220 struct scatterlist *in_sg; member
466 dev->nb_in_sg = sg_nents_for_len(dev->in_sg, dev->total); in sahara_hw_descriptor_create()
482 ret = dma_map_sg(dev->device, dev->in_sg, dev->nb_in_sg, in sahara_hw_descriptor_create()
498 sg = dev->in_sg; in sahara_hw_descriptor_create()
542 dma_unmap_sg(dev->device, dev->in_sg, dev->nb_in_sg, in sahara_hw_descriptor_create()
579 dev->in_sg = req->src; in sahara_aes_process()
613 dma_unmap_sg(dev->device, dev->in_sg, dev->nb_in_sg, in sahara_aes_process()
783 dev->in_sg = rctx->in_sg; in sahara_sha_hw_links_create()
785 dev->nb_in_sg = sg_nents_for_len(dev->in_sg, rctx->total); in sahara_sha_hw_links_create()
[all …]
Datmel-tdes.c115 struct scatterlist *in_sg; member
313 dma_unmap_sg(dd->dev, dd->in_sg, 1, DMA_TO_DEVICE); in atmel_tdes_crypt_pdc_stop()
506 in = IS_ALIGNED((u32)dd->in_sg->offset, sizeof(u32)) && in atmel_tdes_crypt_start()
507 IS_ALIGNED(dd->in_sg->length, dd->ctx->block_size); in atmel_tdes_crypt_start()
512 if (sg_dma_len(dd->in_sg) != sg_dma_len(dd->out_sg)) in atmel_tdes_crypt_start()
518 count = min_t(size_t, dd->total, sg_dma_len(dd->in_sg)); in atmel_tdes_crypt_start()
521 err = dma_map_sg(dd->dev, dd->in_sg, 1, DMA_TO_DEVICE); in atmel_tdes_crypt_start()
531 dma_unmap_sg(dd->dev, dd->in_sg, 1, in atmel_tdes_crypt_start()
536 addr_in = sg_dma_address(dd->in_sg); in atmel_tdes_crypt_start()
543 count = atmel_tdes_sg_copy(&dd->in_sg, &dd->in_offset, in atmel_tdes_crypt_start()
[all …]
Domap-aes-gcm.c33 dd->in_sg = NULL; in omap_aes_gcm_finish_req()
56 dma_unmap_sg(dd->dev, dd->in_sg, dd->in_sg_len, DMA_TO_DEVICE); in omap_aes_gcm_done_task()
145 dd->in_sg = dd->in_sgl; in omap_aes_gcm_copy_buffers()
168 dd->in_sg_len = sg_nents_for_len(dd->in_sg, alen + clen); in omap_aes_gcm_copy_buffers()
Domap-aes.h183 struct scatterlist *in_sg; member
/drivers/crypto/allwinner/sun8i-ss/
Dsun8i-ss-cipher.c25 struct scatterlist *in_sg = areq->src; in sun8i_ss_need_fallback() local
57 in_sg = areq->src; in sun8i_ss_need_fallback()
59 while (in_sg && out_sg) { in sun8i_ss_need_fallback()
60 if (in_sg->length != out_sg->length) in sun8i_ss_need_fallback()
62 in_sg = sg_next(in_sg); in sun8i_ss_need_fallback()
65 if (in_sg || out_sg) in sun8i_ss_need_fallback()
/drivers/crypto/allwinner/sun4i-ss/
Dsun4i-ss-hash.c196 struct scatterlist *in_sg = areq->src; in sun4i_hash() local
261 while (in_sg && i == 1) { in sun4i_hash()
262 if (in_sg->length % 4) in sun4i_hash()
264 in_sg = sg_next(in_sg); in sun4i_hash()
Dsun4i-ss-cipher.c171 struct scatterlist *in_sg = areq->src; in sun4i_ss_cipher_poll() local
215 while (in_sg && no_chunk == 1) { in sun4i_ss_cipher_poll()
216 if ((in_sg->length | in_sg->offset) & 3u) in sun4i_ss_cipher_poll()
218 in_sg = sg_next(in_sg); in sun4i_ss_cipher_poll()
/drivers/crypto/stm32/
Dstm32-cryp.c989 struct scatterlist *in_sg; in stm32_cryp_prepare_req() local
1050 in_sg = req ? req->src : areq->src; in stm32_cryp_prepare_req()
1051 scatterwalk_start(&cryp->in_walk, in_sg); in stm32_cryp_prepare_req()