Home
last modified time | relevance | path

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

12

/linux/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.c86 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 Dessiv.c214 nents = sg_nents_for_len(req->src, ssize); in essiv_aead_crypt()
/linux/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()
/linux/arch/powerpc/crypto/
H A Dcurve25519-ppc64le-core.c224 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 Dsun8i-ss-cipher.c38 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 Dsun8i-ce-cipher.c34 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 Dsun8i-ce-hash.c220 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 Dmpicoder.c269 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 Domap-aes-gcm.c171 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 Datmel-i2c.c146 sg_nents_for_len(pubkey, in atmel_i2c_init_ecdh_cmd()
/linux/arch/x86/crypto/
H A Dcurve25519-x86_64.c1644 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 Dcaamhash.c854 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 Dcaamalg_qi2.c385 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 Dcaamalg_qi.c977 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 Dcaamalg.c1325 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 Dnitrox_aead.c97 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 Dindustrialio-buffer-dmaengine.c86 nents = sg_nents_for_len(sgl, block->bytes_used); in iio_dmaengine_buffer_submit_block()
/linux/include/linux/
H A Dscatterlist.h420 int sg_nents_for_len(struct scatterlist *sg, u64 len);
/linux/drivers/crypto/ccree/
H A 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()
/linux/lib/
H A Dscatterlist.c71 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 Dvirtio_crypto_skcipher_algs.c343 src_nents = sg_nents_for_len(req->src, req->cryptlen); in __virtio_crypto_skcipher_do_req()
/linux/drivers/crypto/starfive/
H A Djh7110-hash.c337 rctx->in_sg_len = sg_nents_for_len(rctx->in_sg, rctx->total); in starfive_hash_digest()
H A Djh7110-aes.c675 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 Dkeembay-ocs-hcu-core.c252 nents = sg_nents_for_len(req->src, rctx->sg_data_total - remainder); in kmb_ocs_dma_prepare()

12