Home
last modified time | relevance | path

Searched refs:dst_sg (Results 1 – 22 of 22) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/crypto/rockchip/cryptodev_linux/
H A Dauthenc.c54 struct scatterlist **dst_sg) in get_userbuf_tls() argument
90 (*dst_sg) = ses->sg; in get_userbuf_tls()
105 struct scatterlist **auth_sg, struct scatterlist **dst_sg) in get_userbuf_srtp() argument
161 (*dst_sg) = ses->sg + auth_pagecount; in get_userbuf_srtp()
162 sg_init_table(*dst_sg, auth_pagecount); in get_userbuf_srtp()
163 cryptodev_sg_copy(ses->sg, (*dst_sg), caop->auth_len); in get_userbuf_srtp()
164 (*dst_sg) = cryptodev_sg_advance(*dst_sg, diff); in get_userbuf_srtp()
165 if (*dst_sg == NULL) { in get_userbuf_srtp()
386 static void copy_tls_hash(struct scatterlist *dst_sg, int len, void *hash, int hash_len) in copy_tls_hash() argument
388 scatterwalk_map_and_copy(hash, dst_sg, len, hash_len, 1); in copy_tls_hash()
[all …]
H A Dmain.c57 struct scatterlist *src_sg, struct scatterlist *dst_sg, in hash_n_crypt() argument
74 src_sg, dst_sg, len); in hash_n_crypt()
82 src_sg, dst_sg, len); in hash_n_crypt()
90 dst_sg, len); in hash_n_crypt()
166 struct scatterlist *src_sg, *dst_sg; in __crypto_run_zc() local
171 kcop->task, kcop->mm, &src_sg, &dst_sg); in __crypto_run_zc()
177 ret = hash_n_crypt(ses_ptr, cop, src_sg, dst_sg, cop->len); in __crypto_run_zc()
H A Dzc.c163 struct scatterlist **dst_sg) in cryptodev_get_userbuf() argument
203 (*src_sg) = (*dst_sg) = ses->sg; in cryptodev_get_userbuf()
208 *dst_sg = NULL; /* default to ignore output */ in cryptodev_get_userbuf()
224 *dst_sg = ses->sg + ses->readonly_pages; in cryptodev_get_userbuf()
227 dst_pages, *dst_sg, task, mm); in cryptodev_get_userbuf()
H A Drk_cryptodev.c194 struct scatterlist *src_sg, struct scatterlist *dst_sg, in hash_n_crypt_fd() argument
211 src_sg, dst_sg, len); in hash_n_crypt_fd()
219 src_sg, dst_sg, len); in hash_n_crypt_fd()
227 dst_sg, len); in hash_n_crypt_fd()
752 struct scatterlist *dst_sg, uint32_t len) in rk_auth_fd_n_crypt() argument
773 src_sg, dst_sg, len); in rk_auth_fd_n_crypt()
780 src_sg, dst_sg, len); in rk_auth_fd_n_crypt()
811 struct scatterlist *dst_sg, *src_sg; in crypto_auth_fd_zc_rk() local
841 dst_sg = sg_tbl_out->sgl; in crypto_auth_fd_zc_rk()
871 dst_sg = auth_dst; in crypto_auth_fd_zc_rk()
[all …]
H A Dzc.h17 struct scatterlist **dst_sg);
/OK3568_Linux_fs/kernel/drivers/crypto/amlogic/
H A Damlogic-gxl-cipher.c28 struct scatterlist *dst_sg = areq->dst; in meson_cipher_need_fallback() local
33 if (sg_nents(src_sg) != sg_nents(dst_sg)) in meson_cipher_need_fallback()
37 if (sg_nents(src_sg) > MAXDESC - 3 || sg_nents(dst_sg) > MAXDESC - 3) in meson_cipher_need_fallback()
40 while (src_sg && dst_sg) { in meson_cipher_need_fallback()
43 if ((dst_sg->length % 16) != 0) in meson_cipher_need_fallback()
45 if (src_sg->length != dst_sg->length) in meson_cipher_need_fallback()
49 if (!IS_ALIGNED(dst_sg->offset, sizeof(u32))) in meson_cipher_need_fallback()
52 dst_sg = sg_next(dst_sg); in meson_cipher_need_fallback()
95 struct scatterlist *dst_sg = areq->dst; in meson_cipher() local
204 dst_sg = areq->dst; in meson_cipher()
[all …]
/OK3568_Linux_fs/kernel/drivers/crypto/rockchip/
H A Drk_crypto_utils.c90 struct scatterlist *dst_sg, size_t dst_nents, in rk_crypto_check_align() argument
97 if (dst_sg && src_nents != dst_nents) in rk_crypto_check_align()
101 dst_tmp = dst_sg; in rk_crypto_check_align()
112 if (dst_sg) in rk_crypto_check_align()
241 struct scatterlist *dst_sg, in rk_crypto_hw_desc_init() argument
257 dst_nents = dst_sg ? sg_nents_for_len(dst_sg, len) : src_nents; in rk_crypto_hw_desc_init()
273 tmp_dst = dst_sg; in rk_crypto_hw_desc_init()
276 if (dst_sg) { in rk_crypto_hw_desc_init()
304 if (dst_sg) { in rk_crypto_hw_desc_init()
H A Drk_crypto_utils.h44 struct scatterlist *dst_sg, size_t dst_nents,
55 struct scatterlist *dst_sg,
/OK3568_Linux_fs/kernel/drivers/crypto/ccp/
H A Dccp-dmaengine.c354 struct scatterlist *dst_sg, in ccp_create_desc() argument
373 if (!dst_sg || !src_sg) in ccp_create_desc()
388 dst_len = sg_dma_len(dst_sg); in ccp_create_desc()
411 dst_sg = sg_next(dst_sg); in ccp_create_desc()
412 if (!dst_sg) in ccp_create_desc()
415 dst_len = sg_dma_len(dst_sg); in ccp_create_desc()
435 ccp_pt->dst_dma = sg_dma_address(dst_sg) + dst_offset; in ccp_create_desc()
486 struct scatterlist dst_sg, src_sg; in ccp_prep_dma_memcpy() local
492 sg_init_table(&dst_sg, 1); in ccp_prep_dma_memcpy()
493 sg_dma_address(&dst_sg) = dst; in ccp_prep_dma_memcpy()
[all …]
/OK3568_Linux_fs/kernel/drivers/mailbox/
H A Dbcm-flexrm-mailbox.c606 struct scatterlist *src_sg = msg->spu.src, *dst_sg = msg->spu.dst; in flexrm_spu_estimate_nonheader_desc_count() local
608 while (src_sg || dst_sg) { in flexrm_spu_estimate_nonheader_desc_count()
616 while (dst_target && dst_sg) { in flexrm_spu_estimate_nonheader_desc_count()
618 if (dst_sg->length < dst_target) in flexrm_spu_estimate_nonheader_desc_count()
619 dst_target -= dst_sg->length; in flexrm_spu_estimate_nonheader_desc_count()
622 dst_sg = sg_next(dst_sg); in flexrm_spu_estimate_nonheader_desc_count()
665 struct scatterlist *src_sg = msg->spu.src, *dst_sg = msg->spu.dst; in flexrm_spu_write_descs() local
667 while (src_sg || dst_sg) { in flexrm_spu_write_descs()
684 while (dst_target && dst_sg) { in flexrm_spu_write_descs()
685 if (sg_dma_len(dst_sg) & 0xf) in flexrm_spu_write_descs()
[all …]
H A Dbcm-pdc-mailbox.c274 struct scatterlist *dst_sg; member
627 dma_unmap_sg(dev, rx_ctx->dst_sg, sg_nents(rx_ctx->dst_sg), in pdc_receive_one()
814 static int pdc_rx_list_init(struct pdc_state *pdcs, struct scatterlist *dst_sg, in pdc_rx_list_init() argument
853 rx_ctx->dst_sg = dst_sg; in pdc_rx_list_init()
/OK3568_Linux_fs/kernel/drivers/crypto/qce/
H A Dskcipher.c50 dma_unmap_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_skcipher_done()
123 rctx->dst_sg = rctx->dst_tbl.sgl; in qce_skcipher_async_req_handle()
125 dst_nents = dma_map_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_skcipher_async_req_handle()
139 rctx->src_sg = rctx->dst_sg; in qce_skcipher_async_req_handle()
144 rctx->dst_sg, dst_nents, in qce_skcipher_async_req_handle()
163 dma_unmap_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_skcipher_async_req_handle()
H A Dcipher.h42 struct scatterlist *dst_sg; member
/OK3568_Linux_fs/kernel/drivers/dma/
H A Dnbpfaxi.c921 struct scatterlist *src_sg, struct scatterlist *dst_sg, in nbpf_prep_sg() argument
934 mem_sg = dst_sg; in nbpf_prep_sg()
967 sg_dma_address(dst_sg), in nbpf_prep_sg()
978 dst_sg = sg_next(dst_sg); in nbpf_prep_sg()
979 mem_sg = direction == DMA_DEV_TO_MEM ? dst_sg : src_sg; in nbpf_prep_sg()
994 struct scatterlist dst_sg; in nbpf_prep_memcpy() local
997 sg_init_table(&dst_sg, 1); in nbpf_prep_memcpy()
1000 sg_dma_address(&dst_sg) = dst; in nbpf_prep_memcpy()
1003 sg_dma_len(&dst_sg) = len; in nbpf_prep_memcpy()
1009 return nbpf_prep_sg(chan, &src_sg, &dst_sg, 1, in nbpf_prep_memcpy()
H A Dste_dma40.c2481 struct scatterlist dst_sg; in d40_prep_memcpy() local
2484 sg_init_table(&dst_sg, 1); in d40_prep_memcpy()
2487 sg_dma_address(&dst_sg) = dst; in d40_prep_memcpy()
2490 sg_dma_len(&dst_sg) = size; in d40_prep_memcpy()
2493 return d40_prep_sg(chan, &src_sg, &dst_sg, 1, in d40_prep_memcpy()
/OK3568_Linux_fs/kernel/fs/crypto/
H A Dkeysetup_v1.c54 struct scatterlist src_sg, dst_sg; in derive_key_aes() local
76 sg_init_one(&dst_sg, derived_key, derived_keysize); in derive_key_aes()
77 skcipher_request_set_crypt(req, &src_sg, &dst_sg, derived_keysize, in derive_key_aes()
H A Dfname.c146 struct scatterlist src_sg, dst_sg; in fname_decrypt() local
165 sg_init_one(&dst_sg, oname->name, oname->len); in fname_decrypt()
166 skcipher_request_set_crypt(req, &src_sg, &dst_sg, iname->len, &iv); in fname_decrypt()
/OK3568_Linux_fs/kernel/fs/ecryptfs/
H A Dkeystore.c597 struct scatterlist dst_sg[2]; member
801 s->dst_sg, 2); in ecryptfs_write_tag_70_packet()
827 skcipher_request_set_crypt(s->skcipher_req, s->src_sg, s->dst_sg, in ecryptfs_write_tag_70_packet()
867 struct scatterlist dst_sg[2]; member
996 s->block_aligned_filename_size, s->dst_sg, 2); in ecryptfs_parse_tag_70_packet()
1043 skcipher_request_set_crypt(s->skcipher_req, s->src_sg, s->dst_sg, in ecryptfs_parse_tag_70_packet()
1648 struct scatterlist dst_sg[2]; in decrypt_passphrase_encrypted_session_key() local
1686 dst_sg, 2); in decrypt_passphrase_encrypted_session_key()
1715 skcipher_request_set_crypt(req, src_sg, dst_sg, in decrypt_passphrase_encrypted_session_key()
2181 struct scatterlist dst_sg[2]; in write_tag_3_packet() local
[all …]
H A Dcrypto.c291 struct scatterlist *dst_sg, in crypt_scatterlist() argument
336 skcipher_request_set_crypt(req, src_sg, dst_sg, size, iv); in crypt_scatterlist()
384 struct scatterlist src_sg, dst_sg; in crypt_extent() local
399 sg_init_table(&dst_sg, 1); in crypt_extent()
403 sg_set_page(&dst_sg, dst_page, extent_size, in crypt_extent()
406 rc = crypt_scatterlist(crypt_stat, &dst_sg, &src_sg, extent_size, in crypt_extent()
/OK3568_Linux_fs/kernel/drivers/crypto/bcm/
H A Dcipher.h293 struct scatterlist *dst_sg; member
H A Dcipher.c160 datalen = spu_msg_sg_add(&sg, &rctx->dst_sg, &rctx->dst_skip, in spu_skcipher_rx_sg_create()
348 rctx->dst_nents = spu_sg_count(rctx->dst_sg, rctx->dst_skip, chunksize); in handle_skcipher_req()
1107 datalen = spu_msg_sg_add(&sg, &rctx->dst_sg, &rctx->dst_skip, in spu_aead_rx_sg_create()
1347 rctx->dst_nents = spu_sg_count(rctx->dst_sg, rctx->dst_skip, chunksize); in handle_aead_req()
1739 rctx->dst_sg = req->dst; in skcipher_enqueue()
1926 rctx->dst_sg = NULL; in ahash_enqueue()
2684 rctx->dst_sg = rctx->src_sg; in aead_enqueue()
2692 if (spu_sg_at_offset(req->dst, req->assoclen, &rctx->dst_sg, in aead_enqueue()
2722 rctx->dst_sg, rctx->dst_skip); in aead_enqueue()
/OK3568_Linux_fs/kernel/arch/x86/crypto/
H A Daesni-intel_glue.c702 struct scatterlist *dst_sg; in gcmaes_crypt_by_sg() local
735 dst_sg = scatterwalk_ffwd(dst_start, req->dst, in gcmaes_crypt_by_sg()
737 scatterwalk_start(&dst_sg_walk, dst_sg); in gcmaes_crypt_by_sg()