Lines Matching refs:vc_ctrl_req
123 struct virtio_crypto_ctrl_request *vc_ctrl_req; in virtio_crypto_alg_skcipher_init_session() local
134 vc_ctrl_req = kzalloc(sizeof(*vc_ctrl_req), GFP_KERNEL); in virtio_crypto_alg_skcipher_init_session()
135 if (!vc_ctrl_req) { in virtio_crypto_alg_skcipher_init_session()
141 ctrl = &vc_ctrl_req->ctrl; in virtio_crypto_alg_skcipher_init_session()
147 input = &vc_ctrl_req->input; in virtio_crypto_alg_skcipher_init_session()
167 err = virtio_crypto_ctrl_vq_request(vcrypto, sgs, num_out, num_in, vc_ctrl_req); in virtio_crypto_alg_skcipher_init_session()
185 kfree(vc_ctrl_req); in virtio_crypto_alg_skcipher_init_session()
201 struct virtio_crypto_ctrl_request *vc_ctrl_req; in virtio_crypto_alg_skcipher_close_session() local
203 vc_ctrl_req = kzalloc(sizeof(*vc_ctrl_req), GFP_KERNEL); in virtio_crypto_alg_skcipher_close_session()
204 if (!vc_ctrl_req) in virtio_crypto_alg_skcipher_close_session()
207 ctrl_status = &vc_ctrl_req->ctrl_status; in virtio_crypto_alg_skcipher_close_session()
210 ctrl = &vc_ctrl_req->ctrl; in virtio_crypto_alg_skcipher_close_session()
229 err = virtio_crypto_ctrl_vq_request(vcrypto, sgs, num_out, num_in, vc_ctrl_req); in virtio_crypto_alg_skcipher_close_session()
243 kfree(vc_ctrl_req); in virtio_crypto_alg_skcipher_close_session()