Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/kernel/crypto/
H A 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()
H A 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()
H A 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()
322 sg_nents_for_len(req->dst, req->dst_len), in pkcs1pad_decrypt_complete()
497 sg_nents_for_len(req->src, in pkcs1pad_verify_complete()
H A 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()
/OK3568_Linux_fs/kernel/arch/arm/crypto/
H A 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()
/OK3568_Linux_fs/kernel/drivers/crypto/rockchip/
H A Drk_crypto_ahash_utils.c317 sg_nents_for_len(req->src, req->nbytes), ctx->lastc_len, in rk_ahash_start()
320 if (!sg_pcopy_to_buffer(req->src, sg_nents_for_len(req->src, req->nbytes), in rk_ahash_start()
351 if (rk_crypto_check_dmafd(req->src, sg_nents_for_len(req->src, req->nbytes))) { in rk_ahash_start()
374 alg_ctx->src_nents = sg_nents_for_len(src_sg, nbytes); in rk_ahash_start()
H A Drk_crypto_skcipher_utils.c340 alg_ctx->src_nents = sg_nents_for_len(req->src, req->cryptlen); in rk_ablk_start()
343 alg_ctx->dst_nents = sg_nents_for_len(req->dst, req->cryptlen); in rk_ablk_start()
454 alg_ctx->src_nents = sg_nents_for_len(req->src, total); in rk_aead_start()
457 alg_ctx->dst_nents = sg_nents_for_len(req->dst, total - authsize); in rk_aead_start()
H A Drk_crypto_v2_skcipher.c565 aligned = rk_crypto_check_align(sg_src, sg_nents_for_len(sg_src, data_len), in rk_aead_crypt()
566 sg_dst, sg_nents_for_len(sg_dst, data_len), in rk_aead_crypt()
569 if (sg_nents_for_len(sg_src, data_len) > RK_DEFAULT_LLI_CNT || in rk_aead_crypt()
570 sg_nents_for_len(sg_dst, data_len) > RK_DEFAULT_LLI_CNT) in rk_aead_crypt()
H A Drk_crypto_v3_skcipher.c564 aligned = rk_crypto_check_align(sg_src, sg_nents_for_len(sg_src, data_len), in rk_aead_crypt()
565 sg_dst, sg_nents_for_len(sg_dst, data_len), in rk_aead_crypt()
568 if (sg_nents_for_len(sg_src, data_len) > RK_DEFAULT_LLI_CNT || in rk_aead_crypt()
569 sg_nents_for_len(sg_dst, data_len) > RK_DEFAULT_LLI_CNT) in rk_aead_crypt()
H A Drk_crypto_utils.c256 src_nents = sg_nents_for_len(src_sg, len); in rk_crypto_hw_desc_init()
257 dst_nents = dst_sg ? sg_nents_for_len(dst_sg, len) : src_nents; in rk_crypto_hw_desc_init()
H A Drk_crypto_v1_skcipher.c278 alg_ctx->src_nents = sg_nents_for_len(req->src, req->cryptlen); in rk_ablk_start()
281 alg_ctx->dst_nents = sg_nents_for_len(req->dst, req->cryptlen); in rk_ablk_start()
H A Drk_crypto_core.c117 src_nents = sg_nents_for_len(sg_src, alg_ctx->total); in rk_load_data()
118 dst_nents = sg_nents_for_len(sg_dst, alg_ctx->total); in rk_load_data()
/OK3568_Linux_fs/kernel/drivers/crypto/
H A 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()
H A 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()
H A 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()
H A Datmel-i2c.c122 sg_nents_for_len(pubkey, in atmel_i2c_init_ecdh_cmd()
/OK3568_Linux_fs/kernel/arch/x86/crypto/
H A 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()
/OK3568_Linux_fs/kernel/drivers/crypto/qce/
H A 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()
/OK3568_Linux_fs/kernel/lib/mpi/
H A 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()
/OK3568_Linux_fs/kernel/drivers/crypto/caam/
H A 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()
H A Dcaampkc.c206 ents = sg_nents_for_len(sgl, nbytes); in caam_rsa_count_leading_zeros()
281 src_nents = sg_nents_for_len(req_ctx->fixup_src, in rsa_edesc_alloc()
283 dst_nents = sg_nents_for_len(req->dst, req->dst_len); in rsa_edesc_alloc()
/OK3568_Linux_fs/kernel/lib/
H A 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);
/OK3568_Linux_fs/kernel/drivers/crypto/cavium/nitrox/
H A 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()
/OK3568_Linux_fs/kernel/drivers/crypto/marvell/cesa/
H A 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()
/OK3568_Linux_fs/kernel/include/linux/
H A Dscatterlist.h274 int sg_nents_for_len(struct scatterlist *sg, u64 len);

12