Home
last modified time | relevance | path

Searched refs:sg_nents_for_len (Results 1 – 25 of 39) sorted by relevance

12

/kernel/linux/linux-5.10/crypto/
Dcurve25519-generic.c35 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()
Decdh.c98 sg_nents_for_len(req->src, in ecdh_compute_value()
121 copied = sg_copy_from_buffer(req->dst, sg_nents_for_len(req->dst, in ecdh_compute_value()
Drsa-pkcs1pad.c198 sg_copy_to_buffer(req->dst, sg_nents_for_len(req->dst, len), in pkcs1pad_encrypt_sign_complete()
201 sg_nents_for_len(req->dst, ctx->key_size), in pkcs1pad_encrypt_sign_complete()
320 sg_nents_for_len(req->dst, req->dst_len), in pkcs1pad_decrypt_complete()
494 sg_nents_for_len(req->src, in pkcs1pad_verify_complete()
Decrdsa.c104 sg_copy_to_buffer(req->src, sg_nents_for_len(req->src, req->src_len), in ecrdsa_verify()
107 sg_nents_for_len(req->src, in ecrdsa_verify()
Decdsa.c159 sg_nents_for_len(req->src, req->src_len + req->dst_len), in ecdsa_verify()
Dsm2.c365 sg_nents_for_len(req->src, req->src_len + req->dst_len), in sm2_verify()
/kernel/linux/linux-5.10/arch/arm/crypto/
Dcurve25519-glue.c75 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()
/kernel/linux/linux-5.10/drivers/crypto/
Datmel-ecc.c65 copied = sg_copy_from_buffer(req->dst, sg_nents_for_len(req->dst, n_sz), in atmel_ecdh_done()
170 sg_nents_for_len(req->dst, nbytes), in atmel_ecdh_generate_public_key()
Domap-aes-gcm.c168 dd->in_sg_len = sg_nents_for_len(dd->in_sg, alen + clen); in omap_aes_gcm_copy_buffers()
169 dd->out_sg_len = sg_nents_for_len(dd->out_sg, clen); in omap_aes_gcm_copy_buffers()
Dpicoxcell_crypto.c286 nents = sg_nents_for_len(payload, nbytes); in spacc_sg_to_ddt()
326 src_nents = sg_nents_for_len(areq->src, total); in spacc_aead_make_ddts()
336 dst_nents = sg_nents_for_len(areq->dst, total); in spacc_aead_make_ddts()
420 int nents = sg_nents_for_len(areq->src, total); in spacc_aead_free_ddts()
430 nents = sg_nents_for_len(areq->dst, total); in spacc_aead_free_ddts()
447 int nents = sg_nents_for_len(payload, nbytes); in spacc_free_ddt()
Datmel-i2c.c122 sg_nents_for_len(pubkey, in atmel_i2c_init_ecdh_cmd()
Dsahara.c471 dev->nb_in_sg = sg_nents_for_len(dev->in_sg, dev->total); in sahara_hw_descriptor_create()
476 dev->nb_out_sg = sg_nents_for_len(dev->out_sg, dev->total); in sahara_hw_descriptor_create()
791 dev->nb_in_sg = sg_nents_for_len(dev->in_sg, rctx->total); in sahara_sha_hw_links_create()
Domap-des.c564 dd->in_sg_len = sg_nents_for_len(dd->in_sg, dd->total); in omap_des_prepare_req()
568 dd->out_sg_len = sg_nents_for_len(dd->out_sg, dd->total); in omap_des_prepare_req()
/kernel/linux/linux-5.10/arch/x86/crypto/
Dcurve25519-x86_64.c1433 copied = sg_copy_from_buffer(req->dst, sg_nents_for_len(req->dst, in curve25519_generate_public_key()
1453 sg_nents_for_len(req->src, in curve25519_compute_shared_secret()
1463 copied = sg_copy_from_buffer(req->dst, sg_nents_for_len(req->dst, in curve25519_compute_shared_secret()
/kernel/linux/linux-5.10/drivers/crypto/qce/
Dskcipher.c84 rctx->src_nents = sg_nents_for_len(req->src, req->cryptlen); in qce_skcipher_async_req_handle()
86 rctx->dst_nents = sg_nents_for_len(req->dst, req->cryptlen); in qce_skcipher_async_req_handle()
/kernel/linux/linux-5.10/lib/mpi/
Dmpicoder.c376 nents = sg_nents_for_len(sgl, nbytes); in mpi_write_to_sgl()
447 ents = sg_nents_for_len(sgl, nbytes); in mpi_read_raw_from_sgl()
/kernel/linux/linux-5.10/drivers/crypto/cavium/nitrox/
Dnitrox_aead.c98 int nents = sg_nents_for_len(src, buflen); in alloc_src_sglist()
120 int nents = sg_nents_for_len(dst, buflen); in alloc_dst_sglist()
/kernel/linux/linux-5.10/lib/
Dscatterlist.c68 int sg_nents_for_len(struct scatterlist *sg, u64 len) in sg_nents_for_len() function
85 EXPORT_SYMBOL(sg_nents_for_len);
/kernel/linux/linux-5.10/drivers/crypto/caam/
Dcaamhash.c846 src_nents = sg_nents_for_len(req->src, src_len); in ahash_update_ctx()
1012 src_nents = sg_nents_for_len(req->src, req->nbytes); in ahash_finup_ctx()
1086 src_nents = sg_nents_for_len(req->src, req->nbytes); in ahash_digest()
1222 src_nents = sg_nents_for_len(req->src, src_len); in ahash_update_no_ctx()
1322 src_nents = sg_nents_for_len(req->src, req->nbytes); in ahash_finup_no_ctx()
1416 src_nents = sg_nents_for_len(req->src, in ahash_update_first()
Dcaampkc.c206 ents = sg_nents_for_len(sgl, nbytes); in caam_rsa_count_leading_zeros()
283 src_nents = sg_nents_for_len(req_ctx->fixup_src, in rsa_edesc_alloc()
285 dst_nents = sg_nents_for_len(req->dst, req->dst_len); in rsa_edesc_alloc()
Dcaamalg_qi2.c380 src_nents = sg_nents_for_len(req->src, src_len); in aead_edesc_alloc()
388 dst_nents = sg_nents_for_len(req->dst, dst_len); in aead_edesc_alloc()
425 src_nents = sg_nents_for_len(req->src, src_len); in aead_edesc_alloc()
1124 src_nents = sg_nents_for_len(req->src, req->cryptlen); in skcipher_edesc_alloc()
1132 dst_nents = sg_nents_for_len(req->dst, req->cryptlen); in skcipher_edesc_alloc()
3540 src_nents = sg_nents_for_len(req->src, src_len); in ahash_update_ctx()
3723 src_nents = sg_nents_for_len(req->src, req->nbytes); in ahash_finup_ctx()
3816 src_nents = sg_nents_for_len(req->src, req->nbytes); in ahash_digest()
3992 src_nents = sg_nents_for_len(req->src, src_len); in ahash_update_no_ctx()
4105 src_nents = sg_nents_for_len(req->src, req->nbytes); in ahash_finup_no_ctx()
[all …]
Dcaamalg_qi.c972 src_nents = sg_nents_for_len(req->src, src_len); in aead_edesc_alloc()
991 src_nents = sg_nents_for_len(req->src, src_len); in aead_edesc_alloc()
999 dst_nents = sg_nents_for_len(req->dst, dst_len); in aead_edesc_alloc()
1265 src_nents = sg_nents_for_len(req->src, req->cryptlen); in skcipher_edesc_alloc()
1273 dst_nents = sg_nents_for_len(req->dst, req->cryptlen); in skcipher_edesc_alloc()
/kernel/linux/linux-5.10/include/linux/
Dscatterlist.h274 int sg_nents_for_len(struct scatterlist *sg, u64 len);
/kernel/linux/linux-5.10/drivers/crypto/marvell/cesa/
Dcipher.c423 creq->src_nents = sg_nents_for_len(req->src, req->cryptlen); in mv_cesa_skcipher_req_init()
428 creq->dst_nents = sg_nents_for_len(req->dst, req->cryptlen); in mv_cesa_skcipher_req_init()
/kernel/linux/linux-5.10/drivers/crypto/ccree/
Dcc_buffer_mgr.c111 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()

12