Lines Matching refs:ethdev
122 struct rte_eth_dev *ethdev; in rte_eth_dev_allocated() local
128 ethdev = eth_dev_allocated(name); in rte_eth_dev_allocated()
132 return ethdev; in rte_eth_dev_allocated()
264 struct rte_eth_dev *ethdev; in rte_eth_dev_create() local
270 ethdev = rte_eth_dev_allocate(name); in rte_eth_dev_create()
271 if (!ethdev) in rte_eth_dev_create()
275 ethdev->data->dev_private = rte_zmalloc_socket( in rte_eth_dev_create()
279 if (!ethdev->data->dev_private) { in rte_eth_dev_create()
287 ethdev = rte_eth_dev_attach_secondary(name); in rte_eth_dev_create()
288 if (!ethdev) { in rte_eth_dev_create()
295 ethdev->device = device; in rte_eth_dev_create()
298 retval = ethdev_bus_specific_init(ethdev, bus_init_params); in rte_eth_dev_create()
306 retval = ethdev_init(ethdev, init_params); in rte_eth_dev_create()
312 rte_eth_dev_probing_finish(ethdev); in rte_eth_dev_create()
317 rte_eth_dev_release_port(ethdev); in rte_eth_dev_create()
322 rte_eth_dev_destroy(struct rte_eth_dev *ethdev, in rte_eth_dev_destroy() argument
327 ethdev = rte_eth_dev_allocated(ethdev->data->name); in rte_eth_dev_destroy()
328 if (!ethdev) in rte_eth_dev_destroy()
333 ret = ethdev_uninit(ethdev); in rte_eth_dev_destroy()
337 return rte_eth_dev_release_port(ethdev); in rte_eth_dev_destroy()