Lines Matching refs:cdev
144 struct mlx5_common_device *cdev = sh->cdev; in mlx5_os_capabilities_prepare() local
145 struct mlx5_hca_attr *hca_attr = &cdev->config.hca_attr; in mlx5_os_capabilities_prepare()
149 err = mlx5_glue->query_device_ex(cdev->ctx, NULL, &attr_ex); in mlx5_os_capabilities_prepare()
163 err = mlx5_glue->dv_query_device(cdev->ctx, &dv_attr); in mlx5_os_capabilities_prepare()
169 if (mlx5_dev_is_pci(cdev->dev)) in mlx5_os_capabilities_prepare()
170 sh->dev_cap.vf = mlx5_dev_is_vf_pci(RTE_DEV_TO_PCI(cdev->dev)); in mlx5_os_capabilities_prepare()
283 cdev->config.devx ? in mlx5_os_capabilities_prepare()
323 if (!sh->cdev->config.devx) in mlx5_os_capabilities_prepare()
448 matcher = mlx5_glue->dv_create_flow_matcher(priv->sh->cdev->ctx, in __mlx5_discovery_misc5_cap()
544 domain = mlx5_glue->dr_create_domain(sh->cdev->ctx, in mlx5_alloc_shared_dr()
552 domain = mlx5_glue->dr_create_domain(sh->cdev->ctx, in mlx5_alloc_shared_dr()
562 domain = mlx5_glue->dr_create_domain(sh->cdev->ctx, in mlx5_alloc_shared_dr()
885 void *ctx = priv->sh->cdev->ctx; in mlx5_queue_counter_id_prepare()
902 .pd = priv->sh->cdev->pd, in mlx5_queue_counter_id_prepare()
1124 err = mlx5_glue->query_port(sh->cdev->ctx, spawn->phys_port, in mlx5_dev_spawn()
1165 if (mlx5_imported_pd_and_ctx(sh->cdev) && mlx5_devx_obj_ops_en(sh)) { in mlx5_dev_spawn()
1204 err = mlx5_glue->devx_port_query(sh->cdev->ctx, in mlx5_dev_spawn()
1288 if (sh->cdev->config.devx) { in mlx5_dev_spawn()
1289 struct mlx5_hca_attr *hca_attr = &sh->cdev->config.hca_attr; in mlx5_dev_spawn()
1881 mlx5_os_pci_probe_pf(struct mlx5_common_device *cdev, in mlx5_os_pci_probe_pf() argument
1910 struct rte_pci_device *pci_dev = RTE_DEV_TO_PCI(cdev->dev); in mlx5_os_pci_probe_pf()
2036 list[ns].cdev = cdev; in mlx5_os_pci_probe_pf()
2131 list[ns].cdev = cdev; in mlx5_os_pci_probe_pf()
2253 list[i].eth_dev = mlx5_dev_spawn(cdev->dev, &list[i], ð_da, in mlx5_os_pci_probe_pf()
2373 mlx5_os_pci_probe(struct mlx5_common_device *cdev, in mlx5_os_pci_probe() argument
2376 struct rte_pci_device *pci_dev = RTE_DEV_TO_PCI(cdev->dev); in mlx5_os_pci_probe()
2381 ret = mlx5_os_parse_eth_devargs(cdev->dev, ð_da); in mlx5_os_pci_probe()
2388 ret = mlx5_os_pci_probe_pf(cdev, ð_da, in mlx5_os_pci_probe()
2396 mlx5_net_remove(cdev); in mlx5_os_pci_probe()
2402 ret = mlx5_os_pci_probe_pf(cdev, ð_da, 0, mkvlist); in mlx5_os_pci_probe()
2409 mlx5_os_auxiliary_probe(struct mlx5_common_device *cdev, in mlx5_os_auxiliary_probe() argument
2414 struct rte_device *dev = cdev->dev; in mlx5_os_auxiliary_probe()
2426 spawn.phys_dev_name = mlx5_os_get_ctx_device_name(cdev->ctx); in mlx5_os_auxiliary_probe()
2433 spawn.cdev = cdev; in mlx5_os_auxiliary_probe()
2463 mlx5_os_net_probe(struct mlx5_common_device *cdev, in mlx5_os_net_probe() argument
2476 ret = mlx5_probe_again_args_validate(cdev, mkvlist); in mlx5_os_net_probe()
2482 if (mlx5_dev_is_pci(cdev->dev)) in mlx5_os_net_probe()
2483 return mlx5_os_pci_probe(cdev, mkvlist); in mlx5_os_net_probe()
2485 return mlx5_os_auxiliary_probe(cdev, mkvlist); in mlx5_os_net_probe()
2544 struct ibv_context *ctx = sh->cdev->ctx; in mlx5_os_dev_shared_handler_install()
2580 if (sh->cdev->config.devx) { in mlx5_os_dev_shared_handler_install()