Home
last modified time | relevance | path

Searched refs:tsgl (Results 1 – 5 of 5) sorted by relevance

/linux/crypto/
H A Dalgif_aead.c77 struct af_alg_tsgl *tsgl, *tmp; in _aead_recvmsg() local
158 list_for_each_entry_safe(tsgl, tmp, &ctx->tsgl_list, list) { in _aead_recvmsg()
159 for (i = 0; i < tsgl->cur; i++) { in _aead_recvmsg()
160 struct scatterlist *process_sg = tsgl->sg + i; in _aead_recvmsg()
225 areq->tsgl = sock_kmalloc(sk, array_size(sizeof(*areq->tsgl), in _aead_recvmsg()
228 if (!areq->tsgl) { in _aead_recvmsg()
232 sg_init_table(areq->tsgl, areq->tsgl_entries); in _aead_recvmsg()
235 af_alg_pull_tsgl(sk, processed, areq->tsgl, processed - as); in _aead_recvmsg()
244 sg_chain(sg, sgl_prev->sgt.nents + 1, areq->tsgl); in _aead_recvmsg()
[all...]
H A Dtestmgr.c563 static int init_test_sglist(struct test_sglist *tsgl) in init_test_sglist() argument
565 return __testmgr_alloc_buf(tsgl->bufs, 1 /* two pages per buffer */); in init_test_sglist()
568 static void destroy_test_sglist(struct test_sglist *tsgl) in destroy_test_sglist() argument
570 return __testmgr_free_buf(tsgl->bufs, 1 /* two pages per buffer */); in destroy_test_sglist()
576 * @tsgl: the scatterlist to build. @tsgl->bufs[] contains an array of 2-page
577 * buffers which the scatterlist @tsgl->sgl[] will be made to point into.
591 static int build_test_sglist(struct test_sglist *tsgl, in build_test_sglist() argument
606 BUILD_BUG_ON(ARRAY_SIZE(partitions) != ARRAY_SIZE(tsgl->sgl)); in build_test_sglist()
611 tsgl in build_test_sglist()
686 verify_correct_output(const struct test_sglist * tsgl,const char * expected_output,unsigned int len_to_check,unsigned int unchecked_prefix_len,bool check_poison) verify_correct_output() argument
724 is_test_sglist_corrupted(const struct test_sglist * tsgl) is_test_sglist_corrupted() argument
1247 build_hash_sglist(struct test_sglist * tsgl,const struct hash_testvec * vec,const struct testvec_config * cfg,unsigned int alignmask,const struct test_sg_division * divs[XBUFSIZE]) build_hash_sglist() argument
1298 test_shash_vec_cfg(const struct hash_testvec * vec,const char * vec_name,const struct testvec_config * cfg,struct shash_desc * desc,struct test_sglist * tsgl,u8 * hashstate) test_shash_vec_cfg() argument
1481 test_ahash_vec_cfg(const struct hash_testvec * vec,const char * vec_name,const struct testvec_config * cfg,struct ahash_request * req,struct test_sglist * tsgl,u8 * hashstate) test_ahash_vec_cfg() argument
1647 test_hash_vec_cfg(const struct hash_testvec * vec,const char * vec_name,const struct testvec_config * cfg,struct ahash_request * req,struct shash_desc * desc,struct test_sglist * tsgl,u8 * hashstate) test_hash_vec_cfg() argument
1670 test_hash_vec(const struct hash_testvec * vec,unsigned int vec_num,struct ahash_request * req,struct shash_desc * desc,struct test_sglist * tsgl,u8 * hashstate) test_hash_vec() argument
1757 test_hash_vs_generic_impl(const char * generic_driver,unsigned int maxkeysize,struct ahash_request * req,struct shash_desc * desc,struct test_sglist * tsgl,u8 * hashstate) test_hash_vs_generic_impl() argument
1913 struct test_sglist *tsgl = NULL; __alg_test_hash() local
[all...]
H A Dalgif_skcipher.c144 areq->tsgl = sock_kmalloc(sk, array_size(sizeof(*areq->tsgl), in _skcipher_recvmsg()
147 if (!areq->tsgl) { in _skcipher_recvmsg()
151 sg_init_table(areq->tsgl, areq->tsgl_entries); in _skcipher_recvmsg()
152 af_alg_pull_tsgl(sk, len, areq->tsgl, 0); in _skcipher_recvmsg()
156 skcipher_request_set_crypt(&areq->cra_u.skcipher_req, areq->tsgl, in _skcipher_recvmsg()
H A Daf_alg.c776 struct scatterlist *tsgl; in af_alg_free_areq_sgls() local
788 tsgl = areq->tsgl; in af_alg_free_areq_sgls()
789 if (tsgl) { in af_alg_free_areq_sgls()
790 for_each_sg(tsgl, sg, areq->tsgl_entries, i) { in af_alg_free_areq_sgls()
796 sock_kfree_s(sk, tsgl, areq->tsgl_entries * sizeof(*tsgl)); in af_alg_free_areq_sgls()
1214 areq->tsgl = NULL; in af_alg_alloc_areq()
/linux/include/crypto/
H A Dif_alg.h88 * @tsgl: Private, per request TX SGL of buffers to process
102 struct scatterlist *tsgl; member