Home
last modified time | relevance | path

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

/crypto/
Dtestmgr.c499 static int init_test_sglist(struct test_sglist *tsgl) in init_test_sglist() argument
501 return __testmgr_alloc_buf(tsgl->bufs, 1 /* two pages per buffer */); in init_test_sglist()
504 static void destroy_test_sglist(struct test_sglist *tsgl) in destroy_test_sglist() argument
506 return __testmgr_free_buf(tsgl->bufs, 1 /* two pages per buffer */); in destroy_test_sglist()
527 static int build_test_sglist(struct test_sglist *tsgl, in build_test_sglist() argument
542 BUILD_BUG_ON(ARRAY_SIZE(partitions) != ARRAY_SIZE(tsgl->sgl)); in build_test_sglist()
547 tsgl->nents = 0; in build_test_sglist()
555 partitions[tsgl->nents].div = &divs[i]; in build_test_sglist()
556 partitions[tsgl->nents].length = len_this_sg; in build_test_sglist()
557 tsgl->nents++; in build_test_sglist()
[all …]
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()
Dalgif_skcipher.c99 areq->tsgl = sock_kmalloc(sk, array_size(sizeof(*areq->tsgl), in _skcipher_recvmsg()
102 if (!areq->tsgl) { in _skcipher_recvmsg()
106 sg_init_table(areq->tsgl, areq->tsgl_entries); in _skcipher_recvmsg()
107 af_alg_pull_tsgl(sk, len, areq->tsgl, 0); in _skcipher_recvmsg()
111 skcipher_request_set_crypt(&areq->cra_u.skcipher_req, areq->tsgl, in _skcipher_recvmsg()
Daf_alg.c656 struct scatterlist *tsgl; in af_alg_free_areq_sgls() local
668 tsgl = areq->tsgl; in af_alg_free_areq_sgls()
669 if (tsgl) { in af_alg_free_areq_sgls()
670 for_each_sg(tsgl, sg, areq->tsgl_entries, i) { in af_alg_free_areq_sgls()
676 sock_kfree_s(sk, tsgl, areq->tsgl_entries * sizeof(*tsgl)); in af_alg_free_areq_sgls()
1095 areq->tsgl = NULL; in af_alg_alloc_areq()