MCPcopy Create free account
hub / github.com/F-Stack/f-stack / to_mlx5_device

Function to_mlx5_device

dpdk/drivers/common/mlx5/mlx5_common.c:446–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

444}
445
446static struct mlx5_common_device *
447to_mlx5_device(const struct rte_device *rte_dev)
448{
449 struct mlx5_common_device *cdev;
450
451 TAILQ_FOREACH(cdev, &devices_list, next) {
452 if (rte_dev == cdev->dev)
453 return cdev;
454 }
455 return NULL;
456}
457
458int
459mlx5_dev_to_pci_str(const struct rte_device *dev, char *addr, size_t size)

Callers 4

mlx5_common_dev_probeFunction · 0.85
mlx5_common_dev_removeFunction · 0.85
mlx5_common_dev_dma_mapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected