Home
last modified time | relevance | path

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

/openbmc/linux/drivers/crypto/gemini/
H A Dsl3516-ce-cipher.c139 int nr_sgd = 0; in sl3516_ce_cipher() local
161 nr_sgd = nr_sgs; in sl3516_ce_cipher()
170 nr_sgd = dma_map_sg(ce->dev, areq->dst, sg_nents(areq->dst), in sl3516_ce_cipher()
172 if (nr_sgd <= 0 || nr_sgd > MAXDESC) { in sl3516_ce_cipher()
173 dev_err(ce->dev, "Invalid sg number %d\n", nr_sgd); in sl3516_ce_cipher()
204 while (i < nr_sgd && sg && len) { in sl3516_ce_cipher()
246 rctx->nr_sgd = nr_sgd; in sl3516_ce_cipher()
H A Dsl3516-ce.h288 int nr_sgd; member
H A Dsl3516-ce-core.c133 for (i = 0; i < rctx->nr_sgd; i++) { in sl3516_ce_run_task()
135 i, rctx->nr_sgd, rctx->t_dst[i].len); in sl3516_ce_run_task()
/openbmc/linux/drivers/crypto/allwinner/sun8i-ce/
H A Dsun8i-ce-cipher.c136 int nr_sgd = 0; in sun8i_ce_cipher_prepare() local
221 nr_sgd = nr_sgs; in sun8i_ce_cipher_prepare()
229 nr_sgd = dma_map_sg(ce->dev, areq->dst, nd, DMA_FROM_DEVICE); in sun8i_ce_cipher_prepare()
230 if (nr_sgd <= 0 || nr_sgd > MAX_SG) { in sun8i_ce_cipher_prepare()
231 dev_err(ce->dev, "Invalid sg number %d\n", nr_sgd); in sun8i_ce_cipher_prepare()
253 for_each_sg(areq->dst, sg, nr_sgd, i) { in sun8i_ce_cipher_prepare()
269 rctx->nr_sgd = nr_sgd; in sun8i_ce_cipher_prepare()
314 int nr_sgd = rctx->nr_sgd; in sun8i_ce_cipher_unprepare() local
327 dma_unmap_sg(ce->dev, areq->dst, nr_sgd, DMA_FROM_DEVICE); in sun8i_ce_cipher_unprepare()
H A Dsun8i-ce.h260 int nr_sgd; member
/openbmc/linux/drivers/crypto/amlogic/
H A 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()
/openbmc/linux/drivers/crypto/allwinner/sun8i-ss/
H A Dsun8i-ss-cipher.c195 int nr_sgd = 0; in sun8i_ss_cipher() local
237 nr_sgd = nr_sgs; in sun8i_ss_cipher()
245 nr_sgd = dma_map_sg(ss->dev, areq->dst, nsgd, DMA_FROM_DEVICE); in sun8i_ss_cipher()
246 if (nr_sgd <= 0 || nr_sgd > 8) { in sun8i_ss_cipher()
247 dev_err(ss->dev, "Invalid sg number %d\n", nr_sgd); in sun8i_ss_cipher()
278 while (i < nr_sgd && sg && len) { in sun8i_ss_cipher()