Home
last modified time | relevance | path

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

/drivers/crypto/virtio/
A Dvirtio_crypto_akcipher_algs.c109 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()
152 kfree(vc_ctrl_req); in virtio_crypto_alg_akcipher_init_session()
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()
[all …]
A Dvirtio_crypto_skcipher_algs.c123 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()
185 kfree(vc_ctrl_req); in virtio_crypto_alg_skcipher_init_session()
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()
[all …]
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()
51 struct virtio_crypto_ctrl_request *vc_ctrl_req) in virtio_crypto_ctrl_vq_request() argument
56 init_completion(&vc_ctrl_req->compl); in virtio_crypto_ctrl_vq_request()
59 err = virtqueue_add_sgs(vcrypto->ctrl_vq, sgs, out_sgs, in_sgs, vc_ctrl_req, GFP_ATOMIC); in virtio_crypto_ctrl_vq_request()
68 wait_for_completion(&vc_ctrl_req->compl); in virtio_crypto_ctrl_vq_request()
A Dvirtio_crypto_common.h150 struct virtio_crypto_ctrl_request *vc_ctrl_req);

Completed in 8 milliseconds