Home
last modified time | relevance | path

Searched refs:sgl (Results 1 – 6 of 6) sorted by relevance

/crypto/
Daf_alg.c404 int af_alg_make_sg(struct af_alg_sgl *sgl, struct iov_iter *iter, int len) in af_alg_make_sg() argument
410 n = iov_iter_get_pages(iter, sgl->pages, len, ALG_MAX_PAGES, &off); in af_alg_make_sg()
418 sg_init_table(sgl->sg, npages + 1); in af_alg_make_sg()
423 sg_set_page(sgl->sg + i, sgl->pages[i], plen, off); in af_alg_make_sg()
428 sg_mark_end(sgl->sg + npages - 1); in af_alg_make_sg()
429 sgl->npages = npages; in af_alg_make_sg()
442 void af_alg_free_sg(struct af_alg_sgl *sgl) in af_alg_free_sg() argument
446 for (i = 0; i < sgl->npages; i++) in af_alg_free_sg()
447 put_page(sgl->pages[i]); in af_alg_free_sg()
501 struct af_alg_tsgl *sgl; in af_alg_alloc_tsgl() local
[all …]
Dalgif_hash.c20 struct af_alg_sgl sgl; member
94 len = af_alg_make_sg(&ctx->sgl, &msg->msg_iter, len); in hash_sendmsg()
100 ahash_request_set_crypt(&ctx->req, ctx->sgl.sg, NULL, len); in hash_sendmsg()
104 af_alg_free_sg(&ctx->sgl); in hash_sendmsg()
143 sg_init_table(ctx->sgl.sg, 1); in hash_sendpage()
144 sg_set_page(ctx->sgl.sg, page, size, offset); in hash_sendpage()
153 ahash_request_set_crypt(&ctx->req, ctx->sgl.sg, ctx->result, size); in hash_sendpage()
Dalgif_aead.c213 rsgl_src = areq->first_rsgl.sgl.sg; in _aead_recvmsg()
227 areq->first_rsgl.sgl.sg, processed); in _aead_recvmsg()
245 areq->first_rsgl.sgl.sg, outlen); in _aead_recvmsg()
269 struct af_alg_sgl *sgl_prev = &areq->last_rsgl->sgl; in _aead_recvmsg()
281 areq->first_rsgl.sgl.sg, used, ctx->iv); in _aead_recvmsg()
Dtestmgr.c523 struct scatterlist sgl[XBUFSIZE]; member
572 BUILD_BUG_ON(ARRAY_SIZE(partitions) != ARRAY_SIZE(tsgl->sgl)); in build_test_sglist()
599 sg_init_table(tsgl->sgl, tsgl->nents); in build_test_sglist()
615 sg_set_buf(&tsgl->sgl[i], addr, partitions[i].length); in build_test_sglist()
635 sg_mark_end(&tsgl->sgl[tsgl->nents - 1]); in build_test_sglist()
636 tsgl->sgl_ptr = tsgl->sgl; in build_test_sglist()
637 memcpy(tsgl->sgl_saved, tsgl->sgl, tsgl->nents * sizeof(tsgl->sgl[0])); in build_test_sglist()
695 if (tsgl->sgl[i].page_link != tsgl->sgl_saved[i].page_link) in is_test_sglist_corrupted()
697 if (tsgl->sgl[i].offset != tsgl->sgl_saved[i].offset) in is_test_sglist_corrupted()
699 if (tsgl->sgl[i].length != tsgl->sgl_saved[i].length) in is_test_sglist_corrupted()
[all …]
Dadiantum.c248 struct scatterlist *sgl, le128 *digest) in adiantum_hash_message() argument
265 sg_miter_start(&miter, sgl, sg_nents(sgl), in adiantum_hash_message()
Dalgif_skcipher.c108 areq->first_rsgl.sgl.sg, len, ctx->iv); in _skcipher_recvmsg()