Lines Matching refs:vhost_crypto
52 CryptoDevBackendVhost *vhost_crypto[MAX_CRYPTO_QUEUE_NUM]; member
73 return s->vhost_crypto[queue]; in cryptodev_vhost_user_get_vhost()
82 if (!cryptodev_vhost_user_running(s->vhost_crypto[i])) { in cryptodev_vhost_user_stop()
86 cryptodev_vhost_cleanup(s->vhost_crypto[i]); in cryptodev_vhost_user_stop()
87 s->vhost_crypto[i] = NULL; in cryptodev_vhost_user_stop()
101 if (cryptodev_vhost_user_running(s->vhost_crypto[i])) { in cryptodev_vhost_user_start()
108 s->vhost_crypto[i] = cryptodev_vhost_init(&options); in cryptodev_vhost_user_start()
109 if (!s->vhost_crypto[i]) { in cryptodev_vhost_user_start()
116 cryptodev_vhost_get_max_queues(s->vhost_crypto[i]); in cryptodev_vhost_user_start()
242 CryptoDevBackendVhost *vhost_crypto; in cryptodev_vhost_user_crypto_create_session() local
246 vhost_crypto = cryptodev_vhost_user_get_vhost(cc, backend, queue_index); in cryptodev_vhost_user_crypto_create_session()
247 if (vhost_crypto) { in cryptodev_vhost_user_crypto_create_session()
248 struct vhost_dev *dev = &(vhost_crypto->dev); in cryptodev_vhost_user_crypto_create_session()
313 CryptoDevBackendVhost *vhost_crypto; in cryptodev_vhost_user_close_session() local
316 vhost_crypto = cryptodev_vhost_user_get_vhost(cc, backend, queue_index); in cryptodev_vhost_user_close_session()
317 if (vhost_crypto) { in cryptodev_vhost_user_close_session()
318 struct vhost_dev *dev = &(vhost_crypto->dev); in cryptodev_vhost_user_close_session()