Lines Matching refs:vc_akcipher_req
53 struct virtio_crypto_akcipher_request *vc_akcipher_req, in virtio_crypto_akcipher_finalize_req() argument
56 kfree(vc_akcipher_req->src_buf); in virtio_crypto_akcipher_finalize_req()
57 kfree(vc_akcipher_req->dst_buf); in virtio_crypto_akcipher_finalize_req()
58 vc_akcipher_req->src_buf = NULL; in virtio_crypto_akcipher_finalize_req()
59 vc_akcipher_req->dst_buf = NULL; in virtio_crypto_akcipher_finalize_req()
60 virtcrypto_clear_request(&vc_akcipher_req->base); in virtio_crypto_akcipher_finalize_req()
62 crypto_finalize_akcipher_request(vc_akcipher_req->base.dataq->engine, req, err); in virtio_crypto_akcipher_finalize_req()
67 struct virtio_crypto_akcipher_request *vc_akcipher_req = in virtio_crypto_dataq_akcipher_callback() local
70 container_of((void *)vc_akcipher_req, struct akcipher_request, in virtio_crypto_dataq_akcipher_callback()
93 vc_akcipher_req->dst_buf, akcipher_req->dst_len); in virtio_crypto_dataq_akcipher_callback()
94 virtio_crypto_akcipher_finalize_req(vc_akcipher_req, akcipher_req, error); in virtio_crypto_dataq_akcipher_callback()
211 static int __virtio_crypto_akcipher_do_req(struct virtio_crypto_akcipher_request *vc_akcipher_req, in __virtio_crypto_akcipher_do_req() argument
216 struct virtio_crypto_request *vc_req = &vc_akcipher_req->base; in __virtio_crypto_akcipher_do_req()
247 vc_akcipher_req->src_buf = src_buf; in __virtio_crypto_akcipher_do_req()
248 vc_akcipher_req->dst_buf = dst_buf; in __virtio_crypto_akcipher_do_req()
273 struct virtio_crypto_akcipher_request *vc_akcipher_req = akcipher_request_ctx(req); in virtio_crypto_rsa_do_req() local
274 struct virtio_crypto_request *vc_req = &vc_akcipher_req->base; in virtio_crypto_rsa_do_req()
291 header->opcode = cpu_to_le32(vc_akcipher_req->opcode); in virtio_crypto_rsa_do_req()
300 ret = __virtio_crypto_akcipher_do_req(vc_akcipher_req, req, data_vq); in virtio_crypto_rsa_do_req()
314 struct virtio_crypto_akcipher_request *vc_akcipher_req = akcipher_request_ctx(req); in virtio_crypto_rsa_req() local
315 struct virtio_crypto_request *vc_req = &vc_akcipher_req->base; in virtio_crypto_rsa_req()
322 vc_akcipher_req->opcode = opcode; in virtio_crypto_rsa_req()