Lines Matching refs:sgl
557 struct scatterlist sgl[XBUFSIZE]; member
606 BUILD_BUG_ON(ARRAY_SIZE(partitions) != ARRAY_SIZE(tsgl->sgl)); in build_test_sglist()
633 sg_init_table(tsgl->sgl, tsgl->nents); in build_test_sglist()
649 sg_set_buf(&tsgl->sgl[i], addr, partitions[i].length); in build_test_sglist()
669 sg_mark_end(&tsgl->sgl[tsgl->nents - 1]); in build_test_sglist()
670 tsgl->sgl_ptr = tsgl->sgl; in build_test_sglist()
671 memcpy(tsgl->sgl_saved, tsgl->sgl, tsgl->nents * sizeof(tsgl->sgl[0])); in build_test_sglist()
729 if (tsgl->sgl[i].page_link != tsgl->sgl_saved[i].page_link) in is_test_sglist_corrupted()
731 if (tsgl->sgl[i].offset != tsgl->sgl_saved[i].offset) in is_test_sglist_corrupted()
733 if (tsgl->sgl[i].length != tsgl->sgl_saved[i].length) in is_test_sglist_corrupted()
803 tsgls->dst.sgl_ptr = tsgls->src.sgl; in build_cipher_test_sglists()
813 memcpy(tsgls->dst.sgl, tsgls->src.sgl, in build_cipher_test_sglists()
814 tsgls->src.nents * sizeof(tsgls->src.sgl[0])); in build_cipher_test_sglists()
815 memcpy(tsgls->dst.sgl_saved, tsgls->src.sgl, in build_cipher_test_sglists()
816 tsgls->src.nents * sizeof(tsgls->src.sgl[0])); in build_cipher_test_sglists()
817 tsgls->dst.sgl_ptr = tsgls->dst.sgl; in build_cipher_test_sglists()
1349 err = crypto_shash_digest(desc, sg_virt(&tsgl->sgl[0]), in test_shash_vec_cfg()
1350 tsgl->sgl[0].length, result); in test_shash_vec_cfg()
1385 err = crypto_shash_finup(desc, sg_virt(&tsgl->sgl[i]), in test_shash_vec_cfg()
1386 tsgl->sgl[i].length, result); in test_shash_vec_cfg()
1397 err = crypto_shash_update(desc, sg_virt(&tsgl->sgl[i]), in test_shash_vec_cfg()
1398 tsgl->sgl[i].length); in test_shash_vec_cfg()
1534 ahash_request_set_crypt(req, tsgl->sgl, result, vec->psize); in test_ahash_vec_cfg()
1608 pending_sgl = &tsgl->sgl[i]; in test_ahash_vec_cfg()
1609 pending_len += tsgl->sgl[i].length; in test_ahash_vec_cfg()
2170 if (tsgls->dst.sgl_ptr != tsgls->src.sgl && in test_aead_vec_cfg()
2917 if (tsgls->dst.sgl_ptr != tsgls->src.sgl && in test_skcipher_vec_cfg()