Home
last modified time | relevance | path

Searched refs:nr_sgs (Results 1 – 9 of 9) sorted by relevance

/linux-6.1.9/drivers/crypto/allwinner/sun8i-ce/
Dsun8i-ce-cipher.c130 int nr_sgs = 0; in sun8i_ce_cipher_prepare() local
210 nr_sgs = dma_map_sg(ce->dev, areq->src, ns, DMA_BIDIRECTIONAL); in sun8i_ce_cipher_prepare()
211 if (nr_sgs <= 0 || nr_sgs > MAX_SG) { in sun8i_ce_cipher_prepare()
212 dev_err(ce->dev, "Invalid sg number %d\n", nr_sgs); in sun8i_ce_cipher_prepare()
216 nr_sgd = nr_sgs; in sun8i_ce_cipher_prepare()
218 nr_sgs = dma_map_sg(ce->dev, areq->src, ns, DMA_TO_DEVICE); in sun8i_ce_cipher_prepare()
219 if (nr_sgs <= 0 || nr_sgs > MAX_SG) { in sun8i_ce_cipher_prepare()
220 dev_err(ce->dev, "Invalid sg number %d\n", nr_sgs); in sun8i_ce_cipher_prepare()
233 for_each_sg(areq->src, sg, nr_sgs, i) { in sun8i_ce_cipher_prepare()
263 rctx->nr_sgs = nr_sgs; in sun8i_ce_cipher_prepare()
[all …]
Dsun8i-ce-hash.c242 int nr_sgs, e, i; in sun8i_ce_hash_digest() local
247 nr_sgs = sg_nents_for_len(areq->src, areq->nbytes); in sun8i_ce_hash_digest()
248 if (nr_sgs > MAX_SG - 1) in sun8i_ce_hash_digest()
251 for_each_sg(areq->src, sg, nr_sgs, i) { in sun8i_ce_hash_digest()
335 int nr_sgs, flow, err; in sun8i_ce_hash_run() local
391 nr_sgs = dma_map_sg(ce->dev, areq->src, ns, DMA_TO_DEVICE); in sun8i_ce_hash_run()
392 if (nr_sgs <= 0 || nr_sgs > MAX_SG) { in sun8i_ce_hash_run()
393 dev_err(ce->dev, "Invalid sg number %d\n", nr_sgs); in sun8i_ce_hash_run()
399 for_each_sg(areq->src, sg, nr_sgs, i) { in sun8i_ce_hash_run()
Dsun8i-ce.h259 int nr_sgs; member
/linux-6.1.9/drivers/crypto/gemini/
Dsl3516-ce-cipher.c134 int nr_sgs = 0; in sl3516_ce_cipher() local
150 nr_sgs = dma_map_sg(ce->dev, areq->src, sg_nents(areq->src), in sl3516_ce_cipher()
152 if (nr_sgs <= 0 || nr_sgs > MAXDESC / 2) { in sl3516_ce_cipher()
153 dev_err(ce->dev, "Invalid sg number %d\n", nr_sgs); in sl3516_ce_cipher()
157 nr_sgd = nr_sgs; in sl3516_ce_cipher()
159 nr_sgs = dma_map_sg(ce->dev, areq->src, sg_nents(areq->src), in sl3516_ce_cipher()
161 if (nr_sgs <= 0 || nr_sgs > MAXDESC / 2) { in sl3516_ce_cipher()
162 dev_err(ce->dev, "Invalid sg number %d\n", nr_sgs); in sl3516_ce_cipher()
178 while (i < nr_sgs && sg && len) { in sl3516_ce_cipher()
192 dev_err(ce->dev, "remaining len %d/%u nr_sgs=%d\n", len, areq->cryptlen, nr_sgs); in sl3516_ce_cipher()
[all …]
Dsl3516-ce.h288 int nr_sgs; member
Dsl3516-ce-core.c141 for (i = 0; i < rctx->nr_sgs; i++) { in sl3516_ce_run_task()
143 i, rctx->nr_sgs, rctx->t_src[i].len); in sl3516_ce_run_task()
/linux-6.1.9/drivers/crypto/amlogic/
Damlogic-gxl-cipher.c97 int nr_sgs, nr_sgd; in meson_cipher() local
178 nr_sgs = dma_map_sg(mc->dev, areq->src, sg_nents(areq->src), in meson_cipher()
180 if (!nr_sgs) { in meson_cipher()
181 dev_err(mc->dev, "Invalid SG count %d\n", nr_sgs); in meson_cipher()
185 nr_sgd = nr_sgs; in meson_cipher()
187 nr_sgs = dma_map_sg(mc->dev, areq->src, sg_nents(areq->src), in meson_cipher()
189 if (!nr_sgs || nr_sgs > MAXDESC - 3) { in meson_cipher()
190 dev_err(mc->dev, "Invalid SG count %d\n", nr_sgs); in meson_cipher()
/linux-6.1.9/drivers/crypto/allwinner/sun8i-ss/
Dsun8i-ss-cipher.c189 int nr_sgs = 0; in sun8i_ss_cipher() local
226 nr_sgs = dma_map_sg(ss->dev, areq->src, nsgs, DMA_BIDIRECTIONAL); in sun8i_ss_cipher()
227 if (nr_sgs <= 0 || nr_sgs > 8) { in sun8i_ss_cipher()
228 dev_err(ss->dev, "Invalid sg number %d\n", nr_sgs); in sun8i_ss_cipher()
232 nr_sgd = nr_sgs; in sun8i_ss_cipher()
234 nr_sgs = dma_map_sg(ss->dev, areq->src, nsgs, DMA_TO_DEVICE); in sun8i_ss_cipher()
235 if (nr_sgs <= 0 || nr_sgs > 8) { in sun8i_ss_cipher()
236 dev_err(ss->dev, "Invalid sg number %d\n", nr_sgs); in sun8i_ss_cipher()
251 while (i < nr_sgs && sg && len) { in sun8i_ss_cipher()
Dsun8i-ss-hash.c493 int nr_sgs, err, digestsize; in sun8i_ss_hash_run() local
529 nr_sgs = dma_map_sg(ss->dev, areq->src, sg_nents(areq->src), DMA_TO_DEVICE); in sun8i_ss_hash_run()
530 if (nr_sgs <= 0 || nr_sgs > MAX_SG) { in sun8i_ss_hash_run()
531 dev_err(ss->dev, "Invalid sg number %d\n", nr_sgs); in sun8i_ss_hash_run()