Lines Matching refs:vc_ctrl_req
109 struct virtio_crypto_ctrl_request *vc_ctrl_req; in virtio_crypto_alg_akcipher_init_session() local
115 vc_ctrl_req = kzalloc(sizeof(*vc_ctrl_req), GFP_KERNEL); in virtio_crypto_alg_akcipher_init_session()
116 if (!vc_ctrl_req) { in virtio_crypto_alg_akcipher_init_session()
121 ctrl = &vc_ctrl_req->ctrl; in virtio_crypto_alg_akcipher_init_session()
124 input = &vc_ctrl_req->input; in virtio_crypto_alg_akcipher_init_session()
136 err = virtio_crypto_ctrl_vq_request(vcrypto, sgs, num_out, num_in, vc_ctrl_req); in virtio_crypto_alg_akcipher_init_session()
152 kfree(vc_ctrl_req); in virtio_crypto_alg_akcipher_init_session()
167 struct virtio_crypto_ctrl_request *vc_ctrl_req; in virtio_crypto_alg_akcipher_close_session() local
172 vc_ctrl_req = kzalloc(sizeof(*vc_ctrl_req), GFP_KERNEL); in virtio_crypto_alg_akcipher_close_session()
173 if (!vc_ctrl_req) in virtio_crypto_alg_akcipher_close_session()
176 ctrl_status = &vc_ctrl_req->ctrl_status; in virtio_crypto_alg_akcipher_close_session()
178 ctrl = &vc_ctrl_req->ctrl; in virtio_crypto_alg_akcipher_close_session()
191 err = virtio_crypto_ctrl_vq_request(vcrypto, sgs, num_out, num_in, vc_ctrl_req); in virtio_crypto_alg_akcipher_close_session()
206 kfree(vc_ctrl_req); in virtio_crypto_alg_akcipher_close_session()