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
683
tmp = sg_nents_for_len(src, assoclen + datalen);
drivers/crypto/aspeed/aspeed-hace-hash.c
513
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
1132
src_nents = sg_nents_for_len(req->src, req->cryptlen);
drivers/crypto/caam/caamalg_qi2.c
1140
dst_nents = sg_nents_for_len(req->dst, req->cryptlen);
drivers/crypto/caam/caamalg_qi2.c
3557
src_nents = sg_nents_for_len(req->src, src_len);
drivers/crypto/caam/caamalg_qi2.c
3740
src_nents = sg_nents_for_len(req->src, req->nbytes);
drivers/crypto/caam/caamalg_qi2.c
3833
src_nents = sg_nents_for_len(req->src, req->nbytes);
drivers/crypto/caam/caamalg_qi2.c
387
src_nents = sg_nents_for_len(req->src, src_len);
drivers/crypto/caam/caamalg_qi2.c
395
dst_nents = sg_nents_for_len(req->dst, dst_len);
drivers/crypto/caam/caamalg_qi2.c
4009
src_nents = sg_nents_for_len(req->src, src_len);
drivers/crypto/caam/caamalg_qi2.c
4122
src_nents = sg_nents_for_len(req->src, req->nbytes);
drivers/crypto/caam/caamalg_qi2.c
4227
src_nents = sg_nents_for_len(req->src, src_len);
drivers/crypto/caam/caamalg_qi2.c
432
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
700
sreq->nr_src = sg_nents_for_len(src, totlen_src);
drivers/crypto/inside-secure/safexcel_cipher.c
731
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
584
sg_nents_for_len(req->src, pubk_len),
drivers/crypto/intel/keembay/keembay-ocs-ecc.c
631
sg_nents_for_len(req->dst, nbytes),
drivers/crypto/intel/keembay/keembay-ocs-ecc.c
684
sg_nents_for_len(req->dst, pubk_len),
drivers/crypto/intel/keembay/keembay-ocs-hcu-core.c
253
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
124
rctx->dst_nents = sg_nents_for_len(req->dst, totallen);
drivers/crypto/qce/aead.c
170
rctx->dst_nents = sg_nents_for_len(rctx->dst_sg, totallen) + 1;
drivers/crypto/qce/aead.c
223
if (sg_copy_to_buffer(req->src, sg_nents_for_len(req->src, assoclen),
drivers/crypto/qce/aead.c
234
rctx->src_nents = sg_nents_for_len(req->src, totallen) + 1;
drivers/crypto/qce/aead.c
236
rctx->src_nents = sg_nents_for_len(req->src, totallen) + 2;
drivers/crypto/qce/aead.c
274
rctx->src_nents = sg_nents_for_len(rctx->src_sg, totallen);
drivers/crypto/qce/aead.c
311
rctx->src_nents = sg_nents_for_len(req->src, totallen);
drivers/crypto/qce/aead.c
341
rctx->src_nents = sg_nents_for_len(req->src, cryptlen);
drivers/crypto/qce/aead.c
347
rctx->src_nents = sg_nents_for_len(req->src, cryptlen);
drivers/crypto/qce/sha.c
94
rctx->src_nents = sg_nents_for_len(req->src, req->nbytes);
drivers/crypto/qce/skcipher.c
86
rctx->src_nents = sg_nents_for_len(req->src, req->cryptlen);
drivers/crypto/qce/skcipher.c
88
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
1490
alloc_sg_len = sg_nents_for_len(sg, skip + size);
drivers/crypto/stm32/stm32-cryp.c
1574
ret = sg_nents_for_len(cryp->in_sg, cryp->payload_in);
drivers/crypto/stm32/stm32-cryp.c
1579
ret = sg_nents_for_len(out_sg, cryp->payload_out);
drivers/crypto/talitos.c
1422
src_nents = sg_nents_for_len(src, src_len);
drivers/crypto/talitos.c
1432
src_nents = sg_nents_for_len(src, src_len);
drivers/crypto/talitos.c
1439
dst_nents = sg_nents_for_len(dst, dst_len);
drivers/crypto/talitos.c
2055
nents = sg_nents_for_len(areq->src, nbytes);
drivers/crypto/talitos.c
2093
nents = sg_nents_for_len(areq->src, nbytes);
drivers/crypto/ti/dthev2-aes.c
341
int src_nents = sg_nents_for_len(src, len);
drivers/crypto/ti/dthev2-aes.c
342
int dst_nents = sg_nents_for_len(dst, len);
drivers/crypto/ti/dthev2-aes.c
623
aad_nents = sg_nents_for_len(sg, assoclen);
drivers/crypto/ti/dthev2-aes.c
679
crypt_nents = sg_nents_for_len(out_sg[0], cryptlen);
drivers/crypto/ti/dthev2-aes.c
737
nents = sg_nents_for_len(req->dst, req->cryptlen + req->assoclen + ctx->authsize);
drivers/crypto/ti/dthev2-aes.c
757
nents = sg_nents_for_len(req->src, req->assoclen + req->cryptlen);
drivers/crypto/ti/dthev2-aes.c
953
aad_nents = sg_nents_for_len(aad_sg, assoclen);
drivers/crypto/ti/dthev2-aes.c
974
src_nents = sg_nents_for_len(src, cryptlen);
drivers/crypto/ti/dthev2-aes.c
994
dst_nents = sg_nents_for_len(dst, cryptlen);
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
1715
usb_req->num_sgs = sg_nents_for_len(priv->sgt->sgl, req->length);
drivers/vfio/pci/virtio/migrate.c
559
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);