Lines Matching defs:eth_dev

21  * Shared memory (eth_dev->data) only updated by primary process, so it is safe
24 * @param eth_dev
25 * The *eth_dev* pointer is the address of the *rte_eth_dev* structure.
30 rte_eth_copy_pci_info(struct rte_eth_dev *eth_dev,
33 if ((eth_dev == NULL) || (pci_dev == NULL)) {
34 RTE_ETHDEV_LOG_LINE(ERR, "NULL pointer eth_dev=%p pci_dev=%p",
35 (void *)eth_dev, (void *)pci_dev);
39 eth_dev->intr_handle = pci_dev->intr_handle;
42 eth_dev->data->dev_flags = 0;
44 eth_dev->data->dev_flags |= RTE_ETH_DEV_INTR_LSC;
46 eth_dev->data->dev_flags |= RTE_ETH_DEV_INTR_RMV;
48 eth_dev->data->numa_node = pci_dev->device.numa_node;
53 eth_dev_pci_specific_init(struct rte_eth_dev *eth_dev, void *bus_device)
60 rte_eth_copy_pci_info(eth_dev, pci_dev);
82 struct rte_eth_dev *eth_dev;
91 eth_dev = rte_eth_dev_allocate(name);
92 if (!eth_dev)
97 eth_dev->data->dev_private = rte_zmalloc_socket(name,
104 if (eth_dev->data->dev_private == NULL) {
105 eth_dev->data->dev_private = rte_zmalloc(name,
108 if (eth_dev->data->dev_private == NULL) {
109 rte_eth_dev_release_port(eth_dev);
119 eth_dev = rte_eth_dev_attach_secondary(name);
120 if (!eth_dev)
124 eth_dev->device = &dev->device;
125 rte_eth_copy_pci_info(eth_dev, dev);
126 return eth_dev;
129 typedef int (*eth_dev_pci_callback_t)(struct rte_eth_dev *eth_dev);
140 struct rte_eth_dev *eth_dev;
146 eth_dev = rte_eth_dev_pci_allocate(pci_dev, private_data_size);
147 if (!eth_dev)
150 ret = dev_init(eth_dev);
152 rte_eth_dev_release_port(eth_dev);
154 rte_eth_dev_probing_finish(eth_dev);
168 struct rte_eth_dev *eth_dev;
171 eth_dev = rte_eth_dev_allocated(pci_dev->device.name);
172 if (!eth_dev)
182 eth_dev->state == RTE_ETH_DEV_UNUSED)
186 ret = dev_uninit(eth_dev);
191 rte_eth_dev_release_port(eth_dev);