Home
last modified time | relevance | path

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

/Linux-v6.1/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.c545 static int init_test_sglist(struct test_sglist *tsgl) in init_test_sglist() argument
547 return __testmgr_alloc_buf(tsgl->bufs, 1 /* two pages per buffer */); in init_test_sglist()
550 static void destroy_test_sglist(struct test_sglist *tsgl) in destroy_test_sglist() argument
552 return __testmgr_free_buf(tsgl->bufs, 1 /* two pages per buffer */); in destroy_test_sglist()
573 static int build_test_sglist(struct test_sglist *tsgl, in build_test_sglist() argument
588 BUILD_BUG_ON(ARRAY_SIZE(partitions) != ARRAY_SIZE(tsgl->sgl)); in build_test_sglist()
593 tsgl->nents = 0; in build_test_sglist()
601 partitions[tsgl->nents].div = &divs[i]; in build_test_sglist()
602 partitions[tsgl->nents].length = len_this_sg; in build_test_sglist()
603 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.c665 struct scatterlist *tsgl; in af_alg_free_areq_sgls() local
677 tsgl = areq->tsgl; in af_alg_free_areq_sgls()
678 if (tsgl) { in af_alg_free_areq_sgls()
679 for_each_sg(tsgl, sg, areq->tsgl_entries, i) { in af_alg_free_areq_sgls()
685 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()
/Linux-v6.1/include/crypto/
Dif_alg.h104 struct scatterlist *tsgl; member