Searched refs:nr_sgd (Results 1 – 4 of 4) sorted by relevance
| /OK3568_Linux_fs/kernel/drivers/crypto/allwinner/sun8i-ce/ |
| H A D | sun8i-ce-cipher.c | 95 int nr_sgd = 0; in sun8i_ce_cipher_prepare() local 189 nr_sgd = nr_sgs; in sun8i_ce_cipher_prepare() 198 nr_sgd = dma_map_sg(ce->dev, areq->dst, sg_nents(areq->dst), in sun8i_ce_cipher_prepare() 200 if (nr_sgd <= 0 || nr_sgd > MAX_SG) { in sun8i_ce_cipher_prepare() 201 dev_err(ce->dev, "Invalid sg number %d\n", nr_sgd); in sun8i_ce_cipher_prepare() 223 for_each_sg(areq->dst, sg, nr_sgd, i) { in sun8i_ce_cipher_prepare() 239 rctx->nr_sgd = nr_sgd; in sun8i_ce_cipher_prepare() 248 dma_unmap_sg(ce->dev, areq->dst, nr_sgd, DMA_FROM_DEVICE); in sun8i_ce_cipher_prepare() 301 int nr_sgd = rctx->nr_sgd; in sun8i_ce_cipher_unprepare() local 314 dma_unmap_sg(ce->dev, areq->dst, nr_sgd, DMA_FROM_DEVICE); in sun8i_ce_cipher_unprepare()
|
| H A D | sun8i-ce.h | 258 int nr_sgd; member
|
| /OK3568_Linux_fs/kernel/drivers/crypto/amlogic/ |
| H A D | amlogic-gxl-cipher.c | 97 int nr_sgs, nr_sgd; in meson_cipher() local 185 nr_sgd = nr_sgs; in meson_cipher() 194 nr_sgd = dma_map_sg(mc->dev, areq->dst, sg_nents(areq->dst), in meson_cipher() 196 if (nr_sgd < 0 || nr_sgd > MAXDESC - 3) { in meson_cipher() 197 dev_err(mc->dev, "Invalid SG count %d\n", nr_sgd); in meson_cipher() 242 dma_unmap_sg(mc->dev, areq->dst, nr_sgd, DMA_FROM_DEVICE); in meson_cipher()
|
| /OK3568_Linux_fs/kernel/drivers/crypto/allwinner/sun8i-ss/ |
| H A D | sun8i-ss-cipher.c | 171 int nr_sgd = 0; in sun8i_ss_cipher() local 212 nr_sgd = nr_sgs; in sun8i_ss_cipher() 221 nr_sgd = dma_map_sg(ss->dev, areq->dst, sg_nents(areq->dst), in sun8i_ss_cipher() 223 if (nr_sgd <= 0 || nr_sgd > 8) { in sun8i_ss_cipher() 224 dev_err(ss->dev, "Invalid sg number %d\n", nr_sgd); in sun8i_ss_cipher() 255 while (i < nr_sgd && sg && len) { in sun8i_ss_cipher() 281 dma_unmap_sg(ss->dev, areq->dst, nr_sgd, DMA_FROM_DEVICE); in sun8i_ss_cipher()
|