Lines Matching refs:tsgls
709 struct cipher_test_sglists *tsgls;
711 tsgls = kmalloc(sizeof(*tsgls), GFP_KERNEL);
712 if (!tsgls)
715 if (init_test_sglist(&tsgls->src) != 0)
717 if (init_test_sglist(&tsgls->dst) != 0)
720 return tsgls;
723 destroy_test_sglist(&tsgls->src);
725 kfree(tsgls);
729 static void free_cipher_test_sglists(struct cipher_test_sglists *tsgls)
731 if (tsgls) {
732 destroy_test_sglist(&tsgls->src);
733 destroy_test_sglist(&tsgls->dst);
734 kfree(tsgls);
739 static int build_cipher_test_sglists(struct cipher_test_sglists *tsgls,
751 err = build_test_sglist(&tsgls->src, cfg->src_divs, alignmask,
760 tsgls->dst.sgl_ptr = tsgls->src.sgl;
761 tsgls->dst.nents = tsgls->src.nents;
764 return build_test_sglist(&tsgls->dst,
1931 struct cipher_test_sglists *tsgls)
1996 err = build_cipher_test_sglists(tsgls, cfg, alignmask,
2011 aead_request_set_crypt(req, tsgls->src.sgl_ptr, tsgls->dst.sgl_ptr,
2025 req->src != tsgls->src.sgl_ptr ||
2026 req->dst != tsgls->dst.sgl_ptr ||
2039 if (req->src != tsgls->src.sgl_ptr)
2041 if (req->dst != tsgls->dst.sgl_ptr)
2053 if (is_test_sglist_corrupted(&tsgls->src)) {
2058 if (tsgls->dst.sgl_ptr != tsgls->src.sgl &&
2059 is_test_sglist_corrupted(&tsgls->dst)) {
2092 err = verify_correct_output(&tsgls->dst, enc ? vec->ctext : vec->ptext,
2112 struct cipher_test_sglists *tsgls)
2126 req, tsgls);
2140 &cfg, req, tsgls);
2157 struct cipher_test_sglists *tsgls;
2363 ctx->req, ctx->tsgls);
2459 ctx->req, ctx->tsgls);
2466 ctx->req, ctx->tsgls);
2482 struct cipher_test_sglists *tsgls)
2498 ctx->tsgls = tsgls;
2534 struct cipher_test_sglists *tsgls)
2543 struct cipher_test_sglists *tsgls)
2550 tsgls);
2564 struct cipher_test_sglists *tsgls = NULL;
2587 tsgls = alloc_cipher_test_sglists();
2588 if (!tsgls) {
2595 err = test_aead(driver, ENCRYPT, suite, req, tsgls);
2599 err = test_aead(driver, DECRYPT, suite, req, tsgls);
2603 err = test_aead_extra(driver, desc, req, tsgls);
2605 free_cipher_test_sglists(tsgls);
2703 struct cipher_test_sglists *tsgls)
2762 err = build_cipher_test_sglists(tsgls, cfg, alignmask,
2773 skcipher_request_set_crypt(req, tsgls->src.sgl_ptr, tsgls->dst.sgl_ptr,
2785 req->src != tsgls->src.sgl_ptr ||
2786 req->dst != tsgls->dst.sgl_ptr ||
2797 if (req->src != tsgls->src.sgl_ptr)
2799 if (req->dst != tsgls->dst.sgl_ptr)
2811 if (is_test_sglist_corrupted(&tsgls->src)) {
2816 if (tsgls->dst.sgl_ptr != tsgls->src.sgl &&
2817 is_test_sglist_corrupted(&tsgls->dst)) {
2838 err = verify_correct_output(&tsgls->dst, enc ? vec->ctext : vec->ptext,
2866 struct cipher_test_sglists *tsgls)
2880 req, tsgls);
2894 &cfg, req, tsgls);
2967 struct cipher_test_sglists *tsgls)
3081 cfg, req, tsgls);
3085 cfg, req, tsgls);
3105 struct cipher_test_sglists *tsgls)
3114 struct cipher_test_sglists *tsgls)
3121 tsgls);
3135 struct cipher_test_sglists *tsgls = NULL;
3158 tsgls = alloc_cipher_test_sglists();
3159 if (!tsgls) {
3166 err = test_skcipher(driver, ENCRYPT, suite, req, tsgls);
3170 err = test_skcipher(driver, DECRYPT, suite, req, tsgls);
3175 tsgls);
3177 free_cipher_test_sglists(tsgls);