/linux/crypto/ |
H A D | curve25519-generic.c | 35 sg_nents_for_len(req->src, in curve25519_compute_value() 49 copied = sg_copy_from_buffer(req->dst, sg_nents_for_len(req->dst, in curve25519_compute_value()
|
H A D | ecdh.c | 86 sg_nents_for_len(req->src, in ecdh_compute_value() 109 copied = sg_copy_from_buffer(req->dst, sg_nents_for_len(req->dst, in ecdh_compute_value()
|
H A D | essiv.c | 214 nents = sg_nents_for_len(req->src, ssize); in essiv_aead_crypt()
|
/linux/arch/arm/crypto/ |
H A D | curve25519-glue.c | 75 sg_nents_for_len(req->src, in curve25519_compute_value() 89 copied = sg_copy_from_buffer(req->dst, sg_nents_for_len(req->dst, in curve25519_compute_value()
|
/linux/arch/powerpc/crypto/ |
H A D | curve25519-ppc64le-core.c | 224 copied = sg_copy_from_buffer(req->dst, sg_nents_for_len(req->dst, in curve25519_generate_public_key() 244 sg_nents_for_len(req->src, in curve25519_compute_shared_secret() 254 copied = sg_copy_from_buffer(req->dst, sg_nents_for_len(req->dst, in curve25519_compute_shared_secret()
|
/linux/drivers/crypto/allwinner/sun8i-ss/ |
H A D | sun8i-ss-cipher.c | 38 if (sg_nents_for_len(areq->src, areq->cryptlen) > 8 || in sun8i_ss_need_fallback() 39 sg_nents_for_len(areq->dst, areq->cryptlen) > 8) { in sun8i_ss_need_fallback() 197 int nsgs = sg_nents_for_len(areq->src, areq->cryptlen); in sun8i_ss_cipher() 198 int nsgd = sg_nents_for_len(areq->dst, areq->cryptlen); in sun8i_ss_cipher()
|
/linux/drivers/crypto/allwinner/sun8i-ce/ |
H A D | sun8i-ce-cipher.c | 34 if (sg_nents_for_len(areq->src, areq->cryptlen) > MAX_SG || in sun8i_ce_cipher_need_fallback() 35 sg_nents_for_len(areq->dst, areq->cryptlen) > MAX_SG) { in sun8i_ce_cipher_need_fallback() 138 int ns = sg_nents_for_len(areq->src, areq->cryptlen); in sun8i_ce_cipher_prepare() 139 int nd = sg_nents_for_len(areq->dst, areq->cryptlen); in sun8i_ce_cipher_prepare()
|
H A D | sun8i-ce-hash.c | 220 if (sg_nents_for_len(areq->src, areq->nbytes) > MAX_SG - 1) { in sun8i_ce_hash_need_fallback() 253 nr_sgs = sg_nents_for_len(areq->src, areq->nbytes); in sun8i_ce_hash_digest() 352 int ns = sg_nents_for_len(areq->src, areq->nbytes); in sun8i_ce_hash_run()
|
/linux/lib/crypto/mpi/ |
H A D | mpicoder.c | 269 nents = sg_nents_for_len(sgl, nbytes); in mpi_write_to_sgl() 340 ents = sg_nents_for_len(sgl, nbytes); in mpi_read_raw_from_sgl()
|
/linux/drivers/crypto/ |
H A D | omap-aes-gcm.c | 171 dd->in_sg_len = sg_nents_for_len(dd->in_sg, alen + clen); in omap_aes_gcm_copy_buffers() 172 dd->out_sg_len = sg_nents_for_len(dd->out_sg, clen); in omap_aes_gcm_copy_buffers()
|
H A D | atmel-i2c.c | 146 sg_nents_for_len(pubkey, in atmel_i2c_init_ecdh_cmd()
|
/linux/arch/x86/crypto/ |
H A D | curve25519-x86_64.c | 1644 copied = sg_copy_from_buffer(req->dst, sg_nents_for_len(req->dst, in curve25519_generate_public_key() 1664 sg_nents_for_len(req->src, in curve25519_compute_shared_secret() 1674 copied = sg_copy_from_buffer(req->dst, sg_nents_for_len(req->dst, in curve25519_compute_shared_secret()
|
/linux/drivers/crypto/caam/ |
H A D | caamhash.c | 854 src_nents = sg_nents_for_len(req->src, src_len); in ahash_update_ctx() 1020 src_nents = sg_nents_for_len(req->src, req->nbytes); in ahash_finup_ctx() 1094 src_nents = sg_nents_for_len(req->src, req->nbytes); in ahash_digest() 1230 src_nents = sg_nents_for_len(req->src, src_len); in ahash_update_no_ctx() 1330 src_nents = sg_nents_for_len(req->src, req->nbytes); in ahash_finup_no_ctx() 1424 src_nents = sg_nents_for_len(req->src, in ahash_update_first()
|
H A D | caamalg_qi2.c | 385 src_nents = sg_nents_for_len(req->src, src_len); in aead_edesc_alloc() 393 dst_nents = sg_nents_for_len(req->dst, dst_len); in aead_edesc_alloc() 430 src_nents = sg_nents_for_len(req->src, src_len); in aead_edesc_alloc() 1130 src_nents = sg_nents_for_len(req->src, req->cryptlen); in skcipher_edesc_alloc() 1138 dst_nents = sg_nents_for_len(req->dst, req->cryptlen); in skcipher_edesc_alloc() 3554 src_nents = sg_nents_for_len(req->src, src_len); in ahash_update_ctx() 3737 src_nents = sg_nents_for_len(req->src, req->nbytes); in ahash_finup_ctx() 3830 src_nents = sg_nents_for_len(req->src, req->nbytes); in ahash_digest() 4006 src_nents = sg_nents_for_len(req->src, src_len); in ahash_update_no_ctx() 4119 src_nents = sg_nents_for_len(req->src, req->nbytes); in ahash_finup_no_ctx() [all …]
|
H A D | caamalg_qi.c | 977 src_nents = sg_nents_for_len(req->src, src_len); in aead_edesc_alloc() 996 src_nents = sg_nents_for_len(req->src, src_len); in aead_edesc_alloc() 1004 dst_nents = sg_nents_for_len(req->dst, dst_len); in aead_edesc_alloc() 1276 src_nents = sg_nents_for_len(req->src, req->cryptlen); in skcipher_edesc_alloc() 1284 dst_nents = sg_nents_for_len(req->dst, req->cryptlen); in skcipher_edesc_alloc()
|
H A D | caamalg.c | 1325 src_nents = sg_nents_for_len(req->src, src_len); in aead_edesc_alloc() 1332 dst_nents = sg_nents_for_len(req->dst, dst_len); in aead_edesc_alloc() 1342 src_nents = sg_nents_for_len(req->src, src_len); in aead_edesc_alloc() 1629 src_nents = sg_nents_for_len(req->src, req->cryptlen); in skcipher_edesc_alloc() 1637 dst_nents = sg_nents_for_len(req->dst, req->cryptlen); in skcipher_edesc_alloc()
|
/linux/drivers/crypto/cavium/nitrox/ |
H A D | nitrox_aead.c | 97 int nents = sg_nents_for_len(src, buflen); in alloc_src_sglist() 119 int nents = sg_nents_for_len(dst, buflen); in alloc_dst_sglist()
|
/linux/drivers/iio/buffer/ |
H A D | industrialio-buffer-dmaengine.c | 86 nents = sg_nents_for_len(sgl, block->bytes_used); in iio_dmaengine_buffer_submit_block()
|
/linux/include/linux/ |
H A D | scatterlist.h | 420 int sg_nents_for_len(struct scatterlist *sg, u64 len);
|
/linux/drivers/crypto/ccree/ |
H A D | cc_buffer_mgr.c | 111 nents = sg_nents_for_len(sg, end); in cc_copy_sg_portion() 609 mapped_nents = sg_nents_for_len(req->src, areq_ctx->assoclen); in cc_aead_chain_assoc() 1251 areq_ctx->in_nents = sg_nents_for_len(src, nbytes); in cc_map_hash_request_update()
|
/linux/lib/ |
H A D | scatterlist.c | 71 int sg_nents_for_len(struct scatterlist *sg, u64 len) in sg_nents_for_len() function 88 EXPORT_SYMBOL(sg_nents_for_len);
|
/linux/drivers/crypto/virtio/ |
H A D | virtio_crypto_skcipher_algs.c | 343 src_nents = sg_nents_for_len(req->src, req->cryptlen); in __virtio_crypto_skcipher_do_req()
|
/linux/drivers/crypto/starfive/ |
H A D | jh7110-hash.c | 337 rctx->in_sg_len = sg_nents_for_len(rctx->in_sg, rctx->total); in starfive_hash_digest()
|
H A D | jh7110-aes.c | 675 if (sg_copy_to_buffer(req->src, sg_nents_for_len(req->src, cryp->assoclen), in starfive_aes_aead_do_one_req()
|
/linux/drivers/crypto/intel/keembay/ |
H A D | keembay-ocs-hcu-core.c | 252 nents = sg_nents_for_len(req->src, rctx->sg_data_total - remainder); in kmb_ocs_dma_prepare()
|