Home
last modified time | relevance | path

Searched refs:dev_ops (Results 1 – 25 of 176) sorted by relevance

12345678

/dpdk/lib/rawdev/
H A Drte_rawdev.c80 ret = (*rawdev->dev_ops->dev_info_get)(rawdev, in rte_rawdev_info_get()
176 return (*dev->dev_ops->queue_count)(dev); in rte_rawdev_queue_count()
246 return (*dev->dev_ops->dump)(dev, f); in rte_rawdev_dump()
364 return (*dev->dev_ops->firmware_unload)(dev); in rte_rawdev_firmware_unload()
393 if (dev->dev_ops->dev_start == NULL) in rte_rawdev_start()
396 diag = (*dev->dev_ops->dev_start)(dev); in rte_rawdev_start()
421 if (dev->dev_ops->dev_stop == NULL) in rte_rawdev_stop()
424 (*dev->dev_ops->dev_stop)(dev); in rte_rawdev_stop()
446 return (*dev->dev_ops->dev_close)(dev); in rte_rawdev_close()
459 return (*dev->dev_ops->dev_reset)(dev); in rte_rawdev_reset()
[all …]
/dpdk/lib/regexdev/
H A Drte_regexdev.c193 return (*dev->dev_ops->dev_info_get)(dev, dev_info); in regexdev_info_get()
290 ret = (*dev->dev_ops->dev_configure)(dev, cfg); in rte_regexdev_configure()
336 ret = (*dev->dev_ops->dev_start)(dev); in rte_regexdev_start()
350 (*dev->dev_ops->dev_stop)(dev); in rte_regexdev_stop()
363 (*dev->dev_ops->dev_close)(dev); in rte_regexdev_close()
430 return (*dev->dev_ops->dev_rule_db_compile_activate)(dev); in rte_regexdev_rule_db_compile_activate()
441 RTE_FUNC_PTR_OR_ERR_RET(*dev->dev_ops->dev_db_import, in rte_regexdev_rule_db_import()
458 RTE_FUNC_PTR_OR_ERR_RET(*dev->dev_ops->dev_db_export, in rte_regexdev_rule_db_export()
460 return (*dev->dev_ops->dev_db_export)(dev, rule_db); in rte_regexdev_rule_db_export()
550 return (*dev->dev_ops->dev_selftest)(dev); in rte_regexdev_selftest()
[all …]
/dpdk/app/test-bbdev/
H A Dtest_bbdev.c1107 dev2->dev_ops = dev1.dev_ops; in test_bbdev_invalid_driver()
1115 dev2->dev_ops = dev1.dev_ops; in test_bbdev_invalid_driver()
1123 dev2->dev_ops = dev1.dev_ops; in test_bbdev_invalid_driver()
1135 dev2->dev_ops = dev1.dev_ops; in test_bbdev_invalid_driver()
1144 dev2->dev_ops = dev1.dev_ops; in test_bbdev_invalid_driver()
1153 dev2->dev_ops = dev1.dev_ops; in test_bbdev_invalid_driver()
1170 dev2->dev_ops = dev1.dev_ops; in test_bbdev_invalid_driver()
1191 dev2->dev_ops = dev1.dev_ops; in test_bbdev_invalid_driver()
1201 dev2->dev_ops = dev1.dev_ops; in test_bbdev_invalid_driver()
1212 dev2->dev_ops = dev1.dev_ops; in test_bbdev_invalid_driver()
[all …]
/dpdk/lib/eventdev/
H A Drte_eventdev.c175 (*dev->dev_ops->crypto_adapter_caps_get) in rte_event_crypto_adapter_caps_get()
222 (*dev->dev_ops->queue_release)(dev, i); in event_dev_queue_config()
235 (*dev->dev_ops->queue_release)(dev, i); in event_dev_queue_config()
747 if (dev->dev_ops->port_quiesce) in rte_event_port_quiesce()
862 if (dev->dev_ops->queue_attr_get) in rte_event_queue_attr_get()
868 if (dev->dev_ops->queue_attr_get) in rte_event_queue_attr_get()
918 if (*dev->dev_ops->port_link == NULL) { in rte_event_port_link()
1126 (*dev->dev_ops->dump)(dev, f); in rte_event_dev_dump()
1176 if (dev->dev_ops->xstats_get != NULL) in rte_event_dev_xstats_get()
1208 if (dev->dev_ops->xstats_reset != NULL) in rte_event_dev_xstats_reset()
[all …]
H A Drte_event_eth_tx_adapter.c23 #define txa_dev_caps_get(id) txa_evdev((id))->dev_ops->eth_tx_adapter_caps_get
25 #define txa_dev_adapter_create(t) txa_evdev(t)->dev_ops->eth_tx_adapter_create
28 txa_evdev(t)->dev_ops->eth_tx_adapter_create
30 #define txa_dev_adapter_free(t) txa_evdev(t)->dev_ops->eth_tx_adapter_free
32 #define txa_dev_queue_add(id) txa_evdev(id)->dev_ops->eth_tx_adapter_queue_add
34 #define txa_dev_queue_del(t) txa_evdev(t)->dev_ops->eth_tx_adapter_queue_del
36 #define txa_dev_start(t) txa_evdev(t)->dev_ops->eth_tx_adapter_start
38 #define txa_dev_stop(t) txa_evdev(t)->dev_ops->eth_tx_adapter_stop
40 #define txa_dev_stats_reset(t) txa_evdev(t)->dev_ops->eth_tx_adapter_stats_reset
42 #define txa_dev_stats_get(t) txa_evdev(t)->dev_ops->eth_tx_adapter_stats_get
H A Drte_event_crypto_adapter.c1009 *dev->dev_ops->crypto_adapter_queue_pair_add, in rte_event_crypto_adapter_queue_pair_add()
1021 ret = (*dev->dev_ops->crypto_adapter_queue_pair_add)(dev, in rte_event_crypto_adapter_queue_pair_add()
1111 *dev->dev_ops->crypto_adapter_queue_pair_del, in rte_event_crypto_adapter_queue_pair_del()
1113 ret = (*dev->dev_ops->crypto_adapter_queue_pair_del)(dev, in rte_event_crypto_adapter_queue_pair_del()
1186 start ? (*dev->dev_ops->crypto_adapter_start)(dev, in eca_adapter_ctrl()
1188 (*dev->dev_ops->crypto_adapter_stop)(dev, in eca_adapter_ctrl()
1242 dev->dev_ops->crypto_adapter_stats_get == NULL) in rte_event_crypto_adapter_stats_get()
1244 ret = (*dev->dev_ops->crypto_adapter_stats_get)(dev, in rte_event_crypto_adapter_stats_get()
1282 dev->dev_ops->crypto_adapter_stats_reset == NULL) in rte_event_crypto_adapter_stats_reset()
1284 (*dev->dev_ops->crypto_adapter_stats_reset)(dev, in rte_event_crypto_adapter_stats_reset()
/dpdk/lib/ethdev/
H A Drte_ethdev.c1354 if (*dev->dev_ops->mac_addr_set != NULL) in eth_dev_mac_restore()
1372 (*dev->dev_ops->mac_addr_add)(dev, in eth_dev_mac_restore()
1482 diag = (*dev->dev_ops->dev_start)(dev); in rte_eth_dev_start()
1505 (*dev->dev_ops->link_update)(dev, 0); in rte_eth_dev_start()
1537 ret = (*dev->dev_ops->dev_stop)(dev); in rte_eth_dev_stop()
1611 ret = dev->dev_ops->dev_reset(dev); in rte_eth_dev_reset()
1630 ret = dev->dev_ops->is_removed(dev); in rte_eth_dev_is_removed()
2416 (*dev->dev_ops->link_update)(dev, 1); in rte_eth_link_get()
2441 (*dev->dev_ops->link_update)(dev, 0); in rte_eth_link_get_nowait()
2987 if (dev->dev_ops->xstats_get != NULL) { in rte_eth_xstats_get()
[all …]
H A Dethdev_driver.c240 eth_dev->dev_ops = NULL; in rte_eth_dev_release_port()
561 RTE_FUNC_PTR_OR_ERR_RET(*dev->dev_ops->hairpin_queue_peer_bind, in rte_eth_hairpin_queue_peer_bind()
564 return (*dev->dev_ops->hairpin_queue_peer_bind)(dev, cur_queue, in rte_eth_hairpin_queue_peer_bind()
576 RTE_FUNC_PTR_OR_ERR_RET(*dev->dev_ops->hairpin_queue_peer_unbind, in rte_eth_hairpin_queue_peer_unbind()
579 return (*dev->dev_ops->hairpin_queue_peer_unbind)(dev, cur_queue, in rte_eth_hairpin_queue_peer_unbind()
597 RTE_FUNC_PTR_OR_ERR_RET(*dev->dev_ops->hairpin_queue_peer_update, in rte_eth_hairpin_queue_peer_update()
600 return (*dev->dev_ops->hairpin_queue_peer_update)(dev, peer_queue, in rte_eth_hairpin_queue_peer_update()
H A Dethdev_private.c358 if (dev->dev_ops->rx_queue_release != NULL) in eth_dev_rxq_release()
359 (*dev->dev_ops->rx_queue_release)(dev, qid); in eth_dev_rxq_release()
371 if (dev->dev_ops->tx_queue_release != NULL) in eth_dev_txq_release()
372 (*dev->dev_ops->tx_queue_release)(dev, qid); in eth_dev_txq_release()
/dpdk/lib/compressdev/
H A Drte_compressdev.c279 if (compressdev->dev_ops) { in rte_compressdev_pmd_release_device()
319 (*dev->dev_ops->dev_infos_get)(dev, &dev_info); in rte_compressdev_queue_pairs_config()
471 diag = (*dev->dev_ops->dev_start)(dev); in rte_compressdev_start()
492 RTE_FUNC_PTR_OR_RET(*dev->dev_ops->dev_stop); in rte_compressdev_stop()
500 (*dev->dev_ops->dev_stop)(dev); in rte_compressdev_stop()
531 retval = (*dev->dev_ops->dev_close)(dev); in rte_compressdev_close()
615 (*dev->dev_ops->stats_get)(dev, stats); in rte_compressdev_stats_get()
631 RTE_FUNC_PTR_OR_RET(*dev->dev_ops->stats_reset); in rte_compressdev_stats_reset()
632 (*dev->dev_ops->stats_reset)(dev); in rte_compressdev_stats_reset()
651 (*dev->dev_ops->dev_infos_get)(dev, dev_info); in rte_compressdev_info_get()
[all …]
/dpdk/app/test/
H A Dvirtual_pmd.c22 struct eth_dev_ops dev_ops; member
249 struct eth_dev_ops *dev_ops = &dev_private->dev_ops; in virtual_ethdev_start_fn_set_success() local
252 dev_ops->dev_start = virtual_ethdev_start_success; in virtual_ethdev_start_fn_set_success()
254 dev_ops->dev_start = virtual_ethdev_start_fail; in virtual_ethdev_start_fn_set_success()
263 struct eth_dev_ops *dev_ops = &dev_private->dev_ops; in virtual_ethdev_configure_fn_set_success() local
268 dev_ops->dev_configure = virtual_ethdev_configure_fail; in virtual_ethdev_configure_fn_set_success()
276 struct eth_dev_ops *dev_ops = &dev_private->dev_ops; in virtual_ethdev_rx_queue_setup_fn_set_success() local
289 struct eth_dev_ops *dev_ops = &dev_private->dev_ops; in virtual_ethdev_tx_queue_setup_fn_set_success() local
302 struct eth_dev_ops *dev_ops = &dev_private->dev_ops; in virtual_ethdev_link_update_fn_set_success() local
588 dev_private->dev_ops = virtual_ethdev_default_dev_ops; in virtual_ethdev_create()
[all …]
/dpdk/lib/bbdev/
H A Drte_bbdev.c48 if (dev->dev_ops == NULL) { \
353 if (dev->dev_ops->close) { in rte_bbdev_setup_queues()
354 ret = dev->dev_ops->close(dev); in rte_bbdev_setup_queues()
416 if (dev->dev_ops->intr_enable) { in rte_bbdev_intr_enable()
565 if (dev->dev_ops->start) { in rte_bbdev_start()
596 if (dev->dev_ops->stop) in rte_bbdev_stop()
597 dev->dev_ops->stop(dev); in rte_bbdev_stop()
633 if (dev->dev_ops->close) { in rte_bbdev_close()
634 ret = dev->dev_ops->close(dev); in rte_bbdev_close()
665 if (dev->dev_ops->queue_start) { in rte_bbdev_queue_start()
[all …]
/dpdk/lib/dmadev/
H A Drte_dmadev.c424 ret = (*dev->dev_ops->dev_info_get)(dev, dev_info, in rte_dma_info_get()
475 ret = (*dev->dev_ops->dev_configure)(dev, dev_conf, in rte_dma_configure()
503 if (dev->dev_ops->dev_start == NULL) in rte_dma_start()
506 ret = (*dev->dev_ops->dev_start)(dev); in rte_dma_start()
529 if (dev->dev_ops->dev_stop == NULL) in rte_dma_stop()
532 ret = (*dev->dev_ops->dev_stop)(dev); in rte_dma_stop()
558 ret = (*dev->dev_ops->dev_close)(dev); in rte_dma_close()
672 return (*dev->dev_ops->stats_get)(dev, vchan, stats, in rte_dma_stats_get()
692 return (*dev->dev_ops->stats_reset)(dev, vchan); in rte_dma_stats_reset()
784 if (dev->dev_ops->dev_dump != NULL) in rte_dma_dump()
[all …]
/dpdk/lib/cryptodev/
H A Drte_cryptodev.c926 if (cryptodev->dev_ops) { in rte_cryptodev_pmd_release_device()
1087 diag = (*dev->dev_ops->dev_start)(dev); in rte_cryptodev_start()
1112 RTE_FUNC_PTR_OR_RET(*dev->dev_ops->dev_stop); in rte_cryptodev_stop()
1123 (*dev->dev_ops->dev_stop)(dev); in rte_cryptodev_stop()
1160 retval = (*dev->dev_ops->dev_close)(dev); in rte_cryptodev_close()
1554 (*dev->dev_ops->stats_get)(dev, stats); in rte_cryptodev_stats_get()
1571 (*dev->dev_ops->stats_reset)(dev); in rte_cryptodev_stats_reset()
1589 (*dev->dev_ops->dev_infos_get)(dev, dev_info); in rte_cryptodev_info_get()
2005 dev->dev_ops->sym_session_clear(dev, sess); in rte_cryptodev_sym_session_clear()
2052 dev->dev_ops->asym_session_clear(dev, sess); in rte_cryptodev_asym_session_free()
[all …]
/dpdk/drivers/bus/ifpga/
H A Difpga_bus.c170 if (rawdev->dev_ops && rawdev->dev_ops->dev_info_get) in ifpga_scan_one()
171 rawdev->dev_ops->dev_info_get(rawdev, afu_dev, sizeof(*afu_dev)); in ifpga_scan_one()
173 if (rawdev->dev_ops && in ifpga_scan_one()
174 rawdev->dev_ops->dev_start && in ifpga_scan_one()
175 rawdev->dev_ops->dev_start(rawdev)) in ifpga_scan_one()
179 if (rawdev->dev_ops && in ifpga_scan_one()
180 rawdev->dev_ops->firmware_load && in ifpga_scan_one()
181 rawdev->dev_ops->firmware_load(rawdev, in ifpga_scan_one()
/dpdk/drivers/net/cnxk/
H A Dcnxk_ethdev.c418 const struct eth_dev_ops *dev_ops = eth_dev->dev_ops; in cnxk_nix_tx_queue_setup() local
542 const struct eth_dev_ops *dev_ops = eth_dev->dev_ops; in cnxk_nix_rx_queue_setup() local
818 const struct eth_dev_ops *dev_ops = eth_dev->dev_ops; in nix_store_queue_cfg_and_then_release() local
851 dev_ops->tx_queue_release(eth_dev, i); in nix_store_queue_cfg_and_then_release()
865 dev_ops->rx_queue_release(eth_dev, i); in nix_store_queue_cfg_and_then_release()
883 const struct eth_dev_ops *dev_ops = eth_dev->dev_ops; in nix_restore_queue_cfg() local
951 dev_ops->tx_queue_release(eth_dev, i); in nix_restore_queue_cfg()
1421 const struct eth_dev_ops *dev_ops = eth_dev->dev_ops; in cnxk_nix_dev_stop() local
1458 dev_ops->tx_queue_stop(eth_dev, i); in cnxk_nix_dev_stop()
1633 eth_dev->dev_ops = &cnxk_eth_dev_ops; in cnxk_eth_dev_init()
[all …]
/dpdk/drivers/net/failsafe/
H A Dfailsafe_ether.c430 ret = dev->dev_ops->rx_queue_start(dev, i); in failsafe_eth_dev_rx_queues_sync()
442 ret = dev->dev_ops->rx_queue_stop(dev, i); in failsafe_eth_dev_rx_queues_sync()
471 ret = dev->dev_ops->tx_queue_start(dev, i); in failsafe_eth_dev_tx_queues_sync()
483 ret = dev->dev_ops->tx_queue_stop(dev, i); in failsafe_eth_dev_tx_queues_sync()
527 ret = dev->dev_ops->dev_configure(dev); in failsafe_eth_dev_state_sync()
545 dev->dev_ops->link_update(dev, 1); in failsafe_eth_dev_state_sync()
548 ret = dev->dev_ops->dev_start(dev); in failsafe_eth_dev_state_sync()
617 ret = dev->dev_ops->link_update(dev, 0); in failsafe_eth_lsc_event_callback()
/dpdk/drivers/net/netvsc/
H A Dhn_vf.c471 if (vf_dev && vf_dev->dev_ops->dev_supported_ptypes_get) in hn_vf_supported_ptypes()
472 ptypes = (*vf_dev->dev_ops->dev_supported_ptypes_get)(vf_dev); in hn_vf_supported_ptypes()
631 if (vf_dev && vf_dev->dev_ops->tx_queue_release) in hn_vf_tx_queue_release()
632 (*vf_dev->dev_ops->tx_queue_release)(vf_dev, queue_id); in hn_vf_tx_queue_release()
663 if (vf_dev && vf_dev->dev_ops->rx_queue_release) in hn_vf_rx_queue_release()
664 (*vf_dev->dev_ops->rx_queue_release)(vf_dev, queue_id); in hn_vf_rx_queue_release()
762 if (vf_dev && vf_dev->dev_ops->rss_hash_update) in hn_vf_rss_hash_update()
763 ret = vf_dev->dev_ops->rss_hash_update(vf_dev, rss_conf); in hn_vf_rss_hash_update()
779 if (vf_dev && vf_dev->dev_ops->reta_update) in hn_vf_reta_hash_update()
780 ret = vf_dev->dev_ops->reta_update(vf_dev, in hn_vf_reta_hash_update()
/dpdk/drivers/net/cxgbe/
H A Dcxgbevf_ethdev.c112 eth_dev->dev_ops = &cxgbevf_eth_dev_ops; in eth_cxgbevf_dev_init()
132 rest_eth_dev->dev_ops = in eth_cxgbevf_dev_init()
133 eth_dev->dev_ops; in eth_cxgbevf_dev_init()
/dpdk/drivers/common/cnxk/
H A Droc_dev_priv.h37 struct dev_ops { struct
89 struct dev_ops *ops;
/dpdk/lib/metrics/
H A Drte_metrics_telemetry.c78 const void *dev_ops; in rte_metrics_tel_reg_all_ethdev() member
92 if (rte_eth_devices[d].dev_ops == drv_idx[i].dev_ops) { in rte_metrics_tel_reg_all_ethdev()
107 drv_idx[nb_drv_idx].dev_ops = rte_eth_devices[d].dev_ops; in rte_metrics_tel_reg_all_ethdev()
/dpdk/drivers/crypto/scheduler/
H A Dscheduler_pmd_ops.c241 ret = (*worker_dev->dev_ops->dev_close)(worker_dev); in scheduler_pmd_close()
287 (*worker_dev->dev_ops->stats_get)(worker_dev, &worker_stats); in scheduler_pmd_stats_get()
309 (*worker_dev->dev_ops->stats_reset)(worker_dev); in scheduler_pmd_stats_reset()
461 uint32_t priv_sess_size = (*dev->dev_ops->sym_session_get_size)(dev); in scheduler_pmd_sym_session_get_size()
/dpdk/drivers/crypto/qat/
H A Dqat_crypto.c35 ret = dev->dev_ops->queue_pair_release(dev, i); in qat_cryptodev_close()
135 ret = dev->dev_ops->queue_pair_release(dev, qp_id); in qat_cryptodev_qp_setup()
/dpdk/drivers/net/ipn3ke/
H A Dipn3ke_ethdev.c314 rawdev->dev_ops->attr_get(rawdev, in ipn3ke_hw_init()
317 rawdev->dev_ops->attr_get(rawdev, in ipn3ke_hw_init()
320 rawdev->dev_ops->attr_get(rawdev, in ipn3ke_hw_init()
324 rawdev->dev_ops->attr_get(rawdev, in ipn3ke_hw_init()
/dpdk/drivers/net/octeontx_ep/
H A Dotx_ep_ethdev.c392 eth_dev->dev_ops = NULL; in otx_ep_eth_dev_uninit()
412 eth_dev->dev_ops = &otx_ep_eth_dev_ops; in otx_ep_eth_dev_init()
416 eth_dev->dev_ops = NULL; in otx_ep_eth_dev_init()

12345678