Home
last modified time | relevance | path

Searched refs:in_sg_len (Results 1 – 5 of 5) sorted by relevance

/Linux-v4.19/drivers/crypto/
Domap-des.c167 int in_sg_len; member
382 int in_sg_len, int out_sg_len) in omap_des_crypt_dma() argument
400 dma_sync_sg_for_device(dd->dev, dd->in_sg, in_sg_len, DMA_TO_DEVICE); in omap_des_crypt_dma()
419 tx_in = dmaengine_prep_slave_sg(dd->dma_lch_in, in_sg, in_sg_len, in omap_des_crypt_dma()
470 err = dma_map_sg(dd->dev, dd->in_sg, dd->in_sg_len, in omap_des_crypt_dma_start()
485 err = omap_des_crypt_dma(tfm, dd->in_sg, dd->out_sg, dd->in_sg_len, in omap_des_crypt_dma_start()
488 dma_unmap_sg(dd->dev, dd->in_sg, dd->in_sg_len, DMA_TO_DEVICE); in omap_des_crypt_dma_start()
567 dd->in_sg_len = sg_nents_for_len(dd->in_sg, dd->total); in omap_des_prepare_req()
568 if (dd->in_sg_len < 0) in omap_des_prepare_req()
569 return dd->in_sg_len; in omap_des_prepare_req()
[all …]
Domap-aes.c274 int in_sg_len, int out_sg_len) in omap_aes_crypt_dma() argument
290 dma_sync_sg_for_device(dd->dev, dd->in_sg, in_sg_len, DMA_TO_DEVICE); in omap_aes_crypt_dma()
309 tx_in = dmaengine_prep_slave_sg(dd->dma_lch_in, in_sg, in_sg_len, in omap_aes_crypt_dma()
361 err = dma_map_sg(dd->dev, dd->in_sg, dd->in_sg_len, in omap_aes_crypt_dma_start()
376 err = omap_aes_crypt_dma(dd, dd->in_sg, dd->out_sg, dd->in_sg_len, in omap_aes_crypt_dma_start()
379 dma_unmap_sg(dd->dev, dd->in_sg, dd->in_sg_len, DMA_TO_DEVICE); in omap_aes_crypt_dma_start()
456 dd->in_sg_len = sg_nents_for_len(dd->in_sg, dd->total); in omap_aes_prepare_req()
457 if (dd->in_sg_len < 0) in omap_aes_prepare_req()
458 return dd->in_sg_len; in omap_aes_prepare_req()
495 dma_unmap_sg(dd->dev, dd->in_sg, dd->in_sg_len, DMA_TO_DEVICE); in omap_aes_done_task()
Domap-aes-gcm.c57 dma_unmap_sg(dd->dev, dd->in_sg, dd->in_sg_len, DMA_TO_DEVICE); in omap_aes_gcm_done_task()
162 dd->in_sg_len = sg_nents_for_len(dd->in_sg, alen + clen); in omap_aes_gcm_copy_buffers()
Domap-aes.h194 int in_sg_len; member
/Linux-v4.19/drivers/crypto/stm32/
Dstm32-cryp.c160 int in_sg_len; member
371 cryp->in_sg_len = 1; in stm32_cryp_copy_sgs()
975 cryp->in_sg_len = sg_nents_for_len(cryp->in_sg, cryp->total_in); in stm32_cryp_prepare_req()
976 if (cryp->in_sg_len < 0) { in stm32_cryp_prepare_req()
978 ret = cryp->in_sg_len; in stm32_cryp_prepare_req()