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

Function rte_pci_addr_cmp

dpdk/lib/pci/rte_pci.c:105–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105int
106rte_pci_addr_cmp(const struct rte_pci_addr *addr,
107 const struct rte_pci_addr *addr2)
108{
109 uint64_t dev_addr, dev_addr2;
110
111 if ((addr == NULL) || (addr2 == NULL))
112 return -1;
113
114 dev_addr = ((uint64_t)addr->domain << 24) |
115 (addr->bus << 16) | (addr->devid << 8) | addr->function;
116 dev_addr2 = ((uint64_t)addr2->domain << 24) |
117 (addr2->bus << 16) | (addr2->devid << 8) | addr2->function;
118
119 if (dev_addr > dev_addr2)
120 return 1;
121 else if (dev_addr < dev_addr2)
122 return -1;
123 else
124 return 0;
125}
126
127int
128rte_pci_addr_parse(const char *str, struct rte_pci_addr *addr)

Callers 15

mlx4_pci_probeFunction · 0.85
mana_pci_probe_macFunction · 0.85
mlx5_os_pci_probe_pfFunction · 0.85
bond_pci_addr_cmpFunction · 0.85
mlx5_os_get_ibv_deviceFunction · 0.85
pci_devargs_lookupFunction · 0.85
pci_addr_kv_cmpFunction · 0.85
pci_uio_map_secondaryFunction · 0.85
pci_uio_find_resourceFunction · 0.85
pci_scan_oneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected