Home
last modified time | relevance | path

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

/Linux-v5.10/crypto/
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()
276 rsgl_src = areq->tsgl; in _aead_recvmsg()
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()
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->nents = 0; in build_test_sglist()
582 partitions[tsgl->nents].div = &divs[i]; in build_test_sglist()
583 partitions[tsgl->nents].length = len_this_sg; in build_test_sglist()
584 tsgl->nents++; in build_test_sglist()
[all …]
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()
Daf_alg.c664 struct scatterlist *tsgl; in af_alg_free_areq_sgls() local
676 tsgl = areq->tsgl; in af_alg_free_areq_sgls()
677 if (tsgl) { in af_alg_free_areq_sgls()
678 for_each_sg(tsgl, sg, areq->tsgl_entries, i) { in af_alg_free_areq_sgls()
684 sock_kfree_s(sk, tsgl, areq->tsgl_entries * sizeof(*tsgl)); in af_alg_free_areq_sgls()
1113 areq->tsgl = NULL; in af_alg_alloc_areq()
/Linux-v5.10/include/crypto/
Dif_alg.h104 struct scatterlist *tsgl; member