Home
last modified time | relevance | path

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

1234

/dpdk/examples/ip_pipeline/
H A Dcryptodev.c25 struct cryptodev *
28 struct cryptodev *cryptodev; in cryptodev_find() local
35 return cryptodev; in cryptodev_find()
40 struct cryptodev *
41 cryptodev_next(struct cryptodev *cryptodev) in cryptodev_next() argument
48 struct cryptodev *
54 struct cryptodev *cryptodev; in cryptodev_create() local
112 cryptodev = calloc(1, sizeof(struct cryptodev)); in cryptodev_create()
118 strlcpy(cryptodev->name, name, sizeof(cryptodev->name)); in cryptodev_create()
151 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 …]
/dpdk/drivers/net/softnic/
H A Drte_eth_softnic_cryptodev.c28 struct softnic_cryptodev *cryptodev; in softnic_cryptodev_free() local
31 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()
129 cryptodev->dev_id = dev_id; 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()
[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 …]
/dpdk/drivers/crypto/octeontx/
H A Dotx_cryptodev.c36 struct rte_cryptodev *cryptodev; in otx_cpt_pci_probe() local
46 if (cryptodev == NULL) in otx_cpt_pci_probe()
49 cryptodev->device = &pci_dev->device; in otx_cpt_pci_probe()
54 TAILQ_INIT(&(cryptodev->link_intr_cbs)); in otx_cpt_pci_probe()
57 retval = otx_cpt_dev_create(cryptodev); in otx_cpt_pci_probe()
77 struct rte_cryptodev *cryptodev; in otx_cpt_pci_remove() local
87 if (cryptodev == NULL) in otx_cpt_pci_remove()
93 dev_priv = cryptodev->data->dev_private; in otx_cpt_pci_remove()
101 cryptodev->device->driver = NULL; in otx_cpt_pci_remove()
102 cryptodev->device = NULL; in otx_cpt_pci_remove()
[all …]
/dpdk/lib/cryptodev/
H A Dcryptodev_trace_points.c10 lib.cryptodev.configure)
13 lib.cryptodev.start)
16 lib.cryptodev.stop)
19 lib.cryptodev.close)
31 lib.cryptodev.sym.create)
37 lib.cryptodev.sym.free)
40 lib.cryptodev.asym.free)
43 lib.cryptodev.sym.init)
46 lib.cryptodev.sym.clear)
49 lib.cryptodev.enq.burst)
[all …]
H A Dcryptodev_pmd.c96 struct rte_cryptodev *cryptodev; in rte_cryptodev_pmd_create() local
111 if (cryptodev == NULL) { in rte_cryptodev_pmd_create()
118 cryptodev->data->dev_private = in rte_cryptodev_pmd_create()
124 if (cryptodev->data->dev_private == NULL) { in rte_cryptodev_pmd_create()
133 cryptodev->device = device; in rte_cryptodev_pmd_create()
136 TAILQ_INIT(&(cryptodev->link_intr_cbs)); in rte_cryptodev_pmd_create()
138 return cryptodev; in rte_cryptodev_pmd_create()
158 cryptodev->device = NULL; in rte_cryptodev_pmd_destroy()
159 cryptodev->data = NULL; in rte_cryptodev_pmd_destroy()
167 if (cryptodev == NULL) in rte_cryptodev_pmd_probing_finish()
[all …]
H A Drte_cryptodev.c856 struct rte_cryptodev *cryptodev; in rte_cryptodev_pmd_allocate() local
873 if (cryptodev->data == NULL) { in rte_cryptodev_pmd_allocate()
883 cryptodev->data = *cryptodev_data; in rte_cryptodev_pmd_allocate()
896 cryptodev->data->name, in rte_cryptodev_pmd_allocate()
897 cryptodev->data->dev_id, in rte_cryptodev_pmd_allocate()
898 cryptodev->data->socket_id, in rte_cryptodev_pmd_allocate()
899 cryptodev->data->dev_started); in rte_cryptodev_pmd_allocate()
909 return cryptodev; in rte_cryptodev_pmd_allocate()
918 if (cryptodev == NULL) in rte_cryptodev_pmd_release_device()
921 dev_id = cryptodev->data->dev_id; in rte_cryptodev_pmd_release_device()
[all …]
/dpdk/drivers/crypto/qat/
H A Dqat_sym.c198 struct rte_cryptodev *cryptodev; in qat_sym_dev_create() local
244 if (cryptodev == NULL) in qat_sym_dev_create()
261 cryptodev->security_ctx = in qat_sym_dev_create()
263 if (cryptodev->security_ctx == NULL) { in qat_sym_dev_create()
322 rte_free(cryptodev->security_ctx); in qat_sym_dev_create()
323 cryptodev->security_ctx = NULL; in qat_sym_dev_create()
325 rte_cryptodev_pmd_destroy(cryptodev); in qat_sym_dev_create()
335 struct rte_cryptodev *cryptodev; in qat_sym_dev_destroy() local
347 rte_free(cryptodev->security_ctx); in qat_sym_dev_destroy()
348 cryptodev->security_ctx = NULL; in qat_sym_dev_destroy()
[all …]
H A Dqat_crypto.h52 typedef void * (*create_security_ctx_t)(void *cryptodev);
54 typedef int (*set_session_t)(void *cryptodev, void *session);
H A Dqat_asym.c1294 struct rte_cryptodev *cryptodev; in qat_asym_dev_create() local
1340 cryptodev = rte_cryptodev_pmd_create(name, in qat_asym_dev_create()
1343 if (cryptodev == NULL) in qat_asym_dev_create()
1347 cryptodev->driver_id = qat_asym_driver_id; in qat_asym_dev_create()
1362 internals = cryptodev->data->dev_private; in qat_asym_dev_create()
1364 internals->dev_id = cryptodev->data->dev_id; in qat_asym_dev_create()
1379 rte_cryptodev_pmd_destroy(cryptodev); in qat_asym_dev_create()
1401 cryptodev->data->name, internals->dev_id); in qat_asym_dev_create()
1408 struct rte_cryptodev *cryptodev; in qat_asym_dev_destroy() local
1418 cryptodev = rte_cryptodev_pmd_get_dev( in qat_asym_dev_destroy()
[all …]
/dpdk/drivers/crypto/ipsec_mb/
H A Dipsec_mb_private.c148 struct rte_cryptodev *cryptodev; in ipsec_mb_remove() local
156 cryptodev = rte_cryptodev_pmd_get_named_dev(name); in ipsec_mb_remove()
157 if (cryptodev == NULL) in ipsec_mb_remove()
165 if (cryptodev->security_ctx) { in ipsec_mb_remove()
166 rte_free(cryptodev->security_ctx); in ipsec_mb_remove()
167 cryptodev->security_ctx = NULL; in ipsec_mb_remove()
170 rte_free(cryptodev->security_ctx); in ipsec_mb_remove()
171 cryptodev->security_ctx = NULL; in ipsec_mb_remove()
174 for (qp_id = 0; qp_id < cryptodev->data->nb_queue_pairs; qp_id++) in ipsec_mb_remove()
175 ipsec_mb_qp_release(cryptodev, qp_id); in ipsec_mb_remove()
[all …]
/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()
397 rte_cryptodev_pmd_probing_finish(cryptodev); in bcmfs_sym_dev_create()
407 struct rte_cryptodev *cryptodev; in bcmfs_sym_dev_destroy() local
[all …]
/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()
772 if (cryptodev->data->dev_started) { 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()
1459 struct rte_cryptodev *cryptodev; in crypto_virtio_pci_remove() local
[all …]
/dpdk/drivers/event/dpaa/
H A Ddpaa_eventdev.c747 const struct rte_cryptodev *cryptodev, in dpaa_eventdev_crypto_queue_add_all() argument
758 ret = dpaa_sec_eventq_attach(cryptodev, i, in dpaa_eventdev_crypto_queue_add_all()
769 dpaa_sec_eventq_detach(cryptodev, i); in dpaa_eventdev_crypto_queue_add_all()
776 const struct rte_cryptodev *cryptodev, in dpaa_eventdev_crypto_queue_add() argument
789 cryptodev, ev); in dpaa_eventdev_crypto_queue_add()
791 ret = dpaa_sec_eventq_attach(cryptodev, rx_queue_id, in dpaa_eventdev_crypto_queue_add()
825 const struct rte_cryptodev *cryptodev, in dpaa_eventdev_crypto_queue_del() argument
847 const struct rte_cryptodev *cryptodev) in dpaa_eventdev_crypto_start() argument
852 RTE_SET_USED(cryptodev); in dpaa_eventdev_crypto_start()
859 const struct rte_cryptodev *cryptodev) in dpaa_eventdev_crypto_stop() argument
[all …]
/dpdk/drivers/event/dpaa2/
H A Ddpaa2_eventdev.c838 const struct rte_cryptodev *cryptodev, in dpaa2_eventdev_crypto_queue_add_all() argument
859 dpaa2_sec_eventq_detach(cryptodev, i); in dpaa2_eventdev_crypto_queue_add_all()
866 const struct rte_cryptodev *cryptodev, in dpaa2_eventdev_crypto_queue_add() argument
879 cryptodev, ev); in dpaa2_eventdev_crypto_queue_add()
881 ret = dpaa2_sec_eventq_attach(cryptodev, rx_queue_id, in dpaa2_eventdev_crypto_queue_add()
915 const struct rte_cryptodev *cryptodev, in dpaa2_eventdev_crypto_queue_del() argument
925 ret = dpaa2_sec_eventq_detach(cryptodev, rx_queue_id); in dpaa2_eventdev_crypto_queue_del()
937 const struct rte_cryptodev *cryptodev) in dpaa2_eventdev_crypto_start() argument
942 RTE_SET_USED(cryptodev); in dpaa2_eventdev_crypto_start()
949 const struct rte_cryptodev *cryptodev) in dpaa2_eventdev_crypto_stop() argument
[all …]
/dpdk/drivers/crypto/
H A Dmeson.build24 std_deps = ['cryptodev'] # cryptodev pulls in all other needed deps
/dpdk/drivers/crypto/null/
H A Dnull_crypto_pmd.c225 struct rte_cryptodev *cryptodev; in cryptodev_null_remove_dev() local
232 cryptodev = rte_cryptodev_pmd_get_named_dev(name); in cryptodev_null_remove_dev()
233 if (cryptodev == NULL) in cryptodev_null_remove_dev()
236 return rte_cryptodev_pmd_destroy(cryptodev); in cryptodev_null_remove_dev()
/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
/dpdk/doc/guides/sample_app_ug/
H A Dfips_validation.rst97 [--cryptodev DEVICE_NAME] [--cryptodev-id ID] [--path-is-folder]
107 * cryptodev: The name of the target DPDK Crypto device to be validated.
109 * cryptodev-id: The id of the target DPDK Crypto device to be validated.
127 --cryptodev crypto_aesni_mb
137 --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} \
/dpdk/doc/guides/prog_guide/
H A Devent_crypto_adapter.rst43 enqueues to the cryptodev without going through crypto/atomic stage.
66 submits the crypto operations to the cryptodev. After the crypto operation is
70 needs to specify the cryptodev ID and queue pair ID (request information) needed
87 a single eventdev, then add cryptodev and queue pair to the adapter instance.
167 the application to query the adapter capabilities for an eventdev and cryptodev
168 combination. This API provides whether cryptodev and eventdev are connected using
178 Cryptodev device id and queue pair are created using cryptodev APIs.
191 These cryptodev id and queue pair are added to the instance using the
228 to specify the cryptodev ID and queue pair ID (request information) in
299 eventdev-cryptodev connections and ``rte_service_run_state_set()`` to enable the
/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 use case 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
/dpdk/drivers/crypto/dpaa2_sec/
H A Ddpaa2_sec_dpseci.c4292 devargs = cryptodev->device->devargs; in dpaa2_sec_get_devargs()
4329 cryptodev->dev_ops = &crypto_ops; in dpaa2_sec_dev_init()
4389 snprintf(cryptodev->data->name, sizeof(cryptodev->data->name), in dpaa2_sec_dev_init()
4414 struct rte_cryptodev *cryptodev; in cryptodev_dpaa2_sec_probe() local
4423 if (cryptodev == NULL) in cryptodev_dpaa2_sec_probe()
4438 dpaa2_dev->cryptodev = cryptodev; in cryptodev_dpaa2_sec_probe()
4439 cryptodev->device = &dpaa2_dev->device; in cryptodev_dpaa2_sec_probe()
4469 struct rte_cryptodev *cryptodev; in cryptodev_dpaa2_sec_remove() local
4472 cryptodev = dpaa2_dev->cryptodev; in cryptodev_dpaa2_sec_remove()
4473 if (cryptodev == NULL) in cryptodev_dpaa2_sec_remove()
[all …]

1234