Symbol: sg_nents_for_len
crypto/ecdh.c
109
copied = sg_copy_from_buffer(req->dst, sg_nents_for_len(req->dst,
crypto/ecdh.c
86
sg_nents_for_len(req->src,
crypto/essiv.c
212
nents = sg_nents_for_len(req->src, ssize);
crypto/rsa-pkcs1pad.c
102
sg_nents_for_len(req->dst, ctx->key_size),
crypto/rsa-pkcs1pad.c
220
sg_nents_for_len(req->dst, req->dst_len),
crypto/rsa-pkcs1pad.c
99
sg_copy_to_buffer(req->dst, sg_nents_for_len(req->dst, len),
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c
150
int ns = sg_nents_for_len(areq->src, areq->cryptlen);
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c
151
int nd = sg_nents_for_len(areq->dst, areq->cryptlen);
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c
34
if (sg_nents_for_len(areq->src, areq->cryptlen) > MAX_SG ||
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c
35
sg_nents_for_len(areq->dst, areq->cryptlen) > MAX_SG) {
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-hash.c
214
if (sg_nents_for_len(areq->src, areq->nbytes) > MAX_SG - 1) {
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-hash.c
360
rctx->nr_sgs = sg_nents_for_len(areq->src, areq->nbytes);
drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c
197
int nsgs = sg_nents_for_len(areq->src, areq->cryptlen);
drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c
198
int nsgd = sg_nents_for_len(areq->dst, areq->cryptlen);
drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c
38
if (sg_nents_for_len(areq->src, areq->cryptlen) > 8 ||
drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c
39
sg_nents_for_len(areq->dst, areq->cryptlen) > 8) {
drivers/crypto/amcc/crypto4xx_core.c
685
tmp = sg_nents_for_len(src, assoclen + datalen);
drivers/crypto/aspeed/aspeed-hace-hash.c
514
rctx->src_nents = sg_nents_for_len(req->src, req->nbytes);
drivers/crypto/atmel-ecc.c
157
sg_nents_for_len(req->dst, nbytes),
drivers/crypto/atmel-ecc.c
62
copied = sg_copy_from_buffer(req->dst, sg_nents_for_len(req->dst, n_sz),
drivers/crypto/atmel-i2c.c
146
sg_nents_for_len(pubkey,
drivers/crypto/caam/caamalg.c
1405
src_nents = sg_nents_for_len(req->src, src_len);
drivers/crypto/caam/caamalg.c
1412
dst_nents = sg_nents_for_len(req->dst, dst_len);
drivers/crypto/caam/caamalg.c
1422
src_nents = sg_nents_for_len(req->src, src_len);
drivers/crypto/caam/caamalg.c
1709
src_nents = sg_nents_for_len(req->src, req->cryptlen);
drivers/crypto/caam/caamalg.c
1717
dst_nents = sg_nents_for_len(req->dst, req->cryptlen);
drivers/crypto/caam/caamalg_qi.c
1004
dst_nents = sg_nents_for_len(req->dst, dst_len);
drivers/crypto/caam/caamalg_qi.c
1276
src_nents = sg_nents_for_len(req->src, req->cryptlen);
drivers/crypto/caam/caamalg_qi.c
1284
dst_nents = sg_nents_for_len(req->dst, req->cryptlen);
drivers/crypto/caam/caamalg_qi.c
977
src_nents = sg_nents_for_len(req->src, src_len);
drivers/crypto/caam/caamalg_qi.c
996
src_nents = sg_nents_for_len(req->src, src_len);
drivers/crypto/caam/caamalg_qi2.c
1131
src_nents = sg_nents_for_len(req->src, req->cryptlen);
drivers/crypto/caam/caamalg_qi2.c
1139
dst_nents = sg_nents_for_len(req->dst, req->cryptlen);
drivers/crypto/caam/caamalg_qi2.c
3556
src_nents = sg_nents_for_len(req->src, src_len);
drivers/crypto/caam/caamalg_qi2.c
3739
src_nents = sg_nents_for_len(req->src, req->nbytes);
drivers/crypto/caam/caamalg_qi2.c
3832
src_nents = sg_nents_for_len(req->src, req->nbytes);
drivers/crypto/caam/caamalg_qi2.c
386
src_nents = sg_nents_for_len(req->src, src_len);
drivers/crypto/caam/caamalg_qi2.c
394
dst_nents = sg_nents_for_len(req->dst, dst_len);
drivers/crypto/caam/caamalg_qi2.c
4008
src_nents = sg_nents_for_len(req->src, src_len);
drivers/crypto/caam/caamalg_qi2.c
4121
src_nents = sg_nents_for_len(req->src, req->nbytes);
drivers/crypto/caam/caamalg_qi2.c
4226
src_nents = sg_nents_for_len(req->src, src_len);
drivers/crypto/caam/caamalg_qi2.c
431
src_nents = sg_nents_for_len(req->src, src_len);
drivers/crypto/caam/caamhash.c
1021
src_nents = sg_nents_for_len(req->src, req->nbytes);
drivers/crypto/caam/caamhash.c
1095
src_nents = sg_nents_for_len(req->src, req->nbytes);
drivers/crypto/caam/caamhash.c
1231
src_nents = sg_nents_for_len(req->src, src_len);
drivers/crypto/caam/caamhash.c
1331
src_nents = sg_nents_for_len(req->src, req->nbytes);
drivers/crypto/caam/caamhash.c
1425
src_nents = sg_nents_for_len(req->src,
drivers/crypto/caam/caamhash.c
855
src_nents = sg_nents_for_len(req->src, src_len);
drivers/crypto/caam/caampkc.c
213
ents = sg_nents_for_len(sgl, nbytes);
drivers/crypto/caam/caampkc.c
290
src_nents = sg_nents_for_len(req_ctx->fixup_src,
drivers/crypto/caam/caampkc.c
292
dst_nents = sg_nents_for_len(req->dst, req->dst_len);
drivers/crypto/cavium/nitrox/nitrox_aead.c
119
int nents = sg_nents_for_len(dst, buflen);
drivers/crypto/cavium/nitrox/nitrox_aead.c
97
int nents = sg_nents_for_len(src, buflen);
drivers/crypto/ccp/ccp-ops.c
83
wa->nents = sg_nents_for_len(sg, len);
drivers/crypto/ccree/cc_buffer_mgr.c
111
nents = sg_nents_for_len(sg, end);
drivers/crypto/ccree/cc_buffer_mgr.c
1252
sg_nents = sg_nents_for_len(src, nbytes);
drivers/crypto/ccree/cc_buffer_mgr.c
609
mapped_nents = sg_nents_for_len(req->src, areq_ctx->assoclen);
drivers/crypto/chelsio/chcr_algo.c
2524
sg_nents_for_len(req->src, src_len),
drivers/crypto/chelsio/chcr_algo.c
2530
sg_nents_for_len(req->src, src_len),
drivers/crypto/chelsio/chcr_algo.c
2535
sg_nents_for_len(req->dst, dst_len),
drivers/crypto/chelsio/chcr_algo.c
2539
sg_nents_for_len(req->src, src_len),
drivers/crypto/chelsio/chcr_algo.c
2580
sg_nents_for_len(req->src, src_len),
drivers/crypto/chelsio/chcr_algo.c
2584
sg_nents_for_len(req->src, src_len),
drivers/crypto/chelsio/chcr_algo.c
2587
sg_nents_for_len(req->dst, dst_len),
drivers/crypto/inside-secure/eip93/eip93-common.c
227
src_nents = sg_nents_for_len(src, totlen_src);
drivers/crypto/inside-secure/eip93/eip93-common.c
231
dst_nents = sg_nents_for_len(dst, totlen_dst);
drivers/crypto/inside-secure/eip93/eip93-common.c
281
src_nents = sg_nents_for_len(rctx->sg_src, totlen_src);
drivers/crypto/inside-secure/eip93/eip93-common.c
285
dst_nents = sg_nents_for_len(rctx->sg_dst, totlen_dst);
drivers/crypto/inside-secure/safexcel_cipher.c
696
sreq->nr_src = sg_nents_for_len(src, totlen_src);
drivers/crypto/inside-secure/safexcel_cipher.c
727
sreq->nr_dst = sg_nents_for_len(dst, totlen_dst);
drivers/crypto/inside-secure/safexcel_hash.c
253
sg_nents_for_len(areq->src, areq->nbytes),
drivers/crypto/inside-secure/safexcel_hash.c
420
sg_nents_for_len(areq->src,
drivers/crypto/inside-secure/safexcel_hash.c
497
sg_nents_for_len(areq->src, areq->nbytes),
drivers/crypto/intel/keembay/keembay-ocs-aes-core.c
454
rctx->src_nents = sg_nents_for_len(req->src, req->cryptlen);
drivers/crypto/intel/keembay/keembay-ocs-aes-core.c
523
rctx->dst_nents = sg_nents_for_len(req->dst, req->cryptlen);
drivers/crypto/intel/keembay/keembay-ocs-aes-core.c
730
rctx->src_nents = sg_nents_for_len(req->src,
drivers/crypto/intel/keembay/keembay-ocs-aes-core.c
783
rctx->dst_nents = sg_nents_for_len(req->dst, dst_size);
drivers/crypto/intel/keembay/keembay-ocs-ecc.c
593
sg_nents_for_len(req->src, pubk_len),
drivers/crypto/intel/keembay/keembay-ocs-ecc.c
640
sg_nents_for_len(req->dst, nbytes),
drivers/crypto/intel/keembay/keembay-ocs-ecc.c
693
sg_nents_for_len(req->dst, pubk_len),
drivers/crypto/intel/keembay/keembay-ocs-hcu-core.c
254
nents = sg_nents_for_len(req->src, rctx->sg_data_total - remainder);
drivers/crypto/marvell/cesa/cipher.c
435
creq->src_nents = sg_nents_for_len(req->src, req->cryptlen);
drivers/crypto/marvell/cesa/cipher.c
440
creq->dst_nents = sg_nents_for_len(req->dst, req->cryptlen);
drivers/crypto/marvell/cesa/hash.c
763
creq->src_nents = sg_nents_for_len(req->src, req->nbytes);
drivers/crypto/omap-aes-gcm.c
170
dd->in_sg_len = sg_nents_for_len(dd->in_sg, alen + clen);
drivers/crypto/omap-aes-gcm.c
171
dd->out_sg_len = sg_nents_for_len(dd->out_sg, clen);
drivers/crypto/omap-aes.c
460
dd->in_sg_len = sg_nents_for_len(dd->in_sg, dd->total);
drivers/crypto/omap-aes.c
464
dd->out_sg_len = sg_nents_for_len(dd->out_sg, dd->total);
drivers/crypto/omap-des.c
550
dd->in_sg_len = sg_nents_for_len(dd->in_sg, dd->total);
drivers/crypto/omap-des.c
554
dd->out_sg_len = sg_nents_for_len(dd->out_sg, dd->total);
drivers/crypto/qce/aead.c
125
rctx->dst_nents = sg_nents_for_len(req->dst, totallen);
drivers/crypto/qce/aead.c
175
rctx->dst_nents = sg_nents_for_len(rctx->dst_sg, totallen) + 1;
drivers/crypto/qce/aead.c
228
if (sg_copy_to_buffer(req->src, sg_nents_for_len(req->src, assoclen),
drivers/crypto/qce/aead.c
239
rctx->src_nents = sg_nents_for_len(req->src, totallen) + 1;
drivers/crypto/qce/aead.c
241
rctx->src_nents = sg_nents_for_len(req->src, totallen) + 2;
drivers/crypto/qce/aead.c
279
rctx->src_nents = sg_nents_for_len(rctx->src_sg, totallen);
drivers/crypto/qce/aead.c
316
rctx->src_nents = sg_nents_for_len(req->src, totallen);
drivers/crypto/qce/aead.c
346
rctx->src_nents = sg_nents_for_len(req->src, cryptlen);
drivers/crypto/qce/aead.c
352
rctx->src_nents = sg_nents_for_len(req->src, cryptlen);
drivers/crypto/qce/sha.c
93
rctx->src_nents = sg_nents_for_len(req->src, req->nbytes);
drivers/crypto/qce/skcipher.c
85
rctx->src_nents = sg_nents_for_len(req->src, req->cryptlen);
drivers/crypto/qce/skcipher.c
87
rctx->dst_nents = sg_nents_for_len(req->dst, req->cryptlen);
drivers/crypto/sa2ul.c
1152
sg_nents = sg_nents_for_len(src, req->size);
drivers/crypto/sa2ul.c
1202
dst_nents = sg_nents_for_len(req->dst, req->size);
drivers/crypto/sahara.c
458
dev->nb_in_sg = sg_nents_for_len(dev->in_sg, dev->total);
drivers/crypto/sahara.c
463
dev->nb_out_sg = sg_nents_for_len(dev->out_sg, dev->total);
drivers/crypto/sahara.c
767
dev->nb_in_sg = sg_nents_for_len(dev->in_sg, rctx->total);
drivers/crypto/starfive/jh7110-aes.c
671
if (sg_copy_to_buffer(req->src, sg_nents_for_len(req->src, cryp->assoclen),
drivers/crypto/starfive/jh7110-hash.c
337
sg_len = sg_nents_for_len(rctx->in_sg, rctx->total);
drivers/crypto/stm32/stm32-cryp.c
1496
alloc_sg_len = sg_nents_for_len(sg, skip + size);
drivers/crypto/stm32/stm32-cryp.c
1580
ret = sg_nents_for_len(cryp->in_sg, cryp->payload_in);
drivers/crypto/stm32/stm32-cryp.c
1585
ret = sg_nents_for_len(out_sg, cryp->payload_out);
drivers/crypto/talitos.c
1347
src_nents = sg_nents_for_len(src, src_len);
drivers/crypto/talitos.c
1357
src_nents = sg_nents_for_len(src, src_len);
drivers/crypto/talitos.c
1364
dst_nents = sg_nents_for_len(dst, dst_len);
drivers/crypto/talitos.c
2000
nents = sg_nents_for_len(areq->src, nbytes);
drivers/crypto/talitos.c
2041
nents = sg_nents_for_len(areq->src, offset);
drivers/crypto/talitos.c
2055
nents = sg_nents_for_len(areq->src, nbytes);
drivers/crypto/ti/dthev2-aes.c
273
int src_nents = sg_nents_for_len(src, len);
drivers/crypto/ti/dthev2-aes.c
321
dst_nents = sg_nents_for_len(dst, len);
drivers/crypto/virtio/virtio_crypto_skcipher_algs.c
341
src_nents = sg_nents_for_len(req->src, req->cryptlen);
drivers/iio/buffer/industrialio-buffer-dmaengine.c
84
nents = sg_nents_for_len(sgl, block->bytes_used);
drivers/usb/gadget/function/f_fs.c
1697
usb_req->num_sgs = sg_nents_for_len(priv->sgt->sgl, req->length);
drivers/vfio/pci/virtio/migrate.c
581
nent = sg_nents_for_len(buf->table.sgt.sgl, ctx_size);
include/linux/scatterlist.h
443
int sg_nents_for_len(struct scatterlist *sg, u64 len);
lib/crypto/mpi/mpicoder.c
270
nents = sg_nents_for_len(sgl, nbytes);
lib/crypto/mpi/mpicoder.c
341
ents = sg_nents_for_len(sgl, nbytes);
lib/scatterlist.c
65
EXPORT_SYMBOL(sg_nents_for_len);