Home
last modified time | relevance | path

Searched refs:nr_sgd (Results 1 – 7 of 7) sorted by relevance

/Linux-v6.1/drivers/crypto/gemini/
Dsl3516-ce-cipher.c135 int nr_sgd = 0; in sl3516_ce_cipher() local
157 nr_sgd = nr_sgs; in sl3516_ce_cipher()
166 nr_sgd = dma_map_sg(ce->dev, areq->dst, sg_nents(areq->dst), in sl3516_ce_cipher()
168 if (nr_sgd <= 0 || nr_sgd > MAXDESC) { in sl3516_ce_cipher()
169 dev_err(ce->dev, "Invalid sg number %d\n", nr_sgd); in sl3516_ce_cipher()
200 while (i < nr_sgd && sg && len) { in sl3516_ce_cipher()
242 rctx->nr_sgd = nr_sgd; in sl3516_ce_cipher()
Dsl3516-ce.h289 int nr_sgd; member
Dsl3516-ce-core.c131 for (i = 0; i < rctx->nr_sgd; i++) { in sl3516_ce_run_task()
133 i, rctx->nr_sgd, rctx->t_dst[i].len); in sl3516_ce_run_task()
/Linux-v6.1/drivers/crypto/allwinner/sun8i-ce/
Dsun8i-ce-cipher.c131 int nr_sgd = 0; in sun8i_ce_cipher_prepare() local
216 nr_sgd = nr_sgs; in sun8i_ce_cipher_prepare()
224 nr_sgd = dma_map_sg(ce->dev, areq->dst, nd, DMA_FROM_DEVICE); in sun8i_ce_cipher_prepare()
225 if (nr_sgd <= 0 || nr_sgd > MAX_SG) { in sun8i_ce_cipher_prepare()
226 dev_err(ce->dev, "Invalid sg number %d\n", nr_sgd); in sun8i_ce_cipher_prepare()
248 for_each_sg(areq->dst, sg, nr_sgd, i) { in sun8i_ce_cipher_prepare()
264 rctx->nr_sgd = nr_sgd; in sun8i_ce_cipher_prepare()
325 int nr_sgd = rctx->nr_sgd; in sun8i_ce_cipher_unprepare() local
338 dma_unmap_sg(ce->dev, areq->dst, nr_sgd, DMA_FROM_DEVICE); in sun8i_ce_cipher_unprepare()
Dsun8i-ce.h260 int nr_sgd; member
/Linux-v6.1/drivers/crypto/amlogic/
Damlogic-gxl-cipher.c97 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 || nr_sgd > MAXDESC - 3) { in meson_cipher()
197 dev_err(mc->dev, "Invalid SG count %d\n", nr_sgd); in meson_cipher()
/Linux-v6.1/drivers/crypto/allwinner/sun8i-ss/
Dsun8i-ss-cipher.c190 int nr_sgd = 0; in sun8i_ss_cipher() local
232 nr_sgd = nr_sgs; in sun8i_ss_cipher()
240 nr_sgd = dma_map_sg(ss->dev, areq->dst, nsgd, DMA_FROM_DEVICE); in sun8i_ss_cipher()
241 if (nr_sgd <= 0 || nr_sgd > 8) { in sun8i_ss_cipher()
242 dev_err(ss->dev, "Invalid sg number %d\n", nr_sgd); in sun8i_ss_cipher()
273 while (i < nr_sgd && sg && len) { in sun8i_ss_cipher()