Lines Matching refs:crypto

37                         CryptoDevBackendVhost *crypto)  in cryptodev_vhost_get_max_queues()  argument
39 return crypto->dev.max_queues; in cryptodev_vhost_get_max_queues()
42 void cryptodev_vhost_cleanup(CryptoDevBackendVhost *crypto) in cryptodev_vhost_cleanup() argument
44 vhost_dev_cleanup(&crypto->dev); in cryptodev_vhost_cleanup()
45 g_free(crypto); in cryptodev_vhost_cleanup()
53 CryptoDevBackendVhost *crypto; in cryptodev_vhost_init() local
56 crypto = g_new0(CryptoDevBackendVhost, 1); in cryptodev_vhost_init()
57 crypto->dev.max_queues = 1; in cryptodev_vhost_init()
58 crypto->dev.nvqs = 1; in cryptodev_vhost_init()
59 crypto->dev.vqs = crypto->vqs; in cryptodev_vhost_init()
61 crypto->cc = options->cc; in cryptodev_vhost_init()
63 crypto->dev.protocol_features = 0; in cryptodev_vhost_init()
64 crypto->backend = -1; in cryptodev_vhost_init()
67 crypto->dev.vq_index = crypto->cc->queue_index * crypto->dev.nvqs; in cryptodev_vhost_init()
69 r = vhost_dev_init(&crypto->dev, options->opaque, options->backend_type, 0, in cryptodev_vhost_init()
76 return crypto; in cryptodev_vhost_init()
78 g_free(crypto); in cryptodev_vhost_init()
83 cryptodev_vhost_start_one(CryptoDevBackendVhost *crypto, in cryptodev_vhost_start_one() argument
88 crypto->dev.nvqs = 1; in cryptodev_vhost_start_one()
89 crypto->dev.vqs = crypto->vqs; in cryptodev_vhost_start_one()
91 r = vhost_dev_enable_notifiers(&crypto->dev, dev); in cryptodev_vhost_start_one()
96 r = vhost_dev_start(&crypto->dev, dev, false); in cryptodev_vhost_start_one()
104 vhost_dev_disable_notifiers(&crypto->dev, dev); in cryptodev_vhost_start_one()
110 cryptodev_vhost_stop_one(CryptoDevBackendVhost *crypto, in cryptodev_vhost_stop_one() argument
113 vhost_dev_stop(&crypto->dev, dev, false); in cryptodev_vhost_stop_one()
114 vhost_dev_disable_notifiers(&crypto->dev, dev); in cryptodev_vhost_stop_one()
142 cryptodev_vhost_set_vq_index(CryptoDevBackendVhost *crypto, in cryptodev_vhost_set_vq_index() argument
145 crypto->dev.vq_index = vq_index; in cryptodev_vhost_set_vq_index()
153 CryptoDevBackendVhost *crypto = in vhost_set_vring_enable() local
159 if (!crypto) { in vhost_set_vring_enable()
163 vhost_ops = crypto->dev.vhost_ops; in vhost_set_vring_enable()
165 return vhost_ops->vhost_set_vring_enable(&crypto->dev, enable); in vhost_set_vring_enable()
306 cryptodev_vhost_get_max_queues(CryptoDevBackendVhost *crypto) in cryptodev_vhost_get_max_queues() argument
311 void cryptodev_vhost_cleanup(CryptoDevBackendVhost *crypto) in cryptodev_vhost_cleanup() argument