Searched refs:nr_sgd (Results 1 – 4 of 4) sorted by relevance
/Linux-v5.10/drivers/crypto/allwinner/sun8i-ce/ |
D | sun8i-ce-cipher.c | 94 int nr_sgd = 0; in sun8i_ce_cipher_prepare() local 188 nr_sgd = nr_sgs; in sun8i_ce_cipher_prepare() 197 nr_sgd = dma_map_sg(ce->dev, areq->dst, sg_nents(areq->dst), in sun8i_ce_cipher_prepare() 199 if (nr_sgd <= 0 || nr_sgd > MAX_SG) { in sun8i_ce_cipher_prepare() 200 dev_err(ce->dev, "Invalid sg number %d\n", nr_sgd); in sun8i_ce_cipher_prepare() 222 for_each_sg(areq->dst, sg, nr_sgd, i) { in sun8i_ce_cipher_prepare() 238 rctx->nr_sgd = nr_sgd; in sun8i_ce_cipher_prepare() 247 dma_unmap_sg(ce->dev, areq->dst, nr_sgd, DMA_FROM_DEVICE); in sun8i_ce_cipher_prepare() 298 int nr_sgd = rctx->nr_sgd; in sun8i_ce_cipher_unprepare() local 311 dma_unmap_sg(ce->dev, areq->dst, nr_sgd, DMA_FROM_DEVICE); in sun8i_ce_cipher_unprepare()
|
D | sun8i-ce.h | 258 int nr_sgd; member
|
/Linux-v5.10/drivers/crypto/allwinner/sun8i-ss/ |
D | sun8i-ss-cipher.c | 107 int nr_sgd = 0; in sun8i_ss_cipher() local 169 nr_sgd = nr_sgs; in sun8i_ss_cipher() 178 nr_sgd = dma_map_sg(ss->dev, areq->dst, sg_nents(areq->dst), in sun8i_ss_cipher() 180 if (nr_sgd <= 0 || nr_sgd > 8) { in sun8i_ss_cipher() 181 dev_err(ss->dev, "Invalid sg number %d\n", nr_sgd); in sun8i_ss_cipher() 212 while (i < nr_sgd && sg && len) { in sun8i_ss_cipher() 238 dma_unmap_sg(ss->dev, areq->dst, nr_sgd, DMA_FROM_DEVICE); in sun8i_ss_cipher()
|
/Linux-v5.10/drivers/crypto/amlogic/ |
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()
|