Lines Matching refs:diag

1074 	int diag;  in rte_eth_dev_configure()  local
1272 diag = eth_dev_rx_queue_config(dev, nb_rx_q); in rte_eth_dev_configure()
1273 if (diag != 0) { in rte_eth_dev_configure()
1276 port_id, diag); in rte_eth_dev_configure()
1277 ret = diag; in rte_eth_dev_configure()
1281 diag = eth_dev_tx_queue_config(dev, nb_tx_q); in rte_eth_dev_configure()
1282 if (diag != 0) { in rte_eth_dev_configure()
1285 port_id, diag); in rte_eth_dev_configure()
1287 ret = diag; in rte_eth_dev_configure()
1291 diag = (*dev->dev_ops->dev_configure)(dev); in rte_eth_dev_configure()
1292 if (diag != 0) { in rte_eth_dev_configure()
1294 port_id, diag); in rte_eth_dev_configure()
1295 ret = eth_err(port_id, diag); in rte_eth_dev_configure()
1300 diag = __rte_eth_dev_profile_init(port_id, dev); in rte_eth_dev_configure()
1301 if (diag != 0) { in rte_eth_dev_configure()
1303 port_id, diag); in rte_eth_dev_configure()
1304 ret = eth_err(port_id, diag); in rte_eth_dev_configure()
1309 diag = eth_dev_validate_offloads(port_id, in rte_eth_dev_configure()
1313 if (diag != 0) { in rte_eth_dev_configure()
1314 ret = diag; in rte_eth_dev_configure()
1319 diag = eth_dev_validate_offloads(port_id, in rte_eth_dev_configure()
1323 if (diag != 0) { in rte_eth_dev_configure()
1324 ret = diag; in rte_eth_dev_configure()
1452 int diag; in rte_eth_dev_start() local
1482 diag = (*dev->dev_ops->dev_start)(dev); in rte_eth_dev_start()
1483 if (diag == 0) in rte_eth_dev_start()
1486 return eth_err(port_id, diag); in rte_eth_dev_start()
2298 int diag = 0; in rte_eth_promiscuous_enable() local
2308 diag = (*dev->dev_ops->promiscuous_enable)(dev); in rte_eth_promiscuous_enable()
2309 dev->data->promiscuous = (diag == 0) ? 1 : 0; in rte_eth_promiscuous_enable()
2311 return eth_err(port_id, diag); in rte_eth_promiscuous_enable()
2318 int diag = 0; in rte_eth_promiscuous_disable() local
2329 diag = (*dev->dev_ops->promiscuous_disable)(dev); in rte_eth_promiscuous_disable()
2330 if (diag != 0) in rte_eth_promiscuous_disable()
2333 return eth_err(port_id, diag); in rte_eth_promiscuous_disable()
2351 int diag; in rte_eth_allmulticast_enable() local
2360 diag = (*dev->dev_ops->allmulticast_enable)(dev); in rte_eth_allmulticast_enable()
2361 dev->data->all_multicast = (diag == 0) ? 1 : 0; in rte_eth_allmulticast_enable()
2363 return eth_err(port_id, diag); in rte_eth_allmulticast_enable()
2370 int diag; in rte_eth_allmulticast_disable() local
2380 diag = (*dev->dev_ops->allmulticast_disable)(dev); in rte_eth_allmulticast_disable()
2381 if (diag != 0) in rte_eth_allmulticast_disable()
2384 return eth_err(port_id, diag); in rte_eth_allmulticast_disable()
3105 int diag; in rte_eth_dev_info_get() local
3131 diag = (*dev->dev_ops->dev_infos_get)(dev, dev_info); in rte_eth_dev_info_get()
3132 if (diag != 0) { in rte_eth_dev_info_get()
3135 return eth_err(port_id, diag); in rte_eth_dev_info_get()