Home
last modified time | relevance | path

Searched refs:vc_ctrl_req (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/drivers/crypto/virtio/
H A Dvirtio_crypto_akcipher_algs.c118 struct virtio_crypto_ctrl_request *vc_ctrl_req; in virtio_crypto_alg_akcipher_init_session() local
124 vc_ctrl_req = kzalloc(sizeof(*vc_ctrl_req), GFP_KERNEL); in virtio_crypto_alg_akcipher_init_session()
125 if (!vc_ctrl_req) { in virtio_crypto_alg_akcipher_init_session()
130 ctrl = &vc_ctrl_req->ctrl; in virtio_crypto_alg_akcipher_init_session()
133 input = &vc_ctrl_req->input; in virtio_crypto_alg_akcipher_init_session()
161 kfree(vc_ctrl_req); in virtio_crypto_alg_akcipher_init_session()
181 vc_ctrl_req = kzalloc(sizeof(*vc_ctrl_req), GFP_KERNEL); in virtio_crypto_alg_akcipher_close_session()
182 if (!vc_ctrl_req) in virtio_crypto_alg_akcipher_close_session()
185 ctrl_status = &vc_ctrl_req->ctrl_status; in virtio_crypto_alg_akcipher_close_session()
187 ctrl = &vc_ctrl_req->ctrl; in virtio_crypto_alg_akcipher_close_session()
[all …]
H A Dvirtio_crypto_skcipher_algs.c125 struct virtio_crypto_ctrl_request *vc_ctrl_req; in virtio_crypto_alg_skcipher_init_session() local
136 vc_ctrl_req = kzalloc(sizeof(*vc_ctrl_req), GFP_KERNEL); in virtio_crypto_alg_skcipher_init_session()
137 if (!vc_ctrl_req) { in virtio_crypto_alg_skcipher_init_session()
143 ctrl = &vc_ctrl_req->ctrl; in virtio_crypto_alg_skcipher_init_session()
149 input = &vc_ctrl_req->input; in virtio_crypto_alg_skcipher_init_session()
187 kfree(vc_ctrl_req); in virtio_crypto_alg_skcipher_init_session()
205 vc_ctrl_req = kzalloc(sizeof(*vc_ctrl_req), GFP_KERNEL); in virtio_crypto_alg_skcipher_close_session()
206 if (!vc_ctrl_req) in virtio_crypto_alg_skcipher_close_session()
209 ctrl_status = &vc_ctrl_req->ctrl_status; in virtio_crypto_alg_skcipher_close_session()
212 ctrl = &vc_ctrl_req->ctrl; in virtio_crypto_alg_skcipher_close_session()
[all …]
H A Dvirtio_crypto_core.c25 static void virtio_crypto_ctrlq_callback(struct virtio_crypto_ctrl_request *vc_ctrl_req) in virtio_crypto_ctrlq_callback() argument
27 complete(&vc_ctrl_req->compl); in virtio_crypto_ctrlq_callback()
33 struct virtio_crypto_ctrl_request *vc_ctrl_req; in virtcrypto_ctrlq_callback() local
40 while ((vc_ctrl_req = virtqueue_get_buf(vq, &len)) != NULL) { in virtcrypto_ctrlq_callback()
42 virtio_crypto_ctrlq_callback(vc_ctrl_req); in virtcrypto_ctrlq_callback()
53 struct virtio_crypto_ctrl_request *vc_ctrl_req) in virtio_crypto_ctrl_vq_request() argument
58 init_completion(&vc_ctrl_req->compl); in virtio_crypto_ctrl_vq_request()
61 err = virtqueue_add_sgs(vcrypto->ctrl_vq, sgs, out_sgs, in_sgs, vc_ctrl_req, GFP_ATOMIC); in virtio_crypto_ctrl_vq_request()
70 wait_for_completion(&vc_ctrl_req->compl); in virtio_crypto_ctrl_vq_request()
H A Dvirtio_crypto_common.h152 struct virtio_crypto_ctrl_request *vc_ctrl_req);