Home
last modified time | relevance | path

Searched refs:cryptodev (Results 1 – 25 of 103) sorted by relevance

12345

/f-stack/dpdk/examples/ip_pipeline/
H A Dcryptodev.c26 struct cryptodev *
29 struct cryptodev *cryptodev; in cryptodev_find() local
36 return cryptodev; in cryptodev_find()
41 struct cryptodev *
42 cryptodev_next(struct cryptodev *cryptodev) in cryptodev_next() argument
49 struct cryptodev *
55 struct cryptodev *cryptodev; in cryptodev_create() local
113 cryptodev = calloc(1, sizeof(struct cryptodev)); in cryptodev_create()
119 strlcpy(cryptodev->name, name, sizeof(cryptodev->name)); in cryptodev_create()
152 return cryptodev; in cryptodev_create()
[all …]
H A Dcryptodev.h15 struct cryptodev { struct
16 TAILQ_ENTRY(cryptodev) node;
24 TAILQ_HEAD(cryptodev_list, cryptodev); argument
29 struct cryptodev *
32 struct cryptodev *
33 cryptodev_next(struct cryptodev *cryptodev);
43 struct cryptodev *
H A Dpipeline.c303 struct cryptodev *cryptodev; in pipeline_port_in_create() local
305 cryptodev = cryptodev_find(params->dev_name); in pipeline_port_in_create()
306 if (cryptodev == NULL) in pipeline_port_in_create()
309 if (params->rxq.queue_id > cryptodev->n_queues - 1) in pipeline_port_in_create()
312 pp.sym_crypto.cryptodev_id = cryptodev->dev_id; in pipeline_port_in_create()
579 struct cryptodev *cryptodev; in pipeline_port_out_create() local
581 cryptodev = cryptodev_find(params->dev_name); in pipeline_port_out_create()
582 if (cryptodev == NULL) in pipeline_port_out_create()
585 if (params->cryptodev.queue_id >= cryptodev->n_queues) in pipeline_port_out_create()
588 pp.sym_crypto.cryptodev_id = cryptodev->dev_id; in pipeline_port_out_create()
[all …]
/f-stack/dpdk/drivers/net/softnic/
H A Drte_eth_softnic_cryptodev.c31 if (cryptodev == NULL) in softnic_cryptodev_free()
35 free(cryptodev); in softnic_cryptodev_free()
50 return cryptodev; in softnic_cryptodev_find()
123 if (cryptodev == NULL) { in softnic_cryptodev_create()
128 strlcpy(cryptodev->name, name, sizeof(cryptodev->name)); in softnic_cryptodev_create()
139 if (!cryptodev->mp_create) in softnic_cryptodev_create()
154 if (!cryptodev->mp_init) in softnic_cryptodev_create()
159 return cryptodev; in softnic_cryptodev_create()
162 if (cryptodev->mp_create) in softnic_cryptodev_create()
164 if (cryptodev->mp_init) in softnic_cryptodev_create()
[all …]
H A Drte_eth_softnic_pipeline.c364 if (cryptodev == NULL) in softnic_pipeline_port_in_create()
367 pp.cryptodev.cryptodev_id = cryptodev->dev_id; in softnic_pipeline_port_in_create()
368 pp.cryptodev.queue_id = params->cryptodev.queue_id; in softnic_pipeline_port_in_create()
369 pp.cryptodev.f_callback = params->cryptodev.f_callback; in softnic_pipeline_port_in_create()
370 pp.cryptodev.arg_callback = params->cryptodev.arg_callback; in softnic_pipeline_port_in_create()
607 if (params->cryptodev.queue_id >= cryptodev->n_queues) in softnic_pipeline_port_out_create()
610 pp.cryptodev.cryptodev_id = cryptodev->dev_id; in softnic_pipeline_port_out_create()
611 pp.cryptodev.queue_id = params->cryptodev.queue_id; in softnic_pipeline_port_out_create()
613 pp.cryptodev.crypto_op_offset = params->cryptodev.op_offset; in softnic_pipeline_port_out_create()
615 pp_nodrop.cryptodev.cryptodev_id = cryptodev->dev_id; in softnic_pipeline_port_out_create()
[all …]
/f-stack/dpdk/lib/librte_cryptodev/
H A Dcryptodev_trace_points.c10 lib.cryptodev.configure)
13 lib.cryptodev.start)
16 lib.cryptodev.stop)
19 lib.cryptodev.close)
28 lib.cryptodev.sym.create)
34 lib.cryptodev.sym.free)
37 lib.cryptodev.asym.free)
40 lib.cryptodev.sym.init)
43 lib.cryptodev.asym.init)
46 lib.cryptodev.sym.clear)
[all …]
H A Drte_cryptodev_pmd.c94 struct rte_cryptodev *cryptodev; in rte_cryptodev_pmd_create() local
109 if (cryptodev == NULL) { in rte_cryptodev_pmd_create()
116 cryptodev->data->dev_private = in rte_cryptodev_pmd_create()
122 if (cryptodev->data->dev_private == NULL) { in rte_cryptodev_pmd_create()
126 rte_cryptodev_pmd_release_device(cryptodev); in rte_cryptodev_pmd_create()
131 cryptodev->device = device; in rte_cryptodev_pmd_create()
134 TAILQ_INIT(&(cryptodev->link_intr_cbs)); in rte_cryptodev_pmd_create()
136 return cryptodev; in rte_cryptodev_pmd_create()
152 rte_free(cryptodev->data->dev_private); in rte_cryptodev_pmd_destroy()
155 cryptodev->device = NULL; in rte_cryptodev_pmd_destroy()
[all …]
H A Drte_cryptodev.c734 struct rte_cryptodev *cryptodev; in rte_cryptodev_pmd_allocate() local
751 if (cryptodev->data == NULL) { in rte_cryptodev_pmd_allocate()
761 cryptodev->data = *cryptodev_data; in rte_cryptodev_pmd_allocate()
774 cryptodev->data->name, in rte_cryptodev_pmd_allocate()
775 cryptodev->data->dev_id, in rte_cryptodev_pmd_allocate()
776 cryptodev->data->socket_id, in rte_cryptodev_pmd_allocate()
777 cryptodev->data->dev_started); in rte_cryptodev_pmd_allocate()
787 return cryptodev; in rte_cryptodev_pmd_allocate()
796 if (cryptodev == NULL) in rte_cryptodev_pmd_release_device()
799 dev_id = cryptodev->data->dev_id; in rte_cryptodev_pmd_release_device()
[all …]
/f-stack/dpdk/drivers/crypto/octeontx/
H A Dotx_cryptodev.c33 struct rte_cryptodev *cryptodev; in otx_cpt_pci_probe() local
43 if (cryptodev == NULL) in otx_cpt_pci_probe()
46 cryptodev->device = &pci_dev->device; in otx_cpt_pci_probe()
51 TAILQ_INIT(&(cryptodev->link_intr_cbs)); in otx_cpt_pci_probe()
54 retval = otx_cpt_dev_create(cryptodev); in otx_cpt_pci_probe()
72 struct rte_cryptodev *cryptodev; in otx_cpt_pci_remove() local
81 if (cryptodev == NULL) in otx_cpt_pci_remove()
91 rte_free(cryptodev->data->dev_private); in otx_cpt_pci_remove()
93 cryptodev->device->driver = NULL; in otx_cpt_pci_remove()
94 cryptodev->device = NULL; in otx_cpt_pci_remove()
[all …]
/f-stack/dpdk/drivers/crypto/qat/
H A Dqat_sym_pmd.c328 struct rte_cryptodev *cryptodev; in qat_sym_dev_create() local
365 if (cryptodev == NULL) in qat_sym_dev_create()
369 cryptodev->driver_id = qat_sym_driver_id; in qat_sym_dev_create()
370 cryptodev->dev_ops = &crypto_qat_ops; in qat_sym_dev_create()
471 rte_free(cryptodev->security_ctx); in qat_sym_dev_create()
472 cryptodev->security_ctx = NULL; in qat_sym_dev_create()
474 rte_cryptodev_pmd_destroy(cryptodev); in qat_sym_dev_create()
484 struct rte_cryptodev *cryptodev; in qat_sym_dev_destroy() local
496 rte_free(cryptodev->security_ctx); in qat_sym_dev_destroy()
497 cryptodev->security_ctx = NULL; in qat_sym_dev_destroy()
[all …]
H A Dqat_asym_pmd.c251 struct rte_cryptodev *cryptodev; in qat_asym_dev_create() local
277 cryptodev = rte_cryptodev_pmd_create(name, in qat_asym_dev_create()
280 if (cryptodev == NULL) in qat_asym_dev_create()
284 cryptodev->driver_id = qat_asym_driver_id; in qat_asym_dev_create()
285 cryptodev->dev_ops = &crypto_qat_ops; in qat_asym_dev_create()
303 internals = cryptodev->data->dev_private; in qat_asym_dev_create()
305 internals->asym_dev_id = cryptodev->data->dev_id; in qat_asym_dev_create()
318 rte_cryptodev_pmd_destroy(cryptodev); in qat_asym_dev_create()
346 struct rte_cryptodev *cryptodev; in qat_asym_dev_destroy() local
356 cryptodev = rte_cryptodev_pmd_get_dev( in qat_asym_dev_destroy()
[all …]
/f-stack/dpdk/drivers/crypto/bcmfs/
H A Dbcmfs_sym_pmd.c362 struct rte_cryptodev *cryptodev; in bcmfs_sym_dev_create() local
373 cryptodev = rte_cryptodev_pmd_create(name, in bcmfs_sym_dev_create()
376 if (cryptodev == NULL) in bcmfs_sym_dev_create()
379 fsdev->sym_rte_dev.name = cryptodev->data->name; in bcmfs_sym_dev_create()
380 cryptodev->driver_id = cryptodev_bcmfs_driver_id; in bcmfs_sym_dev_create()
381 cryptodev->dev_ops = &crypto_bcmfs_ops; in bcmfs_sym_dev_create()
390 internals = cryptodev->data->dev_private; in bcmfs_sym_dev_create()
394 internals->sym_dev_id = cryptodev->data->dev_id; in bcmfs_sym_dev_create()
398 cryptodev->data->name, internals->sym_dev_id); in bcmfs_sym_dev_create()
405 struct rte_cryptodev *cryptodev; in bcmfs_sym_dev_destroy() local
[all …]
/f-stack/dpdk/drivers/crypto/virtio/
H A Dvirtio_cryptodev.c721 struct rte_cryptodev *cryptodev; in crypto_virtio_create() local
728 if (cryptodev == NULL) in crypto_virtio_create()
741 hw = cryptodev->data->dev_private; in crypto_virtio_create()
770 if (cryptodev->data->dev_started) { 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()
1457 struct rte_cryptodev *cryptodev; in crypto_virtio_pci_remove() local
[all …]
/f-stack/dpdk/drivers/event/dpaa/
H A Ddpaa_eventdev.c746 const struct rte_cryptodev *cryptodev, in dpaa_eventdev_crypto_queue_add_all() argument
757 ret = dpaa_sec_eventq_attach(cryptodev, i, in dpaa_eventdev_crypto_queue_add_all()
768 dpaa_sec_eventq_detach(cryptodev, i); in dpaa_eventdev_crypto_queue_add_all()
775 const struct rte_cryptodev *cryptodev, in dpaa_eventdev_crypto_queue_add() argument
788 cryptodev, ev); in dpaa_eventdev_crypto_queue_add()
790 ret = dpaa_sec_eventq_attach(cryptodev, rx_queue_id, in dpaa_eventdev_crypto_queue_add()
824 const struct rte_cryptodev *cryptodev, in dpaa_eventdev_crypto_queue_del() argument
846 const struct rte_cryptodev *cryptodev) in dpaa_eventdev_crypto_start() argument
851 RTE_SET_USED(cryptodev); in dpaa_eventdev_crypto_start()
858 const struct rte_cryptodev *cryptodev) in dpaa_eventdev_crypto_stop() argument
[all …]
/f-stack/dpdk/drivers/crypto/
H A Dmeson.build28 std_deps = ['cryptodev'] # cryptodev pulls in all other needed deps
/f-stack/dpdk/drivers/event/dpaa2/
H A Ddpaa2_eventdev.c837 const struct rte_cryptodev *cryptodev, in dpaa2_eventdev_crypto_queue_add_all() argument
858 dpaa2_sec_eventq_detach(cryptodev, i); in dpaa2_eventdev_crypto_queue_add_all()
865 const struct rte_cryptodev *cryptodev, in dpaa2_eventdev_crypto_queue_add() argument
878 cryptodev, ev); in dpaa2_eventdev_crypto_queue_add()
880 ret = dpaa2_sec_eventq_attach(cryptodev, rx_queue_id, in dpaa2_eventdev_crypto_queue_add()
914 const struct rte_cryptodev *cryptodev, in dpaa2_eventdev_crypto_queue_del() argument
924 ret = dpaa2_sec_eventq_detach(cryptodev, rx_queue_id); in dpaa2_eventdev_crypto_queue_del()
936 const struct rte_cryptodev *cryptodev) in dpaa2_eventdev_crypto_start() argument
941 RTE_SET_USED(cryptodev); in dpaa2_eventdev_crypto_start()
948 const struct rte_cryptodev *cryptodev) in dpaa2_eventdev_crypto_stop() argument
[all …]
/f-stack/dpdk/drivers/crypto/null/
H A Dnull_crypto_pmd.c223 struct rte_cryptodev *cryptodev; in cryptodev_null_remove_dev() local
230 cryptodev = rte_cryptodev_pmd_get_named_dev(name); in cryptodev_null_remove_dev()
231 if (cryptodev == NULL) in cryptodev_null_remove_dev()
234 return rte_cryptodev_pmd_destroy(cryptodev); in cryptodev_null_remove_dev()
/f-stack/dpdk/doc/guides/prog_guide/
H A Devent_crypto_adapter.rst43 enqueues to the cryptodev without going through crypto/atomic stage.
60 can directly submit the crypto operations to the cryptodev.
65 crypto operations to the cryptodev. After the crypto completions, the
69 forwarded events. The application needs to specify the cryptodev ID
86 a single eventdev, then add cryptodev and queue pair to the adapter instance.
150 the application to query the adapter capabilities for an eventdev and cryptodev
151 combination. This API provides whether cryptodev and eventdev are connected using
161 Cryptodev device id and queue pair are created using cryptodev APIs.
174 These cryptodev id and queue pair are added to the instance using the
211 to specify the cryptodev ID and queue pair ID (request information) in
[all …]
/f-stack/dpdk/examples/ip_pipeline/examples/
H A Dflow_crypto.cli28 cryptodev CRYPTO0 dev crypto_aesni_gcm0 queue 1 1024 max_sessions 512
36 pipeline PIPELINE0 port in bsz 32 cryptodev CRYPTO0 rxq 0
38 pipeline PIPELINE0 port out bsz 32 cryptodev CRYPTO0 txq 0 offset 1792
/f-stack/dpdk/doc/guides/sample_app_ug/
H A Dfips_validation.rst96 [--cryptodev DEVICE_NAME] [--cryptodev-id ID] [--path-is-folder]
106 * cryptodev: The name of the target DPDK Crypto device to be validated.
108 * cryptodev-id: The id of the target DPDK Crypto device to be validated.
126 --cryptodev crypto_aesni_mb
136 --cryptodev-id 0 --path-is-folder
H A Dvhost_crypto.rst39 * config (lcore,cdev-id,queue-id): build the lcore-cryptodev id-queue id
41 specified cryptodev's queue.
75 -object cryptodev-vhost-user,id={obj_id},chardev={chardev_id} \
76 -device virtio-crypto-pci,id={dev_id},cryptodev={obj_id} \
/f-stack/dpdk/doc/guides/cryptodevs/
H A Dscheduler.rst57 * worker: If a cryptodev has been initialized with specific name, it can be
83 * The scheduler cryptodev cannot be started unless the scheduling mode
121 A typical usecase in this mode is with the QAT cryptodev as the primary and
122 a software cryptodev as the secondary worker. This may help applications to
123 process additional crypto workload than what the QAT cryptodev can handle on
162 Each worker uses its own cryptodev. Only software cryptodevs
/f-stack/dpdk/lib/librte_security/
H A Dmeson.build6 deps += ['mempool', 'cryptodev']
/f-stack/dpdk/drivers/common/cpt/
H A Dmeson.build7 deps = ['kvargs', 'pci', 'cryptodev']
/f-stack/dpdk/drivers/crypto/zuc/
H A Drte_zuc_pmd.c551 struct rte_cryptodev *cryptodev; in cryptodev_zuc_remove() local
559 cryptodev = rte_cryptodev_pmd_get_named_dev(name); in cryptodev_zuc_remove()
560 if (cryptodev == NULL) in cryptodev_zuc_remove()
563 internals = cryptodev->data->dev_private; in cryptodev_zuc_remove()
567 return rte_cryptodev_pmd_destroy(cryptodev); in cryptodev_zuc_remove()

12345