| /OK3568_Linux_fs/kernel/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 | 98 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 D | rsa-pkcs1pad.c | 198 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 D | ecrdsa.c | 104 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 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()
|
| /OK3568_Linux_fs/kernel/drivers/crypto/rockchip/ |
| H A D | rk_crypto_ahash_utils.c | 317 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 D | rk_crypto_skcipher_utils.c | 340 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 D | rk_crypto_v2_skcipher.c | 565 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 D | rk_crypto_v3_skcipher.c | 564 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 D | rk_crypto_utils.c | 256 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 D | rk_crypto_v1_skcipher.c | 278 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 D | rk_crypto_core.c | 117 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 D | atmel-ecc.c | 65 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 D | omap-aes-gcm.c | 168 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 D | picoxcell_crypto.c | 286 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 D | atmel-i2c.c | 122 sg_nents_for_len(pubkey, in atmel_i2c_init_ecdh_cmd()
|
| /OK3568_Linux_fs/kernel/arch/x86/crypto/ |
| H A D | curve25519-x86_64.c | 1433 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 D | skcipher.c | 84 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 D | mpicoder.c | 376 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 D | caamhash.c | 846 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 D | caampkc.c | 206 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 D | scatterlist.c | 68 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 D | nitrox_aead.c | 98 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 D | cipher.c | 423 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 D | scatterlist.h | 274 int sg_nents_for_len(struct scatterlist *sg, u64 len);
|