Lines Matching refs:rsgl
41 struct af_alg_sgl rsgl; member
77 struct skcipher_async_rsgl *rsgl, *tmp; in skcipher_free_async_sgls() local
82 list_for_each_entry_safe(rsgl, tmp, &sreq->list, list) { in skcipher_free_async_sgls()
83 af_alg_free_sg(&rsgl->sgl); in skcipher_free_async_sgls()
84 if (rsgl != &sreq->first_sgl) in skcipher_free_async_sgls()
85 kfree(rsgl); in skcipher_free_async_sgls()
543 struct skcipher_async_rsgl *rsgl; in skcipher_recvmsg_async() local
588 rsgl = &sreq->first_sgl; in skcipher_recvmsg_async()
589 list_add_tail(&rsgl->list, &sreq->list); in skcipher_recvmsg_async()
591 rsgl = kmalloc(sizeof(*rsgl), GFP_KERNEL); in skcipher_recvmsg_async()
592 if (!rsgl) { in skcipher_recvmsg_async()
596 list_add_tail(&rsgl->list, &sreq->list); in skcipher_recvmsg_async()
599 used = af_alg_make_sg(&rsgl->sgl, &msg->msg_iter, used); in skcipher_recvmsg_async()
604 af_alg_link_sg(&last_rsgl->sgl, &rsgl->sgl); in skcipher_recvmsg_async()
606 last_rsgl = rsgl; in skcipher_recvmsg_async()
662 used = af_alg_make_sg(&ctx->rsgl, &msg->msg_iter, used); in skcipher_recvmsg_sync()
681 skcipher_request_set_crypt(&ctx->req, sg, ctx->rsgl.sg, used, in skcipher_recvmsg_sync()
691 af_alg_free_sg(&ctx->rsgl); in skcipher_recvmsg_sync()