Home
last modified time | relevance | path

Searched refs:tsgl (Results 1 - 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/crypto/
H A Dalgif_aead.c101 struct af_alg_tsgl *tsgl, *tmp; in _aead_recvmsg() local
182 list_for_each_entry_safe(tsgl, tmp, &ctx->tsgl_list, list) { in _aead_recvmsg()
183 for (i = 0; i < tsgl->cur; i++) { in _aead_recvmsg()
184 struct scatterlist *process_sg = tsgl->sg + i; in _aead_recvmsg()
254 areq->tsgl = sock_kmalloc(sk, array_size(sizeof(*areq->tsgl), in _aead_recvmsg()
257 if (!areq->tsgl) { in _aead_recvmsg()
261 sg_init_table(areq->tsgl, areq->tsgl_entries); in _aead_recvmsg()
264 af_alg_pull_tsgl(sk, processed, areq->tsgl, processed - as); in _aead_recvmsg()
273 areq->tsgl); in _aead_recvmsg()
[all...]
H A Dtestmgr.c526 static int init_test_sglist(struct test_sglist *tsgl) in init_test_sglist() argument
528 return __testmgr_alloc_buf(tsgl->bufs, 1 /* two pages per buffer */); in init_test_sglist()
531 static void destroy_test_sglist(struct test_sglist *tsgl) in destroy_test_sglist() argument
533 return __testmgr_free_buf(tsgl->bufs, 1 /* two pages per buffer */); in destroy_test_sglist()
539 * @tsgl: the scatterlist to build. @tsgl->bufs[] contains an array of 2-page
540 * buffers which the scatterlist @tsgl->sgl[] will be made to point into.
554 static int build_test_sglist(struct test_sglist *tsgl, in build_test_sglist() argument
569 BUILD_BUG_ON(ARRAY_SIZE(partitions) != ARRAY_SIZE(tsgl->sgl)); in build_test_sglist()
574 tsgl in build_test_sglist()
649 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
687 is_test_sglist_corrupted(const struct test_sglist *tsgl) is_test_sglist_corrupted() argument
1122 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
1174 test_shash_vec_cfg(const char *driver, 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
1358 test_ahash_vec_cfg(const char *driver, 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
1524 test_hash_vec_cfg(const char *driver, 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
1552 test_hash_vec(const char *driver, 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
1636 test_hash_vs_generic_impl(const char *driver, 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
1752 test_hash_vs_generic_impl(const char *driver, 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
1806 struct test_sglist *tsgl = NULL; __alg_test_hash() local
[all...]
H A Dalgif_skcipher.c95 areq->tsgl = sock_kmalloc(sk, array_size(sizeof(*areq->tsgl), in _skcipher_recvmsg()
98 if (!areq->tsgl) { in _skcipher_recvmsg()
102 sg_init_table(areq->tsgl, areq->tsgl_entries); in _skcipher_recvmsg()
103 af_alg_pull_tsgl(sk, len, areq->tsgl, 0); in _skcipher_recvmsg()
107 skcipher_request_set_crypt(&areq->cra_u.skcipher_req, areq->tsgl, in _skcipher_recvmsg()
H A Daf_alg.c668 struct scatterlist *tsgl; in af_alg_free_areq_sgls() local
680 tsgl = areq->tsgl; in af_alg_free_areq_sgls()
681 if (tsgl) { in af_alg_free_areq_sgls()
682 for_each_sg(tsgl, sg, areq->tsgl_entries, i) { in af_alg_free_areq_sgls()
688 sock_kfree_s(sk, tsgl, areq->tsgl_entries * sizeof(*tsgl)); in af_alg_free_areq_sgls()
1129 areq->tsgl = NULL; in af_alg_alloc_areq()
/kernel/linux/linux-6.6/crypto/
H A Dalgif_aead.c101 struct af_alg_tsgl *tsgl, *tmp; in _aead_recvmsg() local
182 list_for_each_entry_safe(tsgl, tmp, &ctx->tsgl_list, list) { in _aead_recvmsg()
183 for (i = 0; i < tsgl->cur; i++) { in _aead_recvmsg()
184 struct scatterlist *process_sg = tsgl->sg + i; in _aead_recvmsg()
256 areq->tsgl = sock_kmalloc(sk, array_size(sizeof(*areq->tsgl), in _aead_recvmsg()
259 if (!areq->tsgl) { in _aead_recvmsg()
263 sg_init_table(areq->tsgl, areq->tsgl_entries); in _aead_recvmsg()
266 af_alg_pull_tsgl(sk, processed, areq->tsgl, processed - as); in _aead_recvmsg()
275 sg_chain(sg, sgl_prev->sgt.nents + 1, areq->tsgl); in _aead_recvmsg()
[all...]
H A Dtestmgr.c553 static int init_test_sglist(struct test_sglist *tsgl) in init_test_sglist() argument
555 return __testmgr_alloc_buf(tsgl->bufs, 1 /* two pages per buffer */); in init_test_sglist()
558 static void destroy_test_sglist(struct test_sglist *tsgl) in destroy_test_sglist() argument
560 return __testmgr_free_buf(tsgl->bufs, 1 /* two pages per buffer */); in destroy_test_sglist()
566 * @tsgl: the scatterlist to build. @tsgl->bufs[] contains an array of 2-page
567 * buffers which the scatterlist @tsgl->sgl[] will be made to point into.
581 static int build_test_sglist(struct test_sglist *tsgl, in build_test_sglist() argument
596 BUILD_BUG_ON(ARRAY_SIZE(partitions) != ARRAY_SIZE(tsgl->sgl)); in build_test_sglist()
601 tsgl in build_test_sglist()
676 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
714 is_test_sglist_corrupted(const struct test_sglist *tsgl) is_test_sglist_corrupted() argument
1223 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
1270 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
1454 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
1620 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
1646 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
1733 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
1853 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
1906 struct test_sglist *tsgl = NULL; __alg_test_hash() local
[all...]
H A Dalgif_skcipher.c95 areq->tsgl = sock_kmalloc(sk, array_size(sizeof(*areq->tsgl), in _skcipher_recvmsg()
98 if (!areq->tsgl) { in _skcipher_recvmsg()
102 sg_init_table(areq->tsgl, areq->tsgl_entries); in _skcipher_recvmsg()
103 af_alg_pull_tsgl(sk, len, areq->tsgl, 0); in _skcipher_recvmsg()
107 skcipher_request_set_crypt(&areq->cra_u.skcipher_req, areq->tsgl, in _skcipher_recvmsg()
H A Daf_alg.c775 struct scatterlist *tsgl; in af_alg_free_areq_sgls() local
787 tsgl = areq->tsgl; in af_alg_free_areq_sgls()
788 if (tsgl) { in af_alg_free_areq_sgls()
789 for_each_sg(tsgl, sg, areq->tsgl_entries, i) { in af_alg_free_areq_sgls()
795 sock_kfree_s(sk, tsgl, areq->tsgl_entries * sizeof(*tsgl)); in af_alg_free_areq_sgls()
1213 areq->tsgl = NULL; in af_alg_alloc_areq()
/kernel/linux/linux-5.10/include/crypto/
H A Dif_alg.h90 * @tsgl: Private, per request TX SGL of buffers to process
104 struct scatterlist *tsgl; member
/kernel/linux/linux-6.6/include/crypto/
H A Dif_alg.h88 * @tsgl: Private, per request TX SGL of buffers to process
102 struct scatterlist *tsgl; member

Completed in 13 milliseconds