Home
last modified time | relevance | path

Searched refs:in_sg (Results 1 – 19 of 19) 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.c109 struct nx_sg *in_sg = nx_ctx->in_sg; in nx_sha256_update() local
113 in_sg = nx_build_sg_list(in_sg, in nx_sha256_update()
122 used_sgs = in_sg - nx_ctx->in_sg; in nx_sha256_update()
137 in_sg = nx_build_sg_list(in_sg, (u8 *) data, in nx_sha256_update()
140 nx_ctx->op.inlen = (nx_ctx->in_sg - in_sg) * sizeof(struct nx_sg); in nx_sha256_update()
186 struct nx_sg *in_sg, *out_sg; in nx_sha256_final() local
215 in_sg = nx_build_sg_list(nx_ctx->in_sg, (u8 *) sctx->buf, in nx_sha256_final()
231 nx_ctx->op.inlen = (nx_ctx->in_sg - in_sg) * sizeof(struct nx_sg); in nx_sha256_final()
Dnx-sha512.c109 struct nx_sg *in_sg = nx_ctx->in_sg; in nx_sha512_update() local
113 in_sg = nx_build_sg_list(in_sg, in nx_sha512_update()
121 used_sgs = in_sg - nx_ctx->in_sg; in nx_sha512_update()
136 in_sg = nx_build_sg_list(in_sg, (u8 *) data, in nx_sha512_update()
139 nx_ctx->op.inlen = (nx_ctx->in_sg - in_sg) * sizeof(struct nx_sg); in nx_sha512_update()
189 struct nx_sg *in_sg, *out_sg; in nx_sha512_final() local
224 in_sg = nx_build_sg_list(nx_ctx->in_sg, sctx->buf, &len, in nx_sha512_final()
236 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.c269 struct nx_sg *nx_insg = nx_ctx->in_sg; in nx_build_sg_lists()
294 nx_ctx->op.inlen = trim_sg_list(nx_ctx->in_sg, nx_insg, delta, nbytes); in nx_build_sg_lists()
314 nx_ctx->op.in = __pa(nx_ctx->in_sg); in nx_ctx_init()
322 nx_ctx->op_aead.in = __pa(nx_ctx->in_sg); in nx_ctx_init()
677 nx_ctx->in_sg = (struct nx_sg *)((u8 *)nx_ctx->csbcpb + NX_PAGE_SIZE); in nx_crypto_ctx_init()
678 nx_ctx->out_sg = (struct nx_sg *)((u8 *)nx_ctx->in_sg + NX_PAGE_SIZE); in nx_crypto_ctx_init()
753 nx_ctx->in_sg = NULL; in nx_crypto_ctx_exit()
Dnx-aes-ccm.c161 struct nx_sg *nx_insg = nx_ctx->in_sg; in generate_pat()
249 nx_ctx->op.inlen = (nx_ctx->in_sg - nx_insg) * in generate_pat()
282 nx_insg = nx_walk_and_build(nx_ctx->in_sg, in generate_pat()
296 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
377 struct scatterlist *in_sg, struct scatterlist *out_sg, in omap_des_crypt_dma() argument
387 scatterwalk_start(&dd->in_walk, dd->in_sg); in omap_des_crypt_dma()
396 dma_sync_sg_for_device(dd->dev, dd->in_sg, in_sg_len, DMA_TO_DEVICE); in omap_des_crypt_dma()
415 tx_in = dmaengine_prep_slave_sg(dd->dma_lch_in, in_sg, in_sg_len, in omap_des_crypt_dma()
466 err = dma_map_sg(dd->dev, dd->in_sg, dd->in_sg_len, in omap_des_crypt_dma_start()
481 err = omap_des_crypt_dma(tfm, dd->in_sg, dd->out_sg, dd->in_sg_len, in omap_des_crypt_dma_start()
484 dma_unmap_sg(dd->dev, dd->in_sg, dd->in_sg_len, DMA_TO_DEVICE); in omap_des_crypt_dma_start()
543 dd->in_sg = req->src; in omap_des_prepare_req()
551 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.c183 struct scatterlist *in_sg; member
221 struct scatterlist *in_sg; member
467 dev->nb_in_sg = sg_nents_for_len(dev->in_sg, dev->total); in sahara_hw_descriptor_create()
483 ret = dma_map_sg(dev->device, dev->in_sg, dev->nb_in_sg, in sahara_hw_descriptor_create()
499 sg = dev->in_sg; in sahara_hw_descriptor_create()
543 dma_unmap_sg(dev->device, dev->in_sg, dev->nb_in_sg, in sahara_hw_descriptor_create()
580 dev->in_sg = req->src; in sahara_aes_process()
614 dma_unmap_sg(dev->device, dev->in_sg, dev->nb_in_sg, in sahara_aes_process()
784 dev->in_sg = rctx->in_sg; in sahara_sha_hw_links_create()
786 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
305 dma_unmap_sg(dd->dev, dd->in_sg, 1, DMA_TO_DEVICE); in atmel_tdes_crypt_pdc_stop()
496 in = IS_ALIGNED((u32)dd->in_sg->offset, sizeof(u32)) && in atmel_tdes_crypt_start()
497 IS_ALIGNED(dd->in_sg->length, dd->ctx->block_size); in atmel_tdes_crypt_start()
502 if (sg_dma_len(dd->in_sg) != sg_dma_len(dd->out_sg)) in atmel_tdes_crypt_start()
508 count = min_t(size_t, dd->total, sg_dma_len(dd->in_sg)); in atmel_tdes_crypt_start()
511 err = dma_map_sg(dd->dev, dd->in_sg, 1, DMA_TO_DEVICE); in atmel_tdes_crypt_start()
521 dma_unmap_sg(dd->dev, dd->in_sg, 1, in atmel_tdes_crypt_start()
526 addr_in = sg_dma_address(dd->in_sg); in atmel_tdes_crypt_start()
533 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/gemini/
Dsl3516-ce-cipher.c26 struct scatterlist *in_sg; in sl3516_ce_need_fallback() local
83 in_sg = areq->src; in sl3516_ce_need_fallback()
85 while (in_sg && out_sg) { in sl3516_ce_need_fallback()
86 if (in_sg->length != out_sg->length) { in sl3516_ce_need_fallback()
90 in_sg = sg_next(in_sg); in sl3516_ce_need_fallback()
93 if (in_sg || out_sg) in sl3516_ce_need_fallback()
/drivers/crypto/allwinner/sun8i-ss/
Dsun8i-ss-cipher.c28 struct scatterlist *in_sg = areq->src; in sun8i_ss_need_fallback() local
76 in_sg = areq->src; 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()
81 in_sg = sg_next(in_sg); in sun8i_ss_need_fallback()
84 if (in_sg || out_sg) in sun8i_ss_need_fallback()
/drivers/crypto/allwinner/sun4i-ss/
Dsun4i-ss-hash.c198 struct scatterlist *in_sg = areq->src; in sun4i_hash() local
263 while (in_sg && i == 1) { in sun4i_hash()
264 if (in_sg->length % 4) in sun4i_hash()
266 in_sg = sg_next(in_sg); in sun4i_hash()
Dsun4i-ss-cipher.c182 struct scatterlist *in_sg = areq->src; in sun4i_ss_cipher_poll() local
225 while (in_sg && no_chunk == 1) { in sun4i_ss_cipher_poll()
226 if ((in_sg->length | in_sg->offset) & 3u) in sun4i_ss_cipher_poll()
228 in_sg = sg_next(in_sg); in sun4i_ss_cipher_poll()
/drivers/crypto/aspeed/
Daspeed-hace-crypto.c174 struct scatterlist *in_sg; in aspeed_sk_start() local
179 in_sg = req->src; in aspeed_sk_start()
181 nbytes = sg_copy_to_buffer(in_sg, rctx->src_nents, in aspeed_sk_start()
/drivers/crypto/stm32/
Dstm32-cryp.c1002 struct scatterlist *in_sg; in stm32_cryp_prepare_req() local
1063 in_sg = req ? req->src : areq->src; in stm32_cryp_prepare_req()
1064 scatterwalk_start(&cryp->in_walk, in_sg); in stm32_cryp_prepare_req()