Lines Matching refs:cryptodev
670 virtio_crypto_init_device(struct rte_cryptodev *cryptodev, in virtio_crypto_init_device() argument
673 struct virtio_crypto_hw *hw = cryptodev->data->dev_private; in virtio_crypto_init_device()
721 struct rte_cryptodev *cryptodev; in crypto_virtio_create() local
726 cryptodev = rte_cryptodev_pmd_create(name, &pci_dev->device, in crypto_virtio_create()
728 if (cryptodev == NULL) in crypto_virtio_create()
731 cryptodev->driver_id = cryptodev_virtio_driver_id; in crypto_virtio_create()
732 cryptodev->dev_ops = &virtio_crypto_dev_ops; in crypto_virtio_create()
734 cryptodev->enqueue_burst = virtio_crypto_pkt_tx_burst; in crypto_virtio_create()
735 cryptodev->dequeue_burst = virtio_crypto_pkt_rx_burst; in crypto_virtio_create()
737 cryptodev->feature_flags = RTE_CRYPTODEV_FF_SYMMETRIC_CRYPTO | in crypto_virtio_create()
741 hw = cryptodev->data->dev_private; in crypto_virtio_create()
742 hw->dev_id = cryptodev->data->dev_id; in crypto_virtio_create()
746 cryptodev->data->dev_id, pci_dev->id.vendor_id, in crypto_virtio_create()
753 if (virtio_crypto_init_device(cryptodev, in crypto_virtio_create()
757 rte_cryptodev_pmd_probing_finish(cryptodev); in crypto_virtio_create()
763 virtio_crypto_dev_uninit(struct rte_cryptodev *cryptodev) in virtio_crypto_dev_uninit() argument
765 struct virtio_crypto_hw *hw = cryptodev->data->dev_private; in virtio_crypto_dev_uninit()
772 if (cryptodev->data->dev_started) { in virtio_crypto_dev_uninit()
773 virtio_crypto_dev_stop(cryptodev); in virtio_crypto_dev_uninit()
774 virtio_crypto_dev_close(cryptodev); in virtio_crypto_dev_uninit()
777 cryptodev->dev_ops = NULL; in virtio_crypto_dev_uninit()
778 cryptodev->enqueue_burst = NULL; in virtio_crypto_dev_uninit()
779 cryptodev->dequeue_burst = NULL; in virtio_crypto_dev_uninit()
784 rte_free(cryptodev->data); in virtio_crypto_dev_uninit()
785 cryptodev->data = NULL; in virtio_crypto_dev_uninit()
793 virtio_crypto_dev_configure(struct rte_cryptodev *cryptodev, in virtio_crypto_dev_configure() argument
796 struct virtio_crypto_hw *hw = cryptodev->data->dev_private; in virtio_crypto_dev_configure()
800 if (virtio_crypto_init_device(cryptodev, in virtio_crypto_dev_configure()
808 if (virtio_crypto_ctrlq_setup(cryptodev, hw->max_dataqueues) < 0) { in virtio_crypto_dev_configure()
812 virtio_crypto_ctrlq_start(cryptodev); in virtio_crypto_dev_configure()
1459 struct rte_cryptodev *cryptodev; in crypto_virtio_pci_remove() local
1468 cryptodev = rte_cryptodev_pmd_get_named_dev(cryptodev_name); in crypto_virtio_pci_remove()
1469 if (cryptodev == NULL) in crypto_virtio_pci_remove()
1472 return virtio_crypto_dev_uninit(cryptodev); in crypto_virtio_pci_remove()