Home
last modified time | relevance | path

Searched refs:cdev (Results 1 – 25 of 47) sorted by relevance

12

/dpdk/drivers/common/mlx5/
H A Dmlx5_common.c449 struct mlx5_common_device *cdev; in to_mlx5_device() local
451 TAILQ_FOREACH(cdev, &devices_list, next) { in to_mlx5_device()
452 if (rte_dev == cdev->dev) in to_mlx5_device()
453 return cdev; in to_mlx5_device()
493 mlx5_dev_mempool_register(struct mlx5_common_device *cdev, in mlx5_dev_mempool_register() argument
496 return mlx5_mr_mempool_register(cdev, mp, is_extmem); in mlx5_dev_mempool_register()
508 mlx5_dev_mempool_unregister(struct mlx5_common_device *cdev, in mlx5_dev_mempool_unregister() argument
511 if (mlx5_mr_mempool_unregister(cdev, mp) < 0) in mlx5_dev_mempool_unregister()
513 mp->name, cdev->pd, rte_strerror(rte_errno)); in mlx5_dev_mempool_unregister()
527 struct mlx5_common_device *cdev = arg; in mlx5_dev_mempool_register_cb() local
[all …]
H A Dmlx5_common.h544 mlx5_imported_pd_and_ctx(struct mlx5_common_device *cdev) in mlx5_imported_pd_and_ctx() argument
546 return cdev->config.device_fd != MLX5_ARG_UNSET && in mlx5_imported_pd_and_ctx()
547 cdev->config.pd_handle != MLX5_ARG_UNSET; in mlx5_imported_pd_and_ctx()
553 typedef int (mlx5_class_driver_probe_t)(struct mlx5_common_device *cdev,
559 typedef int (mlx5_class_driver_remove_t)(struct mlx5_common_device *cdev);
621 mlx5_dev_mempool_subscribe(struct mlx5_common_device *cdev);
625 mlx5_dev_mempool_unregister(struct mlx5_common_device *cdev,
630 mlx5_devx_uar_prepare(struct mlx5_common_device *cdev, struct mlx5_uar *uar);
638 int mlx5_os_open_device(struct mlx5_common_device *cdev, uint32_t classes);
639 int mlx5_os_pd_prepare(struct mlx5_common_device *cdev);
[all …]
H A Dmlx5_common_mp.c28 mlx5_mp_req_mr_create(struct mlx5_common_device *cdev, uintptr_t addr) in mlx5_mp_req_mr_create() argument
42 arg->cdev = cdev; in mlx5_mp_req_mr_create()
67 mlx5_mp_req_mempool_reg(struct mlx5_common_device *cdev, in mlx5_mp_req_mempool_reg() argument
87 arg->cdev = cdev; in mlx5_mp_req_mempool_reg()
H A Dmlx5_common_mp.h40 struct mlx5_common_device *cdev; member
136 int mlx5_mp_req_mr_create(struct mlx5_common_device *cdev, uintptr_t addr);
138 int mlx5_mp_req_mempool_reg(struct mlx5_common_device *cdev,
H A Dmlx5_common_mr.c653 mlx5_mr_create_secondary(struct mlx5_common_device *cdev, in mlx5_mr_create_secondary() argument
660 ret = mlx5_mp_req_mr_create(cdev, addr); in mlx5_mr_create_secondary()
888 struct mlx5_common_device *cdev; in mlx5_mr_create_primary() local
893 cdev = container_of(share_cache, struct mlx5_common_device, in mlx5_mr_create_primary()
898 cdev->dev->numa_node) < 0) { in mlx5_mr_create_primary()
969 mlx5_mr_create(struct mlx5_common_device *cdev, in mlx5_mr_create() argument
977 ret = mlx5_mr_create_primary(cdev->pd, share_cache, entry, addr, in mlx5_mr_create()
978 cdev->config.mr_ext_memseg_en); in mlx5_mr_create()
981 ret = mlx5_mr_create_secondary(cdev, share_cache, entry, addr); in mlx5_mr_create()
1011 struct mlx5_common_device *cdev = in mr_lookup_caches() local
[all …]
/dpdk/drivers/crypto/ionic/
H A Dionic_crypto_ops.c14 iocpt_op_config(struct rte_cryptodev *cdev, in iocpt_op_config() argument
17 struct iocpt_dev *dev = cdev->data->dev_private; in iocpt_op_config()
25 iocpt_op_start(struct rte_cryptodev *cdev) in iocpt_op_start() argument
27 struct iocpt_dev *dev = cdev->data->dev_private; in iocpt_op_start()
33 iocpt_op_stop(struct rte_cryptodev *cdev) in iocpt_op_stop() argument
35 struct iocpt_dev *dev = cdev->data->dev_private; in iocpt_op_stop()
41 iocpt_op_close(struct rte_cryptodev *cdev) in iocpt_op_close() argument
43 struct iocpt_dev *dev = cdev->data->dev_private; in iocpt_op_close()
51 iocpt_op_info_get(struct rte_cryptodev *cdev, struct rte_cryptodev_info *info) in iocpt_op_info_get() argument
53 struct iocpt_dev *dev = cdev->data->dev_private; in iocpt_op_info_get()
[all …]
H A Dionic_crypto_main.c860 struct rte_cryptodev *cdev; in iocpt_probe() local
874 cdev = rte_cryptodev_pmd_create(rte_dev->name, rte_dev, &init_params); in iocpt_probe()
875 if (cdev == NULL) { in iocpt_probe()
881 dev = cdev->data->dev_private; in iocpt_probe()
882 dev->crypto_dev = cdev; in iocpt_probe()
949 err = iocpt_assign_ops(cdev); in iocpt_probe()
962 rte_cryptodev_pmd_destroy(cdev); in iocpt_probe()
970 struct rte_cryptodev *cdev; in iocpt_remove() local
973 cdev = rte_cryptodev_pmd_get_named_dev(rte_dev->name); in iocpt_remove()
974 if (cdev == NULL) { in iocpt_remove()
[all …]
/dpdk/drivers/common/mlx5/linux/
H A Dmlx5_common_os.c461 mlx5_os_pd_release(struct mlx5_common_device *cdev) in mlx5_os_pd_release() argument
463 if (cdev->config.pd_handle == MLX5_ARG_UNSET) in mlx5_os_pd_release()
464 return mlx5_glue->dealloc_pd(cdev->pd); in mlx5_os_pd_release()
466 return mlx5_glue->unimport_pd(cdev->pd); in mlx5_os_pd_release()
479 mlx5_os_pd_create(struct mlx5_common_device *cdev) in mlx5_os_pd_create() argument
481 cdev->pd = mlx5_glue->alloc_pd(cdev->ctx); in mlx5_os_pd_create()
482 if (cdev->pd == NULL) { in mlx5_os_pd_create()
499 mlx5_os_pd_import(struct mlx5_common_device *cdev) in mlx5_os_pd_import() argument
501 cdev->pd = mlx5_glue->import_pd(cdev->ctx, cdev->config.pd_handle); in mlx5_os_pd_import()
502 if (cdev->pd == NULL) { in mlx5_os_pd_import()
[all …]
/dpdk/drivers/crypto/cnxk/
H A Dcnxk_cryptodev_sec.c24 cnxk_crypto_sec_ctx_create(struct rte_cryptodev *cdev) in cnxk_crypto_sec_ctx_create() argument
35 ctx->device = cdev; in cnxk_crypto_sec_ctx_create()
39 cdev->security_ctx = ctx; in cnxk_crypto_sec_ctx_create()
45 cnxk_crypto_sec_ctx_destroy(struct rte_cryptodev *cdev) in cnxk_crypto_sec_ctx_destroy() argument
47 rte_free(cdev->security_ctx); in cnxk_crypto_sec_ctx_destroy()
/dpdk/drivers/regex/mlx5/
H A Dmlx5_regex.c42 return mlx5_dev_mempool_subscribe(priv->cdev); in mlx5_regex_start()
70 mlx5_regex_dev_probe(struct mlx5_common_device *cdev, in mlx5_regex_dev_probe() argument
74 struct mlx5_hca_attr *attr = &cdev->config.hca_attr; in mlx5_regex_dev_probe()
94 priv->cdev = cdev; in mlx5_regex_dev_probe()
100 mlx5_regex_get_name(name, cdev->dev); in mlx5_regex_dev_probe()
107 ret = mlx5_devx_uar_prepare(cdev, &priv->uar); in mlx5_regex_dev_probe()
120 priv->regexdev->device = cdev->dev; in mlx5_regex_dev_probe()
136 mlx5_regex_dev_remove(struct mlx5_common_device *cdev) in mlx5_regex_dev_remove() argument
142 mlx5_regex_get_name(name, cdev->dev); in mlx5_regex_dev_remove()
H A Dmlx5_regex_control.c85 ret = mlx5_devx_cq_create(priv->cdev->ctx, &cq->cq_obj, cq->log_nb_desc, in regex_ctrl_create_cq()
140 .pd = priv->cdev->pdn, in regex_ctrl_create_hw_qp()
142 (priv->cdev->config.hca_attr.qp_ts_format), in regex_ctrl_create_hw_qp()
156 ret = mlx5_devx_qp_create(priv->cdev->ctx, &qp_obj->qp_obj, in regex_ctrl_create_hw_qp()
250 ret = mlx5_mr_ctrl_init(&qp->mr_ctrl, &priv->cdev->mr_scache.dev_gen, in mlx5_regex_qp_setup()
H A Dmlx5_rxp.c61 mkey->umem = mlx5_glue->devx_umem_reg(priv->cdev->ctx, ptr, size, access); in rxp_create_mkey()
75 mkey_attr.pd = priv->cdev->pdn; in rxp_create_mkey()
77 mkey->mkey = mlx5_devx_cmd_mkey_create(priv->cdev->ctx, &mkey_attr); in rxp_create_mkey()
146 struct mlx5_hca_attr *attr = &priv->cdev->config.hca_attr; in mlx5_regex_parse_rules_db()
273 ret = mlx5_devx_regex_rules_program(priv->cdev->ctx, id, in mlx5_regex_rules_db_import()
/dpdk/drivers/crypto/mlx5/
H A Dmlx5_crypto.c105 qp->mkey[i] = mlx5_devx_cmd_mkey_create(priv->cdev->ctx, attr); in mlx5_crypto_indirect_mkeys_prepare()
151 return mlx5_dev_mempool_subscribe(priv->cdev); in mlx5_crypto_dev_start()
344 mlx5_crypto_dev_probe(struct mlx5_common_device *cdev, in mlx5_crypto_dev_probe() argument
354 .socket_id = cdev->dev->numa_node, in mlx5_crypto_dev_probe()
358 const char *ibdev_name = mlx5_os_get_ctx_device_name(cdev->ctx); in mlx5_crypto_dev_probe()
367 if (!cdev->config.hca_attr.crypto || in mlx5_crypto_dev_probe()
368 (!cdev->config.hca_attr.aes_xts && in mlx5_crypto_dev_probe()
369 !cdev->config.hca_attr.crypto_mmo.crypto_mmo_qp)) { in mlx5_crypto_dev_probe()
375 wrapped_mode = !!cdev->config.hca_attr.crypto_wrapped_import_method; in mlx5_crypto_dev_probe()
381 crypto_dev = rte_cryptodev_pmd_create(ibdev_name, cdev->dev, in mlx5_crypto_dev_probe()
[all …]
/dpdk/drivers/common/mlx5/windows/
H A Dmlx5_common_os.c61 mlx5_os_pd_release(struct mlx5_common_device *cdev) in mlx5_os_pd_release() argument
63 struct mlx5_pd *pd = cdev->pd; in mlx5_os_pd_release()
82 mlx5_os_pd_prepare(struct mlx5_common_device *cdev) in mlx5_os_pd_prepare() argument
89 struct mlx5_devx_obj *obj = mlx5_devx_cmd_alloc_pd(cdev->ctx); in mlx5_os_pd_prepare()
96 pd->devx_ctx = cdev->ctx; in mlx5_os_pd_prepare()
97 cdev->pd = pd; in mlx5_os_pd_prepare()
98 cdev->pdn = pd->pdn; in mlx5_os_pd_prepare()
223 mlx5_os_open_device(struct mlx5_common_device *cdev, uint32_t classes) in mlx5_os_open_device() argument
243 devx_bdf_dev = mlx5_os_get_devx_device(cdev->dev, devx_list, n); in mlx5_os_open_device()
258 cdev->config.devx = 1; in mlx5_os_open_device()
[all …]
/dpdk/kernel/freebsd/nic_uio/
H A Dnic_uio.c36 struct cdev *my_cdev;
91 nic_uio_mmap(struct cdev *cdev, vm_ooffset_t offset, vm_paddr_t *paddr, in nic_uio_mmap() argument
99 nic_uio_mmap_single(struct cdev *cdev, vm_ooffset_t *offset, vm_size_t size, in nic_uio_mmap_single() argument
108 struct nic_uio_softc *sc = cdev->si_drv1; in nic_uio_mmap_single()
133 *obj = vm_pager_allocate(OBJT_DEVICE, cdev, size, nprot, *offset, in nic_uio_mmap_single()
140 nic_uio_open(struct cdev *dev, int oflags, int devtype, struct thread *td) in nic_uio_open()
146 nic_uio_close(struct cdev *dev, int fflag, int devtype, struct thread *td) in nic_uio_close()
/dpdk/drivers/net/mlx5/windows/
H A Dmlx5_ethdev_os.c41 context_obj = (mlx5_context_st *)priv->sh->cdev->ctx; in mlx5_get_mac()
69 context_obj = (mlx5_context_st *)priv->sh->cdev->ctx; in mlx5_get_ifname()
98 context_obj = (mlx5_context_st *)priv->sh->cdev->ctx; in mlx5_get_mtu()
133 context_obj = (mlx5_context_st *)priv->sh->cdev->ctx; in mlx5_set_mtu()
278 context_obj = (mlx5_context_st *)priv->sh->cdev->ctx; in mlx5_link_update()
384 mlx5_context_st *context_obj = (mlx5_context_st *)priv->sh->cdev->ctx; in mlx5_read_clock()
408 mlx5_context_st *context_obj = (mlx5_context_st *)priv->sh->cdev->ctx; in mlx5_is_removed()
/dpdk/drivers/net/mlx5/linux/
H A Dmlx5_mp_os.c44 lkey = mlx5_mr_create(mng->cdev, &mng->cdev->mr_scache, &entry, in mlx5_mp_os_handle_port_agnostic()
51 res->result = mlx5_mr_mempool_register(mng->cdev, mng->mempool, in mlx5_mp_os_handle_port_agnostic()
56 res->result = mlx5_mr_mempool_unregister(mng->cdev, in mlx5_mp_os_handle_port_agnostic()
74 struct mlx5_common_device *cdev; in mlx5_mp_os_primary_handle() local
90 cdev = priv->sh->cdev; in mlx5_mp_os_primary_handle()
95 mp_res.fds[0] = ((struct ibv_context *)cdev->ctx)->cmd_fd; in mlx5_mp_os_primary_handle()
247 ((struct ibv_context *)priv->sh->cdev->ctx)->cmd_fd; in mp_req_on_rxtx()
H A Dmlx5_verbs.c206 (priv->sh->cdev->ctx, in mlx5_rxq_ibv_cq_create()
242 .pd = priv->sh->cdev->pd, in mlx5_rxq_ibv_wq_create()
277 rxq_obj->wq = mlx5_glue->dv_create_wq(priv->sh->cdev->ctx, &wq_attr.ibv, in mlx5_rxq_ibv_wq_create()
280 rxq_obj->wq = mlx5_glue->create_wq(priv->sh->cdev->ctx, &wq_attr.ibv); in mlx5_rxq_ibv_wq_create()
332 mlx5_glue->create_comp_channel(priv->sh->cdev->ctx); in mlx5_rxq_ibv_obj_new()
502 (priv->sh->cdev->ctx, in mlx5_ibv_ind_table_new()
569 (priv->sh->cdev->ctx, in mlx5_ibv_hrxq_new()
585 .pd = priv->sh->cdev->pd, in mlx5_ibv_hrxq_new()
590 (priv->sh->cdev->ctx, in mlx5_ibv_hrxq_new()
606 .pd = priv->sh->cdev->pd, in mlx5_ibv_hrxq_new()
[all …]
/dpdk/kernel/freebsd/contigmem/
H A Dcontigmem.c58 static struct cdev *contigmem_cdev = NULL;
220 contigmem_open(struct cdev *cdev, int fflags, int devtype, in contigmem_open()
230 contigmem_close(struct cdev *cdev, int fflags, int devtype, in contigmem_close()
337 contigmem_mmap_single(struct cdev *cdev, vm_ooffset_t *offset, vm_size_t size, in contigmem_mmap_single()
216 contigmem_open(struct cdev * cdev,int fflags,int devtype,struct thread * td) contigmem_open() argument
226 contigmem_close(struct cdev * cdev,int fflags,int devtype,struct thread * td) contigmem_close() argument
333 contigmem_mmap_single(struct cdev * cdev,vm_ooffset_t * offset,vm_size_t size,struct vm_object ** obj,int nprot) contigmem_mmap_single() argument
/dpdk/lib/eventdev/
H A Deventdev_pmd.h963 * @param cdev
977 const struct rte_cryptodev *cdev,
990 * @param cdev
1007 const struct rte_cryptodev *cdev,
1022 * @param cdev
1034 const struct rte_cryptodev *cdev,
1046 * @param cdev
1055 const struct rte_cryptodev *cdev);
1066 * @param cdev
1075 const struct rte_cryptodev *cdev);
[all...]
/dpdk/drivers/vdpa/mlx5/
H A Dmlx5_vdpa_lm.c56 int ret = mlx5_os_wrapped_mkey_create(priv->cdev->ctx, priv->cdev->pd, in mlx5_vdpa_dirty_bitmap_set()
57 priv->cdev->pdn, in mlx5_vdpa_dirty_bitmap_set()
H A Dmlx5_vdpa_event.c46 priv->eventc = mlx5_os_devx_create_event_channel(priv->cdev->ctx, in mlx5_vdpa_event_qp_global_prepare()
54 if (mlx5_devx_uar_prepare(priv->cdev, &priv->uar) != 0) { in mlx5_vdpa_event_qp_global_prepare()
98 ret = mlx5_devx_cq_create(priv->cdev->ctx, &cq->cq_obj, log_desc_n, in mlx5_vdpa_cq_create()
424 priv->err_chnl = mlx5_glue->devx_create_event_channel(priv->cdev->ctx, in mlx5_vdpa_err_event_setup()
655 attr.pd = priv->cdev->pdn; in mlx5_vdpa_event_qp_prepare()
657 mlx5_ts_format_conv(priv->cdev->config.hca_attr.qp_ts_format); in mlx5_vdpa_event_qp_prepare()
658 eqp->fw_qp = mlx5_devx_cmd_create_qp(priv->cdev->ctx, &attr); in mlx5_vdpa_event_qp_prepare()
669 mlx5_ts_format_conv(priv->cdev->config.hca_attr.qp_ts_format); in mlx5_vdpa_event_qp_prepare()
670 ret = mlx5_devx_qp_create(priv->cdev->ctx, &(eqp->sw_qp), in mlx5_vdpa_event_qp_prepare()
H A Dmlx5_vdpa.c218 (mlx5_os_get_ctx_device_name(priv->cdev->ctx), in mlx5_vdpa_mtu_set()
392 return ((struct ibv_context *)priv->cdev->ctx)->cmd_fd; in mlx5_vdpa_get_device_fd()
736 struct ibv_context *ctx = priv->cdev->ctx; in mlx5_vdpa_create_dev_resources()
784 priv->null_mr = mlx5_glue->alloc_null_mr(priv->cdev->pd); in mlx5_vdpa_create_dev_resources()
816 mlx5_vdpa_dev_probe(struct mlx5_common_device *cdev, in mlx5_vdpa_dev_probe() argument
820 struct mlx5_hca_attr *attr = &cdev->config.hca_attr; in mlx5_vdpa_dev_probe()
846 priv->cdev = cdev; in mlx5_vdpa_dev_probe()
857 priv->vdev = rte_vdpa_register_device(cdev->dev, &mlx5_vdpa_ops); in mlx5_vdpa_dev_probe()
876 mlx5_vdpa_dev_remove(struct mlx5_common_device *cdev) in mlx5_vdpa_dev_remove() argument
883 if (priv->vdev->device == cdev->dev) { in mlx5_vdpa_dev_remove()
/dpdk/doc/guides/sample_app_ug/
H A Dvhost_crypto.rst32 --config (lcore,cdev-id,queue-id)[,(lcore,cdev-id,queue-id)]
39 * config (lcore,cdev-id,queue-id): build the lcore-cryptodev id-queue id
/dpdk/drivers/compress/nitrox/
H A Dnitrox_comp.h25 struct rte_compressdev *cdev; member

12