Searched refs:vcrypto (Results 1 - 5 of 5) sorted by relevance

/linux-master/drivers/crypto/virtio/
H A Dvirtio_crypto_core.c32 struct virtio_crypto *vcrypto = vq->vdev->priv; local
37 spin_lock_irqsave(&vcrypto->ctrl_lock, flags);
41 spin_unlock_irqrestore(&vcrypto->ctrl_lock, flags);
43 spin_lock_irqsave(&vcrypto->ctrl_lock, flags);
46 spin_unlock_irqrestore(&vcrypto->ctrl_lock, flags);
49 int virtio_crypto_ctrl_vq_request(struct virtio_crypto *vcrypto, struct scatterlist *sgs[], argument
58 spin_lock_irqsave(&vcrypto->ctrl_lock, flags);
59 err = virtqueue_add_sgs(vcrypto->ctrl_vq, sgs, out_sgs, in_sgs, vc_ctrl_req, GFP_ATOMIC);
61 spin_unlock_irqrestore(&vcrypto->ctrl_lock, flags);
65 virtqueue_kick(vcrypto
91 struct virtio_crypto *vcrypto = vq->vdev->priv; local
195 virtcrypto_set_affinity(struct virtio_crypto *vcrypto) argument
254 virtcrypto_update_status(struct virtio_crypto *vcrypto) argument
296 virtcrypto_start_crypto_engines(struct virtio_crypto *vcrypto) argument
319 virtcrypto_clear_crypto_engines(struct virtio_crypto *vcrypto) argument
328 virtcrypto_del_vqs(struct virtio_crypto *vcrypto) argument
341 struct virtio_crypto *vcrypto = local
350 struct virtio_crypto *vcrypto; local
482 virtcrypto_free_unused_reqs(struct virtio_crypto *vcrypto) argument
500 struct virtio_crypto *vcrypto = vdev->priv; local
520 struct virtio_crypto *vcrypto = vdev->priv; local
528 struct virtio_crypto *vcrypto = vdev->priv; local
543 struct virtio_crypto *vcrypto = vdev->priv; local
[all...]
H A Dvirtio_crypto_mgr.c230 * @vcrypto: Pointer to virtio crypto device.
238 int virtcrypto_dev_start(struct virtio_crypto *vcrypto) argument
240 if (virtio_crypto_skcipher_algs_register(vcrypto)) {
245 if (virtio_crypto_akcipher_algs_register(vcrypto)) {
247 virtio_crypto_skcipher_algs_unregister(vcrypto);
256 * @vcrypto: Pointer to virtio crypto device.
264 void virtcrypto_dev_stop(struct virtio_crypto *vcrypto) argument
266 virtio_crypto_skcipher_algs_unregister(vcrypto);
267 virtio_crypto_akcipher_algs_unregister(vcrypto);
272 * @vcrypto
284 virtcrypto_algo_is_supported(struct virtio_crypto *vcrypto, uint32_t service, uint32_t algo) argument
[all...]
H A Dvirtio_crypto_common.h127 int virtcrypto_dev_start(struct virtio_crypto *vcrypto);
128 void virtcrypto_dev_stop(struct virtio_crypto *vcrypto);
146 int virtio_crypto_skcipher_algs_register(struct virtio_crypto *vcrypto);
147 void virtio_crypto_skcipher_algs_unregister(struct virtio_crypto *vcrypto);
148 int virtio_crypto_akcipher_algs_register(struct virtio_crypto *vcrypto);
149 void virtio_crypto_akcipher_algs_unregister(struct virtio_crypto *vcrypto);
150 int virtio_crypto_ctrl_vq_request(struct virtio_crypto *vcrypto, struct scatterlist *sgs[],
H A Dvirtio_crypto_skcipher_algs.c19 struct virtio_crypto *vcrypto; member in struct:virtio_crypto_skcipher_ctx
118 struct virtio_crypto *vcrypto = ctx->vcrypto; local
169 err = virtio_crypto_ctrl_vq_request(vcrypto, sgs, num_out, num_in, vc_ctrl_req);
198 struct virtio_crypto *vcrypto = ctx->vcrypto; local
231 err = virtio_crypto_ctrl_vq_request(vcrypto, sgs, num_out, num_in, vc_ctrl_req);
255 struct virtio_crypto *vcrypto = ctx->vcrypto; local
257 if (keylen > vcrypto
296 struct virtio_crypto *vcrypto = local
331 struct virtio_crypto *vcrypto = ctx->vcrypto; local
473 struct virtio_crypto *vcrypto = ctx->vcrypto; local
498 struct virtio_crypto *vcrypto = ctx->vcrypto; local
600 virtio_crypto_skcipher_algs_register(struct virtio_crypto *vcrypto) argument
631 virtio_crypto_skcipher_algs_unregister(struct virtio_crypto *vcrypto) argument
[all...]
H A Dvirtio_crypto_akcipher_algs.c28 struct virtio_crypto *vcrypto; member in struct:virtio_crypto_akcipher_ctx
112 struct virtio_crypto *vcrypto = ctx->vcrypto; local
145 err = virtio_crypto_ctrl_vq_request(vcrypto, sgs, num_out, num_in, vc_ctrl_req);
171 struct virtio_crypto *vcrypto = ctx->vcrypto; local
200 err = virtio_crypto_ctrl_vq_request(vcrypto, sgs, num_out, num_in, vc_ctrl_req);
225 struct virtio_crypto *vcrypto = ctx->vcrypto; local
230 int node = dev_to_node(&vcrypto
293 struct virtio_crypto *vcrypto = ctx->vcrypto; local
332 struct virtio_crypto *vcrypto = ctx->vcrypto; local
374 struct virtio_crypto *vcrypto; local
548 virtio_crypto_akcipher_algs_register(struct virtio_crypto *vcrypto) argument
578 virtio_crypto_akcipher_algs_unregister(struct virtio_crypto *vcrypto) argument
[all...]

Completed in 123 milliseconds