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()
761 virtio_crypto_dev_uninit(struct rte_cryptodev *cryptodev) in virtio_crypto_dev_uninit() argument
763 struct virtio_crypto_hw *hw = cryptodev->data->dev_private; in virtio_crypto_dev_uninit()
770 if (cryptodev->data->dev_started) { in virtio_crypto_dev_uninit()
771 virtio_crypto_dev_stop(cryptodev); in virtio_crypto_dev_uninit()
772 virtio_crypto_dev_close(cryptodev); in virtio_crypto_dev_uninit()
775 cryptodev->dev_ops = NULL; in virtio_crypto_dev_uninit()
776 cryptodev->enqueue_burst = NULL; in virtio_crypto_dev_uninit()
777 cryptodev->dequeue_burst = NULL; in virtio_crypto_dev_uninit()
782 rte_free(cryptodev->data); in virtio_crypto_dev_uninit()
783 cryptodev->data = NULL; in virtio_crypto_dev_uninit()
791 virtio_crypto_dev_configure(struct rte_cryptodev *cryptodev, in virtio_crypto_dev_configure() argument
794 struct virtio_crypto_hw *hw = cryptodev->data->dev_private; in virtio_crypto_dev_configure()
798 if (virtio_crypto_init_device(cryptodev, in virtio_crypto_dev_configure()
806 if (virtio_crypto_ctrlq_setup(cryptodev, hw->max_dataqueues) < 0) { in virtio_crypto_dev_configure()
810 virtio_crypto_ctrlq_start(cryptodev); in virtio_crypto_dev_configure()
1457 struct rte_cryptodev *cryptodev; in crypto_virtio_pci_remove() local
1466 cryptodev = rte_cryptodev_pmd_get_named_dev(cryptodev_name); in crypto_virtio_pci_remove()
1467 if (cryptodev == NULL) in crypto_virtio_pci_remove()
1470 return virtio_crypto_dev_uninit(cryptodev); in crypto_virtio_pci_remove()